Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec

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

Overview

Execution related settings, like retry and service_account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1TaskExecutionSpec

Returns a new instance of GoogleCloudDataplexV1TaskExecutionSpec.



2677
2678
2679
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2677

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

Instance Attribute Details

#argsHash<String,String>

Optional. The arguments to pass to the task. The args can use placeholders of the format $placeholder as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - $task_id - $job_time To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https:// cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. Corresponds to the JSON property args

Returns:

  • (Hash<String,String>)


2664
2665
2666
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2664

def args
  @args
end

#max_job_execution_lifetimeString

Optional. The maximum duration after which the job execution is expired. Corresponds to the JSON property maxJobExecutionLifetime

Returns:

  • (String)


2669
2670
2671
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2669

def max_job_execution_lifetime
  @max_job_execution_lifetime
end

#service_accountString

Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


2675
2676
2677
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2675

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2682
2683
2684
2685
2686
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2682

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