Google Cloud Network Security V1 Client - Class ClientTlsPolicy (1.2.3)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Network Security V1 Client class ClientTlsPolicy.
ClientTlsPolicy is a resource that specifies how a client should authenticate
connections to backends of a service. This resource itself does not affect
configuration unless it is attached to a backend service resource.
Generated from protobuf message google.cloud.networksecurity.v1.ClientTlsPolicy
Namespace
Google \ Cloud \ NetworkSecurity \ V1
Methods
__construct
Constructor.
Parameter
Name
Description
data
mixed
getName
Required. Name of the ClientTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
Returns
Type
Description
string
setName
Required. Name of the ClientTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
Optional. Free-text description of the resource.
Returns
Type
Description
string
setDescription
Optional. Free-text description of the resource.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The timestamp when the resource was created.
Optional. Server Name Indication string to present to the server during TLS
handshake. E.g: "secure.example.com".
Returns
Type
Description
string
setSni
Optional. Server Name Indication string to present to the server during TLS
handshake. E.g: "secure.example.com".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getClientCertificate
Optional. Defines a mechanism to provision client identity (public and private keys)
for peer to peer authentication. The presence of this dictates mTLS.
Optional. Defines a mechanism to provision client identity (public and private keys)
for peer to peer authentication. The presence of this dictates mTLS.
Optional. Defines the mechanism to obtain the Certificate Authority certificate to
validate the server certificate. If empty, client does not validate the
server certificate.
Optional. Defines the mechanism to obtain the Certificate Authority certificate to
validate the server certificate. If empty, client does not validate the
server certificate.
[[["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-03-18 UTC."],[],[]]