diff --git a/.apigentools-info b/.apigentools-info index 0dc83cea15a8..9d240e007c26 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-07-15 12:26:22.259153", - "spec_repo_commit": "d854c667" + "regenerated": "2022-07-18 17:54:18.638583", + "spec_repo_commit": "f486a915" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-07-15 12:26:22.275913", - "spec_repo_commit": "d854c667" + "regenerated": "2022-07-18 17:54:18.655829", + "spec_repo_commit": "f486a915" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 39e603e6c272..aba0323979ad 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -27461,9 +27461,6 @@ paths: x-menu-order: 30 x-undo: type: safe - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v1/usage/incident-management: get: description: Get hourly usage for incident management. @@ -27989,9 +27986,6 @@ paths: x-menu-order: 31 x-undo: type: safe - x-unstable: '**Note**: This endpoint is in public beta. - - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).' /api/v1/usage/network_flows: get: description: Get hourly usage for network flows. diff --git a/examples/v1/usage-metering/GetHourlyUsageAttribution.rb b/examples/v1/usage-metering/GetHourlyUsageAttribution.rb index a5593901a901..100be65e1dc3 100644 --- a/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +++ b/examples/v1/usage-metering/GetHourlyUsageAttribution.rb @@ -1,8 +1,5 @@ # Get hourly usage attribution returns "OK" response require "datadog_api_client" -DatadogAPIClient::V2.configure do |config| - config.unstable_operations[:get_hourly_usage_attribution] = true -end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_hourly_usage_attribution((Time.now + -3 * 86400), HourlyUsageAttributionUsageType::INFRA_HOST_USAGE) diff --git a/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb b/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb index 066d78ad0fda..22009ff19049 100644 --- a/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +++ b/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb @@ -1,8 +1,5 @@ # Get monthly usage attribution returns "OK" response require "datadog_api_client" -DatadogAPIClient::V2.configure do |config| - config.unstable_operations[:get_monthly_usage_attribution] = true -end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_monthly_usage_attribution((Time.now + -3 * 86400), MonthlyUsageAttributionSupportedMetrics::INFRA_HOST_USAGE) diff --git a/features/v1/usage_metering.feature b/features/v1/usage_metering.feature index 990d8da80f3f..619f0170e9ab 100644 --- a/features/v1/usage_metering.feature +++ b/features/v1/usage_metering.feature @@ -57,8 +57,7 @@ Feature: Usage Metering @skip @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage attribution returns "Bad Request" response - Given operation "GetHourlyUsageAttribution" enabled - And new "GetHourlyUsageAttribution" request + Given new "GetHourlyUsageAttribution" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" And request contains "usage_type" parameter with value "not_a_product" When the request is sent @@ -66,8 +65,7 @@ Feature: Usage Metering @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage attribution returns "OK" response - Given operation "GetHourlyUsageAttribution" enabled - And new "GetHourlyUsageAttribution" request + Given new "GetHourlyUsageAttribution" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" And request contains "usage_type" parameter with value "infra_host_usage" When the request is sent @@ -507,8 +505,7 @@ Feature: Usage Metering @skip @team:DataDog/red-zone-revenue-query Scenario: Get monthly usage attribution returns "Bad Request" response - Given operation "GetMonthlyUsageAttribution" enabled - And new "GetMonthlyUsageAttribution" request + Given new "GetMonthlyUsageAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" And request contains "fields" parameter with value "not_a_product" When the request is sent @@ -516,8 +513,7 @@ Feature: Usage Metering @team:DataDog/red-zone-revenue-query Scenario: Get monthly usage attribution returns "OK" response - Given operation "GetMonthlyUsageAttribution" enabled - And new "GetMonthlyUsageAttribution" request + Given new "GetMonthlyUsageAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" And request contains "fields" parameter with value "infra_host_usage" When the request is sent diff --git a/lib/datadog_api_client/v1/configuration.rb b/lib/datadog_api_client/v1/configuration.rb index 8a77035305f1..8f12d42d2211 100644 --- a/lib/datadog_api_client/v1/configuration.rb +++ b/lib/datadog_api_client/v1/configuration.rb @@ -165,8 +165,6 @@ def initialize search_slo: false, get_slo_history: false, get_usage_attribution: false, - get_hourly_usage_attribution: false, - get_monthly_usage_attribution: false, } @server_variables[:site] = ENV['DD_SITE'] if ENV.key? 'DD_SITE' @api_key['apiKeyAuth'] = ENV['DD_API_KEY'] if ENV.key? 'DD_API_KEY'