ScheduleCronTrigger

class oci.data_science.models.ScheduleCronTrigger(**kwargs)

Bases: oci.data_science.models.schedule_trigger.ScheduleTrigger

The scheduled UNIX cron definition.

Attributes

TRIGGER_TYPE_CRON str(object=’’) -> str
TRIGGER_TYPE_ICAL str(object=’’) -> str
TRIGGER_TYPE_INTERVAL str(object=’’) -> str
cron_expression [Required] Gets the cron_expression of this ScheduleCronTrigger.
time_end Gets the time_end of this ScheduleTrigger.
time_start Gets the time_start of this ScheduleTrigger.
trigger_type [Required] Gets the trigger_type of this ScheduleTrigger.

Methods

__init__(**kwargs) Initializes a new ScheduleCronTrigger 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'
TRIGGER_TYPE_ICAL = 'ICAL'
TRIGGER_TYPE_INTERVAL = 'INTERVAL'
__init__(**kwargs)

Initializes a new ScheduleCronTrigger object with values from keyword arguments. The default value of the trigger_type attribute of this class is CRON and it should not be changed. 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 ScheduleCronTrigger. Allowed values for this property are: “CRON”, “INTERVAL”, “ICAL”
  • time_start (datetime) – The value to assign to the time_start property of this ScheduleCronTrigger.
  • time_end (datetime) – The value to assign to the time_end property of this ScheduleCronTrigger.
  • cron_expression (str) – The value to assign to the cron_expression property of this ScheduleCronTrigger.
cron_expression

[Required] Gets the cron_expression of this ScheduleCronTrigger. Schedule cron expression

Returns:The cron_expression of this ScheduleCronTrigger.
Return type:str
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.

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
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
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