Class: Google::Apis::ServicenetworkingV1beta::SearchRangeRequest

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

Overview

Request to search for an unused range within allocated ranges.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchRangeRequest

Returns a new instance of SearchRangeRequest.



2897
2898
2899
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 2897

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

Instance Attribute Details

#ip_prefix_lengthFixnum

Required. The prefix length of the IP range. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. Actual range will be determined using allocated range for the consumer peered network and returned in the result. Corresponds to the JSON property ipPrefixLength

Returns:

  • (Fixnum)


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

def ip_prefix_length
  @ip_prefix_length
end

#networkString

Network name in the consumer project. This network must have been already peered with a shared VPC network using CreateConnection method. Must be in a form 'projects/project/global/networks/network'. project is a project number, as in '12345' network is network name. Corresponds to the JSON property network

Returns:

  • (String)


2895
2896
2897
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 2895

def network
  @network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2902
2903
2904
2905
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 2902

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