Class: Google::Apis::DataprocV1::ExecutorResourceRequest
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::ExecutorResourceRequest
- 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
-
#amount ⇒ Fixnum
Corresponds to the JSON property
amount
. -
#discovery_script ⇒ String
Corresponds to the JSON property
discoveryScript
. -
#resource_name ⇒ String
Corresponds to the JSON property
resourceName
. -
#vendor ⇒ String
Corresponds to the JSON property
vendor
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutorResourceRequest
constructor
A new instance of ExecutorResourceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutorResourceRequest
Returns a new instance of ExecutorResourceRequest.
2403 2404 2405 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2403 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Fixnum
Corresponds to the JSON property amount
2386 2387 2388 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2386 def amount @amount end |
#discovery_script ⇒ String
Corresponds to the JSON property discoveryScript
2391 2392 2393 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2391 def discovery_script @discovery_script end |
#resource_name ⇒ String
Corresponds to the JSON property resourceName
2396 2397 2398 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2396 def resource_name @resource_name end |
#vendor ⇒ String
Corresponds to the JSON property vendor
2401 2402 2403 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2401 def vendor @vendor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2408 2409 2410 2411 2412 2413 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2408 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 |