a OfJ@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZddZeddZejddZeddZejddZeddZejddZed d!Zejd"d!Zed#d$Zejd%d$Zed&d'Zejd(d'Zed)d*Z e jd+d*Z ed,d-Z!e!jd.d-Z!ed/d0Z"e"jd1d0Z"ed2d3Z#e#jd4d3Z#ed5d6Z$e$jd7d6Z$ed8d9Z%e%jd:d9Z%d;d<Z&d=d>Z'd?d@Z(dAS)B ReportQueryz< The request of the generated Cost Analysis report. HOURLYDAILYMONTHLYTOTALUSAGECOSTCREDIT EXPIREDCREDIT ALLCREDITLAST_SEVEN_DAYS LAST_TEN_DAYSMTDLAST_TWO_MONTHSLAST_THREE_MONTHSALLLAST_SIX_MONTHS LAST_ONE_YEARYTDCUSTOMc Ksddddddddddddd |_d d d d ddddddddd |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ dS)a Initializes a new ReportQuery object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param tenant_id: The value to assign to the tenant_id property of this ReportQuery. :type tenant_id: str :param time_usage_started: The value to assign to the time_usage_started property of this ReportQuery. :type time_usage_started: datetime :param time_usage_ended: The value to assign to the time_usage_ended property of this ReportQuery. :type time_usage_ended: datetime :param granularity: The value to assign to the granularity property of this ReportQuery. Allowed values for this property are: "HOURLY", "DAILY", "MONTHLY", "TOTAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type granularity: str :param is_aggregate_by_time: The value to assign to the is_aggregate_by_time property of this ReportQuery. :type is_aggregate_by_time: bool :param forecast: The value to assign to the forecast property of this ReportQuery. :type forecast: oci.usage_api.models.Forecast :param query_type: The value to assign to the query_type property of this ReportQuery. Allowed values for this property are: "USAGE", "COST", "CREDIT", "EXPIREDCREDIT", "ALLCREDIT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type query_type: str :param group_by: The value to assign to the group_by property of this ReportQuery. :type group_by: list[str] :param group_by_tag: The value to assign to the group_by_tag property of this ReportQuery. :type group_by_tag: list[oci.usage_api.models.Tag] :param compartment_depth: The value to assign to the compartment_depth property of this ReportQuery. :type compartment_depth: float :param filter: The value to assign to the filter property of this ReportQuery. :type filter: oci.usage_api.models.Filter :param date_range_name: The value to assign to the date_range_name property of this ReportQuery. Allowed values for this property are: "LAST_SEVEN_DAYS", "LAST_TEN_DAYS", "MTD", "LAST_TWO_MONTHS", "LAST_THREE_MONTHS", "ALL", "LAST_SIX_MONTHS", "LAST_ONE_YEAR", "YTD", "CUSTOM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type date_range_name: str strdatetimeboolForecastz list[str]z list[Tag]floatFilter) tenant_idtime_usage_startedtime_usage_ended granularityis_aggregate_by_timeforecast query_typegroup_by group_by_tagcompartment_depthfilterdate_range_nametenantIdtimeUsageStartedtimeUsageEndedr#isAggregateByTimer% queryTypegroupBy groupByTagcompartmentDepthr* dateRangeNameN) swagger_types attribute_map _tenant_id_time_usage_started_time_usage_ended _granularity_is_aggregate_by_time _forecast _query_type _group_by _group_by_tag_compartment_depth_filter_date_range_name)selfkwargsrE/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/usage_api/models/report_query.py__init__\sL=zReportQuery.__init__cCs|jS)z **[Required]** Gets the tenant_id of this ReportQuery. Tenant ID. :return: The tenant_id of this ReportQuery. :rtype: str r7rCrErErFr s zReportQuery.tenant_idcCs ||_dS)z Sets the tenant_id of this ReportQuery. Tenant ID. :param tenant_id: The tenant_id of this ReportQuery. :type: str NrH)rCr rErErFr s cCs|jS)z Gets the time_usage_started of this ReportQuery. The usage start time. :return: The time_usage_started of this ReportQuery. :rtype: datetime r8rIrErErFr!s zReportQuery.time_usage_startedcCs ||_dS)z Sets the time_usage_started of this ReportQuery. The usage start time. :param time_usage_started: The time_usage_started of this ReportQuery. :type: datetime NrJ)rCr!rErErFr!s cCs|jS)z Gets the time_usage_ended of this ReportQuery. The usage end time. :return: The time_usage_ended of this ReportQuery. :rtype: datetime r9rIrErErFr"s zReportQuery.time_usage_endedcCs ||_dS)z Sets the time_usage_ended of this ReportQuery. The usage end time. :param time_usage_ended: The time_usage_ended of this ReportQuery. :type: datetime NrK)rCr"rErErFr"s cCs|jS)a  **[Required]** Gets the granularity of this ReportQuery. The usage granularity. HOURLY - Hourly data aggregation. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. TOTAL - Not yet supported. Allowed values for this property are: "HOURLY", "DAILY", "MONTHLY", "TOTAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The granularity of this ReportQuery. :rtype: str )r:rIrErErFr# szReportQuery.granularitycCs gd}t||sd}||_dS)aQ Sets the granularity of this ReportQuery. The usage granularity. HOURLY - Hourly data aggregation. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. TOTAL - Not yet supported. :param granularity: The granularity of this ReportQuery. :type: str )rrr r UNKNOWN_ENUM_VALUEN)rr:)rCr#allowed_valuesrErErFr#s cCs|jS)a Gets the is_aggregate_by_time of this ReportQuery. Whether aggregated by time. If isAggregateByTime is true, all usage/cost over the query time period will be added up. :return: The is_aggregate_by_time of this ReportQuery. :rtype: bool r;rIrErErFr$1s z ReportQuery.is_aggregate_by_timecCs ||_dS)a+ Sets the is_aggregate_by_time of this ReportQuery. Whether aggregated by time. If isAggregateByTime is true, all usage/cost over the query time period will be added up. :param is_aggregate_by_time: The is_aggregate_by_time of this ReportQuery. :type: bool NrN)rCr$rErErFr$=s cCs|jS)z Gets the forecast of this ReportQuery. :return: The forecast of this ReportQuery. :rtype: oci.usage_api.models.Forecast r<rIrErErFr%IszReportQuery.forecastcCs ||_dS)z Sets the forecast of this ReportQuery. :param forecast: The forecast of this ReportQuery. :type: oci.usage_api.models.Forecast NrO)rCr%rErErFr%SscCs|jS)a Gets the query_type of this ReportQuery. The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Credit - Query the credit adjustments data. ExpiredCredit - Query the expired credits data AllCredit - Query the credit adjustments and expired credit Allowed values for this property are: "USAGE", "COST", "CREDIT", "EXPIREDCREDIT", "ALLCREDIT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The query_type of this ReportQuery. :rtype: str )r=rIrErErFr&]szReportQuery.query_typecCs gd}t||sd}||_dS)a Sets the query_type of this ReportQuery. The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Credit - Query the credit adjustments data. ExpiredCredit - Query the expired credits data AllCredit - Query the credit adjustments and expired credit :param query_type: The query_type of this ReportQuery. :type: str )r r r rrrLN)rr=)rCr&rMrErErFr&qs cCs|jS)a Gets the group_by of this ReportQuery. Aggregate the result by. example: `["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]` :return: The group_by of this ReportQuery. :rtype: list[str] r>rIrErErFr'szReportQuery.group_bycCs ||_dS)a Sets the group_by of this ReportQuery. Aggregate the result by. 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 ReportQuery. :type: list[str] NrP)rCr'rErErFr'scCs|jS)am Gets the group_by_tag of this ReportQuery. 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 ReportQuery. :rtype: list[oci.usage_api.models.Tag] r?rIrErErFr(s zReportQuery.group_by_tagcCs ||_dS)ax Sets the group_by_tag of this ReportQuery. 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 ReportQuery. :type: list[oci.usage_api.models.Tag] NrQ)rCr(rErErFr(s cCs|jS)z Gets the compartment_depth of this ReportQuery. The compartment depth level. :return: The compartment_depth of this ReportQuery. :rtype: float r@rIrErErFr)s zReportQuery.compartment_depthcCs ||_dS)z Sets the compartment_depth of this ReportQuery. The compartment depth level. :param compartment_depth: The compartment_depth of this ReportQuery. :type: float NrR)rCr)rErErFr)s cCs|jS)z Gets the filter of this ReportQuery. :return: The filter of this ReportQuery. :rtype: oci.usage_api.models.Filter rArIrErErFr*szReportQuery.filtercCs ||_dS)z Sets the filter of this ReportQuery. :param filter: The filter of this ReportQuery. :type: oci.usage_api.models.Filter NrS)rCr*rErErFr*scCs|jS)a0 Gets the date_range_name of this ReportQuery. The UI date range, for example, LAST_THREE_MONTHS. Conflicts with timeUsageStarted and timeUsageEnded. Allowed values for this property are: "LAST_SEVEN_DAYS", "LAST_TEN_DAYS", "MTD", "LAST_TWO_MONTHS", "LAST_THREE_MONTHS", "ALL", "LAST_SIX_MONTHS", "LAST_ONE_YEAR", "YTD", "CUSTOM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The date_range_name of this ReportQuery. :rtype: str )rBrIrErErFr+s zReportQuery.date_range_namecCs gd}t||sd}||_dS)a  Sets the date_range_name of this ReportQuery. The UI date range, for example, LAST_THREE_MONTHS. Conflicts with timeUsageStarted and timeUsageEnded. :param date_range_name: The date_range_name of this ReportQuery. :type: str ) rrrrrrrrrrrLN)rrB)rCr+rMrErErFr+s  cCst|SN)rrIrErErF__repr__ szReportQuery.__repr__cCs|dur dS|j|jkS)NF)__dict__rCotherrErErF__eq__szReportQuery.__eq__cCs ||k SrTrErWrErErF__ne__szReportQuery.__ne__N))__name__ __module__ __qualname____doc__GRANULARITY_HOURLYGRANULARITY_DAILYGRANULARITY_MONTHLYGRANULARITY_TOTALQUERY_TYPE_USAGEQUERY_TYPE_COSTQUERY_TYPE_CREDITQUERY_TYPE_EXPIREDCREDITQUERY_TYPE_ALLCREDITDATE_RANGE_NAME_LAST_SEVEN_DAYSDATE_RANGE_NAME_LAST_TEN_DAYSDATE_RANGE_NAME_MTDDATE_RANGE_NAME_LAST_TWO_MONTHS!DATE_RANGE_NAME_LAST_THREE_MONTHSDATE_RANGE_NAME_ALLDATE_RANGE_NAME_LAST_SIX_MONTHSDATE_RANGE_NAME_LAST_ONE_YEARDATE_RANGE_NAME_YTDDATE_RANGE_NAME_CUSTOMrGpropertyr setterr!r"r#r$r%r&r'r(r)r*r+rUrYrZrErErErFr sg                        rN)oci.utilrrroci.decoratorsrobjectrrErErErFs