Class: Google::Apis::DataprocV1::RuntimeConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::RuntimeConfig
- 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
Runtime configuration for a workload.
Instance Attribute Summary collapse
-
#container_image ⇒ String
Optional.
-
#properties ⇒ Hash<String,String>
Optional.
-
#version ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuntimeConfig
constructor
A new instance of RuntimeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuntimeConfig
Returns a new instance of RuntimeConfig.
3738 3739 3740 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_image ⇒ String
Optional. Optional custom container image for the job runtime environment. If
not specified, a default container image will be used.
Corresponds to the JSON property containerImage
3725 3726 3727 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3725 def container_image @container_image end |
#properties ⇒ Hash<String,String>
Optional. A mapping of property names to values, which are used to configure
workload execution.
Corresponds to the JSON property properties
3731 3732 3733 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3731 def properties @properties end |
#version ⇒ String
Optional. Version of the batch runtime.
Corresponds to the JSON property version
3736 3737 3738 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3736 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3743 3744 3745 3746 3747 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3743 def update!(**args) @container_image = args[:container_image] if args.key?(:container_image) @properties = args[:properties] if args.key?(:properties) @version = args[:version] if args.key?(:version) end |