public sealed class SetNetworkPolicyRequest : IMessage<SetNetworkPolicyRequest>, IEquatable<SetNetworkPolicyRequest>, IDeepCloneable<SetNetworkPolicyRequest>, IBufferMessage, IMessageSetNetworkPolicyRequest enables/disables network policy for a cluster.
Implements
IMessage<SetNetworkPolicyRequest>, IEquatable<SetNetworkPolicyRequest>, IDeepCloneable<SetNetworkPolicyRequest>, IBufferMessage, IMessageNamespace
Google.Cloud.Container.V1Assembly
Google.Cloud.Container.V1.dll
Constructors
SetNetworkPolicyRequest()
public SetNetworkPolicyRequest()SetNetworkPolicyRequest(SetNetworkPolicyRequest)
public SetNetworkPolicyRequest(SetNetworkPolicyRequest other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        SetNetworkPolicyRequest | 
      
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 | |
|---|---|
| Type | Description | 
String | 
        |
Name
public string Name { get; set; }The name (project, location, cluster id) of the cluster to set networking
policy. Specified in the format projects/*/locations/*/clusters/*.
| Property Value | |
|---|---|
| Type | Description | 
String | 
        |
NetworkPolicy
public NetworkPolicy NetworkPolicy { get; set; }Required. Configuration options for the NetworkPolicy feature.
| Property Value | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
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 | |
|---|---|
| Type | Description | 
String | 
        |