Class: Google::Apis::DataprocV1beta2::InstantiateWorkflowTemplateRequest

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

Overview

A request to instantiate a workflow template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstantiateWorkflowTemplateRequest

Returns a new instance of InstantiateWorkflowTemplateRequest.



1492
1493
1494
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1492

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

Instance Attribute Details

#instance_idString

Deprecated. Please use request_id field instead. Corresponds to the JSON property instanceId

Returns:

  • (String)


1466
1467
1468
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1466

def instance_id
  @instance_id
end

#parametersHash<String,String>

Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters. Corresponds to the JSON property parameters

Returns:

  • (Hash<String,String>)


1472
1473
1474
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1472

def parameters
  @parameters
end

#request_idString

Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en. wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. Corresponds to the JSON property requestId

Returns:

  • (String)


1482
1483
1484
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1482

def request_id
  @request_id
end

#versionFixnum

Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.This option cannot be used to instantiate a previous version of workflow template. Corresponds to the JSON property version

Returns:

  • (Fixnum)


1490
1491
1492
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1490

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1497
1498
1499
1500
1501
1502
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 1497

def update!(**args)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @parameters = args[:parameters] if args.key?(:parameters)
  @request_id = args[:request_id] if args.key?(:request_id)
  @version = args[:version] if args.key?(:version)
end