StaticDateRange¶
-
class
oci.usage_api.models.StaticDateRange(**kwargs)¶ Bases:
oci.usage_api.models.date_range.DateRangeThe saved static date range (required when the dynamic date range is missing).
Attributes
DATE_RANGE_TYPE_DYNAMICstr(object=’’) -> str DATE_RANGE_TYPE_STATICstr(object=’’) -> str date_range_type[Required] Gets the date_range_type of this DateRange. time_usage_ended[Required] Gets the time_usage_ended of this StaticDateRange. time_usage_started[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'¶
-
DATE_RANGE_TYPE_STATIC= '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.
-
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.
-
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
-
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
-