Class: Google::Apis::ClouddeployV1::JobRun

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

A JobRun resource in the Cloud Deploy API. A JobRun contains information of a single Rollout job evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobRun

Returns a new instance of JobRun.



2217
2218
2219
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2217

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

Instance Attribute Details

#advance_child_rollout_job_runGoogle::Apis::ClouddeployV1::AdvanceChildRolloutJobRun

AdvanceChildRolloutJobRun contains information specific to a advanceChildRollout JobRun. Corresponds to the JSON property advanceChildRolloutJobRun



2140
2141
2142
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2140

def advance_child_rollout_job_run
  @advance_child_rollout_job_run
end

#create_child_rollout_job_runGoogle::Apis::ClouddeployV1::CreateChildRolloutJobRun

CreateChildRolloutJobRun contains information specific to a createChildRollout JobRun. Corresponds to the JSON property createChildRolloutJobRun



2146
2147
2148
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2146

def create_child_rollout_job_run
  @create_child_rollout_job_run
end

#create_timeString

Output only. Time at which the JobRun was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2151
2152
2153
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2151

def create_time
  @create_time
end

#deploy_job_runGoogle::Apis::ClouddeployV1::DeployJobRun

DeployJobRun contains information specific to a deploy JobRun. Corresponds to the JSON property deployJobRun



2156
2157
2158
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2156

def deploy_job_run
  @deploy_job_run
end

#end_timeString

Output only. Time at which the JobRun ended. Corresponds to the JSON property endTime

Returns:

  • (String)


2161
2162
2163
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2161

def end_time
  @end_time
end

#etagString

Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


2168
2169
2170
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2168

def etag
  @etag
end

#job_idString

Output only. ID of the Rollout job this JobRun corresponds to. Corresponds to the JSON property jobId

Returns:

  • (String)


2173
2174
2175
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2173

def job_id
  @job_id
end

#nameString

Optional. Name of the JobRun. Format is projects/project/locations/ location/deliveryPipelines/deliveryPipeline/releases/releases/rollouts/ rollouts/jobRuns/uuid`. Corresponds to the JSON propertyname`

Returns:

  • (String)


2180
2181
2182
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2180

def name
  @name
end

#phase_idString

Output only. ID of the Rollout phase this JobRun belongs in. Corresponds to the JSON property phaseId

Returns:

  • (String)


2185
2186
2187
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2185

def phase_id
  @phase_id
end

#postdeploy_job_runGoogle::Apis::ClouddeployV1::PostdeployJobRun

PostdeployJobRun contains information specific to a postdeploy JobRun. Corresponds to the JSON property postdeployJobRun



2190
2191
2192
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2190

def postdeploy_job_run
  @postdeploy_job_run
end

#predeploy_job_runGoogle::Apis::ClouddeployV1::PredeployJobRun

PredeployJobRun contains information specific to a predeploy JobRun. Corresponds to the JSON property predeployJobRun



2195
2196
2197
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2195

def predeploy_job_run
  @predeploy_job_run
end

#start_timeString

Output only. Time at which the JobRun was started. Corresponds to the JSON property startTime

Returns:

  • (String)


2200
2201
2202
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2200

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


2205
2206
2207
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2205

def state
  @state
end

#uidString

Output only. Unique identifier of the JobRun. Corresponds to the JSON property uid

Returns:

  • (String)


2210
2211
2212
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2210

def uid
  @uid
end

#verify_job_runGoogle::Apis::ClouddeployV1::VerifyJobRun

VerifyJobRun contains information specific to a verify JobRun. Corresponds to the JSON property verifyJobRun



2215
2216
2217
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2215

def verify_job_run
  @verify_job_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2222

def update!(**args)
  @advance_child_rollout_job_run = args[:advance_child_rollout_job_run] if args.key?(:advance_child_rollout_job_run)
  @create_child_rollout_job_run = args[:create_child_rollout_job_run] if args.key?(:create_child_rollout_job_run)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deploy_job_run = args[:deploy_job_run] if args.key?(:deploy_job_run)
  @end_time = args[:end_time] if args.key?(:end_time)
  @etag = args[:etag] if args.key?(:etag)
  @job_id = args[:job_id] if args.key?(:job_id)
  @name = args[:name] if args.key?(:name)
  @phase_id = args[:phase_id] if args.key?(:phase_id)
  @postdeploy_job_run = args[:postdeploy_job_run] if args.key?(:postdeploy_job_run)
  @predeploy_job_run = args[:predeploy_job_run] if args.key?(:predeploy_job_run)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @verify_job_run = args[:verify_job_run] if args.key?(:verify_job_run)
end