Class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateRequest

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

Overview

A request to launch a template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatapipelinesV1LaunchTemplateRequest

Returns a new instance of GoogleCloudDatapipelinesV1LaunchTemplateRequest.



436
437
438
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 436

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

Instance Attribute Details

#gcs_pathString

A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'. Corresponds to the JSON property gcsPath

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 412

def gcs_path
  @gcs_path
end

#launch_parametersGoogle::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateParameters

Parameters to provide to the template being launched. Corresponds to the JSON property launchParameters



417
418
419
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 417

def launch_parameters
  @launch_parameters
end

#locationString

The regional endpoint to which to direct the request. Corresponds to the JSON property location

Returns:

  • (String)


423
424
425
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 423

def location
  @location
end

#project_idString

Required. The ID of the Cloud Platform project that the job belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 428

def project_id
  @project_id
end

#validate_onlyBoolean Also known as: validate_only?

If true, the request is validated but not actually executed. Defaults to false. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


433
434
435
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 433

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



441
442
443
444
445
446
447
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 441

def update!(**args)
  @gcs_path = args[:gcs_path] if args.key?(:gcs_path)
  @launch_parameters = args[:launch_parameters] if args.key?(:launch_parameters)
  @location = args[:location] if args.key?(:location)
  @project_id = args[:project_id] if args.key?(:project_id)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end