public sealed class RewriteObject : IMessage<RewriteObject>, IEquatable<RewriteObject>, IDeepCloneable<RewriteObject>, IBufferMessage, IMessage
Reference documentation and code samples for the Storage Batch Operations v1 API class RewriteObject.
Describes options for object rewrite.
Implements
IMessageRewriteObject, IEquatableRewriteObject, IDeepCloneableRewriteObject, IBufferMessage, IMessageNamespace
Google.Cloud.StorageBatchOperations.V1Assembly
Google.Cloud.StorageBatchOperations.V1.dll
Constructors
RewriteObject()
public RewriteObject()
RewriteObject(RewriteObject)
public RewriteObject(RewriteObject other)
Parameter | |
---|---|
Name | Description |
other |
RewriteObject |
Properties
HasKmsKey
public bool HasKmsKey { get; }
Gets whether the "kms_key" field is set
Property Value | |
---|---|
Type | Description |
bool |
KmsKey
public string KmsKey { get; set; }
Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud KMS key must be located in same location as the object. Refer to https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for additional documentation. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key". The object will be rewritten and set with the specified KMS key.
Property Value | |
---|---|
Type | Description |
string |
KmsKeyAsCryptoKeyName
public CryptoKeyName KmsKeyAsCryptoKeyName { get; set; }
CryptoKeyName-typed view over the KmsKey resource name property.
Property Value | |
---|---|
Type | Description |
CryptoKeyName |