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 Google 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.



1332
1333
1334
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1332

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



1265
1266
1267
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1265

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



1271
1272
1273
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1271

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)


1276
1277
1278
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1276

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



1281
1282
1283
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1281

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)


1286
1287
1288
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1286

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)


1293
1294
1295
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1293

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)


1298
1299
1300
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1298

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 property name

Returns:

  • (String)


1305
1306
1307
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1305

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)


1310
1311
1312
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1310

def phase_id
  @phase_id
end

#start_timeString

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

Returns:

  • (String)


1315
1316
1317
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1315

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


1320
1321
1322
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1320

def state
  @state
end

#uidString

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

Returns:

  • (String)


1325
1326
1327
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1325

def uid
  @uid
end

#verify_job_runGoogle::Apis::ClouddeployV1::VerifyJobRun

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



1330
1331
1332
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1330

def verify_job_run
  @verify_job_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1337

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)
  @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