Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Usage.
Possible usage of an internal range.
Protobuf type google.cloud.networkconnectivity.v1.InternalRange.Usage
Namespace
Google \ Cloud \ NetworkConnectivity \ V1 \ InternalRange
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
USAGE_UNSPECIFIED
Value: 0
Unspecified usage is allowed in calls which identify the resource by
other fields and do not need Usage set to complete. These are, i.e.:
GetInternalRange and DeleteInternalRange.
Usage needs to be specified explicitly in CreateInternalRange
or UpdateInternalRange calls.
Generated from protobuf enum USAGE_UNSPECIFIED = 0;
FOR_VPC
Value: 1
A VPC resource can use the reserved CIDR block by associating it with the
internal range resource if usage is set to FOR_VPC.
Generated from protobuf enum FOR_VPC = 1;
EXTERNAL_TO_VPC
Value: 2
Ranges created with EXTERNAL_TO_VPC cannot be associated with VPC
resources and are meant to block out address ranges for various use
cases, like for example, usage on-prem, with dynamic route announcements
via interconnect.
Generated from protobuf enum EXTERNAL_TO_VPC = 2;
FOR_MIGRATION
Value: 3
Ranges created FOR_MIGRATION can be used to lock a CIDR range between a
source and target subnet. If usage is set to FOR_MIGRATION, the peering
value has to be set to FOR_SELF or default to FOR_SELF when unset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Network Connectivity V1 Client - Class Usage (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.InternalRange.Usage)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.InternalRange.Usage)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.InternalRange.Usage)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.InternalRange.Usage)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.InternalRange.Usage)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.InternalRange.Usage)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.InternalRange.Usage)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.InternalRange.Usage)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.InternalRange.Usage)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.InternalRange.Usage) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Usage.\n\nPossible usage of an internal range.\n\nProtobuf type `google.cloud.networkconnectivity.v1.InternalRange.Usage`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1 \\\\ InternalRange\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### USAGE_UNSPECIFIED\n\n Value: 0\n\nUnspecified usage is allowed in calls which identify the resource by\nother fields and do not need Usage set to complete. These are, i.e.:\nGetInternalRange and DeleteInternalRange.\n\nUsage needs to be specified explicitly in CreateInternalRange\nor UpdateInternalRange calls.\n\nGenerated from protobuf enum `USAGE_UNSPECIFIED = 0;`\n\n### FOR_VPC\n\n Value: 1\n\nA VPC resource can use the reserved CIDR block by associating it with the\ninternal range resource if usage is set to FOR_VPC.\n\nGenerated from protobuf enum `FOR_VPC = 1;`\n\n### EXTERNAL_TO_VPC\n\n Value: 2\n\nRanges created with EXTERNAL_TO_VPC cannot be associated with VPC\nresources and are meant to block out address ranges for various use\ncases, like for example, usage on-prem, with dynamic route announcements\nvia interconnect.\n\nGenerated from protobuf enum `EXTERNAL_TO_VPC = 2;`\n\n### FOR_MIGRATION\n\n Value: 3\n\nRanges created FOR_MIGRATION can be used to lock a CIDR range between a\nsource and target subnet. If usage is set to FOR_MIGRATION, the peering\nvalue has to be set to FOR_SELF or default to FOR_SELF when unset.\n\nGenerated from protobuf enum `FOR_MIGRATION = 3;`"]]