Class: Google::Apis::DataflowV1b3::LaunchFlexTemplateParameter

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

Launch FlexTemplate Parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LaunchFlexTemplateParameter

Returns a new instance of LaunchFlexTemplateParameter.



2535
2536
2537
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2535

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

Instance Attribute Details

#container_specGoogle::Apis::DataflowV1b3::ContainerSpec

Container Spec. Corresponds to the JSON property containerSpec



2493
2494
2495
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2493

def container_spec
  @container_spec
end

#container_spec_gcs_pathString

Gcs path to a file with json serialized ContainerSpec as content. Corresponds to the JSON property containerSpecGcsPath

Returns:

  • (String)


2498
2499
2500
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2498

def container_spec_gcs_path
  @container_spec_gcs_path
end

#environmentGoogle::Apis::DataflowV1b3::FlexTemplateRuntimeEnvironment

The environment values to be set at runtime for flex template. Corresponds to the JSON property environment



2503
2504
2505
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2503

def environment
  @environment
end

#job_nameString

Required. The job name to use for the created job. For update job request, job name should be same as the existing running job. Corresponds to the JSON property jobName

Returns:

  • (String)


2509
2510
2511
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2509

def job_name
  @job_name
end

#launch_optionsHash<String,String>

Launch options for this flex template job. This is a common set of options across languages and templates. This should not be used to pass job parameters. Corresponds to the JSON property launchOptions

Returns:

  • (Hash<String,String>)


2515
2516
2517
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2515

def launch_options
  @launch_options
end

#parametersHash<String,String>

The parameters for FlexTemplate. Ex. "num_workers":"5" Corresponds to the JSON property parameters

Returns:

  • (Hash<String,String>)


2520
2521
2522
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2520

def parameters
  @parameters
end

#transform_name_mappingsHash<String,String>

Use this to pass transform_name_mappings for streaming update jobs. Ex:" oldTransformName":"newTransformName",...' Corresponds to the JSON property transformNameMappings

Returns:

  • (Hash<String,String>)


2526
2527
2528
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2526

def transform_name_mappings
  @transform_name_mappings
end

#updateBoolean Also known as: update?

Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. Corresponds to the JSON property update

Returns:

  • (Boolean)


2532
2533
2534
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2532

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2540

def update!(**args)
  @container_spec = args[:container_spec] if args.key?(:container_spec)
  @container_spec_gcs_path = args[:container_spec_gcs_path] if args.key?(:container_spec_gcs_path)
  @environment = args[:environment] if args.key?(:environment)
  @job_name = args[:job_name] if args.key?(:job_name)
  @launch_options = args[:launch_options] if args.key?(:launch_options)
  @parameters = args[:parameters] if args.key?(:parameters)
  @transform_name_mappings = args[:transform_name_mappings] if args.key?(:transform_name_mappings)
  @update = args[:update] if args.key?(:update)
end