ScheduleTrigger¶
- class oci.data_science.models.ScheduleTrigger(**kwargs)¶
Bases:
objectThe trigger of the schedule can be UNIX cron or iCal expression or simple interval
Attributes:
A constant which can be used with the trigger_type property of a ScheduleTrigger.
A constant which can be used with the trigger_type property of a ScheduleTrigger.
A constant which can be used with the trigger_type property of a ScheduleTrigger.
Gets the time_end of this ScheduleTrigger.
Gets the time_start of this ScheduleTrigger.
[Required] Gets the trigger_type of this ScheduleTrigger.
Methods:
__init__(**kwargs)Initializes a new ScheduleTrigger 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.
- TRIGGER_TYPE_CRON = 'CRON'¶
A constant which can be used with the trigger_type property of a ScheduleTrigger. This constant has a value of “CRON”
- TRIGGER_TYPE_ICAL = 'ICAL'¶
A constant which can be used with the trigger_type property of a ScheduleTrigger. This constant has a value of “ICAL”
- TRIGGER_TYPE_INTERVAL = 'INTERVAL'¶
A constant which can be used with the trigger_type property of a ScheduleTrigger. This constant has a value of “INTERVAL”
- __init__(**kwargs)¶
Initializes a new ScheduleTrigger object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
trigger_type (str) – The value to assign to the trigger_type property of this ScheduleTrigger. Allowed values for this property are: “CRON”, “INTERVAL”, “ICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_start (datetime) – The value to assign to the time_start property of this ScheduleTrigger.
time_end (datetime) – The value to assign to the time_end property of this ScheduleTrigger.
- 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 time_end¶
Gets the time_end of this ScheduleTrigger. The schedule end date time, if null, the schedule will never expire. Format is defined by RFC3339.
- Returns
The time_end of this ScheduleTrigger.
- Return type
datetime
- property time_start¶
Gets the time_start of this ScheduleTrigger. The schedule starting date time, if null, System set the time when schedule is created. Format is defined by RFC3339.
- Returns
The time_start of this ScheduleTrigger.
- Return type
datetime
- property trigger_type¶
[Required] Gets the trigger_type of this ScheduleTrigger. The schedule trigger type
Allowed values for this property are: “CRON”, “INTERVAL”, “ICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The trigger_type of this ScheduleTrigger.
- Return type
str