Show / Hide Table of Contents

Class NetworkPeering

A network peering attached to a network resource. The message includes the peering name, peer network, peering state, and a flag indicating whether Google Compute Engine should automatically create routes for the peering.

Inheritance
System.Object
NetworkPeering
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class NetworkPeering : IDirectResponseSchema

Properties

AutoCreateRoutes

This field will be deprecated soon. Use the exchange_subnet_routes field instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

Declaration
[JsonProperty("autoCreateRoutes")]
public virtual bool? AutoCreateRoutes { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

ExchangeSubnetRoutes

Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

Declaration
[JsonProperty("exchangeSubnetRoutes")]
public virtual bool? ExchangeSubnetRoutes { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ExportCustomRoutes

Whether to export the custom routes to peer network.

Declaration
[JsonProperty("exportCustomRoutes")]
public virtual bool? ExportCustomRoutes { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ExportSubnetRoutesWithPublicIp

Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. The IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always exported to peers and are not controlled by this field.

Declaration
[JsonProperty("exportSubnetRoutesWithPublicIp")]
public virtual bool? ExportSubnetRoutesWithPublicIp { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ImportCustomRoutes

Whether to import the custom routes from peer network.

Declaration
[JsonProperty("importCustomRoutes")]
public virtual bool? ImportCustomRoutes { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ImportSubnetRoutesWithPublicIp

Whether subnet routes with public IP range are imported. The default value is false. The IPv4 special-use ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always imported from peers and are not controlled by this field.

Declaration
[JsonProperty("importSubnetRoutesWithPublicIp")]
public virtual bool? ImportSubnetRoutesWithPublicIp { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Name

Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
System.String

Network

The URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

Declaration
[JsonProperty("network")]
public virtual string Network { get; set; }
Property Value
Type Description
System.String

PeerMtu

Maximum Transmission Unit in bytes.

Declaration
[JsonProperty("peerMtu")]
public virtual int? PeerMtu { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

State

[Output Only] State for the peering, either ACTIVE or INACTIVE. The peering is ACTIVE when there's a matching configuration in the peer network.

Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type Description
System.String

StateDetails

[Output Only] Details about the current state of the peering.

Declaration
[JsonProperty("stateDetails")]
public virtual string StateDetails { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
In This Article
Back to top