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
-
#gid ⇒ String
Specifies how each file's GID attribute should be handled by the transfer.
-
#mode ⇒ String
Specifies how each file's mode attribute should be handled by the transfer.
-
#symlink ⇒ String
Specifies how symlinks should be handled by the transfer.
-
#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.
608 609 610 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 608 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
585 586 587 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 585 def gid @gid 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
592 593 594 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 592 def mode @mode 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
599 600 601 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 599 def symlink @symlink 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
606 607 608 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 606 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
613 614 615 616 617 618 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 613 def update!(**args) @gid = args[:gid] if args.key?(:gid) @mode = args[:mode] if args.key?(:mode) @symlink = args[:symlink] if args.key?(:symlink) @uid = args[:uid] if args.key?(:uid) end |