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.



568
569
570
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 568

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

Instance Attribute Details

#pathString

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

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 566

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



573
574
575
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 573

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