Class AuthorizationPolicy.Types.Rule (1.0.0-beta02)

public sealed class Rule : IMessage<AuthorizationPolicy.Types.Rule>, IEquatable<AuthorizationPolicy.Types.Rule>, IDeepCloneable<AuthorizationPolicy.Types.Rule>, IBufferMessage, IMessage

Specification of rules.

Inheritance

Object > AuthorizationPolicy.Types.Rule

Namespace

Google.Cloud.NetworkSecurity.V1Beta1

Assembly

Google.Cloud.NetworkSecurity.V1Beta1.dll

Constructors

Rule()

public Rule()

Rule(AuthorizationPolicy.Types.Rule)

public Rule(AuthorizationPolicy.Types.Rule other)
Parameter
NameDescription
otherAuthorizationPolicy.Types.Rule

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
TypeDescription
RepeatedField<AuthorizationPolicy.Types.Rule.Types.Destination>

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
TypeDescription
RepeatedField<AuthorizationPolicy.Types.Rule.Types.Source>