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 documentation for the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class within the Google Kubernetes Engine v1 API, specifically for setting network policies on clusters.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers multiple versions of the API, ranging from version 2.3.0 to the latest version 3.33.0, with a focus on the current version 3.8.0 in the provided information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class, which can enable or disable network policies for a cluster, 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 is part of the \u003ccode\u003eGoogle.Cloud.Container.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class include \u003ccode\u003eName\u003c/code\u003e, which specifies the cluster to be modified, and \u003ccode\u003eNetworkPolicy\u003c/code\u003e, which contains the configuration options, as well as deprecated fields such as \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists multiple inherited members from the base \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]