Class: Google::Apis::DataflowV1b3::SdkHarnessContainerImage

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

Overview

Defines a SDK harness container for executing Dataflow pipelines.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SdkHarnessContainerImage

Returns a new instance of SdkHarnessContainerImage.



4159
4160
4161
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4159

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

Instance Attribute Details

#container_imageString

A docker container image that resides in Google Container Registry. Corresponds to the JSON property containerImage

Returns:

  • (String)


4148
4149
4150
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4148

def container_image
  @container_image
end

#use_single_core_per_containerBoolean Also known as: use_single_core_per_container?

If true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed. Corresponds to the JSON property useSingleCorePerContainer

Returns:

  • (Boolean)


4156
4157
4158
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4156

def use_single_core_per_container
  @use_single_core_per_container
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4164
4165
4166
4167
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 4164

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