Skip to content

Commit d7ec92c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a492a6f8 of spec repo
1 parent ce3577d commit d7ec92c

File tree

7 files changed

+8
-36
lines changed

7 files changed

+8
-36
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-01-28 14:57:26.078176",
8-
"spec_repo_commit": "f832f43e"
7+
"regenerated": "2025-01-28 19:55:39.563163",
8+
"spec_repo_commit": "a492a6f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-28 14:57:26.093845",
13-
"spec_repo_commit": "f832f43e"
12+
"regenerated": "2025-01-28 19:55:39.578725",
13+
"spec_repo_commit": "a492a6f8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34557,9 +34557,6 @@ paths:
3455734557
operator: OR
3455834558
permissions:
3455934559
- usage_read
34560-
x-unstable: '**Note**: This endpoint is in public beta.
34561-
34562-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3456334560
/api/v2/cost_by_tag/monthly_cost_attribution:
3456434561
get:
3456534562
description: "Get monthly cost attribution by tag across multi-org and single
@@ -34685,9 +34682,6 @@ paths:
3468534682
operator: OR
3468634683
permissions:
3468734684
- usage_read
34688-
x-unstable: '**Note**: This endpoint is in public beta.
34689-
34690-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3469134685
/api/v2/csm/onboarding/agents:
3469234686
get:
3469334687
description: Get the list of all CSM Agents running on your hosts and containers.

examples/v2/usage-metering/GetActiveBillingDimensions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getActiveBillingDimensions"] = true;
98
const apiInstance = new v2.UsageMeteringApi(configuration);
109

1110
apiInstance

examples/v2/usage-metering/GetMonthlyCostAttribution.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.getMonthlyCostAttribution"] = true;
98
const apiInstance = new v2.UsageMeteringApi(configuration);
109

1110
const params: v2.UsageMeteringApiGetMonthlyCostAttributionRequest = {

features/v2/usage_metering.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Feature: Usage Metering
1616

1717
@replay-only @team:DataDog/revenue-query
1818
Scenario: Get Monthly Cost Attribution returns "Bad Request" response
19-
Given operation "GetMonthlyCostAttribution" enabled
20-
And new "GetMonthlyCostAttribution" request
19+
Given new "GetMonthlyCostAttribution" request
2120
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
2221
And request contains "fields" parameter with value "not_a_product"
2322
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -26,8 +25,7 @@ Feature: Usage Metering
2625

2726
@replay-only @team:DataDog/revenue-query
2827
Scenario: Get Monthly Cost Attribution returns "OK" response
29-
Given operation "GetMonthlyCostAttribution" enabled
30-
And new "GetMonthlyCostAttribution" request
28+
Given new "GetMonthlyCostAttribution" request
3129
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
3230
And request contains "fields" parameter with value "infra_host_total_cost"
3331
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -36,15 +34,13 @@ Feature: Usage Metering
3634

3735
@generated @skip @team:DataDog/revenue-query
3836
Scenario: Get active billing dimensions for cost attribution returns "Bad Request" response
39-
Given operation "GetActiveBillingDimensions" enabled
40-
And new "GetActiveBillingDimensions" request
37+
Given new "GetActiveBillingDimensions" request
4138
When the request is sent
4239
Then the response status is 400 Bad Request
4340

4441
@team:DataDog/revenue-query
4542
Scenario: Get active billing dimensions for cost attribution returns "OK" response
46-
Given operation "GetActiveBillingDimensions" enabled
47-
And new "GetActiveBillingDimensions" request
43+
Given new "GetActiveBillingDimensions" request
4844
When the request is sent
4945
Then the response status is 200 OK
5046

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@ export function createConfiguration(
235235
"v2.publishApp": false,
236236
"v2.unpublishApp": false,
237237
"v2.updateApp": false,
238-
"v2.getActiveBillingDimensions": false,
239-
"v2.getMonthlyCostAttribution": false,
240238
"v2.cancelDataDeletionRequest": false,
241239
"v2.createDataDeletionRequest": false,
242240
"v2.getDataDeletionRequests": false,

packages/datadog-api-client-v2/apis/UsageMeteringApi.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
3434
): Promise<RequestContext> {
3535
const _config = _options || this.configuration;
3636

37-
logger.warn("Using unstable operation 'getActiveBillingDimensions'");
38-
if (!_config.unstableOperations["v2.getActiveBillingDimensions"]) {
39-
throw new Error(
40-
"Unstable operation 'getActiveBillingDimensions' is disabled"
41-
);
42-
}
43-
4437
// Path Params
4538
const localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions";
4639

@@ -435,13 +428,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
435428
): Promise<RequestContext> {
436429
const _config = _options || this.configuration;
437430

438-
logger.warn("Using unstable operation 'getMonthlyCostAttribution'");
439-
if (!_config.unstableOperations["v2.getMonthlyCostAttribution"]) {
440-
throw new Error(
441-
"Unstable operation 'getMonthlyCostAttribution' is disabled"
442-
);
443-
}
444-
445431
// verify required parameter 'startMonth' is not null or undefined
446432
if (startMonth === null || startMonth === undefined) {
447433
throw new RequiredError("startMonth", "getMonthlyCostAttribution");

0 commit comments

Comments
 (0)