Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Task

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

A task represents a user-visible job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1Task



8141
8142
8143
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8141

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when the task was created. Corresponds to the JSON property createTime



8077
8078
8079
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8077

def create_time
  @create_time
end

#descriptionString

Optional. Description of the task. Corresponds to the JSON property description



8082
8083
8084
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8082

def description
  @description
end

#display_nameString

Optional. User friendly display name. Corresponds to the JSON property displayName



8087
8088
8089
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8087

def display_name
  @display_name
end

#execution_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec

Execution related settings, like retry and service_account. Corresponds to the JSON property executionSpec



8092
8093
8094
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8092

def execution_spec
  @execution_spec
end

#execution_statusGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionStatus

Status of the task execution (e.g. Jobs). Corresponds to the JSON property executionStatus



8097
8098
8099
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8097

def execution_status
  @execution_status
end

#labelsHash<String,String>

Optional. User-defined labels for the task. Corresponds to the JSON property labels



8102
8103
8104
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8102

def labels
  @labels
end

#nameString

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



8108
8109
8110
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8108

def name
  @name
end

#notebookGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskNotebookTaskConfig

Config for running scheduled notebooks. Corresponds to the JSON property notebook



8113
8114
8115
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8113

def notebook
  @notebook
end

#sparkGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig

User-specified config for running a Spark task. Corresponds to the JSON property spark



8118
8119
8120
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8118

def spark
  @spark
end

#stateString

Output only. Current state of the task. Corresponds to the JSON property state



8123
8124
8125
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8123

def state
  @state
end

#trigger_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec

Task scheduling and trigger settings. Corresponds to the JSON property triggerSpec



8128
8129
8130
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8128

def trigger_spec
  @trigger_spec
end

#uidString

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



8134
8135
8136
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8134

def uid
  @uid
end

#update_timeString

Output only. The time when the task was last updated. Corresponds to the JSON property updateTime



8139
8140
8141
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8139

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
# File 'lib/google/apis/dataplex_v1/classes.rb', line 8146

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