Google Cloud Network Connectivity V1 Client - Class RoutingVPC (2.5.2)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class RoutingVPC.

RoutingVPC contains information about the VPC networks associatedwith the spokes of a Network Connectivity Center hub.

Generated from protobuf messagegoogle.cloud.networkconnectivity.v1.RoutingVPC

Namespace

Google \ Cloud \ NetworkConnectivity \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ uristring

The URI of the VPC network.

↳ required_for_new_site_to_site_data_transfer_spokesbool

Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.

getUri

The URI of the VPC network.

Returns
TypeDescription
string

setUri

The URI of the VPC network.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRequiredForNewSiteToSiteDataTransferSpokes

Output only. If true, indicates that this VPC network is currentlyassociated with spokes that use the data transfer feature (spokes where thesite_to_site_data_transfer field is set to true). If you create new spokesthat use data transfer, they must be associated with this VPC network. Atmost, one VPC network will have this field set to true.

Returns
TypeDescription
bool

setRequiredForNewSiteToSiteDataTransferSpokes

Output only. If true, indicates that this VPC network is currentlyassociated with spokes that use the data transfer feature (spokes where thesite_to_site_data_transfer field is set to true). If you create new spokesthat use data transfer, they must be associated with this VPC network. Atmost, one VPC network will have this field set to true.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.