SetNetworkPolicyRequest enables/disables network policy for a cluster.
.. attribute:: project_id
Deprecated. The Google Developers Console project ID or
project number <https://developers.google.com/console/help/new
/#projectnumber>__. This field has been deprecated and
replaced by the name field.
Deprecated. The name of the cluster. This field has been
deprecated and replaced by the name field.
The name (project, location, cluster id) of the cluster to set
networking policy. Specified in the format
projects/*/locations/*/clusters/*.
[[["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 2026-10-03 UTC."],[],[]]