Class: Google::Apis::RuntimeconfigV1beta1::Cardinality
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::RuntimeconfigV1beta1::Cardinality
 
 
- 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
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 thenumberset 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.
Instance Attribute Summary collapse
- 
  
    
      #number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The number variables under the
paththat must exist to meet this condition. - 
  
    
      #path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The root of the variable subtree to monitor.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Cardinality 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Cardinality.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Cardinality
Returns a new instance of Cardinality
      99 100 101  | 
    
      # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 99 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#number ⇒ Fixnum
The number variables under the path that must exist to meet this
condition. Defaults to 1 if not specified.
Corresponds to the JSON property number
      92 93 94  | 
    
      # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 92 def number @number end  | 
  
#path ⇒ String
The root of the variable subtree to monitor. For example, /foo.
Corresponds to the JSON property path
      97 98 99  | 
    
      # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 97 def path @path end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      104 105 106 107  | 
    
      # File 'generated/google/apis/runtimeconfig_v1beta1/classes.rb', line 104 def update!(**args) @number = args[:number] if args.key?(:number) @path = args[:path] if args.key?(:path) end  |