Compute Engine v1 API - Class NetworkPeering (2.6.0)

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

Reference documentation and code samples for the Compute Engine v1 API 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

Object > NetworkPeering

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NetworkPeering()

public NetworkPeering()

NetworkPeering(NetworkPeering)

public NetworkPeering(NetworkPeering other)
Parameter
NameDescription
otherNetworkPeering

Properties

AutoCreateRoutes

public bool AutoCreateRoutes { get; set; }

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.

Property Value
TypeDescription
Boolean

ExchangeSubnetRoutes

public bool ExchangeSubnetRoutes { get; set; }

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.

Property Value
TypeDescription
Boolean

ExportCustomRoutes

public bool ExportCustomRoutes { get; set; }

Whether to export the custom routes to peer network. The default value is false.

Property Value
TypeDescription
Boolean

ExportSubnetRoutesWithPublicIp

public bool ExportSubnetRoutesWithPublicIp { get; set; }

Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.

Property Value
TypeDescription
Boolean

HasAutoCreateRoutes

public bool HasAutoCreateRoutes { get; }

Gets whether the "auto_create_routes" field is set

Property Value
TypeDescription
Boolean

HasExchangeSubnetRoutes

public bool HasExchangeSubnetRoutes { get; }

Gets whether the "exchange_subnet_routes" field is set

Property Value
TypeDescription
Boolean

HasExportCustomRoutes

public bool HasExportCustomRoutes { get; }

Gets whether the "export_custom_routes" field is set

Property Value
TypeDescription
Boolean

HasExportSubnetRoutesWithPublicIp

public bool HasExportSubnetRoutesWithPublicIp { get; }

Gets whether the "export_subnet_routes_with_public_ip" field is set

Property Value
TypeDescription
Boolean

HasImportCustomRoutes

public bool HasImportCustomRoutes { get; }

Gets whether the "import_custom_routes" field is set

Property Value
TypeDescription
Boolean

HasImportSubnetRoutesWithPublicIp

public bool HasImportSubnetRoutesWithPublicIp { get; }

Gets whether the "import_subnet_routes_with_public_ip" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasNetwork

public bool HasNetwork { get; }

Gets whether the "network" field is set

Property Value
TypeDescription
Boolean

HasPeerMtu

public bool HasPeerMtu { get; }

Gets whether the "peer_mtu" field is set

Property Value
TypeDescription
Boolean

HasStackType

public bool HasStackType { get; }

Gets whether the "stack_type" field is set

Property Value
TypeDescription
Boolean

HasState

public bool HasState { get; }

Gets whether the "state" field is set

Property Value
TypeDescription
Boolean

HasStateDetails

public bool HasStateDetails { get; }

Gets whether the "state_details" field is set

Property Value
TypeDescription
Boolean

ImportCustomRoutes

public bool ImportCustomRoutes { get; set; }

Whether to import the custom routes from peer network. The default value is false.

Property Value
TypeDescription
Boolean

ImportSubnetRoutesWithPublicIp

public bool ImportSubnetRoutesWithPublicIp { get; set; }

Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.

Property Value
TypeDescription
Boolean

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
String

Network

public string Network { get; set; }

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.

Property Value
TypeDescription
String

PeerMtu

public int PeerMtu { get; set; }

Maximum Transmission Unit in bytes.

Property Value
TypeDescription
Int32

StackType

public string StackType { get; set; }

Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.

Property Value
TypeDescription
String

State

public string State { get; set; }

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

Property Value
TypeDescription
String

StateDetails

public string StateDetails { get; set; }

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

Property Value
TypeDescription
String