TriggerSchedule¶
- class oci.devops.models.TriggerSchedule(**kwargs)¶
Bases:
objectSpecifies a trigger schedule. Timing information for when to initiate automated syncs.
Attributes:
A constant which can be used with the schedule_type property of a TriggerSchedule.
A constant which can be used with the schedule_type property of a TriggerSchedule.
A constant which can be used with the schedule_type property of a TriggerSchedule.
Gets the custom_schedule of this TriggerSchedule.
[Required] Gets the schedule_type of this TriggerSchedule.
Methods:
__init__(**kwargs)Initializes a new TriggerSchedule object with values from keyword arguments.
- SCHEDULE_TYPE_CUSTOM = 'CUSTOM'¶
A constant which can be used with the schedule_type property of a TriggerSchedule. This constant has a value of “CUSTOM”
- SCHEDULE_TYPE_DEFAULT = 'DEFAULT'¶
A constant which can be used with the schedule_type property of a TriggerSchedule. This constant has a value of “DEFAULT”
- SCHEDULE_TYPE_NONE = 'NONE'¶
A constant which can be used with the schedule_type property of a TriggerSchedule. This constant has a value of “NONE”
- __init__(**kwargs)¶
Initializes a new TriggerSchedule 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 TriggerSchedule. Allowed values for this property are: “NONE”, “DEFAULT”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
custom_schedule (str) – The value to assign to the custom_schedule property of this TriggerSchedule.
- property custom_schedule¶
Gets the custom_schedule of this TriggerSchedule. Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- Returns
The custom_schedule of this TriggerSchedule.
- Return type
str
- property schedule_type¶
[Required] Gets the schedule_type of this TriggerSchedule. Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
Allowed values for this property are: “NONE”, “DEFAULT”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The schedule_type of this TriggerSchedule.
- Return type
str