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 \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
↳ description
string
Optional. Free-text description of the resource.
↳ create_time
↳ update_time
↳ labels
↳ sni
string
Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
↳ client_certificate
Google\Cloud\NetworkSecurity\V1\CertificateProvider
Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
↳ server_validation_ca
array< Google\Cloud\NetworkSecurity\V1\ValidationCA
>
Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
getName
Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
string
setName
Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
var
string
$this
getDescription
Optional. Free-text description of the resource.
string
setDescription
Optional. Free-text description of the resource.
var
string
$this
getCreateTime
Output only. The timestamp when the resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
$this
getLabels
Optional. Set of label tags associated with the resource.
setLabels
Optional. Set of label tags associated with the resource.
$this
getSni
Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
string
setSni
Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
var
string
$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.
hasClientCertificate
clearClientCertificate
setClientCertificate
Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
$this
getServerValidationCa
Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
setServerValidationCa
Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
$this