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.
-
#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.
2662 2663 2664 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2662 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
2603 2604 2605 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2603 def create_time @create_time end |
#description ⇒ String
Optional. Description of the task.
Corresponds to the JSON property description
2608 2609 2610 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2608 def description @description end |
#display_name ⇒ String
Optional. User friendly display name.
Corresponds to the JSON property displayName
2613 2614 2615 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2613 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
2618 2619 2620 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2618 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
2623 2624 2625 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2623 def execution_status @execution_status end |
#labels ⇒ Hash<String,String>
Optional. User-defined labels for the task.
Corresponds to the JSON property labels
2628 2629 2630 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2628 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
2634 2635 2636 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2634 def name @name end |
#spark ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
User-specified config for running a Spark task.
Corresponds to the JSON property spark
2639 2640 2641 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2639 def spark @spark end |
#state ⇒ String
Output only. Current state of the task.
Corresponds to the JSON property state
2644 2645 2646 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2644 def state @state end |
#trigger_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
Task scheduling and trigger settings.
Corresponds to the JSON property triggerSpec
2649 2650 2651 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2649 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
2655 2656 2657 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2655 def uid @uid end |
#update_time ⇒ String
Output only. The time when the task was last updated.
Corresponds to the JSON property updateTime
2660 2661 2662 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2660 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2667 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) @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 |