Class NetworkPolicyTrafficClassificationRule
Represents a traffic classification rule that describes one or more match conditions along with the action to be taken when traffic matches this condition.
Implements
Inherited Members
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class NetworkPolicyTrafficClassificationRule : IDirectResponseSchema
Properties
Action
The Action to perform when the client connection triggers the rule.
Declaration
[JsonProperty("action")]
public virtual NetworkPolicyTrafficClassificationRuleAction Action { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkPolicyTrafficClassificationRuleAction |
Description
An optional description for this resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Disabled
Denotes whether the network policy rule is disabled. When set to true, the network policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the network policy rule will be enabled.
Declaration
[JsonProperty("disabled")]
public virtual bool? Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Kind
Output only. [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification rules
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Match
A match condition that outgoing traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
Declaration
[JsonProperty("match")]
public virtual NetworkPolicyTrafficClassificationRuleMatcher Match { get; set; }
Property Value
| Type | Description |
|---|---|
| NetworkPolicyTrafficClassificationRuleMatcher |
Priority
An integer indicating the priority of a rule in the list. The priority must be a positive value between 1 and 2147482647. The priority values from 2147482648 to 2147483647 (1000) are reserved for system default network policy rules. Rules are evaluated from highest to lowest priority where 1 is the highest priority and 2147483647 is the lowest priority.
Declaration
[JsonProperty("priority")]
public virtual int? Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
RuleName
An optional name for the rule. This field is not a unique identifier and can be updated.
Declaration
[JsonProperty("ruleName")]
public virtual string RuleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RuleTupleCount
Output only. [Output Only] Calculation of the complexity of a single network policy rule.
Declaration
[JsonProperty("ruleTupleCount")]
public virtual int? RuleTupleCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
TargetSecureTags
A list of secure tags that controls which instances the traffic classification rule applies to. If targetSecureTag are specified, then the traffic classification rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the targetSecureTag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neithertargetServiceAccounts nor targetSecureTag are specified, the traffic classification rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256.
Declaration
[JsonProperty("targetSecureTags")]
public virtual IList<NetworkPolicyTrafficClassificationRuleSecureTag> TargetSecureTags { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<NetworkPolicyTrafficClassificationRuleSecureTag> |
TargetServiceAccounts
A list of service accounts indicating the sets of instances that are applied with this rule.
Declaration
[JsonProperty("targetServiceAccounts")]
public virtual IList<string> TargetServiceAccounts { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |