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.



4199
4200
4201
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4199

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

Instance Attribute Details

#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)


4186
4187
4188
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4186

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>)


4192
4193
4194
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4192

def properties
  @properties
end

#versionString

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

Returns:

  • (String)


4197
4198
4199
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4197

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4204
4205
4206
4207
4208
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4204

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