View Source GoogleApi.Container.V1.Model.SetNetworkPolicyRequest (google_api_container v0.45.0)

SetNetworkPolicyRequest enables/disables network policy for a cluster.

Attributes

  • clusterId (type: String.t, default: nil) - Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
  • name (type: String.t, default: nil) - The name (project, location, cluster name) of the cluster to set networking policy. Specified in the format projects/*/locations/*/clusters/*.
  • networkPolicy (type: GoogleApi.Container.V1.Model.NetworkPolicy.t, default: nil) - Required. Configuration options for the NetworkPolicy feature.
  • projectId (type: String.t, default: nil) - Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
  • zone (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Container.V1.Model.SetNetworkPolicyRequest{
  clusterId: String.t() | nil,
  name: String.t() | nil,
  networkPolicy: GoogleApi.Container.V1.Model.NetworkPolicy.t() | nil,
  projectId: String.t() | nil,
  zone: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.