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 document provides reference information for the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class within the Google Kubernetes Engine v1 API, specifically focusing on version 3.17.0, but also providing links to other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class is used to enable or disable network policy for a Google Kubernetes Engine cluster, and it 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.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties to manage cluster network policies, including \u003ccode\u003eName\u003c/code\u003e, which specifies the project, location, and cluster name, and \u003ccode\u003eNetworkPolicy\u003c/code\u003e, which configures the network policy settings.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated properties such as \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e are included for legacy support but are now replaced by the \u003ccode\u003eName\u003c/code\u003e property, which is the preferred method for specifying the cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the google container v1 api documentation is version 3.33.0, which can be navigated to via the link provided.\u003c/p\u003e\n"]]],[],null,[]]