a Of.@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZddZ e d d Z e j d d Z e d d Z e j dd Z e ddZej ddZe ddZej ddZe ddZej ddZe ddZej ddZe ddZej ddZe ddZej d dZd!d"Zd#d$Zd%d&Zd'S)(QueryPropertiesz The query properties. DAILYMONTHLYUSAGECOSTUSAGE_AND_COSTc Ksdddddddddd|_d d d d d dddd|_d|_d|_d|_d|_d|_d|_d|_d|_ dS)aG Initializes a new QueryProperties object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param group_by: The value to assign to the group_by property of this QueryProperties. :type group_by: list[str] :param group_by_tag: The value to assign to the group_by_tag property of this QueryProperties. :type group_by_tag: list[oci.usage_api.models.Tag] :param filter: The value to assign to the filter property of this QueryProperties. :type filter: oci.usage_api.models.Filter :param compartment_depth: The value to assign to the compartment_depth property of this QueryProperties. :type compartment_depth: float :param granularity: The value to assign to the granularity property of this QueryProperties. Allowed values for this property are: "DAILY", "MONTHLY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type granularity: str :param query_type: The value to assign to the query_type property of this QueryProperties. Allowed values for this property are: "USAGE", "COST", "USAGE_AND_COST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type query_type: str :param is_aggregate_by_time: The value to assign to the is_aggregate_by_time property of this QueryProperties. :type is_aggregate_by_time: bool :param date_range: The value to assign to the date_range property of this QueryProperties. :type date_range: oci.usage_api.models.DateRange z list[str]z list[Tag]Filterfloatstrbool DateRange)group_by group_by_tagfiltercompartment_depth granularity query_typeis_aggregate_by_time date_rangegroupBy groupByTagrcompartmentDepthr queryTypeisAggregateByTime dateRangeN) swagger_types attribute_map _group_by _group_by_tag_filter_compartment_depth _granularity _query_type_is_aggregate_by_time _date_range)selfkwargsr+/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/usage_api/models/query_properties.py__init__$s4+  zQueryProperties.__init__cCs|jS)a Gets the group_by of this QueryProperties. Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ] :return: The group_by of this QueryProperties. :rtype: list[str] r!r)r+r+r,rms zQueryProperties.group_bycCs ||_dS)a Sets the group_by of this QueryProperties. Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ] :param group_by: The group_by of this QueryProperties. :type: list[str] Nr.)r)rr+r+r,rys cCs|jS)af Gets the group_by_tag of this QueryProperties. GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ] :return: The group_by_tag of this QueryProperties. :rtype: list[oci.usage_api.models.Tag] r"r/r+r+r,rs zQueryProperties.group_by_tagcCs ||_dS)aq Sets the group_by_tag of this QueryProperties. GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { "namespace": "oracle", "key": "createdBy" ] :param group_by_tag: The group_by_tag of this QueryProperties. :type: list[oci.usage_api.models.Tag] Nr0)r)rr+r+r,rs cCs|jS)z Gets the filter of this QueryProperties. :return: The filter of this QueryProperties. :rtype: oci.usage_api.models.Filter r#r/r+r+r,rszQueryProperties.filtercCs ||_dS)z Sets the filter of this QueryProperties. :param filter: The filter of this QueryProperties. :type: oci.usage_api.models.Filter Nr1)r)rr+r+r,rscCs|jS)z Gets the compartment_depth of this QueryProperties. The depth level of the compartment. :return: The compartment_depth of this QueryProperties. :rtype: float r$r/r+r+r,rs z!QueryProperties.compartment_depthcCs ||_dS)z Sets the compartment_depth of this QueryProperties. The depth level of the compartment. :param compartment_depth: The compartment_depth of this QueryProperties. :type: float Nr2)r)rr+r+r,rs cCs|jS)a **[Required]** Gets the granularity of this QueryProperties. The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY Allowed values for this property are: "DAILY", "MONTHLY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The granularity of this QueryProperties. :rtype: str )r%r/r+r+r,rszQueryProperties.granularitycCs ddg}t||sd}||_dS)a: Sets the granularity of this QueryProperties. The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY :param granularity: The granularity of this QueryProperties. :type: str rrUNKNOWN_ENUM_VALUEN)rr%)r)rallowed_valuesr+r+r,rs  cCs|jS)a) Gets the query_type of this QueryProperties. The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST Allowed values for this property are: "USAGE", "COST", "USAGE_AND_COST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The query_type of this QueryProperties. :rtype: str )r&r/r+r+r,rszQueryProperties.query_typecCs gd}t||sd}||_dS)al Sets the query_type of this QueryProperties. The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST :param query_type: The query_type of this QueryProperties. :type: str )r r r r3N)rr&)r)rr4r+r+r,rs cCs|jS)a- Gets the is_aggregate_by_time of this QueryProperties. Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up. :return: The is_aggregate_by_time of this QueryProperties. :rtype: bool r'r/r+r+r,rs z$QueryProperties.is_aggregate_by_timecCs ||_dS)a@ Sets the is_aggregate_by_time of this QueryProperties. Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up. :param is_aggregate_by_time: The is_aggregate_by_time of this QueryProperties. :type: bool Nr5)r)rr+r+r,rs cCs|jS)z **[Required]** Gets the date_range of this QueryProperties. :return: The date_range of this QueryProperties. :rtype: oci.usage_api.models.DateRange r(r/r+r+r,r+szQueryProperties.date_rangecCs ||_dS)z Sets the date_range of this QueryProperties. :param date_range: The date_range of this QueryProperties. :type: oci.usage_api.models.DateRange Nr6)r)rr+r+r,r5scCst|SN)rr/r+r+r,__repr__?szQueryProperties.__repr__cCs|dur dS|j|jkS)NF)__dict__r)otherr+r+r,__eq__BszQueryProperties.__eq__cCs ||k Sr7r+r:r+r+r,__ne__HszQueryProperties.__ne__N)__name__ __module__ __qualname____doc__GRANULARITY_DAILYGRANULARITY_MONTHLYQUERY_TYPE_USAGEQUERY_TYPE_COSTQUERY_TYPE_USAGE_AND_COSTr-propertyrsetterrrrrrrrr8r<r=r+r+r+r,r sTI                rN)oci.utilrrroci.decoratorsrobjectrr+r+r+r,s