Google Cloud Storage v1 API - Class UpdateObjectOptions (4.8.0)

public sealed class UpdateObjectOptions

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

Options for UpdateObject operations.

Inheritance

object > UpdateObjectOptions

Namespace

Google.Cloud.Storage.V1

Assembly

Google.Cloud.Storage.V1.dll

Properties

EncryptionKey

public EncryptionKey EncryptionKey { get; set; }

The encryption key to use for this operation. If this property is null, the EncryptionKey will be used instead. Use None to remove encryption headers from this request.

Property Value
TypeDescription
EncryptionKey

ForceNoPreconditions

public bool? ForceNoPreconditions { get; set; }

If set to true, no other preconditions must be set, and the local metageneration of the object being updated is not used to create a precondition.

Property Value
TypeDescription
bool

Generation

public long? Generation { get; set; }

If present, selects a specific revision of this object (as opposed to the latest version, the default).

Property Value
TypeDescription
long

IfGenerationMatch

public long? IfGenerationMatch { get; set; }

Precondition for update: the object is only updated if the existing object's generation matches the given value.

Property Value
TypeDescription
long

IfGenerationNotMatch

public long? IfGenerationNotMatch { get; set; }

Precondition for update: the object is only updated if the existing object's generation does not match the given value.

Property Value
TypeDescription
long

IfMetagenerationMatch

public long? IfMetagenerationMatch { get; set; }

Precondition for update: the object is only updated if the existing object's meta-generation matches the given value.

Property Value
TypeDescription
long

IfMetagenerationNotMatch

public long? IfMetagenerationNotMatch { get; set; }

Precondition for update: the object is only updated if the existing object's meta-generation does not match the given value.

Property Value
TypeDescription
long

PredefinedAcl

public PredefinedObjectAcl? PredefinedAcl { get; set; }

A pre-defined ACL for simple access control scenarios.

Property Value
TypeDescription
PredefinedObjectAcl

Projection

public Projection? Projection { get; set; }

The projection of the updated object to return.

Property Value
TypeDescription
Projection

RetryOptions

public RetryOptions RetryOptions { get; set; }

Options to pass custom retry configuration for each API request.

Property Value
TypeDescription
RetryOptions

UserProject

public string UserProject { get; set; }

If set, this is the ID of the project which will be billed for the request. The caller must have suitable permissions for the project being billed.

Property Value
TypeDescription
string