Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Job

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 job represents an instance of a task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1Job

Returns a new instance of GoogleCloudDataplexV1Job.



3293
3294
3295
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3293

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

Instance Attribute Details

#end_timeString

Output only. The time when the job ended. Corresponds to the JSON property endTime

Returns:

  • (String)


3233
3234
3235
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3233

def end_time
  @end_time
end

#execution_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1TaskExecutionSpec

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



3238
3239
3240
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3238

def execution_spec
  @execution_spec
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


3243
3244
3245
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3243

def labels
  @labels
end

#messageString

Output only. Additional information about the current state. Corresponds to the JSON property message

Returns:

  • (String)


3248
3249
3250
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3248

def message
  @message
end

#nameString

Output only. The relative resource name of the job, of the form: projects/ project_number/locations/location_id/lakes/lake_id/tasks/task_id/jobs/ job_id. Corresponds to the JSON property name

Returns:

  • (String)


3255
3256
3257
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3255

def name
  @name
end

#retry_countFixnum

Output only. The number of times the job has been retried (excluding the initial attempt). Corresponds to the JSON property retryCount

Returns:

  • (Fixnum)


3261
3262
3263
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3261

def retry_count
  @retry_count
end

#serviceString

Output only. The underlying service running a job. Corresponds to the JSON property service

Returns:

  • (String)


3266
3267
3268
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3266

def service
  @service
end

#service_jobString

Output only. The full resource name for the job run under a particular service. Corresponds to the JSON property serviceJob

Returns:

  • (String)


3271
3272
3273
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3271

def service_job
  @service_job
end

#start_timeString

Output only. The time when the job was started. Corresponds to the JSON property startTime

Returns:

  • (String)


3276
3277
3278
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3276

def start_time
  @start_time
end

#stateString

Output only. Execution state for the job. Corresponds to the JSON property state

Returns:

  • (String)


3281
3282
3283
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3281

def state
  @state
end

#triggerString

Output only. Job execution trigger. Corresponds to the JSON property trigger

Returns:

  • (String)


3286
3287
3288
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3286

def trigger
  @trigger
end

#uidString

Output only. System generated globally unique ID for the job. Corresponds to the JSON property uid

Returns:

  • (String)


3291
3292
3293
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3291

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3298

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @execution_spec = args[:execution_spec] if args.key?(:execution_spec)
  @labels = args[:labels] if args.key?(:labels)
  @message = args[:message] if args.key?(:message)
  @name = args[:name] if args.key?(:name)
  @retry_count = args[:retry_count] if args.key?(:retry_count)
  @service = args[:service] if args.key?(:service)
  @service_job = args[:service_job] if args.key?(:service_job)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @trigger = args[:trigger] if args.key?(:trigger)
  @uid = args[:uid] if args.key?(:uid)
end