SetNetworkPolicyRequest enables/disables network policy for a
cluster.
Attributes
Name
Description
project_id
str
Deprecated. The Google Developers Console `project ID or
project
number
zone
str
Deprecated. The name of the Google Compute Engine
zone __
in which the cluster resides. This field has been deprecated
and replaced by the name field.
cluster_id
str
Deprecated. The name of the cluster.
This field has been deprecated and replaced by
the name field.
network_policy
.cluster_service.NetworkPolicy
Required. Configuration options for the
NetworkPolicy feature.
name
str
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."],[],[]]