Class: Google::Apis::ComposerV1::CidrBlock

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_blockString

CIDR block that must be specified in CIDR notation. Corresponds to the JSON property cidrBlock

Returns:

  • (String)


167
168
169
# File 'lib/google/apis/composer_v1/classes.rb', line 167

def cidr_block
  @cidr_block
end

#display_nameString

User-defined name that identifies the CIDR block. Corresponds to the JSON property displayName

Returns:

  • (String)


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