Class: Google::Apis::StoragetransferV1::MetadataOptions
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::MetadataOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
Specifies the metadata options for running a transfer.
Instance Attribute Summary collapse
-
#acl ⇒ String
Specifies how each object's ACLs should be preserved for transfers between Google Cloud Storage buckets.
-
#gid ⇒ String
Specifies how each file's GID attribute should be handled by the transfer.
-
#kms_key ⇒ String
Specifies how each object's Cloud KMS customer-managed encryption key (CMEK) is preserved for transfers between Google Cloud Storage buckets.
-
#mode ⇒ String
Specifies how each file's mode attribute should be handled by the transfer.
-
#storage_class ⇒ String
Specifies the storage class to set on objects being transferred to Google Cloud Storage buckets.
-
#symlink ⇒ String
Specifies how symlinks should be handled by the transfer.
-
#temporary_hold ⇒ String
Specifies how each object's temporary hold status should be preserved for transfers between Google Cloud Storage buckets.
-
#uid ⇒ String
Specifies how each file's UID attribute should be handled by the transfer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetadataOptions
constructor
A new instance of MetadataOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetadataOptions
Returns a new instance of MetadataOptions.
637 638 639 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 637 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acl ⇒ String
Specifies how each object's ACLs should be preserved for transfers between
Google Cloud Storage buckets. If unspecified, the default behavior is the same
as ACL_DESTINATION_BUCKET_DEFAULT.
Corresponds to the JSON property acl
585 586 587 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 585 def acl @acl end |
#gid ⇒ String
Specifies how each file's GID attribute should be handled by the transfer. If
unspecified, the default behavior is the same as GID_SKIP when the source is a
POSIX file system.
Corresponds to the JSON property gid
592 593 594 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 592 def gid @gid end |
#kms_key ⇒ String
Specifies how each object's Cloud KMS customer-managed encryption key (CMEK)
is preserved for transfers between Google Cloud Storage buckets. If
unspecified, the default behavior is the same as
KMS_KEY_DESTINATION_BUCKET_DEFAULT.
Corresponds to the JSON property kmsKey
600 601 602 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 600 def kms_key @kms_key end |
#mode ⇒ String
Specifies how each file's mode attribute should be handled by the transfer. If
unspecified, the default behavior is the same as MODE_SKIP when the source is
a POSIX file system.
Corresponds to the JSON property mode
607 608 609 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 607 def mode @mode end |
#storage_class ⇒ String
Specifies the storage class to set on objects being transferred to Google
Cloud Storage buckets. If unspecified, the default behavior is the same as
STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT.
Corresponds to the JSON property storageClass
614 615 616 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 614 def storage_class @storage_class end |
#symlink ⇒ String
Specifies how symlinks should be handled by the transfer. If unspecified, the
default behavior is the same as SYMLINK_SKIP when the source is a POSIX file
system.
Corresponds to the JSON property symlink
621 622 623 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 621 def symlink @symlink end |
#temporary_hold ⇒ String
Specifies how each object's temporary hold status should be preserved for
transfers between Google Cloud Storage buckets. If unspecified, the default
behavior is the same as TEMPORARY_HOLD_PRESERVE.
Corresponds to the JSON property temporaryHold
628 629 630 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 628 def temporary_hold @temporary_hold end |
#uid ⇒ String
Specifies how each file's UID attribute should be handled by the transfer. If
unspecified, the default behavior is the same as UID_SKIP when the source is a
POSIX file system.
Corresponds to the JSON property uid
635 636 637 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 635 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
642 643 644 645 646 647 648 649 650 651 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 642 def update!(**args) @acl = args[:acl] if args.key?(:acl) @gid = args[:gid] if args.key?(:gid) @kms_key = args[:kms_key] if args.key?(:kms_key) @mode = args[:mode] if args.key?(:mode) @storage_class = args[:storage_class] if args.key?(:storage_class) @symlink = args[:symlink] if args.key?(:symlink) @temporary_hold = args[:temporary_hold] if args.key?(:temporary_hold) @uid = args[:uid] if args.key?(:uid) end |