a f@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@s^eZdZdZdZdZddZeddZe dd Z e j d d Z d d Z d dZ ddZdS) DateRangezq Static or dynamic date range `dateRangeType`, which corresponds with type-specific characteristics. STATICDYNAMICcKsddi|_ddi|_d|_dS)a= 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: * :class:`~oci.usage_api.models.StaticDateRange` * :class:`~oci.usage_api.models.DynamicDateRange` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param date_range_type: 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'. :type date_range_type: str date_range_typestr dateRangeTypeN)Z swagger_typesZ attribute_map_date_range_type)selfkwargsrC/usr/lib/python3.9/site-packages/oci/usage_api/models/date_range.py__init__s zDateRange.__init__cCs(|d}|dkrdS|dkr dSdSdS)z Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r rZStaticDateRangerZDynamicDateRangerNr)Zobject_dictionarytyperrr get_subtype6s zDateRange.get_subtypecCs|jS)a **[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'. :return: The date_range_type of this DateRange. :rtype: str )r r rrrr Fs zDateRange.date_range_typecCs ddg}t||sd}||_dS)z Sets the date_range_type of this DateRange. Defines whether the schedule date range is STATIC or DYNAMIC. :param date_range_type: The date_range_type of this DateRange. :type: str rrZUNKNOWN_ENUM_VALUEN)rr )r r Zallowed_valuesrrrr Us  cCst|SN)rrrrr__repr__dszDateRange.__repr__cCs|dur dS|j|jkS)NF)__dict__r otherrrr__eq__gszDateRange.__eq__cCs ||k Srrrrrr__ne__mszDateRange.__ne__N)__name__ __module__ __qualname____doc__ZDATE_RANGE_TYPE_STATICZDATE_RANGE_TYPE_DYNAMICr staticmethodrpropertyr setterrrrrrrrr s   rN)Zoci.utilrrrZoci.decoratorsrobjectrrrrrs