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.



1355
1356
1357
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1355

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

Instance Attribute Details

#deployment_jobsGoogle::Apis::ClouddeployV1::DeploymentJobs

Deployment job composition. Corresponds to the JSON property deploymentJobs



1343
1344
1345
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1343

def deployment_jobs
  @deployment_jobs
end

#idString

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

Returns:

  • (String)


1348
1349
1350
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1348

def id
  @id
end

#stateString

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

Returns:

  • (String)


1353
1354
1355
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1353

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1360
1361
1362
1363
1364
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1360

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