Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec
- 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
-
#args ⇒ Hash<String,String>
Optional.
-
#max_job_execution_lifetime ⇒ String
Optional.
-
#service_account ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskExecutionSpec
constructor
A new instance of GoogleCloudDataplexV1TaskExecutionSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskExecutionSpec
Returns a new instance of GoogleCloudDataplexV1TaskExecutionSpec.
2683 2684 2685 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2683 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Hash<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
2670 2671 2672 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2670 def args @args end |
#max_job_execution_lifetime ⇒ String
Optional. The maximum duration after which the job execution is expired.
Corresponds to the JSON property maxJobExecutionLifetime
2675 2676 2677 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2675 def max_job_execution_lifetime @max_job_execution_lifetime end |
#service_account ⇒ String
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
2681 2682 2683 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2681 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2688 2689 2690 2691 2692 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2688 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 |