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.



4918
4919
4920
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4918

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

Instance Attribute Details

#deploy_parametersArray<Google::Apis::ClouddeployV1::DeployParameters>

Optional. The deploy parameters to use for the target in this stage. Corresponds to the JSON property deployParameters



4897
4898
4899
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4897

def deploy_parameters
  @deploy_parameters
end

#profilesArray<String>

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

Returns:

  • (Array<String>)


4902
4903
4904
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4902

def profiles
  @profiles
end

#strategyGoogle::Apis::ClouddeployV1::Strategy

Strategy contains deployment strategy information. Corresponds to the JSON property strategy



4907
4908
4909
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4907

def strategy
  @strategy
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/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

Returns:

  • (String)


4916
4917
4918
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4916

def target_id
  @target_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4923
4924
4925
4926
4927
4928
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4923

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