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 for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class is used to enable or disable network policy for a cluster, and it includes properties such as \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eNetworkPolicy\u003c/code\u003e, along with the deprecated \u003ccode\u003eClusterId\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, and \u003ccode\u003eZone\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available in the document is 3.33.0, but this page is currently detailing version 3.22.0, and there are various other versions, each with their own link, available for review ranging from 3.32.0 all the way down to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<SetNetworkPolicyRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<SetNetworkPolicyRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, inheriting from \u003ccode\u003eobject\u003c/code\u003e and containing its inherited members.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e class has two constructors, one parameterless, and the other requiring another instance of the \u003ccode\u003eSetNetworkPolicyRequest\u003c/code\u003e object as the parameter.\u003c/p\u003e\n"]]],[],null,[]]