public sealed class NetworkPeering : IMessage<NetworkPeering>, IEquatable<NetworkPeering>, IDeepCloneable<NetworkPeering>, IBufferMessage, IMessage
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.
Implements
IMessage<NetworkPeering>, IEquatable<NetworkPeering>, IDeepCloneable<NetworkPeering>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NetworkPeering()
public NetworkPeering()
NetworkPeering(NetworkPeering)
public NetworkPeering(NetworkPeering other)
Parameter | |
---|---|
Name | Description |
other | NetworkPeering |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Boolean |
ExportCustomRoutes
public bool ExportCustomRoutes { get; set; }
Whether to export the custom routes to peer network. The default value is false.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Boolean |
HasAutoCreateRoutes
public bool HasAutoCreateRoutes { get; }
Gets whether the "auto_create_routes" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasExchangeSubnetRoutes
public bool HasExchangeSubnetRoutes { get; }
Gets whether the "exchange_subnet_routes" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasExportCustomRoutes
public bool HasExportCustomRoutes { get; }
Gets whether the "export_custom_routes" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasExportSubnetRoutesWithPublicIp
public bool HasExportSubnetRoutesWithPublicIp { get; }
Gets whether the "export_subnet_routes_with_public_ip" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasImportCustomRoutes
public bool HasImportCustomRoutes { get; }
Gets whether the "import_custom_routes" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasImportSubnetRoutesWithPublicIp
public bool HasImportSubnetRoutesWithPublicIp { get; }
Gets whether the "import_subnet_routes_with_public_ip" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasNetwork
public bool HasNetwork { get; }
Gets whether the "network" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPeerMtu
public bool HasPeerMtu { get; }
Gets whether the "peer_mtu" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStackType
public bool HasStackType { get; }
Gets whether the "stack_type" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasState
public bool HasState { get; }
Gets whether the "state" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasStateDetails
public bool HasStateDetails { get; }
Gets whether the "state_details" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
ImportCustomRoutes
public bool ImportCustomRoutes { get; set; }
Whether to import the custom routes from peer network. The default value is false.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
PeerMtu
public int PeerMtu { get; set; }
Maximum Transmission Unit in bytes.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
StateDetails
public string StateDetails { get; set; }
[Output Only] Details about the current state of the peering.
Property Value | |
---|---|
Type | Description |
String |