Class: Google::Apis::ClouddeployV1::Job

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb

Overview

Job represents an operation for a Rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Job

Returns a new instance of Job.



866
867
868
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 866

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

Instance Attribute Details

#deploy_jobGoogle::Apis::ClouddeployV1::DeployJob

A deploy Job. Corresponds to the JSON property deployJob



843
844
845
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 843

def deploy_job
  @deploy_job
end

#idString

Output only. The ID of the Job. Corresponds to the JSON property id

Returns:

  • (String)


848
849
850
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 848

def id
  @id
end

#job_runString

Output only. The name of the JobRun responsible for the most recent invocation of this Job. Corresponds to the JSON property jobRun

Returns:

  • (String)


854
855
856
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 854

def job_run
  @job_run
end

#stateString

Output only. The current state of the Job. Corresponds to the JSON property state

Returns:

  • (String)


859
860
861
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 859

def state
  @state
end

#verify_jobGoogle::Apis::ClouddeployV1::VerifyJob

A verify Job. Corresponds to the JSON property verifyJob



864
865
866
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 864

def verify_job
  @verify_job
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



871
872
873
874
875
876
877
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 871

def update!(**args)
  @deploy_job = args[:deploy_job] if args.key?(:deploy_job)
  @id = args[:id] if args.key?(:id)
  @job_run = args[:job_run] if args.key?(:job_run)
  @state = args[:state] if args.key?(:state)
  @verify_job = args[:verify_job] if args.key?(:verify_job)
end