# Google Cloud Sql Admin V1 Client - Class DenyMaintenancePeriod (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 DenyMaintenancePeriod.

Deny maintenance Periods. This specifies a date range during when all CSA
rollout will be denied.

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

## Namespace

Google \\ Cloud \\ Sql \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_date` | `string` "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01 |
| `↳ end_date` | `string` "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01 |
| `↳ time` | `string` Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 |

### getStartDate

"deny maintenance period" start date. If the year of the start date is
empty, the year of the end date also must be empty. In this case, it means
the deny maintenance period recurs every year. The date is in format
yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01

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

### setStartDate

"deny maintenance period" start date. If the year of the start date is
empty, the year of the end date also must be empty. In this case, it means
the deny maintenance period recurs every year. The date is in format
yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01

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

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

### getEndDate

"deny maintenance period" end date. If the year of the end date is empty,
the year of the start date also must be empty. In this case, it means the
no maintenance interval recurs every year. The date is in format yyyy-mm-dd
i.e., 2020-11-01, or mm-dd, i.e., 11-01

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

### setEndDate

"deny maintenance period" end date. If the year of the end date is empty,
the year of the start date also must be empty. In this case, it means the
no maintenance interval recurs every year. The date is in format yyyy-mm-dd
i.e., 2020-11-01, or mm-dd, i.e., 11-01

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

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

### getTime

Time in UTC when the "deny maintenance period" starts on start_date and
ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00

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

### setTime

Time in UTC when the "deny maintenance period" starts on start_date and
ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00

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

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