OneTimeMaintenanceWindowSchedule¶
- class oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule(**kwargs)¶
Bases:
MaintenanceWindowScheduleSchedule information for the Maintenance Window that is executed only once.
Attributes:
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.
[Required] Gets the schedule_type of this MaintenanceWindowSchedule.
Gets the time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule.
Gets the time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule.
Methods:
__init__(**kwargs)Initializes a new OneTimeMaintenanceWindowSchedule object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- SCHEDULE_TYPE_ONE_TIME = 'ONE_TIME'¶
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “ONE_TIME”
- SCHEDULE_TYPE_RECURRENT = 'RECURRENT'¶
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “RECURRENT”
- __init__(**kwargs)¶
Initializes a new OneTimeMaintenanceWindowSchedule object with values from keyword arguments. The default value of the
schedule_typeattribute of this class isONE_TIMEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
schedule_type (str) – The value to assign to the schedule_type property of this OneTimeMaintenanceWindowSchedule. Allowed values for this property are: “ONE_TIME”, “RECURRENT”
time_maintenance_window_start (datetime) – The value to assign to the time_maintenance_window_start property of this OneTimeMaintenanceWindowSchedule.
time_maintenance_window_end (datetime) – The value to assign to the time_maintenance_window_end property of this OneTimeMaintenanceWindowSchedule.
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property schedule_type¶
[Required] Gets the schedule_type of this MaintenanceWindowSchedule. Property to identify the type of the Maintenance Window.
Allowed values for this property are: “ONE_TIME”, “RECURRENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The schedule_type of this MaintenanceWindowSchedule.
- Return type
str
- property time_maintenance_window_end¶
Gets the time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule. Start time of Maintenance window. A RFC3339 formatted datetime string
- Returns
The time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule.
- Return type
datetime
- property time_maintenance_window_start¶
Gets the time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule. Start time of Maintenance window. A RFC3339 formatted datetime string
- Returns
The time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule.
- Return type
datetime