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.



6971
6972
6973
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6971

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>)


6944
6945
6946
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6944

def args
  @args
end

#kms_keyString

Optional. The Cloud KMS key to use for encryption, of the form: projects/ project_number/locations/location_id/keyRings/key-ring-name/cryptoKeys/ key-name. Corresponds to the JSON property kmsKey

Returns:

  • (String)


6951
6952
6953
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6951

def kms_key
  @kms_key
end

#max_job_execution_lifetimeString

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

Returns:

  • (String)


6956
6957
6958
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6956

def max_job_execution_lifetime
  @max_job_execution_lifetime
end

#projectString

Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the ExecutionSpec. service_account must belong to this project. Corresponds to the JSON property project

Returns:

  • (String)


6963
6964
6965
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6963

def project
  @project
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)


6969
6970
6971
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6969

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6976
6977
6978
6979
6980
6981
6982
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6976

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