Class: Google::Apis::ComposerV1::CidrBlock
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComposerV1::CidrBlock
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1/classes.rb,
 lib/google/apis/composer_v1/representations.rb,
 lib/google/apis/composer_v1/representations.rb
Overview
CIDR block with an optional name.
Instance Attribute Summary collapse
- 
  
    
      #cidr_block  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    CIDR block that must be specified in CIDR notation. 
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    User-defined name that identifies the CIDR block. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CidrBlock 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CidrBlock. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ CidrBlock
Returns a new instance of CidrBlock.
| 113 114 115 | # File 'lib/google/apis/composer_v1/classes.rb', line 113 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cidr_block ⇒ String
CIDR block that must be specified in CIDR notation.
Corresponds to the JSON property cidrBlock
| 106 107 108 | # File 'lib/google/apis/composer_v1/classes.rb', line 106 def cidr_block @cidr_block end | 
#display_name ⇒ String
User-defined name that identifies the CIDR block.
Corresponds to the JSON property displayName
| 111 112 113 | # File 'lib/google/apis/composer_v1/classes.rb', line 111 def display_name @display_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 118 119 120 121 | # File 'lib/google/apis/composer_v1/classes.rb', line 118 def update!(**args) @cidr_block = args[:cidr_block] if args.key?(:cidr_block) @display_name = args[:display_name] if args.key?(:display_name) end |