Class: Google::Apis::StoragetransferV1::MetadataOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#gidString

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

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 585

def gid
  @gid
end

#modeString

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

Returns:

  • (String)


592
593
594
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 592

def mode
  @mode
end

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

Returns:

  • (String)


599
600
601
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 599

def symlink
  @symlink
end

#uidString

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

Returns:

  • (String)


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