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.



2583
2584
2585
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2583

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

Instance Attribute Details

#advance_child_rollout_jobGoogle::Apis::ClouddeployV1::AdvanceChildRolloutJob

An advanceChildRollout Job. Corresponds to the JSON property advanceChildRolloutJob



2535
2536
2537
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2535

def advance_child_rollout_job
  @advance_child_rollout_job
end

#create_child_rollout_jobGoogle::Apis::ClouddeployV1::CreateChildRolloutJob

A createChildRollout Job. Corresponds to the JSON property createChildRolloutJob



2540
2541
2542
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2540

def create_child_rollout_job
  @create_child_rollout_job
end

#deploy_jobGoogle::Apis::ClouddeployV1::DeployJob

A deploy Job. Corresponds to the JSON property deployJob



2545
2546
2547
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2545

def deploy_job
  @deploy_job
end

#idString

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

Returns:

  • (String)


2550
2551
2552
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2550

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)


2556
2557
2558
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2556

def job_run
  @job_run
end

#postdeploy_jobGoogle::Apis::ClouddeployV1::PostdeployJob

A postdeploy Job. Corresponds to the JSON property postdeployJob



2561
2562
2563
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2561

def postdeploy_job
  @postdeploy_job
end

#predeploy_jobGoogle::Apis::ClouddeployV1::PredeployJob

A predeploy Job. Corresponds to the JSON property predeployJob



2566
2567
2568
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2566

def predeploy_job
  @predeploy_job
end

#skip_messageString

Output only. Additional information on why the Job was skipped, if available. Corresponds to the JSON property skipMessage

Returns:

  • (String)


2571
2572
2573
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2571

def skip_message
  @skip_message
end

#stateString

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

Returns:

  • (String)


2576
2577
2578
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2576

def state
  @state
end

#verify_jobGoogle::Apis::ClouddeployV1::VerifyJob

A verify Job. Corresponds to the JSON property verifyJob



2581
2582
2583
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2581

def verify_job
  @verify_job
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2588

def update!(**args)
  @advance_child_rollout_job = args[:advance_child_rollout_job] if args.key?(:advance_child_rollout_job)
  @create_child_rollout_job = args[:create_child_rollout_job] if args.key?(:create_child_rollout_job)
  @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)
  @postdeploy_job = args[:postdeploy_job] if args.key?(:postdeploy_job)
  @predeploy_job = args[:predeploy_job] if args.key?(:predeploy_job)
  @skip_message = args[:skip_message] if args.key?(:skip_message)
  @state = args[:state] if args.key?(:state)
  @verify_job = args[:verify_job] if args.key?(:verify_job)
end