Google Cloud Storage v1 API - Class ListBucketsOptions (4.6.0)

public sealed class ListBucketsOptions

Reference documentation and code samples for the Google Cloud Storage v1 API class ListBucketsOptions.

Options for ListBuckets operations.

Inheritance

object > ListBucketsOptions

Namespace

Google.Cloud.Storage.V1

Assembly

Google.Cloud.Storage.V1.dll

Properties

Fields

public string Fields { get; set; }

If set, this specifies the fields to fetch in the result to obtain partial responses, usually to improve performance. For example, to fetch just the name and location of each bucket, set this property to "items(name,location),nextPageToken". The "nextPageToken" field is required in order to fetch multiple pages; the library does not add this automatically. See https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#partial for more details on specifying fields for partial responses.

Property Value
TypeDescription
string

PageSize

public int? PageSize { get; set; }

The number of results to return per page. (This modifies the per-request page size; it does not affect the total number of results returned.)

Property Value
TypeDescription
int

PageToken

public string PageToken { get; set; }

If set, this token is used to indicate a continued list operation. The value should be taken from the NextPageToken property of either a Page<TResource> or a raw response from AsRawResponses().

Property Value
TypeDescription
string

Prefix

public string Prefix { get; set; }

The prefix to match. Only buckets with names that start with this string will be returned.

Property Value
TypeDescription
string

Projection

public Projection? Projection { get; set; }

The projection to retrieve.

Property Value
TypeDescription
Projection

RetryOptions

public RetryOptions RetryOptions { get; set; }

Options to pass custom retry configuration for each API request.

Property Value
TypeDescription
RetryOptions