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

Constructor Details

#initialize(**args) ⇒ RangeReservation

Returns a new instance of RangeReservation.



3068
3069
3070
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 3068

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)


3049
3050
3051
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 3049

def ip_prefix_length
  @ip_prefix_length
end

#requested_rangesArray<String>

Optional. The name of one or more allocated IP address ranges associated with this private service access connection. If no range names are provided all ranges associated with this connection will be considered. If a CIDR range with the specified IP prefix length is not available within these ranges the validation fails. Corresponds to the JSON property requestedRanges

Returns:

  • (Array<String>)


3058
3059
3060
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 3058

def requested_ranges
  @requested_ranges
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>)


3066
3067
3068
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 3066

def secondary_range_ip_prefix_lengths
  @secondary_range_ip_prefix_lengths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3073
3074
3075
3076
3077
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 3073

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