Compute Engine v1 API - Class RouterNatRule (2.3.0)

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

Inheritance

Object > RouterNatRule

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RouterNatRule()

public RouterNatRule()

RouterNatRule(RouterNatRule)

public RouterNatRule(RouterNatRule other)
Parameter
NameDescription
otherRouterNatRule

Properties

Action

public RouterNatRuleAction Action { get; set; }

The action to be enforced for traffic that matches this rule.

Property Value
TypeDescription
RouterNatRuleAction

Description

public string Description { get; set; }

An optional description of this rule.

Property Value
TypeDescription
String

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasMatch

public bool HasMatch { get; }

Gets whether the "match" field is set

Property Value
TypeDescription
Boolean

HasRuleNumber

public bool HasRuleNumber { get; }

Gets whether the "rule_number" field is set

Property Value
TypeDescription
Boolean

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 == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'";

Property Value
TypeDescription
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
TypeDescription
UInt32