1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class NetworkPeering : IMessage<NetworkPeering>, IEquatable<NetworkPeering>, IDeepCloneable<NetworkPeering>, IBufferMessage, IMessage

Reference documentation and code samples for the VMware Engine v1 API class NetworkPeering.

Details of a network peering.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> NetworkPeering

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[NetworkPeering](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeering.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NetworkPeering](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeering.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[NetworkPeering](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeering.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VmwareEngine.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.md.txt)

## Assembly

Google.Cloud.VmwareEngine.V1.dll

## Constructors

### NetworkPeering()

    public NetworkPeering()

### NetworkPeering(NetworkPeering)

    public NetworkPeering(NetworkPeering other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `NetworkPeering` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Creation time of this resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Description

    public string Description { get; set; }

Optional. User-provided description for this network peering.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExchangeSubnetRoutes

    public bool ExchangeSubnetRoutes { get; set; }

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'.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ExportCustomRoutes

    public bool ExportCustomRoutes { get; set; }

Optional. True if custom routes are exported to the peered network;
false otherwise. The default value is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ExportCustomRoutesWithPublicIp

    public bool ExportCustomRoutesWithPublicIp { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasExchangeSubnetRoutes

    public bool HasExchangeSubnetRoutes { get; }

Gets whether the "exchange_subnet_routes" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasExportCustomRoutes

    public bool HasExportCustomRoutes { get; }

Gets whether the "export_custom_routes" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasExportCustomRoutesWithPublicIp

    public bool HasExportCustomRoutesWithPublicIp { get; }

Gets whether the "export_custom_routes_with_public_ip" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasImportCustomRoutes

    public bool HasImportCustomRoutes { get; }

Gets whether the "import_custom_routes" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasImportCustomRoutesWithPublicIp

    public bool HasImportCustomRoutesWithPublicIp { get; }

Gets whether the "import_custom_routes_with_public_ip" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ImportCustomRoutes

    public bool ImportCustomRoutes { get; set; }

Optional. True if custom routes are imported from the peered network;
false otherwise. The default value is true.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ImportCustomRoutesWithPublicIp

    public bool ImportCustomRoutesWithPublicIp { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

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`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NetworkPeeringName

    public NetworkPeeringName NetworkPeeringName { get; set; }

[NetworkPeeringName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeeringName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeering.md.txt#Google_Cloud_VmwareEngine_V1_NetworkPeering_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NetworkPeeringName` |   |

### PeerMtu

    public int PeerMtu { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### PeerNetwork

    public string PeerNetwork { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PeerNetworkType

    public NetworkPeering.Types.PeerNetworkType PeerNetworkType { get; set; }

Required. The type of the network to peer with the VMware Engine network.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NetworkPeeringTypesPeerNetworkType` |   |

### State

    public NetworkPeering.Types.State State { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NetworkPeeringTypesState` |   |

### StateDetails

    public string StateDetails { get; set; }

Output only. Output Only. Details about the current state of the network
peering.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Uid

    public string Uid { get; set; }

Output only. System-generated unique identifier for the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Last update time of this resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### VmwareEngineNetwork

    public string VmwareEngineNetwork { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### VmwareEngineNetworkAsVmwareEngineNetworkName

    public VmwareEngineNetworkName VmwareEngineNetworkAsVmwareEngineNetworkName { get; set; }

[VmwareEngineNetworkName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.VmwareEngineNetworkName.md.txt)-typed view over the [VmwareEngineNetwork](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.NetworkPeering.md.txt#Google_Cloud_VmwareEngine_V1_NetworkPeering_VmwareEngineNetwork) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `VmwareEngineNetworkName` |   |