Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Peering.
Peering type.
Protobuf type google.cloud.networkconnectivity.v1.InternalRange.Peering
Namespace
Google \ Cloud \ NetworkConnectivity \ V1 \ InternalRange
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
PEERING_UNSPECIFIED
Value: 0
If Peering is left unspecified in CreateInternalRange or
UpdateInternalRange, it will be defaulted to FOR_SELF.
Generated from protobuf enum PEERING_UNSPECIFIED = 0;
FOR_SELF
Value: 1
This is the default behavior and represents the case that this
internal range is intended to be used in the VPC in which it is created
and is accessible from its peers. This implies that peers or
peers-of-peers cannot use this range.
Generated from protobuf enum FOR_SELF = 1;
FOR_PEER
Value: 2
This behavior can be set when the internal range is being reserved for
usage by peers. This means that no resource within the VPC in which
it is being created can use this to associate with a VPC resource, but
one of the peers can. This represents donating a range for peers to
use.
Generated from protobuf enum FOR_PEER = 2;
NOT_SHARED
Value: 3
This behavior can be set when the internal range is being reserved for
usage by the VPC in which it is created, but not shared with peers.
In a sense, it is local to the VPC. This can be used to create internal
ranges for various purposes like HTTP_INTERNAL_LOAD_BALANCER or for
Interconnect routes that are not shared with peers. This also implies
that peers cannot use this range in a way that is visible to this VPC,
but can re-use this range as long as it is NOT_SHARED from the peer VPC,
too.
[[["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 Peering (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.InternalRange.Peering)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.InternalRange.Peering)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.InternalRange.Peering)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.InternalRange.Peering)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.InternalRange.Peering)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.InternalRange.Peering)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.InternalRange.Peering)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.InternalRange.Peering)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.InternalRange.Peering)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.InternalRange.Peering) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Peering.\n\nPeering type.\n\nProtobuf type `google.cloud.networkconnectivity.v1.InternalRange.Peering`\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### PEERING_UNSPECIFIED\n\n Value: 0\n\nIf Peering is left unspecified in CreateInternalRange or\nUpdateInternalRange, it will be defaulted to FOR_SELF.\n\nGenerated from protobuf enum `PEERING_UNSPECIFIED = 0;`\n\n### FOR_SELF\n\n Value: 1\n\nThis is the default behavior and represents the case that this\ninternal range is intended to be used in the VPC in which it is created\nand is accessible from its peers. This implies that peers or\npeers-of-peers cannot use this range.\n\nGenerated from protobuf enum `FOR_SELF = 1;`\n\n### FOR_PEER\n\n Value: 2\n\nThis behavior can be set when the internal range is being reserved for\nusage by peers. This means that no resource within the VPC in which\nit is being created can use this to associate with a VPC resource, but\none of the peers can. This represents donating a range for peers to\nuse.\n\nGenerated from protobuf enum `FOR_PEER = 2;`\n\n### NOT_SHARED\n\n Value: 3\n\nThis behavior can be set when the internal range is being reserved for\nusage by the VPC in which it is created, but not shared with peers.\n\nIn a sense, it is local to the VPC. This can be used to create internal\nranges for various purposes like HTTP_INTERNAL_LOAD_BALANCER or for\nInterconnect routes that are not shared with peers. This also implies\nthat peers cannot use this range in a way that is visible to this VPC,\nbut can re-use this range as long as it is NOT_SHARED from the peer VPC,\ntoo.\n\nGenerated from protobuf enum `NOT_SHARED = 3;`"]]