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

Returns a new instance of GoogleCloudDataplexV1Task.



5366
5367
5368
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5366

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

Returns:

  • (String)


5302
5303
5304
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5302

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


5307
5308
5309
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5307

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


5312
5313
5314
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5312

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



5317
5318
5319
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5317

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



5322
5323
5324
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5322

def execution_status
  @execution_status
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


5327
5328
5329
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5327

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

Returns:

  • (String)


5333
5334
5335
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5333

def name
  @name
end

#notebookGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskNotebookTaskConfig

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



5338
5339
5340
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5338

def notebook
  @notebook
end

#sparkGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig

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



5343
5344
5345
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5343

def spark
  @spark
end

#stateString

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

Returns:

  • (String)


5348
5349
5350
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5348

def state
  @state
end

#trigger_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec

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



5353
5354
5355
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5353

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

Returns:

  • (String)


5359
5360
5361
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5359

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


5364
5365
5366
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5364

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5371

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