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, which is used to enable or disable network policies for a cluster within the Google Cloud Container V1 service.\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, which add specific functionalities for the object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e has several properties including \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eNetworkPolicy\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e, with \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e and \u003ccode\u003eZone\u003c/code\u003e being marked as deprecated in favor of the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e available, ranging from version 3.33.0 (latest) down to 2.3.0, with the current documentation provided for version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class includes two constructors, a default constructor and one that accepts another \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]