Class: Google::Apis::DataprocV1::ExecutorResourceRequest

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

Overview

Resources used per executor used by the application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutorResourceRequest

Returns a new instance of ExecutorResourceRequest.



2751
2752
2753
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2751

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

Instance Attribute Details

#amountFixnum

Corresponds to the JSON property amount

Returns:

  • (Fixnum)


2734
2735
2736
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2734

def amount
  @amount
end

#discovery_scriptString

Corresponds to the JSON property discoveryScript

Returns:

  • (String)


2739
2740
2741
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2739

def discovery_script
  @discovery_script
end

#resource_nameString

Corresponds to the JSON property resourceName

Returns:

  • (String)


2744
2745
2746
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2744

def resource_name
  @resource_name
end

#vendorString

Corresponds to the JSON property vendor

Returns:

  • (String)


2749
2750
2751
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2749

def vendor
  @vendor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2756
2757
2758
2759
2760
2761
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2756

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @discovery_script = args[:discovery_script] if args.key?(:discovery_script)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @vendor = args[:vendor] if args.key?(:vendor)
end