class Google::Apis::ServicemanagementV1::Rollout
A rollout resource that defines how service configuration versions are pushed to control plane systems. Typically, you create a new version of the service config, and then create a Rollout
to push the service config.
Attributes
Creation time of the rollout. Readonly. Corresponds to the JSON property `createTime` @return [String]
This field is deprecated and will be deleted. Please remove usage of this field. Corresponds to the JSON property `createdBy` @return [String]
Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service. Corresponds to the JSON property `deleteServiceStrategy` @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy]
Optional. Unique identifier of this Rollout
. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of , where “date” is the create date in ISO 8601 format. “ revision number” is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id
is '2016-02- 16r1' Corresponds to the JSON property `rolloutId` @return [String]
The name of the service associated with this Rollout
. Corresponds to the JSON property `serviceName` @return [String]
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout
version. Readonly. Corresponds to the JSON property `status` @return [String]
Strategy that specifies how clients of Google
Service
Controller want to send traffic to use different config versions. This is generally used by API proxy to split traffic based on your configured percentage for each config version. One example of how to gradually rollout a new service configuration using this strategy: Day 1 Rollout
` id: “example.googleapis.com/rollout_20160206” traffic_percent_strategy
` percentages: ` “example.googleapis.com/20160201”: 70.00 “example.googleapis.com/20160206”: 30.00 ` ` ` Day 2 Rollout
` id: “ example.googleapis.com/rollout_20160207” traffic_percent_strategy
: ` percentages: ` “example.googleapis.com/20160206”: 100.00 ` ` ` Corresponds to the JSON property `trafficPercentStrategy` @return [Google::Apis::ServicemanagementV1::TrafficPercentStrategy]
Public Class Methods
# File lib/google/apis/servicemanagement_v1/classes.rb, line 3146 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/servicemanagement_v1/classes.rb, line 3151 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @created_by = args[:created_by] if args.key?(:created_by) @delete_service_strategy = args[:delete_service_strategy] if args.key?(:delete_service_strategy) @rollout_id = args[:rollout_id] if args.key?(:rollout_id) @service_name = args[:service_name] if args.key?(:service_name) @status = args[:status] if args.key?(:status) @traffic_percent_strategy = args[:traffic_percent_strategy] if args.key?(:traffic_percent_strategy) end