# Google Cloud Sql Admin V1 Client - Class SslCert (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SslCert.

SslCerts Resource

Generated from protobuf message `google.cloud.sql.v1.SslCert`

## Namespace

Google \\ Cloud \\ Sql \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ kind` | `string` This is always `sql#sslCert`. |
| `↳ cert_serial_number` | `string` Serial number, as extracted from the certificate. |
| `↳ cert` | `string` PEM representation. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z` |
| `↳ common_name` | `string` User supplied name. Constrained to \[a-zA-Z.-_ \]+. |
| `↳ expiration_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. |
| `↳ sha1_fingerprint` | `string` Sha1 Fingerprint. |
| `↳ instance` | `string` Name of the database instance. |
| `↳ self_link` | `string` The URI of this resource. |

### getKind

This is always `sql#sslCert`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKind

This is always `sql#sslCert`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCertSerialNumber

Serial number, as extracted from the certificate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCertSerialNumber

Serial number, as extracted from the certificate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCert

PEM representation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCert

PEM representation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

The time when the certificate was created in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2012-11-15T16:19:00.094Z`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

The time when the certificate was created in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2012-11-15T16:19:00.094Z`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCommonName

User supplied name. Constrained to \[a-zA-Z.-_ \]+.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCommonName

User supplied name. Constrained to \[a-zA-Z.-_ \]+.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExpirationTime

The time when the certificate expires in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2012-11-15T16:19:00.094Z`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasExpirationTime

### clearExpirationTime

### setExpirationTime

The time when the certificate expires in [RFC
3339](https://tools.ietf.org/html/rfc3339) format, for example
`2012-11-15T16:19:00.094Z`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSha1Fingerprint

Sha1 Fingerprint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSha1Fingerprint

Sha1 Fingerprint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInstance

Name of the database instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setInstance

Name of the database instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLink

The URI of this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSelfLink

The URI of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |