ScheduleIntervalConfig

class oci.generative_ai.models.ScheduleIntervalConfig(**kwargs)

Bases: ScheduleConfig

The interval schedule config.

Attributes:

CONFIG_TYPE_CRON

A constant which can be used with the config_type property of a ScheduleConfig.

CONFIG_TYPE_INTERVAL

A constant which can be used with the config_type property of a ScheduleConfig.

FREQUENCY_DAILY

A constant which can be used with the frequency property of a ScheduleIntervalConfig.

FREQUENCY_HOURLY

A constant which can be used with the frequency property of a ScheduleIntervalConfig.

STATE_DISABLED

A constant which can be used with the state property of a ScheduleConfig.

STATE_ENABLED

A constant which can be used with the state property of a ScheduleConfig.

config_type

[Required] Gets the config_type of this ScheduleConfig.

frequency

[Required] Gets the frequency of this ScheduleIntervalConfig.

interval

[Required] Gets the interval of this ScheduleIntervalConfig.

state

Gets the state of this ScheduleConfig.

time_end

Gets the time_end of this ScheduleConfig.

time_start

Gets the time_start of this ScheduleConfig.

Methods:

__init__(**kwargs)

Initializes a new ScheduleIntervalConfig 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'

A constant which can be used with the config_type property of a ScheduleConfig. This constant has a value of “CRON”

CONFIG_TYPE_INTERVAL = 'INTERVAL'

A constant which can be used with the config_type property of a ScheduleConfig. This constant has a value of “INTERVAL”

FREQUENCY_DAILY = 'DAILY'

A constant which can be used with the frequency property of a ScheduleIntervalConfig. This constant has a value of “DAILY”

FREQUENCY_HOURLY = 'HOURLY'

A constant which can be used with the frequency property of a ScheduleIntervalConfig. This constant has a value of “HOURLY”

STATE_DISABLED = 'DISABLED'

A constant which can be used with the state property of a ScheduleConfig. This constant has a value of “DISABLED”

STATE_ENABLED = 'ENABLED'

A constant which can be used with the state property of a ScheduleConfig. This constant has a value of “ENABLED”

__init__(**kwargs)

Initializes a new ScheduleIntervalConfig object with values from keyword arguments. The default value of the config_type attribute of this class is INTERVAL and 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 ScheduleIntervalConfig. 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’.

  • config_type (str) – The value to assign to the config_type property of this ScheduleIntervalConfig. 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’.

  • time_start (datetime) – The value to assign to the time_start property of this ScheduleIntervalConfig.

  • time_end (datetime) – The value to assign to the time_end property of this ScheduleIntervalConfig.

  • frequency (str) – The value to assign to the frequency property of this ScheduleIntervalConfig. Allowed values for this property are: “HOURLY”, “DAILY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • interval (int) – The value to assign to the interval property of this ScheduleIntervalConfig.

property 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

property frequency

[Required] Gets the frequency of this ScheduleIntervalConfig. The type of frequency

Allowed values for this property are: “HOURLY”, “DAILY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The frequency of this ScheduleIntervalConfig.

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.

property interval

[Required] Gets the interval of this ScheduleIntervalConfig. The interval of frequency.

Returns

The interval of this ScheduleIntervalConfig.

Return type

int

property 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

property time_end

Gets the time_end of this ScheduleConfig. The schedule end date time, if null, the schedule will never expire. Format is defined by RFC3339.

Returns

The time_end of this ScheduleConfig.

Return type

datetime

property time_start

Gets the time_start of this ScheduleConfig. 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 ScheduleConfig.

Return type

datetime