public sealed class SetNetworkPolicyRequest : IMessage<SetNetworkPolicyRequest>, IEquatable<SetNetworkPolicyRequest>, IDeepCloneable<SetNetworkPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class SetNetworkPolicyRequest.
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 webpage provides reference documentation for the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class within the Google Kubernetes Engine v1 API, specifically focusing on version 3.24.0, but also offering links to previous versions and up to the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class is used to enable or disable network policies for a cluster in Google Kubernetes Engine, inheriting from and implementing various interfaces related to message handling and object equality.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists the available versions of this class, from the latest (3.33.0) to version 2.3.0, along with links to their corresponding documentation pages.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eName\u003c/code\u003e to identify the cluster and \u003ccode\u003eNetworkPolicy\u003c/code\u003e to configure the cluster's network policy, along with some deprecated properties such as \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e has two constructors that include a parameter \u003ccode\u003eother\u003c/code\u003e of type \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e, with one being a parameterless constructor.\u003c/p\u003e\n"]]],[],null,[]]