Google Cloud Database Center V1beta Client - Class ResourceMaintenanceSchedule (0.3.1)

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class ResourceMaintenanceSchedule.

Maintenance window for the database resource. It specifies preferred time and day of the week and phase in some cases, when the maintenance can start.

Generated from protobuf message google.cloud.databasecenter.v1beta.ResourceMaintenanceSchedule

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_time Google\Type\TimeOfDay

Optional. Preferred time to start the maintenance operation on the specified day.

↳ day int

Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

↳ phase int

Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

getStartTime

Optional. Preferred time to start the maintenance operation on the specified day.

Returns
Type Description
Google\Type\TimeOfDay|null

hasStartTime

clearStartTime

setStartTime

Optional. Preferred time to start the maintenance operation on the specified day.

Parameter
Name Description
var Google\Type\TimeOfDay
Returns
Type Description
$this

getDay

Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

Returns
Type Description
int Enum of type DayOfWeek.

setDay

Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

Parameter
Name Description
var int

Enum of type DayOfWeek.

Returns
Type Description
$this

getPhase

Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase.

For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

Returns
Type Description
int Enum of type Phase.

setPhase

Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase.

For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

Parameter
Name Description
var int

Enum of type Phase.

Returns
Type Description
$this