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.



1711
1712
1713
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1711

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)


1666
1667
1668
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1666

def end_time
  @end_time
end

#messageString

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

Returns:

  • (String)


1671
1672
1673
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1671

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)


1678
1679
1680
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1678

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)


1684
1685
1686
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1684

def retry_count
  @retry_count
end

#serviceString

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

Returns:

  • (String)


1689
1690
1691
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1689

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)


1694
1695
1696
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1694

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)


1699
1700
1701
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1699

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


1704
1705
1706
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1704

def state
  @state
end

#uidString

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

Returns:

  • (String)


1709
1710
1711
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1709

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1716

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @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)
  @uid = args[:uid] if args.key?(:uid)
end