Class: Google::Apis::ServicenetworkingV1::SearchRangeRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::SearchRangeRequest
- 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
Overview
Request to search for an unused range within allocated ranges.
Instance Attribute Summary collapse
-
#ip_prefix_length ⇒ Fixnum
Required.
-
#network ⇒ String
Network name in the consumer project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchRangeRequest
constructor
A new instance of SearchRangeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchRangeRequest
Returns a new instance of SearchRangeRequest.
4290 4291 4292 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_prefix_length ⇒ Fixnum
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
4280 4281 4282 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4280 def ip_prefix_length @ip_prefix_length end |
#network ⇒ String
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
4288 4289 4290 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4288 def network @network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4295 4296 4297 4298 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4295 def update!(**args) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @network = args[:network] if args.key?(:network) end |