Class: Google::Apis::RunV1alpha1::ServiceSpecReleaseType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb

Overview

ServiceSpecReleaseType contains the options for slowly releasing revisions. See ServiceSpec for more details. Not currently supported by Cloud Run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceSpecReleaseType

Returns a new instance of ServiceSpecReleaseType



4137
4138
4139
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4137

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

Instance Attribute Details

#configurationGoogle::Apis::RunV1alpha1::ConfigurationSpec

ConfigurationSpec holds the desired state of the Configuration (from the client). Corresponds to the JSON property configuration



4119
4120
4121
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4119

def configuration
  @configuration
end

#revisionsArray<String>

Revisions is an ordered list of 1 or 2 revisions. The first is the current revision, and the second is the candidate revision. If a single revision is provided, traffic will be pinned at that revision. "@latest" is a shortcut for usage that refers to the latest created revision by the configuration. Corresponds to the JSON property revisions

Returns:

  • (Array<String>)


4128
4129
4130
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4128

def revisions
  @revisions
end

#rollout_percentFixnum

RolloutPercent is the percent of traffic that should be sent to the candidate revision, i.e. the 2nd revision in the revisions list. Valid values are between 0 and 99 inclusive. Corresponds to the JSON property rolloutPercent

Returns:

  • (Fixnum)


4135
4136
4137
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4135

def rollout_percent
  @rollout_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4142
4143
4144
4145
4146
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4142

def update!(**args)
  @configuration = args[:configuration] if args.key?(:configuration)
  @revisions = args[:revisions] if args.key?(:revisions)
  @rollout_percent = args[:rollout_percent] if args.key?(:rollout_percent)
end