Class: Google::Apis::ClouddeployV1::PhaseConfig
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PhaseConfig
- 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
PhaseConfig represents the configuration for a phase in the custom canary deployment.
Instance Attribute Summary collapse
-
#percentage ⇒ Fixnum
Required.
-
#phase_id ⇒ String
Required.
-
#profiles ⇒ Array<String>
Skaffold profiles to use when rendering the manifest for this phase.
-
#verify ⇒ Boolean
(also: #verify?)
Whether to run verify tests after the deployment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PhaseConfig
constructor
A new instance of PhaseConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PhaseConfig
Returns a new instance of PhaseConfig.
1992 1993 1994 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1992 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage ⇒ Fixnum
Required. Percentage deployment for the phase.
Corresponds to the JSON property percentage
1970 1971 1972 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1970 def percentage @percentage end |
#phase_id ⇒ String
Required. The ID to assign to the Rollout phase. This value must consist of
lower-case letters, numbers, and hyphens, start with a letter and end with a
letter or a number, and have a max length of 63 characters. In other words, it
must match the following regex: ^[a-z]([a-z0-9-]0,61[a-z0-9])?$.
Corresponds to the JSON property phaseId
1978 1979 1980 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1978 def phase_id @phase_id end |
#profiles ⇒ Array<String>
Skaffold profiles to use when rendering the manifest for this phase. These are
in addition to the profiles list specified in the DeliveryPipeline stage.
Corresponds to the JSON property profiles
1984 1985 1986 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1984 def profiles @profiles end |
#verify ⇒ Boolean Also known as: verify?
Whether to run verify tests after the deployment.
Corresponds to the JSON property verify
1989 1990 1991 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1989 def verify @verify end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1997 1998 1999 2000 2001 2002 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1997 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) @phase_id = args[:phase_id] if args.key?(:phase_id) @profiles = args[:profiles] if args.key?(:profiles) @verify = args[:verify] if args.key?(:verify) end |