Class: Google::Apis::ContainerV1beta1::CidrBlock

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

CidrBlock contains an optional name and one CIDR block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CidrBlock

Returns a new instance of CidrBlock.



1214
1215
1216
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cidr_blockString

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

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1207

def cidr_block
  @cidr_block
end

#display_nameString

display_name is an optional field for users to identify CIDR blocks. Corresponds to the JSON property displayName

Returns:

  • (String)


1212
1213
1214
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1212

def display_name
  @display_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1219
1220
1221
1222
# File 'lib/google/apis/container_v1beta1/classes.rb', line 1219

def update!(**args)
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
  @display_name = args[:display_name] if args.key?(:display_name)
end