StaticDateRange¶
- class oci.usage_api.models.StaticDateRange(**kwargs)¶
Bases:
DateRangeThe saved static date range (required when the dynamic date range is missing).
Attributes:
A constant which can be used with the date_range_type property of a DateRange.
A constant which can be used with the date_range_type property of a DateRange.
[Required] Gets the date_range_type of this DateRange.
[Required] Gets the time_usage_ended of this StaticDateRange.
[Required] Gets the time_usage_started of this StaticDateRange.
Methods:
__init__(**kwargs)Initializes a new StaticDateRange 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 StaticDateRange object with values from keyword arguments. The default value of the
date_range_typeattribute of this class isSTATICand it should not be changed. 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 StaticDateRange. Allowed values for this property are: “STATIC”, “DYNAMIC”
time_usage_started (datetime) – The value to assign to the time_usage_started property of this StaticDateRange.
time_usage_ended (datetime) – The value to assign to the time_usage_ended property of this StaticDateRange.
- property 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.
- property time_usage_ended¶
[Required] Gets the time_usage_ended of this StaticDateRange. The usage end time.
- Returns
The time_usage_ended of this StaticDateRange.
- Return type
datetime
- property time_usage_started¶
[Required] Gets the time_usage_started of this StaticDateRange. The usage start time.
- Returns
The time_usage_started of this StaticDateRange.
- Return type
datetime