public sealed class AuthorizationPolicy.Types.Rule : IMessage<AuthorizationPolicy.Types.Rule>, IEquatable<AuthorizationPolicy.Types.Rule>, IDeepCloneable<AuthorizationPolicy.Types.Rule>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Security v1beta1 API class AuthorizationPolicy.Types.Rule.
Specification of rules.
Implements
IMessageAuthorizationPolicyTypesRule, IEquatableAuthorizationPolicyTypesRule, IDeepCloneableAuthorizationPolicyTypesRule, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkSecurity.V1Beta1Assembly
Google.Cloud.NetworkSecurity.V1Beta1.dll
Constructors
Rule()
public Rule()
Rule(Rule)
public Rule(AuthorizationPolicy.Types.Rule other)
Parameter | |
---|---|
Name | Description |
other |
AuthorizationPolicyTypesRule |
Properties
Destinations
public RepeatedField<AuthorizationPolicy.Types.Rule.Types.Destination> Destinations { get; }
Optional. List of attributes for the traffic destination. All of the destinations must match. A destination is a match if a request matches all the specified hosts, ports, methods and headers. If not set, the action specified in the 'action' field will be applied without any rule checks for the destination.
Property Value | |
---|---|
Type | Description |
RepeatedFieldAuthorizationPolicyTypesRuleTypesDestination |
Sources
public RepeatedField<AuthorizationPolicy.Types.Rule.Types.Source> Sources { get; }
Optional. List of attributes for the traffic source. All of the sources must match. A source is a match if both principals and ip_blocks match. If not set, the action specified in the 'action' field will be applied without any rule checks for the source.
Property Value | |
---|---|
Type | Description |
RepeatedFieldAuthorizationPolicyTypesRuleTypesSource |