Class: Google::Apis::ClouddeployV1::Phase

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

Phase represents a collection of jobs that are logically grouped together for a Rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Phase

Returns a new instance of Phase.



1438
1439
1440
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1438

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

Instance Attribute Details

#deployment_jobsGoogle::Apis::ClouddeployV1::DeploymentJobs

Deployment job composition. Corresponds to the JSON property deploymentJobs



1426
1427
1428
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1426

def deployment_jobs
  @deployment_jobs
end

#idString

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

Returns:

  • (String)


1431
1432
1433
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1431

def id
  @id
end

#stateString

Output only. Current state of the Phase. Corresponds to the JSON property state

Returns:

  • (String)


1436
1437
1438
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1436

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1443
1444
1445
1446
1447
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1443

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