Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove preview status for GetBillingDimensionMapping endpoint #2205

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
3 changes: 0 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
nkzou marked this conversation as resolved.
Show resolved Hide resolved
with:
name: documentation
path: doc.tar.gz
Expand All @@ -61,7 +61,7 @@ jobs:
- build

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
nkzou marked this conversation as resolved.
Show resolved Hide resolved
with:
name: documentation
path: doc
Expand Down
3 changes: 0 additions & 3 deletions examples/v2/usage-metering/GetBillingDimensionMapping.rb
Original file line number Diff line number Diff line change
@@ -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()
6 changes: 2 additions & 4 deletions features/v2/usage_metering.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 0 additions & 6 deletions lib/datadog_api_client/v2/api/usage_metering_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...'
Expand Down
Loading