# Cloud Dataproc V1beta2 API - Class Google::Cloud::Dataproc::V1beta2::SoftwareConfig (v0.6.3)

Reference documentation and code samples for the Cloud Dataproc V1beta2 API class Google::Cloud::Dataproc::V1beta2::SoftwareConfig.

Specifies the selection and config of software inside the cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #image_version

    def image_version() -> ::String

**Returns**

- (::String) --- Optional. The version of software inside the cluster. It must be one of the supported [Dataproc
  Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview"
  version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.

### #image_version=

    def image_version=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The version of software inside the cluster. It must be one of the supported [Dataproc
  Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview"
  version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
**Returns**

- (::String) --- Optional. The version of software inside the cluster. It must be one of the supported [Dataproc
  Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview"
  version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.

### #optional_components

    def optional_components() -> ::Array<::Google::Cloud::Dataproc::V1beta2::Component>

**Returns**

- (::Array\<[::Google::Cloud::Dataproc::V1beta2::Component](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-Component)\>) --- The set of optional components to activate on the cluster.

### #optional_components=

    def optional_components=(value) -> ::Array<::Google::Cloud::Dataproc::V1beta2::Component>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dataproc::V1beta2::Component](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-Component)\>) --- The set of optional components to activate on the cluster.
**Returns**

- (::Array\<[::Google::Cloud::Dataproc::V1beta2::Component](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataproc-v1beta2/latest/Google-Cloud-Dataproc-V1beta2-Component)\>) --- The set of optional components to activate on the cluster.

### #properties

    def properties() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The properties to set on daemon config files.

  Property keys are specified in `prefix:property` format, for example
  `core:hadoop.tmp.dir`. 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.xml`

  For more information, see [Cluster
  properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).

### #properties=

    def properties=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The properties to set on daemon config files.


  Property keys are specified in `prefix:property` format, for example
  `core:hadoop.tmp.dir`. 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.xml`

  For more information, see [Cluster
  properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The properties to set on daemon config files.

  Property keys are specified in `prefix:property` format, for example
  `core:hadoop.tmp.dir`. 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.xml`

  For more information, see [Cluster
  properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).