public sealed class RouterNatRule : IMessage<RouterNatRule>, IEquatable<RouterNatRule>, IDeepCloneable<RouterNatRule>, IBufferMessage, IMessageImplements
IMessageRouterNatRule, IEquatableRouterNatRule, IDeepCloneableRouterNatRule, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
RouterNatRule()
public RouterNatRule()RouterNatRule(RouterNatRule)
public RouterNatRule(RouterNatRule other)| Parameter | |
|---|---|
| Name | Description |
other |
RouterNatRule |
Properties
Action
public RouterNatRuleAction Action { get; set; }The action to be enforced for traffic that matches this rule.
| Property Value | |
|---|---|
| Type | Description |
RouterNatRuleAction |
|
Description
public string Description { get; set; }An optional description of this rule.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasDescription
public bool HasDescription { get; }Gets whether the "description" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasMatch
public bool HasMatch { get; }Gets whether the "match" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasRuleNumber
public bool HasRuleNumber { get; }Gets whether the "rule_number" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Match
public string Match { get; set; }CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding action is enforced. The following examples are valid match expressions for public NAT: inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16') destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8' The following example is a valid match expression for private NAT: nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'
| Property Value | |
|---|---|
| Type | Description |
string |
|
RuleNumber
public uint RuleNumber { get; set; }An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
| Property Value | |
|---|---|
| Type | Description |
uint |
|