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

PATCHING_MODE_NONROLLING A constant which can be used with the patching_mode property of a MaintenanceWindow.
PATCHING_MODE_ROLLING A constant which can be used with the patching_mode property of a MaintenanceWindow.
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.
custom_action_timeout_in_mins Gets the custom_action_timeout_in_mins of this MaintenanceWindow.
days_of_week Gets the days_of_week of this MaintenanceWindow.
hours_of_day Gets the hours_of_day of this MaintenanceWindow.
is_custom_action_timeout_enabled Gets the is_custom_action_timeout_enabled of this MaintenanceWindow.
is_monthly_patching_enabled Gets the is_monthly_patching_enabled of this MaintenanceWindow.
lead_time_in_weeks Gets the lead_time_in_weeks of this MaintenanceWindow.
months Gets the months of this MaintenanceWindow.
patching_mode Gets the patching_mode of this MaintenanceWindow.
preference Gets the preference of this MaintenanceWindow.
skip_ru Gets the skip_ru 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.
PATCHING_MODE_NONROLLING = 'NONROLLING'

A constant which can be used with the patching_mode property of a MaintenanceWindow. This constant has a value of “NONROLLING”

PATCHING_MODE_ROLLING = 'ROLLING'

A constant which can be used with the patching_mode property of a MaintenanceWindow. This constant has a value of “ROLLING”

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’.
  • patching_mode (str) – The value to assign to the patching_mode property of this MaintenanceWindow. Allowed values for this property are: “ROLLING”, “NONROLLING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_custom_action_timeout_enabled (bool) – The value to assign to the is_custom_action_timeout_enabled property of this MaintenanceWindow.
  • custom_action_timeout_in_mins (int) – The value to assign to the custom_action_timeout_in_mins property of this MaintenanceWindow.
  • is_monthly_patching_enabled (bool) – The value to assign to the is_monthly_patching_enabled property of this MaintenanceWindow.
  • 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.
  • skip_ru (list[bool]) – The value to assign to the skip_ru property of this MaintenanceWindow.
custom_action_timeout_in_mins

Gets the custom_action_timeout_in_mins of this MaintenanceWindow. Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

Returns:The custom_action_timeout_in_mins of this MaintenanceWindow.
Return type:int
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]
is_custom_action_timeout_enabled

Gets the is_custom_action_timeout_enabled of this MaintenanceWindow. If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.

Returns:The is_custom_action_timeout_enabled of this MaintenanceWindow.
Return type:bool
is_monthly_patching_enabled

Gets the is_monthly_patching_enabled of this MaintenanceWindow. If true, enables the monthly patching option.

Returns:The is_monthly_patching_enabled of this MaintenanceWindow.
Return type:bool
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]
patching_mode

Gets the patching_mode of this MaintenanceWindow. Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”. Default value is ROLLING.

IMPORTANT: Non-rolling infrastructure patching involves system down time. See Oracle-Managed Infrastructure Maintenance Updates for more information.

Allowed values for this property are: “ROLLING”, “NONROLLING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The patching_mode of this MaintenanceWindow.
Return type:str
preference

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
skip_ru

Gets the skip_ru of this MaintenanceWindow. If true, skips the release update (RU) for the quarter. You cannot skip two consecutive quarters. An RU skip request will only be honoured if the current version of the Autonomous Container Database is supported for current quarter.

Returns:The skip_ru of this MaintenanceWindow.
Return type:list[bool]
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]