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'";
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, used in Google Cloud's .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouterNatRule\u003c/code\u003e class has a \u003ccode\u003eRouterNatRuleAction\u003c/code\u003e property named \u003ccode\u003eAction\u003c/code\u003e, allowing enforcement of actions for matching traffic, and also includes a \u003ccode\u003eDescription\u003c/code\u003e property for optional rule description.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides functionality to determine if fields like \u003ccode\u003edescription\u003c/code\u003e, \u003ccode\u003ematch\u003c/code\u003e, and \u003ccode\u003erule_number\u003c/code\u003e are set using boolean properties like \u003ccode\u003eHasDescription\u003c/code\u003e, \u003ccode\u003eHasMatch\u003c/code\u003e, and \u003ccode\u003eHasRuleNumber\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMatch\u003c/code\u003e property uses CEL expressions to define conditions for evaluating egress traffic from a VM, and \u003ccode\u003eRuleNumber\u003c/code\u003e property sets the order of the rule among other rules.\u003c/p\u003e\n"],["\u003cp\u003eThis page also lists the available versions of this class, ranging from version 1.0.0 up to the latest version 3.6.0, indicating a historical record of changes and updates to the class.\u003c/p\u003e\n"]]],[],null,[]]