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.
174 175 176 |
# File 'lib/google/apis/composer_v1/classes.rb', line 174 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
167 168 169 |
# File 'lib/google/apis/composer_v1/classes.rb', line 167 def cidr_block @cidr_block end |
#display_name ⇒ String
User-defined name that identifies the CIDR block.
Corresponds to the JSON property displayName
172 173 174 |
# File 'lib/google/apis/composer_v1/classes.rb', line 172 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
179 180 181 182 |
# File 'lib/google/apis/composer_v1/classes.rb', line 179 def update!(**args) @cidr_block = args[:cidr_block] if args.key?(:cidr_block) @display_name = args[:display_name] if args.key?(:display_name) end |