Class: Google::Apis::DataprocV1::RuntimeConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeConfig

Returns a new instance of RuntimeConfig.



6871
6872
6873
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6871

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

Instance Attribute Details

#autotuning_configGoogle::Apis::DataprocV1::AutotuningConfig

Autotuning configuration of the workload. Corresponds to the JSON property autotuningConfig



6841
6842
6843
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6841

def autotuning_config
  @autotuning_config
end

#cohortString

Optional. Cohort identifier. Identifies families of the workloads having the same shape, e.g. daily ETL jobs. Corresponds to the JSON property cohort

Returns:

  • (String)


6847
6848
6849
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6847

def cohort
  @cohort
end

#container_imageString

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

Returns:

  • (String)


6853
6854
6855
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6853

def container_image
  @container_image
end

#propertiesHash<String,String>

Optional. A mapping of property names to values, which are used to configure workload execution. Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


6859
6860
6861
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6859

def properties
  @properties
end

#repository_configGoogle::Apis::DataprocV1::RepositoryConfig

Configuration for dependency repositories Corresponds to the JSON property repositoryConfig



6864
6865
6866
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6864

def repository_config
  @repository_config
end

#versionString

Optional. Version of the batch runtime. Corresponds to the JSON property version

Returns:

  • (String)


6869
6870
6871
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6869

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6876
6877
6878
6879
6880
6881
6882
6883
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6876

def update!(**args)
  @autotuning_config = args[:autotuning_config] if args.key?(:autotuning_config)
  @cohort = args[:cohort] if args.key?(:cohort)
  @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