Class: Google::Apis::ServicenetworkingV1::SecondaryIpRange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecondaryIpRange

Returns a new instance of SecondaryIpRange.



3391
3392
3393
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3391

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

Instance Attribute Details

#ip_cidr_rangeString

Secondary IP CIDR range in x.x.x.x/y format. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


3384
3385
3386
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3384

def ip_cidr_range
  @ip_cidr_range
end

#range_nameString

Name of the secondary IP range. Corresponds to the JSON property rangeName

Returns:

  • (String)


3389
3390
3391
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3389

def range_name
  @range_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3396
3397
3398
3399
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3396

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