NAME

Google::Cloud::Networkservices::V1::EndpointPolicy - Compiled Protocol Buffers messages for google/cloud/networkservices/v1/endpoint_policy.proto

SYNOPSIS

use Google::Cloud::Networkservices::V1::EndpointPolicy;

my $msg = Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    labels => $labels,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/endpoint_policy.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Networkservices::V1::EndpointPolicy::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.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp when the resource was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp when the resource was updated.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy::LabelsEntry)

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

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicyType)

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

  • $msg->authorization_policy() / $msg->authorization_policy($value)

    Type: String

    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.

  • $msg->endpoint_matcher() / $msg->endpoint_matcher($value)

    Type: Message (Google::Cloud::Networkservices::V1::Common::EndpointMatcher)

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

  • $msg->traffic_port_selector() / $msg->traffic_port_selector($value)

    Type: Message (Google::Cloud::Networkservices::V1::Common::TrafficPortSelector)

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

  • $msg->description() / $msg->description($value)

    Type: String

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

  • $msg->server_tls_policy() / $msg->server_tls_policy($value)

    Type: String

    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.

  • $msg->client_tls_policy() / $msg->client_tls_policy($value)

    Type: String

    Optional. Deprecated: This field is not used and is a no-op. 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.

Enum: EndpointPolicy::EndpointPolicyType

  • ENDPOINT_POLICY_TYPE_UNSPECIFIED => 0

  • SIDECAR_PROXY => 1

  • GRPC_SERVER => 2

Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesRequest

Request used with the ListEndpointPolicies method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The project and location from which the EndpointPolicies should be listed, specified in the format `projects/*/locations/*`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of EndpointPolicies to return per call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The value returned by the last `ListEndpointPoliciesResponse` Indicates that this is a continuation of a prior `ListEndpointPolicies` call, and that the system should return the next page of data.

  • $msg->return_partial_success() / $msg->return_partial_success($value)

    Type: Bool

    Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.

Google::Cloud::Networkservices::V1::EndpointPolicy::ListEndpointPoliciesResponse

Response returned by the ListEndpointPolicies method.

Inherits from Protobuf::Message.

Accessors

  • $msg->endpoint_policies() / $msg->endpoint_policies($value)

    Type: Message (Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy)

    List of EndpointPolicy resources.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Unreachable resources. Populated when the request opts into [return_partial_success][google.cloud.networkservices.v1.ListEndpointPoliciesRequest.return_partial_success] and reading across collections e.g. when attempting to list all resources across all supported locations.

Google::Cloud::Networkservices::V1::EndpointPolicy::GetEndpointPolicyRequest

Request used with the GetEndpointPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A name of the EndpointPolicy to get. Must be in the format `projects/*/locations/*/endpointPolicies/*`.

Google::Cloud::Networkservices::V1::EndpointPolicy::CreateEndpointPolicyRequest

Request used with the CreateEndpointPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource of the EndpointPolicy. Must be in the format `projects/*/locations/*`.

  • $msg->endpoint_policy_id() / $msg->endpoint_policy_id($value)

    Type: String

    Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

  • $msg->endpoint_policy() / $msg->endpoint_policy($value)

    Type: Message (Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy)

    Required. EndpointPolicy resource to be created.

Google::Cloud::Networkservices::V1::EndpointPolicy::UpdateEndpointPolicyRequest

Request used with the UpdateEndpointPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

  • $msg->endpoint_policy() / $msg->endpoint_policy($value)

    Type: Message (Google::Cloud::Networkservices::V1::EndpointPolicy::EndpointPolicy)

    Required. Updated EndpointPolicy resource.

Google::Cloud::Networkservices::V1::EndpointPolicy::DeleteEndpointPolicyRequest

Request used with the DeleteEndpointPolicy method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. A name of the EndpointPolicy to delete. Must be in the format `projects/*/locations/*/endpointPolicies/*`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networkservices::V1::EndpointPolicy::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.