Class: Google::Apis::ServicemanagementV1::Rollout
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ServicemanagementV1::Rollout
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
 generated/google/apis/servicemanagement_v1/representations.rb,
 generated/google/apis/servicemanagement_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Creation time of the rollout. 
- 
  
    
      #created_by  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user who created the Rollout. 
- 
  
    
      #delete_service_strategy  ⇒ Google::Apis::ServicemanagementV1::DeleteServiceStrategy 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Strategy used to delete a service. 
- 
  
    
      #rollout_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional unique identifier of this Rollout. 
- 
  
    
      #service_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the service associated with this Rollout. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The status of this rollout. 
- 
  
    
      #traffic_percent_strategy  ⇒ Google::Apis::ServicemanagementV1::TrafficPercentStrategy 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Strategy that specifies how clients of Google Service Controller want to send traffic to use different config versions. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Rollout 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Rollout. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rollout
Returns a new instance of Rollout
| 3390 3391 3392 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3390 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#create_time ⇒ String
Creation time of the rollout. Readonly.
Corresponds to the JSON property createTime
| 3324 3325 3326 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3324 def create_time @create_time end | 
#created_by ⇒ String
The user who created the Rollout. Readonly.
Corresponds to the JSON property createdBy
| 3329 3330 3331 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3329 def created_by @created_by end | 
#delete_service_strategy ⇒ Google::Apis::ServicemanagementV1::DeleteServiceStrategy
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
| 3335 3336 3337 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3335 def delete_service_strategy @delete_service_strategy end | 
#rollout_id ⇒ String
Optional unique identifier of this Rollout. 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 rolloutId
| 3346 3347 3348 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3346 def rollout_id @rollout_id end | 
#service_name ⇒ String
The name of the service associated with this Rollout.
Corresponds to the JSON property serviceName
| 3351 3352 3353 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3351 def service_name @service_name end | 
#status ⇒ 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
| 3358 3359 3360 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3358 def status @status end | 
#traffic_percent_strategy ⇒ Google::Apis::ServicemanagementV1::TrafficPercentStrategy
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 precentage 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
| 3388 3389 3390 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3388 def traffic_percent_strategy @traffic_percent_strategy end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3395 3396 3397 3398 3399 3400 3401 3402 3403 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3395 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 |