CreateMaintenanceDetails¶
-
class
oci.mysql.models.
CreateMaintenanceDetails
(**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 CreateMaintenanceDetails. MAINTENANCE_SCHEDULE_TYPE_REGULAR
A constant which can be used with the maintenance_schedule_type property of a CreateMaintenanceDetails. VERSION_PREFERENCE_NEWEST
A constant which can be used with the version_preference property of a CreateMaintenanceDetails. VERSION_PREFERENCE_OLDEST
A constant which can be used with the version_preference property of a CreateMaintenanceDetails. VERSION_PREFERENCE_SECOND_NEWEST
A constant which can be used with the version_preference property of a CreateMaintenanceDetails. VERSION_TRACK_PREFERENCE_FOLLOW
A constant which can be used with the version_track_preference property of a CreateMaintenanceDetails. VERSION_TRACK_PREFERENCE_INNOVATION
A constant which can be used with the version_track_preference property of a CreateMaintenanceDetails. VERSION_TRACK_PREFERENCE_LONG_TERM_SUPPORT
A constant which can be used with the version_track_preference property of a CreateMaintenanceDetails. maintenance_schedule_type
Gets the maintenance_schedule_type of this CreateMaintenanceDetails. version_preference
Gets the version_preference of this CreateMaintenanceDetails. version_track_preference
Gets the version_track_preference of this CreateMaintenanceDetails. window_start_time
[Required] Gets the window_start_time of this CreateMaintenanceDetails. Methods
__init__
(**kwargs)Initializes a new CreateMaintenanceDetails 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 CreateMaintenanceDetails. 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 CreateMaintenanceDetails. This constant has a value of “REGULAR”
-
VERSION_PREFERENCE_NEWEST
= 'NEWEST'¶ A constant which can be used with the version_preference property of a CreateMaintenanceDetails. This constant has a value of “NEWEST”
-
VERSION_PREFERENCE_OLDEST
= 'OLDEST'¶ A constant which can be used with the version_preference property of a CreateMaintenanceDetails. 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 CreateMaintenanceDetails. 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 CreateMaintenanceDetails. 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 CreateMaintenanceDetails. 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 CreateMaintenanceDetails. This constant has a value of “LONG_TERM_SUPPORT”
-
__init__
(**kwargs)¶ Initializes a new CreateMaintenanceDetails 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 CreateMaintenanceDetails.
- version_preference (str) – The value to assign to the version_preference property of this CreateMaintenanceDetails. Allowed values for this property are: “OLDEST”, “SECOND_NEWEST”, “NEWEST”
- version_track_preference (str) – The value to assign to the version_track_preference property of this CreateMaintenanceDetails. Allowed values for this property are: “LONG_TERM_SUPPORT”, “INNOVATION”, “FOLLOW”
- maintenance_schedule_type (str) – The value to assign to the maintenance_schedule_type property of this CreateMaintenanceDetails. Allowed values for this property are: “EARLY”, “REGULAR”
-
maintenance_schedule_type
¶ Gets the maintenance_schedule_type of this CreateMaintenanceDetails. The maintenance schedule type of the DB system. Defaults to REGULAR. 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”
Returns: The maintenance_schedule_type of this CreateMaintenanceDetails. Return type: str
-
version_preference
¶ Gets the version_preference of this CreateMaintenanceDetails. The preferred version to target when performing an automatic MySQL upgrade. Defaults to OLDEST.
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”
Returns: The version_preference of this CreateMaintenanceDetails. Return type: str
-
version_track_preference
¶ Gets the version_track_preference of this CreateMaintenanceDetails. The preferred version track to target when performing an automatic MySQL upgrade. Defaults to FOLLOW. 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”
Returns: The version_track_preference of this CreateMaintenanceDetails. Return type: str
-
window_start_time
¶ [Required] Gets the window_start_time of this CreateMaintenanceDetails. The start of the 2 hour 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 CreateMaintenanceDetails. Return type: str
-