MaintenanceWindowSchedule¶
- class oci.apm_synthetics.models.MaintenanceWindowSchedule(**kwargs)¶
Bases:
objectDetails required to schedule maintenance window.
Attributes:
A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule.
A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule.
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.
Gets the recurrence_type of this MaintenanceWindowSchedule.
Gets the schedule_type of this MaintenanceWindowSchedule.
Gets the time_ended of this MaintenanceWindowSchedule.
Gets the time_started of this MaintenanceWindowSchedule.
Methods:
__init__(**kwargs)Initializes a new MaintenanceWindowSchedule object with values from keyword arguments.
- RECURRENCE_TYPE_MONTHLY = 'MONTHLY'¶
A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule. This constant has a value of “MONTHLY”
- RECURRENCE_TYPE_WEEKLY = 'WEEKLY'¶
A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule. This constant has a value of “WEEKLY”
- 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_RECURRING = 'RECURRING'¶
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “RECURRING”
- __init__(**kwargs)¶
Initializes a new MaintenanceWindowSchedule object with values from keyword arguments. 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 MaintenanceWindowSchedule. Allowed values for this property are: “ONE_TIME”, “RECURRING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_started (datetime) – The value to assign to the time_started property of this MaintenanceWindowSchedule.
time_ended (datetime) – The value to assign to the time_ended property of this MaintenanceWindowSchedule.
recurrence_type (str) – The value to assign to the recurrence_type property of this MaintenanceWindowSchedule. Allowed values for this property are: “WEEKLY”, “MONTHLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property recurrence_type¶
Gets the recurrence_type of this MaintenanceWindowSchedule. Type of recurrence for a recurring maintenance window.
Allowed values for this property are: “WEEKLY”, “MONTHLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The recurrence_type of this MaintenanceWindowSchedule.
- Return type
str
- property schedule_type¶
Gets the schedule_type of this MaintenanceWindowSchedule. Type of maintenance window schedule. If not provided, a schedule with timeStarted and timeEnded is treated as ONE_TIME.
Allowed values for this property are: “ONE_TIME”, “RECURRING”, ‘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