ScheduleCronConfig¶
-
class
oci.generative_ai.models.ScheduleCronConfig(**kwargs)¶ Bases:
oci.generative_ai.models.schedule_config.ScheduleConfigThe scheduled UNIX cron definition.
Attributes
CONFIG_TYPE_CRONstr(object=’’) -> str CONFIG_TYPE_INTERVALstr(object=’’) -> str STATE_DISABLEDstr(object=’’) -> str STATE_ENABLEDstr(object=’’) -> str config_type[Required] Gets the config_type of this ScheduleConfig. cron_expression[Required] Gets the cron_expression of this ScheduleCronConfig. stateGets the state of this ScheduleConfig. time_endGets the time_end of this ScheduleConfig. time_startGets the time_start of this ScheduleConfig. Methods
__init__(**kwargs)Initializes a new ScheduleCronConfig 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. -
CONFIG_TYPE_CRON= 'CRON'¶
-
CONFIG_TYPE_INTERVAL= 'INTERVAL'¶
-
STATE_DISABLED= 'DISABLED'¶
-
STATE_ENABLED= 'ENABLED'¶
-
__init__(**kwargs)¶ Initializes a new ScheduleCronConfig object with values from keyword arguments. The default value of the
config_typeattribute of this class isCRONand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - state (str) – The value to assign to the state property of this ScheduleCronConfig. Allowed values for this property are: “ENABLED”, “DISABLED”
- config_type (str) – The value to assign to the config_type property of this ScheduleCronConfig. Allowed values for this property are: “INTERVAL”, “CRON”
- time_start (datetime) – The value to assign to the time_start property of this ScheduleCronConfig.
- time_end (datetime) – The value to assign to the time_end property of this ScheduleCronConfig.
- cron_expression (str) – The value to assign to the cron_expression property of this ScheduleCronConfig.
-
config_type¶ [Required] Gets the config_type of this ScheduleConfig. The schedule config type
Allowed values for this property are: “INTERVAL”, “CRON”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The config_type of this ScheduleConfig. Return type: str
-
cron_expression¶ [Required] Gets the cron_expression of this ScheduleCronConfig. Schedule cron expression
Returns: The cron_expression of this ScheduleCronConfig. 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.
-
state¶ Gets the state of this ScheduleConfig. The state of the schedule. The state can be either ENABLED or DISABLED.
Allowed values for this property are: “ENABLED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The state of this ScheduleConfig. Return type: str
-