Class: Google::Apis::StoragetransferV1::HdfsData

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

An HdfsData resource specifies a path within an HDFS entity (e.g. a cluster). All cluster-specific settings, such as namenodes and ports, are configured on the transfer agents servicing requests, so HdfsData only contains the root path to the data in our transfer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HdfsData

Returns a new instance of HdfsData.



629
630
631
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 629

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pathString

Root path to transfer files. Corresponds to the JSON property path

Returns:

  • (String)


627
628
629
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 627

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



634
635
636
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 634

def update!(**args)
  @path = args[:path] if args.key?(:path)
end