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.



113
114
115
# File 'lib/google/apis/composer_v1/classes.rb', line 113

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)


106
107
108
# File 'lib/google/apis/composer_v1/classes.rb', line 106

def cidr_block
  @cidr_block
end

#display_nameString

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

Returns:

  • (String)


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