Class: Google::Apis::DataflowV1b3::Package

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb

Overview

Packages that need to be installed in order for a worker to run the steps of the Dataflow job which will be assigned to its worker pool. This is the mechanism by which the SDK causes code to be loaded onto the workers. For example, the Dataflow Java SDK might use this to install jars containing the user's code and all of the various dependencies (libraries, data files, etc) required in order for that code to run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Package

Returns a new instance of Package.



534
535
536
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 534

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

Instance Attribute Details

#locationString

The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/bucket bucket.storage.googleapis.com/ Corresponds to the JSON property location

Returns:

  • (String)


532
533
534
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 532

def location
  @location
end

#nameString

The name of the package. Corresponds to the JSON property name

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 526

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



539
540
541
542
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 539

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