Class: Google::Container::V1beta1::SetNetworkPolicyRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb

Overview

SetNetworkPolicyRequest enables/disables network policy for a cluster.

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_idString

Returns Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Returns:

  • (String)

    Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.



2240
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 2240

class SetNetworkPolicyRequest; end

#nameString

Returns The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format 'projects//locations//clusters/*'.

Returns:

  • (String)

    The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format 'projects//locations//clusters/*'.



2240
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 2240

class SetNetworkPolicyRequest; end

#network_policyGoogle::Container::V1beta1::NetworkPolicy

Returns Required. Configuration options for the NetworkPolicy feature.

Returns:



2240
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 2240

class SetNetworkPolicyRequest; end

#project_idString

Returns Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

Returns:

  • (String)

    Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.



2240
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 2240

class SetNetworkPolicyRequest; end

#zoneString

Returns 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.

Returns:

  • (String)

    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.



2240
# File 'lib/google/cloud/container/v1beta1/doc/google/container/v1beta1/cluster_service.rb', line 2240

class SetNetworkPolicyRequest; end