Class: Google::Apis::RuntimeconfigV1beta1::EndCondition
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::RuntimeconfigV1beta1::EndCondition
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/runtimeconfig_v1beta1/classes.rb,
 generated/google/apis/runtimeconfig_v1beta1/representations.rb,
 generated/google/apis/runtimeconfig_v1beta1/representations.rb
Overview
The condition that a Waiter resource is waiting for.
Instance Attribute Summary collapse
- 
  
    
      #cardinality  ⇒ Google::Apis::RuntimeconfigV1beta1::Cardinality 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A Cardinality condition for the Waiter resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ EndCondition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EndCondition. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EndCondition
Returns a new instance of EndCondition
| 141 142 143 | # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 141 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cardinality ⇒ Google::Apis::RuntimeconfigV1beta1::Cardinality
A Cardinality condition for the Waiter resource. A cardinality condition is
met when the number of variables under a specified path prefix reaches a
predefined number. For example, if you set a Cardinality condition where
the path is set to /foo and the number of paths is set to 2, the
following variables would meet the condition in a RuntimeConfig resource:
- /foo/variable1 = "value1"
- /foo/variable2 = "value2"
- /bar/variable3 = "value3"It would not would not satisify the same condition with the- numberset to 3, however, because there is only 2 paths that start with- /foo. Cardinality conditions are recursive; all subtrees under the specific path prefix are counted. Corresponds to the JSON property- cardinality
| 139 140 141 | # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 139 def cardinality @cardinality end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 146 147 148 | # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 146 def update!(**args) @cardinality = args[:cardinality] if args.key?(:cardinality) end |