diff --git a/.generated-info b/.generated-info index 5c3c962703..f2c3b1f657 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4413e63", - "generated": "2025-08-19 20:28:38.330" + "spec_repo_commit": "1211759", + "generated": "2025-08-21 16:44:42.831" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5dc52e4a2e..3c4fa5920b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -50180,9 +50180,20 @@ paths: - cloud_cost_management_write /api/v2/cost_by_tag/active_billing_dimensions: get: - description: Get active billing dimensions for cost attribution. Cost data for - a given month becomes available no later than the 19th of the following month. + description: Get active billing dimensions for cost attribution in a given month. + Note that billing dimensions active in a given month may not appear in the + Monthly Cost Attribution API response until the 19th of the following month. + For the most accurate results, request the same month for both endpoints. operationId: GetActiveBillingDimensions + parameters: + - description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] + for billing dimensions active this month. Defaults to the current month.' + in: query + name: month + required: false + schema: + format: date-time + type: string responses: '200': content: diff --git a/src/datadog_api_client/v2/api/usage_metering_api.py b/src/datadog_api_client/v2/api/usage_metering_api.py index 42402e3c2b..9969dfdbe5 100644 --- a/src/datadog_api_client/v2/api/usage_metering_api.py +++ b/src/datadog_api_client/v2/api/usage_metering_api.py @@ -55,7 +55,13 @@ def __init__(self, api_client=None): "http_method": "GET", "version": "v2", }, - params_map={}, + params_map={ + "month": { + "openapi_types": (datetime,), + "attribute": "month", + "location": "query", + }, + }, headers_map={ "accept": ["application/json;datetime-format=rfc3339"], }, @@ -442,14 +448,21 @@ def __init__(self, api_client=None): def get_active_billing_dimensions( self, + *, + month: Union[datetime, UnsetType] = unset, ) -> ActiveBillingDimensionsResponse: """Get active billing dimensions for cost attribution. - Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month. + Get active billing dimensions for cost attribution in a given month. Note that billing dimensions active in a given month may not appear in the Monthly Cost Attribution API response until the 19th of the following month. For the most accurate results, request the same month for both endpoints. + :param month: Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing dimensions active this month. Defaults to the current month. + :type month: datetime, optional :rtype: ActiveBillingDimensionsResponse """ kwargs: Dict[str, Any] = {} + if month is not unset: + kwargs["month"] = month + return self._get_active_billing_dimensions_endpoint.call_with_http_info(**kwargs) def get_billing_dimension_mapping(