Class: Google::Apis::ClouddeployV1::Stage

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

Stage specifies a location to which to deploy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Stage

Returns a new instance of Stage.



1477
1478
1479
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1477

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

Instance Attribute Details

#profilesArray<String>

Skaffold profiles to use when rendering the manifest for this stage's Target. Corresponds to the JSON property profiles

Returns:

  • (Array<String>)


1466
1467
1468
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1466

def profiles
  @profiles
end

#target_idString

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/deliveryPipelines/pipeline/targets/my- target). The parent DeliveryPipeline of the Target is inferred to be the parent DeliveryPipeline of the Release in which this Stage lives. Corresponds to the JSON property targetId

Returns:

  • (String)


1475
1476
1477
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1475

def target_id
  @target_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1482
1483
1484
1485
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1482

def update!(**args)
  @profiles = args[:profiles] if args.key?(:profiles)
  @target_id = args[:target_id] if args.key?(:target_id)
end