Class: Google::Apis::ClouddeployV1::Stage
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Stage
- 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
Stage specifies a location to which to deploy.
Instance Attribute Summary collapse
-
#deploy_parameters ⇒ Array<Google::Apis::ClouddeployV1::DeployParameters>
Optional.
-
#profiles ⇒ Array<String>
Skaffold profiles to use when rendering the manifest for this stage's
Target. -
#strategy ⇒ Google::Apis::ClouddeployV1::Strategy
Strategy contains deployment strategy information.
-
#target_id ⇒ String
The target_id to which this stage points.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Stage
constructor
A new instance of Stage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Stage
Returns a new instance of Stage.
3430 3431 3432 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deploy_parameters ⇒ Array<Google::Apis::ClouddeployV1::DeployParameters>
Optional. The deploy parameters to use for the target in this stage.
Corresponds to the JSON property deployParameters
3409 3410 3411 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3409 def deploy_parameters @deploy_parameters end |
#profiles ⇒ Array<String>
Skaffold profiles to use when rendering the manifest for this stage's Target.
Corresponds to the JSON property profiles
3414 3415 3416 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3414 def profiles @profiles end |
#strategy ⇒ Google::Apis::ClouddeployV1::Strategy
Strategy contains deployment strategy information.
Corresponds to the JSON property strategy
3419 3420 3421 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3419 def strategy @strategy end |
#target_id ⇒ String
The target_id to which this stage points. This field refers exclusively to the
last segment of a target name. For example, this field would just be my-
target (rather than projects/project/locations/location/targets/my-target).
The location of the Target is inferred to be the same as the location of the
DeliveryPipeline that contains this Stage.
Corresponds to the JSON property targetId
3428 3429 3430 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3428 def target_id @target_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3435 3436 3437 3438 3439 3440 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3435 def update!(**args) @deploy_parameters = args[:deploy_parameters] if args.key?(:deploy_parameters) @profiles = args[:profiles] if args.key?(:profiles) @strategy = args[:strategy] if args.key?(:strategy) @target_id = args[:target_id] if args.key?(:target_id) end |