From ee547c19a01a13d5259fc121c7b782175314bc60 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Thu, 23 Jan 2025 14:57:57 -0500 Subject: [PATCH 1/2] update docs action version --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3af973ef896..345c278512f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,7 +48,7 @@ jobs: - name: Compress docs run: tar czf doc.tar.gz doc - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: documentation path: doc.tar.gz @@ -61,7 +61,7 @@ jobs: - build steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: documentation path: doc From 2ac0f1c176ee06184c8410bad7189b3e605fb4d4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 23 Jan 2025 20:02:03 +0000 Subject: [PATCH 2/2] Regenerate client from commit f985f8bc of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 3 --- examples/v2/usage-metering/GetBillingDimensionMapping.rb | 3 --- features/v2/usage_metering.feature | 6 ++---- lib/datadog_api_client/configuration.rb | 1 - lib/datadog_api_client/v2/api/usage_metering_api.rb | 6 ------ 6 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index de86a3e78db..d23845cc700 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-22 15:54:16.616972", - "spec_repo_commit": "7a8ea4b1" + "regenerated": "2025-01-23 20:01:34.168001", + "spec_repo_commit": "f985f8bc" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-22 15:54:16.633227", - "spec_repo_commit": "7a8ea4b1" + "regenerated": "2025-01-23 20:01:34.184805", + "spec_repo_commit": "f985f8bc" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a06d74ae8e6..169379ce234 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -47793,9 +47793,6 @@ paths: operator: OR permissions: - usage_read - x-unstable: '**Note**: This endpoint is in Preview. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v2/usage/cost_by_org: get: deprecated: true diff --git a/examples/v2/usage-metering/GetBillingDimensionMapping.rb b/examples/v2/usage-metering/GetBillingDimensionMapping.rb index 58ed76f3be8..4ee87c561de 100644 --- a/examples/v2/usage-metering/GetBillingDimensionMapping.rb +++ b/examples/v2/usage-metering/GetBillingDimensionMapping.rb @@ -1,8 +1,5 @@ # Get billing dimension mapping for usage endpoints returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.get_billing_dimension_mapping".to_sym] = true -end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_billing_dimension_mapping() diff --git a/features/v2/usage_metering.feature b/features/v2/usage_metering.feature index 5250338210c..5fcf64d8ebe 100644 --- a/features/v2/usage_metering.feature +++ b/features/v2/usage_metering.feature @@ -50,15 +50,13 @@ Feature: Usage Metering @team:DataDog/revenue-query Scenario: Get billing dimension mapping for usage endpoints returns "Bad Request" response - Given operation "GetBillingDimensionMapping" enabled - And new "GetBillingDimensionMapping" request + Given new "GetBillingDimensionMapping" request When the request is sent Then the response status is 400 Bad Request @skip @team:DataDog/revenue-query Scenario: Get billing dimension mapping for usage endpoints returns "OK" response - Given operation "GetBillingDimensionMapping" enabled - And new "GetBillingDimensionMapping" request + Given new "GetBillingDimensionMapping" request When the request is sent Then the response status is 200 OK diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index a21a1945b48..5183ca639c9 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -203,7 +203,6 @@ def initialize "v2.list_apps": false, "v2.update_app": false, "v2.get_active_billing_dimensions": false, - "v2.get_billing_dimension_mapping": false, "v2.get_monthly_cost_attribution": false, "v2.cancel_data_deletion_request": false, "v2.create_data_deletion_request": false, 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 f35c72c3828..6071f8e63bf 100644 --- a/lib/datadog_api_client/v2/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v2/api/usage_metering_api.rb @@ -109,12 +109,6 @@ def get_billing_dimension_mapping(opts = {}) # @option opts [String] :filter_view String to specify whether to retrieve active billing dimension mappings for the contract or for all available mappings. Allowed views have the string `active` or `all`. Defaults to `active`. # @return [Array<(BillingDimensionsMappingResponse, Integer, Hash)>] BillingDimensionsMappingResponse data, response status code and response headers def get_billing_dimension_mapping_with_http_info(opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.get_billing_dimension_mapping".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_billing_dimension_mapping") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_billing_dimension_mapping")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_billing_dimension_mapping ...'