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.
-
#repository_config ⇒ Google::Apis::DataprocV1::RepositoryConfig
Configuration for dependency repositories Corresponds to the JSON property
repositoryConfig. -
#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.
4631 4632 4633 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4631 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
4613 4614 4615 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4613 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
4619 4620 4621 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4619 def properties @properties end |
#repository_config ⇒ Google::Apis::DataprocV1::RepositoryConfig
Configuration for dependency repositories
Corresponds to the JSON property repositoryConfig
4624 4625 4626 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4624 def repository_config @repository_config end |
#version ⇒ String
Optional. Version of the batch runtime.
Corresponds to the JSON property version
4629 4630 4631 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4629 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4636 4637 4638 4639 4640 4641 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4636 def update!(**args) @container_image = args[:container_image] if args.key?(:container_image) @properties = args[:properties] if args.key?(:properties) @repository_config = args[:repository_config] if args.key?(:repository_config) @version = args[:version] if args.key?(:version) end |