DateRange

class oci.usage_api.models.DateRange(**kwargs)

Bases: object

Static or dynamic date range dateRangeType, which corresponds with type-specific characteristics.

Attributes

DATE_RANGE_TYPE_DYNAMIC A constant which can be used with the date_range_type property of a DateRange.
DATE_RANGE_TYPE_STATIC A constant which can be used with the date_range_type property of a DateRange.
date_range_type [Required] Gets the date_range_type of this DateRange.

Methods

__init__(**kwargs) Initializes a new DateRange 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.
DATE_RANGE_TYPE_DYNAMIC = 'DYNAMIC'

A constant which can be used with the date_range_type property of a DateRange. This constant has a value of “DYNAMIC”

DATE_RANGE_TYPE_STATIC = 'STATIC'

A constant which can be used with the date_range_type property of a DateRange. This constant has a value of “STATIC”

__init__(**kwargs)

Initializes a new DateRange 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:date_range_type (str) – The value to assign to the date_range_type property of this DateRange. Allowed values for this property are: “STATIC”, “DYNAMIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
date_range_type

[Required] Gets the date_range_type of this DateRange. Defines whether the schedule date range is STATIC or DYNAMIC.

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

Returns:The date_range_type of this DateRange.
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.