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.
Namespace
Google.Cloud.Storage.V1Assembly
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 | |
---|---|
Type | Description |
Nullable<Int64> |
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 | |
---|---|
Type | Description |
Nullable<Int32> |
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.