TriggerSchedule

class oci.devops.models.TriggerSchedule(**kwargs)

Bases: object

Specifies a trigger schedule. Timing information for when to initiate automated syncs.

Attributes

SCHEDULE_TYPE_CUSTOM A constant which can be used with the schedule_type property of a TriggerSchedule.
SCHEDULE_TYPE_DEFAULT A constant which can be used with the schedule_type property of a TriggerSchedule.
SCHEDULE_TYPE_NONE A constant which can be used with the schedule_type property of a TriggerSchedule.
custom_schedule Gets the custom_schedule of this TriggerSchedule.
schedule_type [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.
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
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