MaintenanceWindow

class oci.datacc.models.MaintenanceWindow(**kwargs)

Bases: object

The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window.

Attributes:

DAYS_OF_WEEK_FRIDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_MONDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_SATURDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_SUNDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_THURSDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_TUESDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

DAYS_OF_WEEK_WEDNESDAY

A constant which can be used with the days_of_week property of a MaintenanceWindow.

MONTHS_APRIL

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_AUGUST

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_DECEMBER

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_FEBRUARY

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_JANUARY

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_JULY

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_JUNE

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_MARCH

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_MAY

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_NOVEMBER

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_OCTOBER

A constant which can be used with the months property of a MaintenanceWindow.

MONTHS_SEPTEMBER

A constant which can be used with the months property of a MaintenanceWindow.

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.

weeks_of_month

Gets the weeks_of_month of this MaintenanceWindow.

Methods:

__init__(**kwargs)

Initializes a new MaintenanceWindow object with values from keyword arguments.

DAYS_OF_WEEK_FRIDAY = 'FRIDAY'

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

DAYS_OF_WEEK_MONDAY = 'MONDAY'

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

DAYS_OF_WEEK_SATURDAY = 'SATURDAY'

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

DAYS_OF_WEEK_SUNDAY = 'SUNDAY'

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

DAYS_OF_WEEK_THURSDAY = 'THURSDAY'

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

DAYS_OF_WEEK_TUESDAY = 'TUESDAY'

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

DAYS_OF_WEEK_WEDNESDAY = 'WEDNESDAY'

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

MONTHS_APRIL = 'APRIL'

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

MONTHS_AUGUST = 'AUGUST'

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

MONTHS_DECEMBER = 'DECEMBER'

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

MONTHS_FEBRUARY = 'FEBRUARY'

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

MONTHS_JANUARY = 'JANUARY'

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

MONTHS_JULY = 'JULY'

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

MONTHS_JUNE = 'JUNE'

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

MONTHS_MARCH = 'MARCH'

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

MONTHS_MAY = 'MAY'

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

MONTHS_NOVEMBER = 'NOVEMBER'

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

MONTHS_OCTOBER = 'OCTOBER'

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

MONTHS_SEPTEMBER = 'SEPTEMBER'

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

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[str]) – The value to assign to the months property of this MaintenanceWindow. Allowed values for items in this list are: “JANUARY”, “FEBRUARY”, “MARCH”, “APRIL”, “MAY”, “JUNE”, “JULY”, “AUGUST”, “SEPTEMBER”, “OCTOBER”, “NOVEMBER”, “DECEMBER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • weeks_of_month (list[int]) – The value to assign to the weeks_of_month property of this MaintenanceWindow.

  • days_of_week (list[str]) – The value to assign to the days_of_week property of this MaintenanceWindow. Allowed values for items in this list are: “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, “SUNDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • 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.

property 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 Infrastructure 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

property days_of_week

Gets the days_of_week of this MaintenanceWindow. Days during the week when maintenance should be performed.

Allowed values for items in this list are: “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, “SUNDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The days_of_week of this MaintenanceWindow.

Return type

list[str]

property 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]

property 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 Infrastructure server patching operations.

Returns

The is_custom_action_timeout_enabled of this MaintenanceWindow.

Return type

bool

property 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

property 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

property months

Gets the months of this MaintenanceWindow. Months during the year when maintenance should be performed.

Allowed values for items in this list are: “JANUARY”, “FEBRUARY”, “MARCH”, “APRIL”, “MAY”, “JUNE”, “JULY”, “AUGUST”, “SEPTEMBER”, “OCTOBER”, “NOVEMBER”, “DECEMBER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The months of this MaintenanceWindow.

Return type

list[str]

property patching_mode

Gets the patching_mode of this MaintenanceWindow. Cloud Database Infrastructure node patching method. IMPORTANT: Non-rolling infrastructure patching involves system down time. See Oracle-Managed Database 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

property 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

property 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]