public sealed class Destination : IMessage<AuthorizationPolicy.Types.Rule.Types.Destination>, IEquatable<AuthorizationPolicy.Types.Rule.Types.Destination>, IDeepCloneable<AuthorizationPolicy.Types.Rule.Types.Destination>, IBufferMessage, IMessage
Specification of traffic destination attributes.
Implements
IMessage<AuthorizationPolicy.Types.Rule.Types.Destination>, IEquatable<AuthorizationPolicy.Types.Rule.Types.Destination>, IDeepCloneable<AuthorizationPolicy.Types.Rule.Types.Destination>, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkSecurity.V1Beta1Assembly
Google.Cloud.NetworkSecurity.V1Beta1.dll
Constructors
Destination()
public Destination()
Destination(AuthorizationPolicy.Types.Rule.Types.Destination)
public Destination(AuthorizationPolicy.Types.Rule.Types.Destination other)
Parameter | |
---|---|
Name | Description |
other | AuthorizationPolicy.Types.Rule.Types.Destination |
Properties
Hosts
public RepeatedField<string> Hosts { get; }
Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example // *.myorg.com") or a presence(any) match "".
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
HttpHeaderMatch
public AuthorizationPolicy.Types.Rule.Types.Destination.Types.HttpHeaderMatch HttpHeaderMatch { get; set; }
Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
Property Value | |
---|---|
Type | Description |
AuthorizationPolicy.Types.Rule.Types.Destination.Types.HttpHeaderMatch |
Methods
public RepeatedField<string> Methods { get; }
Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Ports
public RepeatedField<uint> Ports { get; }
Required. List of destination ports to match. At least one port should match.
Property Value | |
---|---|
Type | Description |
RepeatedField<UInt32> |