Class: Google::Apis::DataprocV1::SoftwareConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::SoftwareConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb
Overview
Specifies the selection and config of software inside the cluster.
Instance Attribute Summary collapse
-
#image_version ⇒ String
[Optional] The version of software inside the cluster.
-
#properties ⇒ Hash<String,String>
[Optional] The properties to set on daemon config files.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareConfig
constructor
A new instance of SoftwareConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SoftwareConfig
Returns a new instance of SoftwareConfig.
349 350 351 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_version ⇒ String
[Optional] The version of software inside the cluster. It must match the
regular expression [0-9]+\.[0-9]+
. If unspecified, it defaults to the latest
version (see Cloud Dataproc Versioning).
Corresponds to the JSON property imageVersion
338 339 340 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 338 def image_version @image_version end |
#properties ⇒ Hash<String,String>
[Optional] The properties to set on daemon config files. Property keys are
specified in prefix:property
format, such as core:fs.defaultFS
. The
following are supported prefixes and their mappings: * core: core-site.xml
*
hdfs: hdfs-site.xml
* mapred: mapred-site.xml
* yarn: yarn-site.xml
*
hive: hive-site.xml
* pig: pig.properties
* spark: spark-defaults.conf
Corresponds to the JSON property properties
347 348 349 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 347 def properties @properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
354 355 356 357 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 354 def update!(**args) @image_version = args[:image_version] if args.key?(:image_version) @properties = args[:properties] if args.key?(:properties) end |