Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class NetworkPeering.
Details of a network peering.
Generated from protobuf message google.cloud.vmwareengine.v1.NetworkPeering
Namespace
Google \ Cloud \ VmwareEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names
. For example: projects/my-project/locations/global/networkPeerings/my-peering
↳ create_time
↳ update_time
↳ peer_network
string
Required. The relative resource name of the network to peer with a standard VMware Engine network. The provided network can be a consumer VPC network or another standard VMware Engine network. If the peer_network_type
is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}
. Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}
, where {project}
can either be a project number or a project ID.
↳ export_custom_routes
bool
Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.
↳ import_custom_routes
bool
Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.
↳ exchange_subnet_routes
bool
Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.
↳ export_custom_routes_with_public_ip
bool
Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always exported to peers and are not controlled by this field.
↳ import_custom_routes_with_public_ip
bool
Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always imported to peers and are not controlled by this field.
↳ state
int
Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.
↳ state_details
string
Output only. Output Only. Details about the current state of the network peering.
↳ peer_mtu
int
Optional. Maximum transmission unit (MTU) in bytes. The default value is 1500
. If a value of 0
is provided for this field, VMware Engine uses the default value instead.
↳ peer_network_type
int
Required. The type of the network to peer with the VMware Engine network.
↳ uid
string
Output only. System-generated unique identifier for the resource.
↳ vmware_engine_network
string
Required. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
↳ description
string
Optional. User-provided description for this network peering.
getName
Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names .
For example: projects/my-project/locations/global/networkPeerings/my-peering
string
setName
Output only. The resource name of the network peering. NetworkPeering is a global resource and location can only be global. Resource names are scheme-less URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names .
For example: projects/my-project/locations/global/networkPeerings/my-peering
var
string
$this
getCreateTime
Output only. Creation time of this resource.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this resource.
$this
getUpdateTime
Output only. Last update time of this resource.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Last update time of this resource.
$this
getPeerNetwork
Required. The relative resource name of the network to peer with
a standard VMware Engine network. The provided network can be a
consumer VPC network or another standard VMware Engine network. If the peer_network_type
is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}
.
Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}
, where {project}
can either be a project number or a project ID.
string
setPeerNetwork
Required. The relative resource name of the network to peer with
a standard VMware Engine network. The provided network can be a
consumer VPC network or another standard VMware Engine network. If the peer_network_type
is VMWARE_ENGINE_NETWORK, specify the name in the form: projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}
.
Otherwise specify the name in the form: projects/{project}/global/networks/{network_id}
, where {project}
can either be a project number or a project ID.
var
string
$this
getExportCustomRoutes
Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.
bool
hasExportCustomRoutes
clearExportCustomRoutes
setExportCustomRoutes
Optional. True if custom routes are exported to the peered network; false otherwise. The default value is true.
var
bool
$this
getImportCustomRoutes
Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.
bool
hasImportCustomRoutes
clearImportCustomRoutes
setImportCustomRoutes
Optional. True if custom routes are imported from the peered network; false otherwise. The default value is true.
var
bool
$this
getExchangeSubnetRoutes
Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.
bool
hasExchangeSubnetRoutes
clearExchangeSubnetRoutes
setExchangeSubnetRoutes
Optional. True if full mesh connectivity is created and managed automatically between peered networks; false otherwise. Currently this field is always true because Google Compute Engine automatically creates and manages subnetwork routes between two VPC networks when peering state is 'ACTIVE'.
var
bool
$this
getExportCustomRoutesWithPublicIp
Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always exported to peers and are not controlled by this field.
bool
hasExportCustomRoutesWithPublicIp
clearExportCustomRoutesWithPublicIp
setExportCustomRoutesWithPublicIp
Optional. True if all subnet routes with a public IP address range are exported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always exported to peers and are not controlled by this field.
var
bool
$this
getImportCustomRoutesWithPublicIp
Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always imported to peers and are not controlled by this field.
bool
hasImportCustomRoutesWithPublicIp
clearImportCustomRoutesWithPublicIp
setImportCustomRoutesWithPublicIp
Optional. True if all subnet routes with public IP address range are imported; false otherwise. The default value is true. IPv4 special-use ranges ( https://en.wikipedia.org/wiki/IPv4#Special_addresses ) are always imported to peers and are not controlled by this field.
var
bool
$this
getState
Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.
int
setState
Output only. State of the network peering. This field has a value of 'ACTIVE' when there's a matching configuration in the peer network. New values may be added to this enum when appropriate.
var
int
$this
getStateDetails
Output only. Output Only. Details about the current state of the network peering.
string
setStateDetails
Output only. Output Only. Details about the current state of the network peering.
var
string
$this
getPeerMtu
Optional. Maximum transmission unit (MTU) in bytes.
The default value is 1500
. If a value of 0
is provided for this field,
VMware Engine uses the default value instead.
int
setPeerMtu
Optional. Maximum transmission unit (MTU) in bytes.
The default value is 1500
. If a value of 0
is provided for this field,
VMware Engine uses the default value instead.
var
int
$this
getPeerNetworkType
Required. The type of the network to peer with the VMware Engine network.
int
setPeerNetworkType
Required. The type of the network to peer with the VMware Engine network.
var
int
$this
getUid
Output only. System-generated unique identifier for the resource.
string
setUid
Output only. System-generated unique identifier for the resource.
var
string
$this
getVmwareEngineNetwork
Required. The relative resource name of the VMware Engine network.
Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
string
setVmwareEngineNetwork
Required. The relative resource name of the VMware Engine network.
Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
var
string
$this
getDescription
Optional. User-provided description for this network peering.
string
setDescription
Optional. User-provided description for this network peering.
var
string
$this