Google Kubernetes Engine v1 API - Class SetNetworkPolicyRequest (3.10.0)

public sealed class SetNetworkPolicyRequest : IMessage<SetNetworkPolicyRequest>, IEquatable<SetNetworkPolicyRequest>, IDeepCloneable<SetNetworkPolicyRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Kubernetes Engine v1 API class SetNetworkPolicyRequest.

SetNetworkPolicyRequest enables/disables network policy for a cluster.

Inheritance

object > SetNetworkPolicyRequest

Namespace

GoogleGoogle.CloudGoogle.Cloud.ContainerV1

Assembly

Google.Cloud.Container.V1.dll

Constructors

SetNetworkPolicyRequest()

public SetNetworkPolicyRequest()

SetNetworkPolicyRequest(SetNetworkPolicyRequest)

public SetNetworkPolicyRequest(SetNetworkPolicyRequest other)
Parameter
NameDescription
otherSetNetworkPolicyRequest

Properties

ClusterId

[Obsolete]
public string ClusterId { get; set; }

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

Property Value
TypeDescription
string

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

NetworkPolicy

public NetworkPolicy NetworkPolicy { get; set; }

Required. Configuration options for the NetworkPolicy feature.

Property Value
TypeDescription
NetworkPolicy

ProjectId

[Obsolete]
public string ProjectId { get; set; }

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

Property Value
TypeDescription
string

Zone

[Obsolete]
public string Zone { get; set; }

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.

Property Value
TypeDescription
string