Skip to content

Commit c64e60b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a957cd49 of spec repo (#798)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 0b7987b commit c64e60b

File tree

10 files changed

+52
-82
lines changed

10 files changed

+52
-82
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.2",
7-
"regenerated": "2022-08-16 17:55:54.626149",
8-
"spec_repo_commit": "56625080"
7+
"regenerated": "2022-08-17 14:32:15.239932",
8+
"spec_repo_commit": "a957cd49"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-08-16 17:55:54.644009",
13-
"spec_repo_commit": "56625080"
12+
"regenerated": "2022-08-17 14:32:15.256391",
13+
"spec_repo_commit": "a957cd49"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17919,7 +17919,12 @@ paths:
1791917919
/api/v1/daily_custom_reports:
1792017920
get:
1792117921
deprecated: true
17922-
description: Get daily custom reports.
17922+
description: 'Get daily custom reports.
17923+
17924+
**Note:** This endpoint will be fully deprecated on December 1, 2022.
17925+
17926+
Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/)
17927+
for the associated migration guide.'
1792317928
operationId: GetDailyCustomReports
1792417929
parameters:
1792517930
- description: The number of files to return in the response. `[default=60]`.
@@ -17979,13 +17984,15 @@ paths:
1797917984
x-menu-order: 41
1798017985
x-undo:
1798117986
type: safe
17982-
x-unstable: '**Note**: This endpoint is in public beta.
17983-
17984-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1798517987
/api/v1/daily_custom_reports/{report_id}:
1798617988
get:
1798717989
deprecated: true
17988-
description: Get specified daily custom reports.
17990+
description: 'Get specified daily custom reports.
17991+
17992+
**Note:** This endpoint will be fully deprecated on December 1, 2022.
17993+
17994+
Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/)
17995+
for the associated migration guide.'
1798917996
operationId: GetSpecifiedDailyCustomReports
1799017997
parameters:
1799117998
- description: Date of the report in the format `YYYY-MM-DD`.
@@ -18030,9 +18037,6 @@ paths:
1803018037
x-menu-order: 42
1803118038
x-undo:
1803218039
type: safe
18033-
x-unstable: '**Note**: This endpoint is in public beta.
18034-
18035-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1803618040
/api/v1/dashboard:
1803718041
delete:
1803818042
description: Delete dashboards using the specified IDs. If there are any failures,
@@ -23175,7 +23179,12 @@ paths:
2317523179
/api/v1/monthly_custom_reports:
2317623180
get:
2317723181
deprecated: true
23178-
description: Get monthly custom reports.
23182+
description: 'Get monthly custom reports.
23183+
23184+
**Note:** This endpoint will be fully deprecated on December 1, 2022.
23185+
23186+
Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/)
23187+
for the associated migration guide.'
2317923188
operationId: GetMonthlyCustomReports
2318023189
parameters:
2318123190
- description: The number of files to return in the response `[default=60].`
@@ -23235,13 +23244,15 @@ paths:
2323523244
x-menu-order: 43
2323623245
x-undo:
2323723246
type: safe
23238-
x-unstable: '**Note**: This endpoint is in public beta.
23239-
23240-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2324123247
/api/v1/monthly_custom_reports/{report_id}:
2324223248
get:
2324323249
deprecated: true
23244-
description: Get specified monthly custom reports.
23250+
description: 'Get specified monthly custom reports.
23251+
23252+
**Note:** This endpoint will be fully deprecated on December 1, 2022.
23253+
23254+
Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/)
23255+
for the associated migration guide.'
2324523256
operationId: GetSpecifiedMonthlyCustomReports
2324623257
parameters:
2324723258
- description: Date of the report in the format `YYYY-MM-DD`.
@@ -23292,9 +23303,6 @@ paths:
2329223303
x-menu-order: 44
2329323304
x-undo:
2329423305
type: safe
23295-
x-unstable: '**Note**: This endpoint is in public beta.
23296-
23297-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2329823306
/api/v1/notebooks:
2329923307
get:
2330023308
description: 'Get all notebooks. This can also be used to search for notebooks
@@ -26820,7 +26828,12 @@ paths:
2682026828
/api/v1/usage/attribution:
2682126829
get:
2682226830
deprecated: true
26823-
description: Get usage attribution.
26831+
description: 'Get usage attribution.
26832+
26833+
**Note:** This endpoint will be fully deprecated on December 1, 2022.
26834+
26835+
Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/)
26836+
for the associated migration guide.'
2682426837
operationId: GetUsageAttribution
2682526838
parameters:
2682626839
- description: 'Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]`
@@ -26909,9 +26922,6 @@ paths:
2690926922
x-menu-order: 40
2691026923
x-undo:
2691126924
type: safe
26912-
x-unstable: '**Note**: This endpoint is in public beta.
26913-
26914-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2691526925
/api/v1/usage/audit_logs:
2691626926
get:
2691726927
description: 'Get hourly usage for audit logs.

