DynamicDateRange¶
- class oci.usage_api.models.DynamicDateRange(**kwargs)¶
Bases:
DateRangeThe saved dynamic date range (required when the static 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.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange.
[Required] Gets the date_range_type of this DateRange.
[Required] Gets the dynamic_date_range_type of this DynamicDateRange.
Methods:
__init__(**kwargs)Initializes a new DynamicDateRange 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”
- DYNAMIC_DATE_RANGE_TYPE_ALL = 'ALL'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “ALL”
- DYNAMIC_DATE_RANGE_TYPE_LAST_10_DAYS = 'LAST_10_DAYS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_10_DAYS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_2_CALENDAR_MONTHS = 'LAST_2_CALENDAR_MONTHS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_2_CALENDAR_MONTHS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_30_DAYS = 'LAST_30_DAYS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_30_DAYS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_3_CALENDAR_MONTHS = 'LAST_3_CALENDAR_MONTHS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_3_CALENDAR_MONTHS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_6_CALENDAR_MONTHS = 'LAST_6_CALENDAR_MONTHS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_6_CALENDAR_MONTHS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_7_DAYS = 'LAST_7_DAYS'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_7_DAYS”
- DYNAMIC_DATE_RANGE_TYPE_LAST_CALENDAR_MONTH = 'LAST_CALENDAR_MONTH'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_CALENDAR_MONTH”
- DYNAMIC_DATE_RANGE_TYPE_LAST_CALENDAR_WEEK = 'LAST_CALENDAR_WEEK'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_CALENDAR_WEEK”
- DYNAMIC_DATE_RANGE_TYPE_LAST_YEAR = 'LAST_YEAR'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “LAST_YEAR”
- DYNAMIC_DATE_RANGE_TYPE_MONTH_TO_DATE = 'MONTH_TO_DATE'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “MONTH_TO_DATE”
- DYNAMIC_DATE_RANGE_TYPE_YEAR_TODATE = 'YEAR_TODATE'¶
A constant which can be used with the dynamic_date_range_type property of a DynamicDateRange. This constant has a value of “YEAR_TODATE”
- __init__(**kwargs)¶
Initializes a new DynamicDateRange object with values from keyword arguments. The default value of the
date_range_typeattribute of this class isDYNAMICand 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 DynamicDateRange. 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’.
dynamic_date_range_type (str) – The value to assign to the dynamic_date_range_type property of this DynamicDateRange. Allowed values for this property are: “LAST_7_DAYS”, “LAST_10_DAYS”, “LAST_CALENDAR_WEEK”, “LAST_CALENDAR_MONTH”, “LAST_2_CALENDAR_MONTHS”, “LAST_3_CALENDAR_MONTHS”, “LAST_6_CALENDAR_MONTHS”, “LAST_30_DAYS”, “MONTH_TO_DATE”, “LAST_YEAR”, “YEAR_TODATE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- 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
- property dynamic_date_range_type¶
[Required] Gets the dynamic_date_range_type of this DynamicDateRange. Allowed values for this property are: “LAST_7_DAYS”, “LAST_10_DAYS”, “LAST_CALENDAR_WEEK”, “LAST_CALENDAR_MONTH”, “LAST_2_CALENDAR_MONTHS”, “LAST_3_CALENDAR_MONTHS”, “LAST_6_CALENDAR_MONTHS”, “LAST_30_DAYS”, “MONTH_TO_DATE”, “LAST_YEAR”, “YEAR_TODATE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The dynamic_date_range_type of this DynamicDateRange.
- 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.