Class ModifyBucketLabelsOptions
Options for operations which modify bucket labels.
Inheritance
Inherited Members
Namespace: Google.Cloud.Storage.V1
Assembly: Google.Cloud.Storage.V1.dll
Syntax
public sealed class ModifyBucketLabelsOptions
Properties
IfMetagenerationMatch
Precondition for modification: the labels are only modified if its current meta-generation matches the given value.
Declaration
public long? IfMetagenerationMatch { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Retries
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.
Declaration
public int? Retries { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
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.