Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Task
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1Task
- 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
A task represents a user-visible job.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#display_name ⇒ String
Optional.
-
#execution_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec
Execution related settings, like retry and service_account.
-
#execution_status ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionStatus
Status of the task execution (e.g. Jobs).
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#notebook ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskNotebookTaskConfig
Config for running scheduled notebooks.
-
#spark ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
User-specified config for running a Spark task.
-
#state ⇒ String
Output only.
-
#trigger_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
Task scheduling and trigger settings.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1Task
constructor
A new instance of GoogleCloudDataplexV1Task.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1Task
Returns a new instance of GoogleCloudDataplexV1Task.
4578 4579 4580 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4578 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the task was created.
Corresponds to the JSON property createTime
4514 4515 4516 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4514 def create_time @create_time end |
#description ⇒ String
Optional. Description of the task.
Corresponds to the JSON property description
4519 4520 4521 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4519 def description @description end |
#display_name ⇒ String
Optional. User friendly display name.
Corresponds to the JSON property displayName
4524 4525 4526 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4524 def display_name @display_name end |
#execution_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec
Execution related settings, like retry and service_account.
Corresponds to the JSON property executionSpec
4529 4530 4531 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4529 def execution_spec @execution_spec end |
#execution_status ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionStatus
Status of the task execution (e.g. Jobs).
Corresponds to the JSON property executionStatus
4534 4535 4536 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4534 def execution_status @execution_status end |
#labels ⇒ Hash<String,String>
Optional. User-defined labels for the task.
Corresponds to the JSON property labels
4539 4540 4541 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4539 def labels @labels end |
#name ⇒ String
Output only. The relative resource name of the task, of the form: projects/
project_number/locations/location_id/lakes/lake_id/ tasks/task_id.
Corresponds to the JSON property name
4545 4546 4547 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4545 def name @name end |
#notebook ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskNotebookTaskConfig
Config for running scheduled notebooks.
Corresponds to the JSON property notebook
4550 4551 4552 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4550 def notebook @notebook end |
#spark ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
User-specified config for running a Spark task.
Corresponds to the JSON property spark
4555 4556 4557 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4555 def spark @spark end |
#state ⇒ String
Output only. Current state of the task.
Corresponds to the JSON property state
4560 4561 4562 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4560 def state @state end |
#trigger_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
Task scheduling and trigger settings.
Corresponds to the JSON property triggerSpec
4565 4566 4567 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4565 def trigger_spec @trigger_spec end |
#uid ⇒ String
Output only. System generated globally unique ID for the task. This ID will be
different if the task is deleted and re-created with the same name.
Corresponds to the JSON property uid
4571 4572 4573 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4571 def uid @uid end |
#update_time ⇒ String
Output only. The time when the task was last updated.
Corresponds to the JSON property updateTime
4576 4577 4578 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4576 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4583 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @execution_spec = args[:execution_spec] if args.key?(:execution_spec) @execution_status = args[:execution_status] if args.key?(:execution_status) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @notebook = args[:notebook] if args.key?(:notebook) @spark = args[:spark] if args.key?(:spark) @state = args[:state] if args.key?(:state) @trigger_spec = args[:trigger_spec] if args.key?(:trigger_spec) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |