MaintenanceDetails

class oci.mysql.models.MaintenanceDetails(**kwargs)

Bases: object

The Maintenance Policy for the DB System or Read Replica that this model is included in.

Attributes

MAINTENANCE_SCHEDULE_TYPE_EARLY A constant which can be used with the maintenance_schedule_type property of a MaintenanceDetails.
MAINTENANCE_SCHEDULE_TYPE_REGULAR A constant which can be used with the maintenance_schedule_type property of a MaintenanceDetails.
VERSION_PREFERENCE_NEWEST A constant which can be used with the version_preference property of a MaintenanceDetails.
VERSION_PREFERENCE_OLDEST A constant which can be used with the version_preference property of a MaintenanceDetails.
VERSION_PREFERENCE_SECOND_NEWEST A constant which can be used with the version_preference property of a MaintenanceDetails.
VERSION_TRACK_PREFERENCE_FOLLOW A constant which can be used with the version_track_preference property of a MaintenanceDetails.
VERSION_TRACK_PREFERENCE_INNOVATION A constant which can be used with the version_track_preference property of a MaintenanceDetails.
VERSION_TRACK_PREFERENCE_LONG_TERM_SUPPORT A constant which can be used with the version_track_preference property of a MaintenanceDetails.
maintenance_schedule_type Gets the maintenance_schedule_type of this MaintenanceDetails.
target_version Gets the target_version of this MaintenanceDetails.
time_scheduled Gets the time_scheduled of this MaintenanceDetails.
version_preference Gets the version_preference of this MaintenanceDetails.
version_track_preference Gets the version_track_preference of this MaintenanceDetails.
window_start_time Gets the window_start_time of this MaintenanceDetails.

Methods

__init__(**kwargs) Initializes a new MaintenanceDetails object with values from keyword arguments.
MAINTENANCE_SCHEDULE_TYPE_EARLY = 'EARLY'

A constant which can be used with the maintenance_schedule_type property of a MaintenanceDetails. This constant has a value of “EARLY”

MAINTENANCE_SCHEDULE_TYPE_REGULAR = 'REGULAR'

A constant which can be used with the maintenance_schedule_type property of a MaintenanceDetails. This constant has a value of “REGULAR”

VERSION_PREFERENCE_NEWEST = 'NEWEST'

A constant which can be used with the version_preference property of a MaintenanceDetails. This constant has a value of “NEWEST”

VERSION_PREFERENCE_OLDEST = 'OLDEST'

A constant which can be used with the version_preference property of a MaintenanceDetails. This constant has a value of “OLDEST”

VERSION_PREFERENCE_SECOND_NEWEST = 'SECOND_NEWEST'

A constant which can be used with the version_preference property of a MaintenanceDetails. This constant has a value of “SECOND_NEWEST”

VERSION_TRACK_PREFERENCE_FOLLOW = 'FOLLOW'

A constant which can be used with the version_track_preference property of a MaintenanceDetails. This constant has a value of “FOLLOW”

VERSION_TRACK_PREFERENCE_INNOVATION = 'INNOVATION'

A constant which can be used with the version_track_preference property of a MaintenanceDetails. This constant has a value of “INNOVATION”

VERSION_TRACK_PREFERENCE_LONG_TERM_SUPPORT = 'LONG_TERM_SUPPORT'

A constant which can be used with the version_track_preference property of a MaintenanceDetails. This constant has a value of “LONG_TERM_SUPPORT”

__init__(**kwargs)

Initializes a new MaintenanceDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • window_start_time (str) – The value to assign to the window_start_time property of this MaintenanceDetails.
  • version_preference (str) – The value to assign to the version_preference property of this MaintenanceDetails. Allowed values for this property are: “OLDEST”, “SECOND_NEWEST”, “NEWEST”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • version_track_preference (str) – The value to assign to the version_track_preference property of this MaintenanceDetails. Allowed values for this property are: “LONG_TERM_SUPPORT”, “INNOVATION”, “FOLLOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • maintenance_schedule_type (str) – The value to assign to the maintenance_schedule_type property of this MaintenanceDetails. Allowed values for this property are: “EARLY”, “REGULAR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_scheduled (datetime) – The value to assign to the time_scheduled property of this MaintenanceDetails.
  • target_version (str) – The value to assign to the target_version property of this MaintenanceDetails.
maintenance_schedule_type

Gets the maintenance_schedule_type of this MaintenanceDetails. The maintenance schedule type of the DB system. EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable.

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

Returns:The maintenance_schedule_type of this MaintenanceDetails.
Return type:str
target_version

Gets the target_version of this MaintenanceDetails. The version that is expected to be targeted during the next scheduled maintenance run.

Returns:The target_version of this MaintenanceDetails.
Return type:str
time_scheduled

Gets the time_scheduled of this MaintenanceDetails. The time the scheduled maintenance is expected to start, as described by RFC 3339.

Returns:The time_scheduled of this MaintenanceDetails.
Return type:datetime
version_preference

Gets the version_preference of this MaintenanceDetails. The preferred version to target when performing an automatic MySQL upgrade.

OLDEST: Choose the oldest available MySQL version based on the current version of the DB System. SECOND_NEWEST: Choose the MySQL version before the newest for auto-upgrade. NEWEST: Choose the latest and greatest MySQL version available for auto-upgrade.

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

Returns:The version_preference of this MaintenanceDetails.
Return type:str
version_track_preference

Gets the version_track_preference of this MaintenanceDetails. The preferred version track to target when performing an automatic MySQL upgrade. LONG_TERM_SUPPORT: No MySQL database behavior changes. INNOVATION: Provides access to the latest features and all bug fixes. FOLLOW: Follows the track of the current MySQL version.

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

Returns:The version_track_preference of this MaintenanceDetails.
Return type:str
window_start_time

Gets the window_start_time of this MaintenanceDetails. The start time of the maintenance window.

This string is of the format: “{day-of-week} {time-of-day}”.

“{day-of-week}” is a case-insensitive string like “mon”, “tue”, &c.

“{time-of-day}” is the “Time” portion of an RFC3339-formatted timestamp. Any second or sub-second time data will be truncated to zero.

If you set the read replica maintenance window to “” or if not specified, the read replica is set same as the DB system maintenance window.

Returns:The window_start_time of this MaintenanceDetails.
Return type:str