public sealed class SetNetworkPolicyRequest : IMessage<SetNetworkPolicyRequest>, IEquatable<SetNetworkPolicyRequest>, IDeepCloneable<SetNetworkPolicyRequest>, IBufferMessage, IMessage
SetNetworkPolicyRequest enables/disables network policy for a cluster.
[[["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-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Container.V1\u003c/code\u003e namespace, used to manage network policy settings for Google Cloud clusters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class, found in the \u003ccode\u003eGoogle.Cloud.Container.V1.dll\u003c/code\u003e assembly, allows users to enable or disable network policies for a specified cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API listed is 3.33.0 and the page offers documentation for numerous prior versions, going back to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and also includes properties for cluster name, network policy configuration, and deprecated fields for project ID, cluster ID and zone.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class offers two constructors, one default and another to clone from another \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]