Google Cloud Storage v1 API - Class ModifyBucketLabelsOptions (4.7.0)

public sealed class ModifyBucketLabelsOptions

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

Options for operations which modify bucket labels.

Inheritance

object > ModifyBucketLabelsOptions

Namespace

Google.Cloud.Storage.V1

Assembly

Google.Cloud.Storage.V1.dll

Properties

IfMetagenerationMatch

public long? IfMetagenerationMatch { get; set; }

Precondition for modification: the labels are only modified if its current meta-generation matches the given value.

Property Value
TypeDescription
long

Retries

public int? Retries { get; set; }

The number of times to retry the modification if the bucket's metageneration changes in the read/modify/write cycle. If this property is not set, a suitable default is used. The value must not be negative.

Property Value
TypeDescription
int
Remarks

Modifying bucket labels involves reading the bucket metadata in one request, then sending another request with the new labels, including a metageneration check to ensure that the bucket hasn't changed between the two requests. If the metageneration has changed, the overall operation can be retried from the start. This property indicates the number of retries, so it has a minimum value of 0.