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'
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eRouterNatRule\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, offering comprehensive documentation across multiple versions, ranging from 1.0.0 to the latest 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouterNatRule\u003c/code\u003e class, which inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, is used to define NAT rule configurations in Google Cloud Compute.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eRouterNatRule\u003c/code\u003e class include \u003ccode\u003eAction\u003c/code\u003e, specifying the rule's enforcement on matching traffic, \u003ccode\u003eDescription\u003c/code\u003e for an optional description, \u003ccode\u003eMatch\u003c/code\u003e for defining the traffic match condition using a CEL expression, and \u003ccode\u003eRuleNumber\u003c/code\u003e for uniquely identifying the rule.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides details on the available constructors for creating \u003ccode\u003eRouterNatRule\u003c/code\u003e objects, along with parameter descriptions, such as the \u003ccode\u003eother\u003c/code\u003e parameter in the copy constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also includes details on members inherited from the \u003ccode\u003eobject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, along with the assembly information for \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]