examples/v1/usage-metering/GetDailyCustomReports.ts

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

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

1110
apiInstance

examples/v1/usage-metering/GetMonthlyCustomReports.ts

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

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

1110
apiInstance

examples/v1/usage-metering/GetSpecifiedDailyCustomReports.ts

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

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

1110
const params: v1.UsageMeteringApiGetSpecifiedDailyCustomReportsRequest = {

examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.ts

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

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

1110
const params: v1.UsageMeteringApiGetSpecifiedMonthlyCustomReportsRequest = {

examples/v1/usage-metering/GetUsageAttribution.ts

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

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

1110
const params: v1.UsageMeteringApiGetUsageAttributionRequest = {

features/v1/usage_metering.feature

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -675,55 +675,48 @@ Feature: Usage Metering
675675

676676
@generated @skip @team:DataDog/red-zone-revenue-query
677677
Scenario: Get specified daily custom reports returns "Not Found" response
678-
Given operation "GetSpecifiedDailyCustomReports" enabled
679-
And new "GetSpecifiedDailyCustomReports" request
678+
Given new "GetSpecifiedDailyCustomReports" request
680679
And request contains "report_id" parameter from "REPLACE.ME"
681680
When the request is sent
682681
Then the response status is 404 Not Found
683682

684683
@replay-only @team:DataDog/red-zone-revenue-query
685684
Scenario: Get specified daily custom reports returns "OK" response
686-
Given operation "GetSpecifiedDailyCustomReports" enabled
687-
And new "GetSpecifiedDailyCustomReports" request
685+
Given new "GetSpecifiedDailyCustomReports" request
688686
And request contains "report_id" parameter with value "2022-03-20"
689687
When the request is sent
690688
Then the response status is 200 OK
691689

692690
@generated @skip @team:DataDog/red-zone-revenue-query
693691
Scenario: Get specified monthly custom reports returns "Bad Request" response
694-
Given operation "GetSpecifiedMonthlyCustomReports" enabled
695-
And new "GetSpecifiedMonthlyCustomReports" request
692+
Given new "GetSpecifiedMonthlyCustomReports" request
696693
And request contains "report_id" parameter from "REPLACE.ME"
697694
When the request is sent
698695
Then the response status is 400 Bad Request
699696

700697
@generated @skip @team:DataDog/red-zone-revenue-query
701698
Scenario: Get specified monthly custom reports returns "Not Found" response
702-
Given operation "GetSpecifiedMonthlyCustomReports" enabled
703-
And new "GetSpecifiedMonthlyCustomReports" request
699+
Given new "GetSpecifiedMonthlyCustomReports" request
704700
And request contains "report_id" parameter from "REPLACE.ME"
705701
When the request is sent
706702
Then the response status is 404 Not Found
707703

708704
@replay-only @team:DataDog/red-zone-revenue-query
709705
Scenario: Get specified monthly custom reports returns "OK" response
710-
Given operation "GetSpecifiedMonthlyCustomReports" enabled
711-
And new "GetSpecifiedMonthlyCustomReports" request
706+
Given new "GetSpecifiedMonthlyCustomReports" request
712707
And request contains "report_id" parameter with value "2021-05-01"
713708
When the request is sent
714709
Then the response status is 200 OK
715710

716711
@team:DataDog/red-zone-revenue-query
717712
Scenario: Get the list of available daily custom reports returns "OK" response
718-
Given operation "GetDailyCustomReports" enabled
719-
And new "GetDailyCustomReports" request
713+
Given new "GetDailyCustomReports" request
720714
When the request is sent
721715
Then the response status is 200 OK
722716

723717
@team:DataDog/red-zone-revenue-query
724718
Scenario: Get the list of available monthly custom reports returns "OK" response
725-
Given operation "GetMonthlyCustomReports" enabled
726-
And new "GetMonthlyCustomReports" request
719+
Given new "GetMonthlyCustomReports" request
727720
When the request is sent
728721
Then the response status is 200 OK
729722

@@ -743,8 +736,7 @@ Feature: Usage Metering
743736

744737
@team:DataDog/red-zone-revenue-query
745738
Scenario: Get usage attribution returns "OK" response
746-
Given operation "GetUsageAttribution" enabled
747-
And new "GetUsageAttribution" request
739+
Given new "GetUsageAttribution" request
748740
And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}"
749741
And request contains "fields" parameter with value "*"
750742
And request contains "offset" parameter with value 0

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ export function createConfiguration(
103103
serverIndex: conf.serverIndex || 0,
104104
operationServerIndices: conf.operationServerIndices || {},
105105
unstableOperations: {
106-
"v1.getDailyCustomReports": false,
107-
"v1.getMonthlyCustomReports": false,
108-
"v1.getSpecifiedDailyCustomReports": false,
109-
"v1.getSpecifiedMonthlyCustomReports": false,
110-
"v1.getUsageAttribution": false,
111106
"v1.getSLOHistory": false,
112107
"v1.searchSLO": false,
113108
"v2.listEvents": false,

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

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
ResponseContext,
1414
} from "../../datadog-api-client-common/http/http";
1515

16-
import { logger } from "../../../logger";
1716
import { ObjectSerializer } from "../models/ObjectSerializer";
1817
import { ApiException } from "../../datadog-api-client-common/exception";
1918
import { isCodeInRange } from "../../datadog-api-client-common/util";
@@ -72,11 +71,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
7271
): Promise<RequestContext> {
7372
const _config = _options || this.configuration;
7473

75-
logger.warn("Using unstable operation 'getDailyCustomReports'");
76-
if (!_config.unstableOperations["v1.getDailyCustomReports"]) {
77-
throw new Error("Unstable operation 'getDailyCustomReports' is disabled");
78-
}
79-
8074
// Path Params
8175
const localVarPath = "/api/v1/daily_custom_reports";
8276

@@ -331,13 +325,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
331325
): Promise<RequestContext> {
332326
const _config = _options || this.configuration;
333327

334-
logger.warn("Using unstable operation 'getMonthlyCustomReports'");
335-
if (!_config.unstableOperations["v1.getMonthlyCustomReports"]) {
336-
throw new Error(
337-
"Unstable operation 'getMonthlyCustomReports' is disabled"
338-
);
339-
}
340-
341328
// Path Params
342329
const localVarPath = "/api/v1/monthly_custom_reports";
343330

@@ -503,13 +490,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
503490
): Promise<RequestContext> {
504491
const _config = _options || this.configuration;
505492

506-
logger.warn("Using unstable operation 'getSpecifiedDailyCustomReports'");
507-
if (!_config.unstableOperations["v1.getSpecifiedDailyCustomReports"]) {
508-
throw new Error(
509-
"Unstable operation 'getSpecifiedDailyCustomReports' is disabled"
510-
);
511-
}
512-
513493
// verify required parameter 'reportId' is not null or undefined
514494
if (reportId === null || reportId === undefined) {
515495
throw new RequiredError(
@@ -550,13 +530,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
550530
): Promise<RequestContext> {
551531
const _config = _options || this.configuration;
552532

553-
logger.warn("Using unstable operation 'getSpecifiedMonthlyCustomReports'");
554-
if (!_config.unstableOperations["v1.getSpecifiedMonthlyCustomReports"]) {
555-
throw new Error(
556-
"Unstable operation 'getSpecifiedMonthlyCustomReports' is disabled"
557-
);
558-
}
559-
560533
// verify required parameter 'reportId' is not null or undefined
561534
if (reportId === null || reportId === undefined) {
562535
throw new RequiredError(
@@ -656,11 +629,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
656629
): Promise<RequestContext> {
657630
const _config = _options || this.configuration;
658631

659-
logger.warn("Using unstable operation 'getUsageAttribution'");
660-
if (!_config.unstableOperations["v1.getUsageAttribution"]) {
661-
throw new Error("Unstable operation 'getUsageAttribution' is disabled");
662-
}
663-
664632
// verify required parameter 'startMonth' is not null or undefined
665633
if (startMonth === null || startMonth === undefined) {
666634
throw new RequiredError(
@@ -5256,6 +5224,8 @@ export class UsageMeteringApi {
52565224

52575225
/**
52585226
* Get daily custom reports.
5227+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
5228+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
52595229
* @param param The request object
52605230
*/
52615231
public getDailyCustomReports(
@@ -5368,6 +5338,8 @@ export class UsageMeteringApi {
53685338

53695339
/**
53705340
* Get monthly custom reports.
5341+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
5342+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
53715343
* @param param The request object
53725344
*/
53735345
public getMonthlyCustomReports(
@@ -5439,6 +5411,8 @@ export class UsageMeteringApi {
54395411

54405412
/**
54415413
* Get specified daily custom reports.
5414+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
5415+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
54425416
* @param param The request object
54435417
*/
54445418
public getSpecifiedDailyCustomReports(
@@ -5463,6 +5437,8 @@ export class UsageMeteringApi {
54635437

54645438
/**
54655439
* Get specified monthly custom reports.
5440+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
5441+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
54665442
* @param param The request object
54675443
*/
54685444
public getSpecifiedMonthlyCustomReports(
@@ -5510,6 +5486,8 @@ export class UsageMeteringApi {
55105486

55115487
/**
55125488
* Get usage attribution.
5489+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
5490+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
55135491
* @param param The request object
55145492
*/
55155493
public getUsageAttribution(

0 commit comments

Comments
 (0)