1919
2020class ResourceMaintenanceInfo extends \Google \Collection
2121{
22+ /**
23+ * Unspecified state.
24+ */
25+ public const MAINTENANCE_STATE_MAINTENANCE_STATE_UNSPECIFIED = 'MAINTENANCE_STATE_UNSPECIFIED ' ;
26+ /**
27+ * Database resource is being created.
28+ */
29+ public const MAINTENANCE_STATE_CREATING = 'CREATING ' ;
30+ /**
31+ * Database resource has been created and is ready to use.
32+ */
33+ public const MAINTENANCE_STATE_READY = 'READY ' ;
34+ /**
35+ * Database resource is being updated.
36+ */
37+ public const MAINTENANCE_STATE_UPDATING = 'UPDATING ' ;
38+ /**
39+ * Database resource is unheathy and under repair.
40+ */
41+ public const MAINTENANCE_STATE_REPAIRING = 'REPAIRING ' ;
42+ /**
43+ * Database resource is being deleted.
44+ */
45+ public const MAINTENANCE_STATE_DELETING = 'DELETING ' ;
46+ /**
47+ * Database resource encountered an error and is in indeterministic state.
48+ */
49+ public const MAINTENANCE_STATE_ERROR = 'ERROR ' ;
2250 protected $ collection_key = 'denyMaintenanceSchedules ' ;
2351 protected $ denyMaintenanceSchedulesType = ResourceMaintenanceDenySchedule::class;
2452 protected $ denyMaintenanceSchedulesDataType = 'array ' ;
53+ /**
54+ * Optional. Whether the instance is in stopped state. This information is
55+ * temporarily being captured in maintenanceInfo, till STOPPED state is
56+ * supported by DB Center.
57+ *
58+ * @var bool
59+ */
60+ public $ isInstanceStopped ;
2561 protected $ maintenanceScheduleType = ResourceMaintenanceSchedule::class;
2662 protected $ maintenanceScheduleDataType = '' ;
63+ /**
64+ * Output only. Current state of maintenance on the database resource.
65+ *
66+ * @var string
67+ */
68+ public $ maintenanceState ;
2769 /**
2870 * Optional. Current Maintenance version of the database resource. Example:
2971 * "MYSQL_8_0_41.R20250531.01_15"
3072 *
3173 * @var string
3274 */
3375 public $ maintenanceVersion ;
76+ protected $ upcomingMaintenanceType = UpcomingMaintenance::class;
77+ protected $ upcomingMaintenanceDataType = '' ;
78+ /**
79+ * Optional. This field will contain the date when the last version update was
80+ * applied to the database resource. This will be used to calculate the age of
81+ * the maintenance version.
82+ *
83+ * @var string
84+ */
85+ public $ versionUpdateTime ;
3486
3587 /**
3688 * Optional. List of Deny maintenance period for the database resource.
@@ -48,6 +100,24 @@ public function getDenyMaintenanceSchedules()
48100 {
49101 return $ this ->denyMaintenanceSchedules ;
50102 }
103+ /**
104+ * Optional. Whether the instance is in stopped state. This information is
105+ * temporarily being captured in maintenanceInfo, till STOPPED state is
106+ * supported by DB Center.
107+ *
108+ * @param bool $isInstanceStopped
109+ */
110+ public function setIsInstanceStopped ($ isInstanceStopped )
111+ {
112+ $ this ->isInstanceStopped = $ isInstanceStopped ;
113+ }
114+ /**
115+ * @return bool
116+ */
117+ public function getIsInstanceStopped ()
118+ {
119+ return $ this ->isInstanceStopped ;
120+ }
51121 /**
52122 * Optional. Maintenance window for the database resource.
53123 *
@@ -64,6 +134,25 @@ public function getMaintenanceSchedule()
64134 {
65135 return $ this ->maintenanceSchedule ;
66136 }
137+ /**
138+ * Output only. Current state of maintenance on the database resource.
139+ *
140+ * Accepted values: MAINTENANCE_STATE_UNSPECIFIED, CREATING, READY, UPDATING,
141+ * REPAIRING, DELETING, ERROR
142+ *
143+ * @param self::MAINTENANCE_STATE_* $maintenanceState
144+ */
145+ public function setMaintenanceState ($ maintenanceState )
146+ {
147+ $ this ->maintenanceState = $ maintenanceState ;
148+ }
149+ /**
150+ * @return self::MAINTENANCE_STATE_*
151+ */
152+ public function getMaintenanceState ()
153+ {
154+ return $ this ->maintenanceState ;
155+ }
67156 /**
68157 * Optional. Current Maintenance version of the database resource. Example:
69158 * "MYSQL_8_0_41.R20250531.01_15"
@@ -81,6 +170,41 @@ public function getMaintenanceVersion()
81170 {
82171 return $ this ->maintenanceVersion ;
83172 }
173+ /**
174+ * Optional. Upcoming maintenance for the database resource. This field is
175+ * populated once SLM generates and publishes upcoming maintenance window.
176+ *
177+ * @param UpcomingMaintenance $upcomingMaintenance
178+ */
179+ public function setUpcomingMaintenance (UpcomingMaintenance $ upcomingMaintenance )
180+ {
181+ $ this ->upcomingMaintenance = $ upcomingMaintenance ;
182+ }
183+ /**
184+ * @return UpcomingMaintenance
185+ */
186+ public function getUpcomingMaintenance ()
187+ {
188+ return $ this ->upcomingMaintenance ;
189+ }
190+ /**
191+ * Optional. This field will contain the date when the last version update was
192+ * applied to the database resource. This will be used to calculate the age of
193+ * the maintenance version.
194+ *
195+ * @param string $versionUpdateTime
196+ */
197+ public function setVersionUpdateTime ($ versionUpdateTime )
198+ {
199+ $ this ->versionUpdateTime = $ versionUpdateTime ;
200+ }
201+ /**
202+ * @return string
203+ */
204+ public function getVersionUpdateTime ()
205+ {
206+ return $ this ->versionUpdateTime ;
207+ }
84208}
85209
86210// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments