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.
5203 5204 5205 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5203 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
5139 5140 5141 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5139 def create_time @create_time end |
#description ⇒ String
Optional. Description of the task.
Corresponds to the JSON property description
5144 5145 5146 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5144 def description @description end |
#display_name ⇒ String
Optional. User friendly display name.
Corresponds to the JSON property displayName
5149 5150 5151 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5149 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
5154 5155 5156 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5154 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
5159 5160 5161 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5159 def execution_status @execution_status end |
#labels ⇒ Hash<String,String>
Optional. User-defined labels for the task.
Corresponds to the JSON property labels
5164 5165 5166 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5164 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
5170 5171 5172 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5170 def name @name end |
#notebook ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskNotebookTaskConfig
Config for running scheduled notebooks.
Corresponds to the JSON property notebook
5175 5176 5177 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5175 def notebook @notebook end |
#spark ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
User-specified config for running a Spark task.
Corresponds to the JSON property spark
5180 5181 5182 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5180 def spark @spark end |
#state ⇒ String
Output only. Current state of the task.
Corresponds to the JSON property state
5185 5186 5187 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5185 def state @state end |
#trigger_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
Task scheduling and trigger settings.
Corresponds to the JSON property triggerSpec
5190 5191 5192 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5190 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
5196 5197 5198 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5196 def uid @uid end |
#update_time ⇒ String
Output only. The time when the task was last updated.
Corresponds to the JSON property updateTime
5201 5202 5203 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5201 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5208 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 |