Class: Google::Apis::DataflowV1b3::SdkHarnessContainerImage
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::SdkHarnessContainerImage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Defines an SDK harness container for executing Dataflow pipelines.
Instance Attribute Summary collapse
-
#capabilities ⇒ Array<String>
The set of capabilities enumerated in the above Environment proto.
-
#container_image ⇒ String
A docker container image that resides in Google Container Registry.
-
#environment_id ⇒ String
Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.
-
#use_single_core_per_container ⇒ Boolean
(also: #use_single_core_per_container?)
If true, recommends the Dataflow service to use only one core per SDK container instance with this image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SdkHarnessContainerImage
constructor
A new instance of SdkHarnessContainerImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SdkHarnessContainerImage
Returns a new instance of SdkHarnessContainerImage.
4220 4221 4222 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capabilities ⇒ Array<String>
The set of capabilities enumerated in the above Environment proto. See also
beam_runner_api.proto
Corresponds to the JSON property capabilities
4198 4199 4200 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4198 def capabilities @capabilities end |
#container_image ⇒ String
A docker container image that resides in Google Container Registry.
Corresponds to the JSON property containerImage
4203 4204 4205 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4203 def container_image @container_image end |
#environment_id ⇒ String
Environment ID for the Beam runner API proto Environment that corresponds to
the current SDK Harness.
Corresponds to the JSON property environmentId
4209 4210 4211 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4209 def environment_id @environment_id end |
#use_single_core_per_container ⇒ Boolean 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
4217 4218 4219 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4217 def use_single_core_per_container @use_single_core_per_container end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4225 4226 4227 4228 4229 4230 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 4225 def update!(**args) @capabilities = args[:capabilities] if args.key?(:capabilities) @container_image = args[:container_image] if args.key?(:container_image) @environment_id = args[:environment_id] if args.key?(:environment_id) @use_single_core_per_container = args[:use_single_core_per_container] if args.key?(:use_single_core_per_container) end |