Class: Google::Apis::ContainerV1beta1::CidrBlock
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContainerV1beta1::CidrBlock
 
 
- Defined in:
 - generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb 
Overview
CidrBlock contains an optional name and one CIDR block.
Instance Attribute Summary collapse
- 
  
    
      #cidr_block  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
cidr_block must be specified in CIDR notation.
 - 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
display_name is an optional field for users to identify CIDR blocks.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CidrBlock 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CidrBlock.
 - 
  
    
      #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) ⇒ CidrBlock
Returns a new instance of CidrBlock
      201 202 203  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 201 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#cidr_block ⇒ String
cidr_block must be specified in CIDR notation.
Corresponds to the JSON property cidrBlock
      194 195 196  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 194 def cidr_block @cidr_block end  | 
  
#display_name ⇒ String
display_name is an optional field for users to identify CIDR blocks.
Corresponds to the JSON property displayName
      199 200 201  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 199 def display_name @display_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      206 207 208 209  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 206 def update!(**args) @cidr_block = args[:cidr_block] if args.key?(:cidr_block) @display_name = args[:display_name] if args.key?(:display_name) end  |