Class SetNetworkPolicyRequest (2.13.0)

SetNetworkPolicyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

SetNetworkPolicyRequest enables/disables network policy for a cluster.

Attributes

NameDescription
project_id str
Required. Deprecated. The Google Developers Console `project ID or project number
zone str
Required. 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
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
network_policy google.cloud.container_v1beta1.types.NetworkPolicy
Required. Configuration options for the NetworkPolicy feature.
name str
The name (project, location, cluster name) of the cluster to set networking policy. Specified in the format projects/*/locations/*/clusters/*.