Class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Overview
Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
Instance Attribute Summary collapse
- 
  
    
      #subscription  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Cloud Pub/Sub subscription used for scaling. 
- 
  
    
      #topic  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Cloud Pub/Sub topic used for scaling. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutoscalingPolicyQueueBasedScalingCloudPubSub 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AutoscalingPolicyQueueBasedScalingCloudPubSub. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyQueueBasedScalingCloudPubSub
Returns a new instance of AutoscalingPolicyQueueBasedScalingCloudPubSub
| 2103 2104 2105 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2103 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#subscription ⇒ String
Cloud Pub/Sub subscription used for scaling. Provide the partial URL (starting
with projects/) or just the subscription name. The subscription must be
assigned to the topic specified in topicName and must be in a pull
configuration. The subscription must belong to the same project as the
Autoscaler.
Corresponds to the JSON property subscription
| 2094 2095 2096 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2094 def subscription @subscription end | 
#topic ⇒ String
Cloud Pub/Sub topic used for scaling. Provide the partial URL or partial URL (
starting with projects/) or just the topic name. The topic must belong to the
same project as the Autoscaler resource.
Corresponds to the JSON property topic
| 2101 2102 2103 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2101 def topic @topic end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2108 2109 2110 2111 | # File 'generated/google/apis/compute_alpha/classes.rb', line 2108 def update!(**args) @subscription = args[:subscription] if args.key?(:subscription) @topic = args[:topic] if args.key?(:topic) end |