Class: Google::Apis::ServicenetworkingV1::RangeReservation

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

Overview

Represents a range reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RangeReservation

Returns a new instance of RangeReservation.



2882
2883
2884
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2882

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

Instance Attribute Details

#ip_prefix_lengthFixnum

Required. The size of the desired subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size. Corresponds to the JSON property ipPrefixLength

Returns:

  • (Fixnum)


2880
2881
2882
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2880

def ip_prefix_length
  @ip_prefix_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2887
2888
2889
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2887

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