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.



2900
2901
2902
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2900

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)


2889
2890
2891
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2889

def ip_prefix_length
  @ip_prefix_length
end

#secondary_range_ip_prefix_lengthsArray<Fixnum>

Optional. DO NOT USE - Under development. The size of the desired secondary ranges for the subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine that the allocated ranges have enough free space for all the requested secondary ranges. Corresponds to the JSON property secondaryRangeIpPrefixLengths

Returns:

  • (Array<Fixnum>)


2898
2899
2900
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2898

def secondary_range_ip_prefix_lengths
  @secondary_range_ip_prefix_lengths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2905
2906
2907
2908
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 2905

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