Skip to content

Commit

Permalink
Remove preview status for GetBillingDimensionMapping endpoint (#2014)
Browse files Browse the repository at this point in the history
* update docs action version

* Regenerate client from commit f985f8bc of spec repo

---------

Co-authored-by: Kevin Zou <[email protected]>
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2025
1 parent fcf6600 commit 93d1abc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 22 deletions.
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:14.847003",
"spec_repo_commit": "7a8ea4b1"
"regenerated": "2025-01-23 20:01:31.168629",
"spec_repo_commit": "f985f8bc"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-22 15:54:14.862105",
"spec_repo_commit": "7a8ea4b1"
"regenerated": "2025-01-23 20:01:31.184080",
"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 @@ -32,7 +32,7 @@ jobs:
- name: Compress docs
run: tar czf docs.tar.gz docs

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: documentation
path: docs.tar.gz
Expand All @@ -45,7 +45,7 @@ jobs:
- build

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: documentation
path: docs
Expand Down
1 change: 0 additions & 1 deletion examples/v2/usage-metering/GetBillingDimensionMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
configuration.unstableOperations["v2.getBillingDimensionMapping"] = true;
const apiInstance = new v2.UsageMeteringApi(configuration);

apiInstance
Expand Down
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 packages/datadog-api-client-common/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export function createConfiguration(
"v2.listApps": false,
"v2.updateApp": false,
"v2.getActiveBillingDimensions": false,
"v2.getBillingDimensionMapping": false,
"v2.getMonthlyCostAttribution": false,
"v2.cancelDataDeletionRequest": false,
"v2.createDataDeletionRequest": false,
Expand Down
7 changes: 0 additions & 7 deletions packages/datadog-api-client-v2/apis/UsageMeteringApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
): Promise<RequestContext> {
const _config = _options || this.configuration;

logger.warn("Using unstable operation 'getBillingDimensionMapping'");
if (!_config.unstableOperations["v2.getBillingDimensionMapping"]) {
throw new Error(
"Unstable operation 'getBillingDimensionMapping' is disabled"
);
}

// Path Params
const localVarPath = "/api/v2/usage/billing_dimension_mapping";

Expand Down

0 comments on commit 93d1abc

Please sign in to comment.