Service Client: Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRangeServiceClient

Client stub representing the remote InternalRangeService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to networkconnectivity.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Networkconnectivity::V1::InternalRange - Compiled Protocol Buffers messages for google/cloud/networkconnectivity/v1/internal_range.proto

SYNOPSIS

use Google::Cloud::Networkconnectivity::V1::InternalRange;

my $msg = Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    labels => $labels,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkconnectivity/v1/internal_range.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange

The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characteristics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the internal range was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the internal range was updated.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::LabelsEntry)

    User-defined labels.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. A description of this resource.

  • $msg->ip_cidr_range() / $msg->ip_cidr_range($value)

    Type: String

    Optional. The IP range that this internal range defines. NOTE: IPv6 ranges are limited to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory, i.e. the address range must be specified explicitly.

  • $msg->network() / $msg->network($value)

    Type: String

    Immutable. The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}

  • $msg->usage() / $msg->usage($value)

    Type: Enum (Google::Cloud::Networkconnectivity::V1::InternalRange::Usage)

    Optional. The type of usage set for this InternalRange.

  • $msg->peering() / $msg->peering($value)

    Type: Enum (Google::Cloud::Networkconnectivity::V1::InternalRange::Peering)

    Optional. The type of peering set for this internal range.

  • $msg->prefix_length() / $msg->prefix_length($value)

    Type: Int32

    Optional. An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter.

  • $msg->target_cidr_range() / $msg->target_cidr_range($value)

    Type: String

    Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] address space (for auto-mode networks, the "10.0.0.0/9" range is used instead of "10.0.0.0/8"). This can be used to target the search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.

  • $msg->users() / $msg->users($value)

    Type: String

    Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.

  • $msg->overlaps() / $msg->overlaps($value)

    Type: Enum (Google::Cloud::Networkconnectivity::V1::InternalRange::Overlap)

    Optional. Types of resources that are allowed to overlap with the current internal range.

  • $msg->migration() / $msg->migration($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::Migration)

    Optional. Must be present if usage is set to FOR_MIGRATION.

  • $msg->immutable() / $msg->immutable($value)

    Type: Bool

    Optional. Immutable ranges cannot have their fields modified, except for labels and description.

  • $msg->allocation_options() / $msg->allocation_options($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange::AllocationOptions)

    Optional. Range auto-allocation options, may be set only when auto-allocation is selected by not setting ip_cidr_range (and setting prefix_length).

  • $msg->exclude_cidr_ranges() / $msg->exclude_cidr_ranges($value)

    Type: String

    Optional. ExcludeCidrRanges flag. Specifies a set of CIDR blocks that allows exclusion of particular CIDR ranges from the auto-allocation process, without having to reserve these blocks

Enum: InternalRange::Usage

  • USAGE_UNSPECIFIED => 0

  • FOR_VPC => 1

  • EXTERNAL_TO_VPC => 2

  • FOR_MIGRATION => 3

Enum: InternalRange::Peering

  • PEERING_UNSPECIFIED => 0

  • FOR_SELF => 1

  • FOR_PEER => 2

  • NOT_SHARED => 3

Enum: InternalRange::Overlap

  • OVERLAP_UNSPECIFIED => 0

  • OVERLAP_ROUTE_RANGE => 1

  • OVERLAP_EXISTING_SUBNET_RANGE => 2

Enum: InternalRange::AllocationStrategy

  • ALLOCATION_STRATEGY_UNSPECIFIED => 0

  • RANDOM => 1

  • FIRST_AVAILABLE => 2

  • RANDOM_FIRST_N_AVAILABLE => 3

  • FIRST_SMALLEST_FITTING => 4

Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesRequest

Request for InternalRangeService.ListInternalRanges

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource's name.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of results per page that should be returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The page token.

  • $msg->filter() / $msg->filter($value)

    Type: String

    A filter expression that filters the results listed in the response.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Sort the results by a certain order.

Google::Cloud::Networkconnectivity::V1::InternalRange::ListInternalRangesResponse

Response for InternalRange.ListInternalRanges

Inherits from Protobuf::Message.

Accessors

  • $msg->internal_ranges() / $msg->internal_ranges($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange)

    Internal ranges to be returned.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached.

Google::Cloud::Networkconnectivity::V1::InternalRange::GetInternalRangeRequest

Request for InternalRangeService.GetInternalRange

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the InternalRange to get.

Google::Cloud::Networkconnectivity::V1::InternalRange::CreateInternalRangeRequest

Request for InternalRangeService.CreateInternalRange

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource's name of the internal range.

  • $msg->internal_range_id() / $msg->internal_range_id($value)

    Type: String

    Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/internalRanges/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

  • $msg->internal_range() / $msg->internal_range($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange)

    Required. Initial values for a new internal range

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1::InternalRange::UpdateInternalRangeRequest

Request for InternalRangeService.UpdateInternalRange

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Field mask is used to specify the fields to be overwritten in the InternalRange resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

  • $msg->internal_range() / $msg->internal_range($value)

    Type: Message (Google::Cloud::Networkconnectivity::V1::InternalRange::InternalRange)

    Required. New values to be patched into the resource.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Networkconnectivity::V1::InternalRange::DeleteInternalRangeRequest

Request for InternalRangeService.DeleteInternalRange

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the internal range to delete.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networkconnectivity::V1::InternalRange::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.