MaintenanceWindow¶
-
class
oci.database.models.
MaintenanceWindow
(**kwargs)¶ Bases:
object
The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.
Attributes
PREFERENCE_CUSTOM_PREFERENCE
A constant which can be used with the preference property of a MaintenanceWindow. PREFERENCE_NO_PREFERENCE
A constant which can be used with the preference property of a MaintenanceWindow. days_of_week
Gets the days_of_week of this MaintenanceWindow. hours_of_day
Gets the hours_of_day of this MaintenanceWindow. lead_time_in_weeks
Gets the lead_time_in_weeks of this MaintenanceWindow. months
Gets the months of this MaintenanceWindow. preference
[Required] Gets the preference of this MaintenanceWindow. weeks_of_month
Gets the weeks_of_month of this MaintenanceWindow. Methods
__init__
(**kwargs)Initializes a new MaintenanceWindow object with values from keyword arguments. -
PREFERENCE_CUSTOM_PREFERENCE
= 'CUSTOM_PREFERENCE'¶ A constant which can be used with the preference property of a MaintenanceWindow. This constant has a value of “CUSTOM_PREFERENCE”
-
PREFERENCE_NO_PREFERENCE
= 'NO_PREFERENCE'¶ A constant which can be used with the preference property of a MaintenanceWindow. This constant has a value of “NO_PREFERENCE”
-
__init__
(**kwargs)¶ Initializes a new MaintenanceWindow object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - preference (str) – The value to assign to the preference property of this MaintenanceWindow. Allowed values for this property are: “NO_PREFERENCE”, “CUSTOM_PREFERENCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- months (list[oci.database.models.Month]) – The value to assign to the months property of this MaintenanceWindow.
- weeks_of_month (list[int]) – The value to assign to the weeks_of_month property of this MaintenanceWindow.
- days_of_week (list[oci.database.models.DayOfWeek]) – The value to assign to the days_of_week property of this MaintenanceWindow.
- hours_of_day (list[int]) – The value to assign to the hours_of_day property of this MaintenanceWindow.
- lead_time_in_weeks (int) – The value to assign to the lead_time_in_weeks property of this MaintenanceWindow.
-
days_of_week
¶ Gets the days_of_week of this MaintenanceWindow. Days during the week when maintenance should be performed.
Returns: The days_of_week of this MaintenanceWindow. Return type: list[oci.database.models.DayOfWeek]
-
hours_of_day
¶ Gets the hours_of_day of this MaintenanceWindow. The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC
Returns: The hours_of_day of this MaintenanceWindow. Return type: list[int]
-
lead_time_in_weeks
¶ Gets the lead_time_in_weeks of this MaintenanceWindow. Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4.
Returns: The lead_time_in_weeks of this MaintenanceWindow. Return type: int
-
months
¶ Gets the months of this MaintenanceWindow. Months during the year when maintenance should be performed.
Returns: The months of this MaintenanceWindow. Return type: list[oci.database.models.Month]
-
preference
¶ [Required] Gets the preference of this MaintenanceWindow. The maintenance window scheduling preference.
Allowed values for this property are: “NO_PREFERENCE”, “CUSTOM_PREFERENCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The preference of this MaintenanceWindow. Return type: str
-
weeks_of_month
¶ Gets the weeks_of_month of this MaintenanceWindow. Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed.
Returns: The weeks_of_month of this MaintenanceWindow. Return type: list[int]
-