Reference documentation and code samples for the Google Cloud Database Center V1beta Client class MaintenanceInfo.
MaintenanceInfo to capture the maintenance details of database resource.
Generated from protobuf message google.cloud.databasecenter.v1beta.MaintenanceInfo
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ maintenance_schedule
↳ deny_maintenance_schedules
array< ResourceMaintenanceDenySchedule
>
Optional. List of Deny maintenance period for the database resource.
↳ maintenance_version
string
Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"
↳ current_version_release_date
↳ upcoming_maintenance
UpcomingMaintenance
Output only. Upcoming maintenance window for the database resource. This is only populated for an engine, if upcoming maintenance is scheduled for the resource. This schedule is generated per engine and engine version, and there is only one upcoming maintenance window at any given time. In case of upcoming maintenance, the maintenance_state will be set to SCHEDULED first, and then IN_PROGRESS when the maintenance window starts.
↳ state
int
Output only. Resource maintenance state. This is to capture the current state of the maintenance.
↳ possible_failure_reasons
int[]
Output only. List of possible reasons why the maintenance is not completed. This is an optional field and is only populated if there are any reasons for failures recorded for the maintenance by DB Center. FAILURE maintenance status may not always have a failure reason.
↳ previous_maintenance_version
string
Output only. Previous maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor version maintenance is complete on a database resource.
getMaintenanceSchedule
Optional. Maintenance window for the database resource.
hasMaintenanceSchedule
clearMaintenanceSchedule
setMaintenanceSchedule
Optional. Maintenance window for the database resource.
$this
getDenyMaintenanceSchedules
Optional. List of Deny maintenance period for the database resource.
setDenyMaintenanceSchedules
Optional. List of Deny maintenance period for the database resource.
$this
getMaintenanceVersion
Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"
string
setMaintenanceVersion
Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"
var
string
$this
getCurrentVersionReleaseDate
Output only. The date when the maintenance version was released.
hasCurrentVersionReleaseDate
clearCurrentVersionReleaseDate
setCurrentVersionReleaseDate
Output only. The date when the maintenance version was released.
$this
getUpcomingMaintenance
Output only. Upcoming maintenance window for the database resource. This is only populated for an engine, if upcoming maintenance is scheduled for the resource. This schedule is generated per engine and engine version, and there is only one upcoming maintenance window at any given time. In case of upcoming maintenance, the maintenance_state will be set to SCHEDULED first, and then IN_PROGRESS when the maintenance window starts.
hasUpcomingMaintenance
clearUpcomingMaintenance
setUpcomingMaintenance
Output only. Upcoming maintenance window for the database resource. This is only populated for an engine, if upcoming maintenance is scheduled for the resource. This schedule is generated per engine and engine version, and there is only one upcoming maintenance window at any given time. In case of upcoming maintenance, the maintenance_state will be set to SCHEDULED first, and then IN_PROGRESS when the maintenance window starts.
$this
getState
Output only. Resource maintenance state. This is to capture the current state of the maintenance.
setState
Output only. Resource maintenance state. This is to capture the current state of the maintenance.
$this
getPossibleFailureReasons
Output only. List of possible reasons why the maintenance is not completed.
This is an optional field and is only populated if there are any reasons for failures recorded for the maintenance by DB Center. FAILURE maintenance status may not always have a failure reason.
setPossibleFailureReasons
Output only. List of possible reasons why the maintenance is not completed.
This is an optional field and is only populated if there are any reasons for failures recorded for the maintenance by DB Center. FAILURE maintenance status may not always have a failure reason.
var
int[]
$this
getPreviousMaintenanceVersion
Output only. Previous maintenance version of the database resource.
Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor version maintenance is complete on a database resource.
string
setPreviousMaintenanceVersion
Output only. Previous maintenance version of the database resource.
Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor version maintenance is complete on a database resource.
var
string
$this

