Google Cloud Network Services V1 Client - Class EndpointPolicy (0.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Network Services V1 Client 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.
Generated from protobuf message google.cloud.networkservices.v1.EndpointPolicy
Namespace
Google \ Cloud \ NetworkServices \ V1
Methods
__construct
Constructor.
Parameter
Name
Description
data
mixed
getName
Identifier. Name of the EndpointPolicy resource. It matches pattern
projects/{project}/locations/*/endpointPolicies/{endpoint_policy}.
Returns
Type
Description
string
setName
Identifier. Name of the EndpointPolicy resource. It matches pattern
projects/{project}/locations/*/endpointPolicies/{endpoint_policy}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The timestamp when the resource was created.
Returns
Type
Description
Google\Protobuf\Timestamp|null
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
Parameter
Name
Description
var
Google\Protobuf\Timestamp
Returns
Type
Description
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
Returns
Type
Description
Google\Protobuf\Timestamp|null
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
Parameter
Name
Description
var
Google\Protobuf\Timestamp
Returns
Type
Description
$this
getLabels
Optional. Set of label tags associated with the EndpointPolicy resource.
Returns
Type
Description
Google\Protobuf\Internal\MapField
setLabels
Optional. Set of label tags associated with the EndpointPolicy resource.
Parameter
Name
Description
var
array|Google\Protobuf\Internal\MapField
Returns
Type
Description
$this
getType
Required. The type of endpoint policy. This is primarily used to validate
the configuration.
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.
Returns
Type
Description
string
setAuthorizationPolicy
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEndpointMatcher
Required. A matcher that selects endpoints to which the policies should be
applied.
Optional. A free-text description of the resource. Max length 1024
characters.
Returns
Type
Description
string
setDescription
Optional. A free-text description of the resource. Max length 1024
characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServerTlsPolicy
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.
Returns
Type
Description
string
setServerTlsPolicy
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getClientTlsPolicy
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.
Returns
Type
Description
string
setClientTlsPolicy
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-31 UTC."],[],[]]