Google Cloud Sql Admin V1 Client - Class CustomerManagedCertificate (1.17.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class CustomerManagedCertificate.

A single certificate or key in a customer managed certificate bundle.

Generated from protobuf message google.cloud.sql.v1.CustomerManagedCertificate

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ certificate_type int

Required. The certificate type.

↳ content string

Required. Input only. The PEM-encoded certificate or key content in base64 format.

↳ file_path string

Output only. File path of the PEM-encoded certificate or key content on the database virtual machine. This path can be used by database extensions or plugins (for example, to configure pglogical in PostgreSQL) that need to reference the certificate or key file directly on the VM's filesystem, ex: certs/c1/server-ca.pem

getCertificateType

Required. The certificate type.

Returns
Type Description
int Enum of type CertificateType.

setCertificateType

Required. The certificate type.

Parameter
Name Description
var int

Enum of type CertificateType.

Returns
Type Description
$this

getContent

Required. Input only. The PEM-encoded certificate or key content in base64 format.

Returns
Type Description
string

setContent

Required. Input only. The PEM-encoded certificate or key content in base64 format.

Parameter
Name Description
var string
Returns
Type Description
$this

getFilePath

Output only. File path of the PEM-encoded certificate or key content on the database virtual machine. This path can be used by database extensions or plugins (for example, to configure pglogical in PostgreSQL) that need to reference the certificate or key file directly on the VM's filesystem, ex: certs/c1/server-ca.pem

Returns
Type Description
string

setFilePath

Output only. File path of the PEM-encoded certificate or key content on the database virtual machine. This path can be used by database extensions or plugins (for example, to configure pglogical in PostgreSQL) that need to reference the certificate or key file directly on the VM's filesystem, ex: certs/c1/server-ca.pem

Parameter
Name Description
var string
Returns
Type Description
$this