From bcff98fdb0bd702b6dc9922f6204d7095c652373 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 21 Aug 2025 16:44:11 +0000 Subject: [PATCH] Regenerate client from commit 1211759 of spec repo --- .generated-info | 4 ++-- .generator/schemas/v2/openapi.yaml | 15 +++++++++++++-- features/scenarios_model_mapping.rb | 3 +++ .../v2/api/usage_metering_api.rb | 4 +++- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.generated-info b/.generated-info index 2bd9fe63b481..64de1f6c926e 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4413e63", - "generated": "2025-08-19 20:28:34.170" + "spec_repo_commit": "1211759", + "generated": "2025-08-21 16:44:11.566" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5dc52e4a2ee2..3c4fa5920b39 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/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index d01d9fa86310..d787e71d1c29 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -1514,6 +1514,9 @@ "cloud_account_id" => "Integer", "body" => "GCPUsageCostConfigPatchRequest", }, + "v2.GetActiveBillingDimensions" => { + "month" => "Time", + }, "v2.GetMonthlyCostAttribution" => { "start_month" => "Time", "end_month" => "Time", diff --git a/lib/datadog_api_client/v2/api/usage_metering_api.rb b/lib/datadog_api_client/v2/api/usage_metering_api.rb index dba4335807e5..b9407c665bae 100644 --- a/lib/datadog_api_client/v2/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v2/api/usage_metering_api.rb @@ -33,9 +33,10 @@ def get_active_billing_dimensions(opts = {}) # 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 opts [Hash] the optional parameters + # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing dimensions active this month. Defaults to the current month. # @return [Array<(ActiveBillingDimensionsResponse, Integer, Hash)>] ActiveBillingDimensionsResponse data, response status code and response headers def get_active_billing_dimensions_with_http_info(opts = {}) @@ -47,6 +48,7 @@ def get_active_billing_dimensions_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'month'] = opts[:'month'] if !opts[:'month'].nil? # header parameters header_params = opts[:header_params] || {}