Class: Google::Apis::DataprocV1beta2::SoftwareConfig

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

Overview

Specifies the selection and config of software inside the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SoftwareConfig

Returns a new instance of SoftwareConfig



1894
1895
1896
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1894

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

Instance Attribute Details

#image_versionString

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

Returns:

  • (String)


1876
1877
1878
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1876

def image_version
  @image_version
end

#propertiesHash<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: capacity-scheduler: capacity-scheduler.xml core: core-site.xml distcp: distcp-default.xml hdfs: hdfs-site.xml hive: hive-site.xml mapred: mapred-site.xml pig: pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more information, see Cluster properties. Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


1892
1893
1894
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1892

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1899
1900
1901
1902
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1899

def update!(**args)
  @image_version = args[:image_version] if args.key?(:image_version)
  @properties = args[:properties] if args.key?(:properties)
end