Class: Google::Apis::ClouddeployV1::PhaseConfig

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

PhaseConfig represents the configuration for a phase in the custom canary deployment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PhaseConfig

Returns a new instance of PhaseConfig.



2180
2181
2182
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2180

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

Instance Attribute Details

#percentageFixnum

Required. Percentage deployment for the phase. Corresponds to the JSON property percentage

Returns:

  • (Fixnum)


2148
2149
2150
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2148

def percentage
  @percentage
end

#phase_idString

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

Returns:

  • (String)


2156
2157
2158
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2156

def phase_id
  @phase_id
end

#postdeployGoogle::Apis::ClouddeployV1::Postdeploy

Postdeploy contains the postdeploy job configuration information. Corresponds to the JSON property postdeploy



2161
2162
2163
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2161

def postdeploy
  @postdeploy
end

#predeployGoogle::Apis::ClouddeployV1::Predeploy

Predeploy contains the predeploy job configuration information. Corresponds to the JSON property predeploy



2166
2167
2168
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2166

def predeploy
  @predeploy
end

#profilesArray<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

Returns:

  • (Array<String>)


2172
2173
2174
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2172

def profiles
  @profiles
end

#verifyBoolean Also known as: verify?

Whether to run verify tests after the deployment. Corresponds to the JSON property verify

Returns:

  • (Boolean)


2177
2178
2179
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2177

def verify
  @verify
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2185
2186
2187
2188
2189
2190
2191
2192
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2185

def update!(**args)
  @percentage = args[:percentage] if args.key?(:percentage)
  @phase_id = args[:phase_id] if args.key?(:phase_id)
  @postdeploy = args[:postdeploy] if args.key?(:postdeploy)
  @predeploy = args[:predeploy] if args.key?(:predeploy)
  @profiles = args[:profiles] if args.key?(:profiles)
  @verify = args[:verify] if args.key?(:verify)
end