Class: Google::Apis::RunV1alpha1::ServiceSpecReleaseType
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ServiceSpecReleaseType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/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
-
#configuration ⇒ Google::Apis::RunV1alpha1::ConfigurationSpec
ConfigurationSpec holds the desired state of the Configuration (from the client).
-
#revisions ⇒ Array<String>
Revisions is an ordered list of 1 or 2 revisions.
-
#rollout_percent ⇒ Fixnum
RolloutPercent is the percent of traffic that should be sent to the candidate revision, i.e.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceSpecReleaseType
constructor
A new instance of ServiceSpecReleaseType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceSpecReleaseType
Returns a new instance of ServiceSpecReleaseType.
3690 3691 3692 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3690 def initialize(**args) update!(**args) end |
Instance Attribute Details
#configuration ⇒ Google::Apis::RunV1alpha1::ConfigurationSpec
ConfigurationSpec holds the desired state of the Configuration (from the
client).
Corresponds to the JSON property configuration
3673 3674 3675 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3673 def configuration @configuration end |
#revisions ⇒ Array<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
3681 3682 3683 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3681 def revisions @revisions end |
#rollout_percent ⇒ Fixnum
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
3688 3689 3690 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3688 def rollout_percent @rollout_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3695 3696 3697 3698 3699 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3695 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 |