Network Services v1 API - Class EndpointPolicy (1.0.0-beta01)

public sealed class EndpointPolicy : IMessage<EndpointPolicy>, IEquatable<EndpointPolicy>, IDeepCloneable<EndpointPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class EndpointPolicy.

EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply "authentication config" an all endpoints that serve on port 8080.

Inheritance

object > EndpointPolicy

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

EndpointPolicy()

public EndpointPolicy()

EndpointPolicy(EndpointPolicy)

public EndpointPolicy(EndpointPolicy other)
Parameter
Name Description
other EndpointPolicy

Properties

AuthorizationPolicy

public string AuthorizationPolicy { get; set; }

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

Property Value
Type Description
string

AuthorizationPolicyAsAuthorizationPolicyName

public AuthorizationPolicyName AuthorizationPolicyAsAuthorizationPolicyName { get; set; }

AuthorizationPolicyName-typed view over the AuthorizationPolicy resource name property.

Property Value
Type Description
AuthorizationPolicyName

ClientTlsPolicy

public string ClientTlsPolicy { get; set; }

Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

Property Value
Type Description
string

ClientTlsPolicyAsClientTlsPolicyName

public ClientTlsPolicyName ClientTlsPolicyAsClientTlsPolicyName { get; set; }

ClientTlsPolicyName-typed view over the ClientTlsPolicy resource name property.

Property Value
Type Description
ClientTlsPolicyName

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The timestamp when the resource was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

Optional. A free-text description of the resource. Max length 1024 characters.

Property Value
Type Description
string

EndpointMatcher

public EndpointMatcher EndpointMatcher { get; set; }

Required. A matcher that selects endpoints to which the policies should be applied.

Property Value
Type Description
EndpointMatcher

EndpointPolicyName

public EndpointPolicyName EndpointPolicyName { get; set; }

EndpointPolicyName-typed view over the Name resource name property.

Property Value
Type Description
EndpointPolicyName

Labels

public MapField<string, string> Labels { get; }

Optional. Set of label tags associated with the EndpointPolicy resource.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

Required. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

Property Value
Type Description
string

ServerTlsPolicy

public string ServerTlsPolicy { get; set; }

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

Property Value
Type Description
string

ServerTlsPolicyAsServerTlsPolicyName

public ServerTlsPolicyName ServerTlsPolicyAsServerTlsPolicyName { get; set; }

ServerTlsPolicyName-typed view over the ServerTlsPolicy resource name property.

Property Value
Type Description
ServerTlsPolicyName

TrafficPortSelector

public TrafficPortSelector TrafficPortSelector { get; set; }

Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.

Property Value
Type Description
TrafficPortSelector

Type

public EndpointPolicy.Types.EndpointPolicyType Type { get; set; }

Required. The type of endpoint policy. This is primarily used to validate the configuration.

Property Value
Type Description
EndpointPolicyTypesEndpointPolicyType

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The timestamp when the resource was updated.

Property Value
Type Description
Timestamp