public function containers($limit = 10000, $marker = '')
    {
        $response = $this->api->request('GET', '/', [
            'query' => [
                'limit' => intval($limit),
                'marker' => $marker,
            ],
        ]);

        if ($response->getStatusCode() !== 200) {
            throw new ApiRequestFailedException('Unable to list containers.', $response->getStatusCode());
        }

        $containers = json_decode($response->getBody(), true);

        return new Collection($this->transformContainers($containers));
    }
public function containers($limit = 10000, $marker = '')
    {
        $response = $this->api->request('GET', '/', [
            'query' => [
                'limit' => intval($limit),
                'marker' => $marker,
            ],
        ]);

        if ($response->getStatusCode() !== 200) {
            throw new ApiRequestFailedException('Unable to list containers.', $response->getStatusCode());
        }

        $containers = json_decode($response->getBody(), true);

        return new Collection($this->transformContainers($containers));
    }
public function containers ( $ limit = 10000 , $ marker = '' ) { $ response = $ this -> api -> request ( 'GET' , '/' , [ 'query' => [ 'limit' => intval ( $ limit ) , 'marker' => $ marker , ] , ] ) ; if ( $ response -> getStatusCode ( ) !== 200 ) { throw new ApiRequestFailedException ( 'Unable to list containers.' , $ response -> getStatusCode ( ) ) ; } $ containers = json_decode ( $ response -> getBody ( ) , true ) ; return new Collection ( $ this -> transformContainers ( $ containers ) ) ; }
Available containers.

@param int    $limit  = 10000
@param string $marker = ''

@throws \ArgentCrusade\Selectel\CloudStorage\Exceptions\ApiRequestFailedException

@return \ArgentCrusade\Selectel\CloudStorage\Contracts\Collections\CollectionContract
Available containers .