Skip to content

Commit 45cdf64

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Document new api/app key schemas (#1405)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 05e8375 commit 45cdf64

10 files changed

+260
-4
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": "2023-11-17 12:18:19.958601",
8-
"spec_repo_commit": "d2efeed9"
7+
"regenerated": "2023-11-17 18:13:28.852661",
8+
"spec_repo_commit": "46090fc1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-17 12:18:19.974563",
13-
"spec_repo_commit": "d2efeed9"
12+
"regenerated": "2023-11-17 18:13:28.867274",
13+
"spec_repo_commit": "46090fc1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,26 @@ components:
689689
items:
690690
$ref: '#/components/schemas/APIKeyResponseIncludedItem'
691691
type: array
692+
meta:
693+
$ref: '#/components/schemas/APIKeysResponseMeta'
694+
type: object
695+
APIKeysResponseMeta:
696+
description: Additional information related to api keys response.
697+
properties:
698+
max_allowed:
699+
description: Max allowed number of API keys.
700+
format: int64
701+
type: integer
702+
page:
703+
$ref: '#/components/schemas/APIKeysResponseMetaPage'
704+
type: object
705+
APIKeysResponseMetaPage:
706+
description: Additional information related to the API keys response.
707+
properties:
708+
total_filtered_count:
709+
description: Total filtered application key count.
710+
format: int64
711+
type: integer
692712
type: object
693713
APIKeysSort:
694714
default: name
@@ -833,6 +853,24 @@ components:
833853
oneOf:
834854
- $ref: '#/components/schemas/User'
835855
- $ref: '#/components/schemas/Role'
856+
ApplicationKeyResponseMeta:
857+
description: Additional information related to the application key response.
858+
properties:
859+
max_allowed_per_user:
860+
description: Max allowed number of application keys per user.
861+
format: int64
862+
type: integer
863+
page:
864+
$ref: '#/components/schemas/ApplicationKeyResponseMetaPage'
865+
type: object
866+
ApplicationKeyResponseMetaPage:
867+
description: Additional information related to the application key response.
868+
properties:
869+
total_filtered_count:
870+
description: Total filtered application key count.
871+
format: int64
872+
type: integer
873+
type: object
836874
ApplicationKeyUpdateAttributes:
837875
description: Attributes used to update an application Key.
838876
properties:
@@ -8667,6 +8705,8 @@ components:
86678705
items:
86688706
$ref: '#/components/schemas/ApplicationKeyResponseIncludedItem'
86698707
type: array
8708+
meta:
8709+
$ref: '#/components/schemas/ApplicationKeyResponseMeta'
86708710
type: object
86718711
ListDowntimesResponse:
86728712
description: Response for retrieving all downtimes.

packages/datadog-api-client-v2/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ export { APIKeyRelationships } from "./models/APIKeyRelationships";
444444
export { APIKeyResponse } from "./models/APIKeyResponse";
445445
export { APIKeyResponseIncludedItem } from "./models/APIKeyResponseIncludedItem";
446446
export { APIKeysResponse } from "./models/APIKeysResponse";
447+
export { APIKeysResponseMeta } from "./models/APIKeysResponseMeta";
448+
export { APIKeysResponseMetaPage } from "./models/APIKeysResponseMetaPage";
447449
export { APIKeysSort } from "./models/APIKeysSort";
448450
export { APIKeysType } from "./models/APIKeysType";
449451
export { APIKeyUpdateAttributes } from "./models/APIKeyUpdateAttributes";
@@ -456,6 +458,8 @@ export { ApplicationKeyCreateRequest } from "./models/ApplicationKeyCreateReques
456458
export { ApplicationKeyRelationships } from "./models/ApplicationKeyRelationships";
457459
export { ApplicationKeyResponse } from "./models/ApplicationKeyResponse";
458460
export { ApplicationKeyResponseIncludedItem } from "./models/ApplicationKeyResponseIncludedItem";
461+
export { ApplicationKeyResponseMeta } from "./models/ApplicationKeyResponseMeta";
462+
export { ApplicationKeyResponseMetaPage } from "./models/ApplicationKeyResponseMetaPage";
459463
export { ApplicationKeysSort } from "./models/ApplicationKeysSort";
460464
export { ApplicationKeysType } from "./models/ApplicationKeysType";
461465
export { ApplicationKeyUpdateAttributes } from "./models/ApplicationKeyUpdateAttributes";

packages/datadog-api-client-v2/models/APIKeysResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { APIKeyResponseIncludedItem } from "./APIKeyResponseIncludedItem";
7+
import { APIKeysResponseMeta } from "./APIKeysResponseMeta";
78
import { PartialAPIKey } from "./PartialAPIKey";
89

910
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -20,6 +21,10 @@ export class APIKeysResponse {
2021
* Array of objects related to the API key.
2122
*/
2223
"included"?: Array<APIKeyResponseIncludedItem>;
24+
/**
25+
* Additional information related to api keys response.
26+
*/
27+
"meta"?: APIKeysResponseMeta;
2328

2429
/**
2530
* @ignore
@@ -38,6 +43,10 @@ export class APIKeysResponse {
3843
baseName: "included",
3944
type: "Array<APIKeyResponseIncludedItem>",
4045
},
46+
meta: {
47+
baseName: "meta",
48+
type: "APIKeysResponseMeta",
49+
},
4150
};
4251

4352
/**
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { APIKeysResponseMetaPage } from "./APIKeysResponseMetaPage";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Additional information related to api keys response.
12+
*/
13+
export class APIKeysResponseMeta {
14+
/**
15+
* Max allowed number of API keys.
16+
*/
17+
"maxAllowed"?: number;
18+
/**
19+
* Additional information related to the API keys response.
20+
*/
21+
"page"?: APIKeysResponseMetaPage;
22+
23+
/**
24+
* @ignore
25+
*/
26+
"_unparsed"?: boolean;
27+
28+
/**
29+
* @ignore
30+
*/
31+
static readonly attributeTypeMap: AttributeTypeMap = {
32+
maxAllowed: {
33+
baseName: "max_allowed",
34+
type: "number",
35+
format: "int64",
36+
},
37+
page: {
38+
baseName: "page",
39+
type: "APIKeysResponseMetaPage",
40+
},
41+
};
42+
43+
/**
44+
* @ignore
45+
*/
46+
static getAttributeTypeMap(): AttributeTypeMap {
47+
return APIKeysResponseMeta.attributeTypeMap;
48+
}
49+
50+
public constructor() {}
51+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Additional information related to the API keys response.
11+
*/
12+
export class APIKeysResponseMetaPage {
13+
/**
14+
* Total filtered application key count.
15+
*/
16+
"totalFilteredCount"?: number;
17+
18+
/**
19+
* @ignore
20+
*/
21+
"_unparsed"?: boolean;
22+
23+
/**
24+
* @ignore
25+
*/
26+
static readonly attributeTypeMap: AttributeTypeMap = {
27+
totalFilteredCount: {
28+
baseName: "total_filtered_count",
29+
type: "number",
30+
format: "int64",
31+
},
32+
};
33+
34+
/**
35+
* @ignore
36+
*/
37+
static getAttributeTypeMap(): AttributeTypeMap {
38+
return APIKeysResponseMetaPage.attributeTypeMap;
39+
}
40+
41+
public constructor() {}
42+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { ApplicationKeyResponseMetaPage } from "./ApplicationKeyResponseMetaPage";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* Additional information related to the application key response.
12+
*/
13+
export class ApplicationKeyResponseMeta {
14+
/**
15+
* Max allowed number of application keys per user.
16+
*/
17+
"maxAllowedPerUser"?: number;
18+
/**
19+
* Additional information related to the application key response.
20+
*/
21+
"page"?: ApplicationKeyResponseMetaPage;
22+
23+
/**
24+
* @ignore
25+
*/
26+
"_unparsed"?: boolean;
27+
28+
/**
29+
* @ignore
30+
*/
31+
static readonly attributeTypeMap: AttributeTypeMap = {
32+
maxAllowedPerUser: {
33+
baseName: "max_allowed_per_user",
34+
type: "number",
35+
format: "int64",
36+
},
37+
page: {
38+
baseName: "page",
39+
type: "ApplicationKeyResponseMetaPage",
40+
},
41+
};
42+
43+
/**
44+
* @ignore
45+
*/
46+
static getAttributeTypeMap(): AttributeTypeMap {
47+
return ApplicationKeyResponseMeta.attributeTypeMap;
48+
}
49+
50+
public constructor() {}
51+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Additional information related to the application key response.
11+
*/
12+
export class ApplicationKeyResponseMetaPage {
13+
/**
14+
* Total filtered application key count.
15+
*/
16+
"totalFilteredCount"?: number;
17+
18+
/**
19+
* @ignore
20+
*/
21+
"_unparsed"?: boolean;
22+
23+
/**
24+
* @ignore
25+
*/
26+
static readonly attributeTypeMap: AttributeTypeMap = {
27+
totalFilteredCount: {
28+
baseName: "total_filtered_count",
29+
type: "number",
30+
format: "int64",
31+
},
32+
};
33+
34+
/**
35+
* @ignore
36+
*/
37+
static getAttributeTypeMap(): AttributeTypeMap {
38+
return ApplicationKeyResponseMetaPage.attributeTypeMap;
39+
}
40+
41+
public constructor() {}
42+
}

packages/datadog-api-client-v2/models/ListApplicationKeysResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { ApplicationKeyResponseIncludedItem } from "./ApplicationKeyResponseIncludedItem";
7+
import { ApplicationKeyResponseMeta } from "./ApplicationKeyResponseMeta";
78
import { PartialApplicationKey } from "./PartialApplicationKey";
89

910
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -20,6 +21,10 @@ export class ListApplicationKeysResponse {
2021
* Array of objects related to the application key.
2122
*/
2223
"included"?: Array<ApplicationKeyResponseIncludedItem>;
24+
/**
25+
* Additional information related to the application key response.
26+
*/
27+
"meta"?: ApplicationKeyResponseMeta;
2328

2429
/**
2530
* @ignore
@@ -38,6 +43,10 @@ export class ListApplicationKeysResponse {
3843
baseName: "included",
3944
type: "Array<ApplicationKeyResponseIncludedItem>",
4045
},
46+
meta: {
47+
baseName: "meta",
48+
type: "ApplicationKeyResponseMeta",
49+
},
4150
};
4251

4352
/**

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { APIKeyUpdateAttributes } from "./APIKeyUpdateAttributes";
88
import { APIKeyUpdateData } from "./APIKeyUpdateData";
99
import { APIKeyUpdateRequest } from "./APIKeyUpdateRequest";
1010
import { APIKeysResponse } from "./APIKeysResponse";
11+
import { APIKeysResponseMeta } from "./APIKeysResponseMeta";
12+
import { APIKeysResponseMetaPage } from "./APIKeysResponseMetaPage";
1113
import { ActiveBillingDimensionsAttributes } from "./ActiveBillingDimensionsAttributes";
1214
import { ActiveBillingDimensionsBody } from "./ActiveBillingDimensionsBody";
1315
import { ActiveBillingDimensionsResponse } from "./ActiveBillingDimensionsResponse";
@@ -16,6 +18,8 @@ import { ApplicationKeyCreateData } from "./ApplicationKeyCreateData";
1618
import { ApplicationKeyCreateRequest } from "./ApplicationKeyCreateRequest";
1719
import { ApplicationKeyRelationships } from "./ApplicationKeyRelationships";
1820
import { ApplicationKeyResponse } from "./ApplicationKeyResponse";
21+
import { ApplicationKeyResponseMeta } from "./ApplicationKeyResponseMeta";
22+
import { ApplicationKeyResponseMetaPage } from "./ApplicationKeyResponseMetaPage";
1923
import { ApplicationKeyUpdateAttributes } from "./ApplicationKeyUpdateAttributes";
2024
import { ApplicationKeyUpdateData } from "./ApplicationKeyUpdateData";
2125
import { ApplicationKeyUpdateRequest } from "./ApplicationKeyUpdateRequest";
@@ -1519,6 +1523,8 @@ const typeMap: { [index: string]: any } = {
15191523
APIKeyUpdateData: APIKeyUpdateData,
15201524
APIKeyUpdateRequest: APIKeyUpdateRequest,
15211525
APIKeysResponse: APIKeysResponse,
1526+
APIKeysResponseMeta: APIKeysResponseMeta,
1527+
APIKeysResponseMetaPage: APIKeysResponseMetaPage,
15221528
ActiveBillingDimensionsAttributes: ActiveBillingDimensionsAttributes,
15231529
ActiveBillingDimensionsBody: ActiveBillingDimensionsBody,
15241530
ActiveBillingDimensionsResponse: ActiveBillingDimensionsResponse,
@@ -1527,6 +1533,8 @@ const typeMap: { [index: string]: any } = {
15271533
ApplicationKeyCreateRequest: ApplicationKeyCreateRequest,
15281534
ApplicationKeyRelationships: ApplicationKeyRelationships,
15291535
ApplicationKeyResponse: ApplicationKeyResponse,
1536+
ApplicationKeyResponseMeta: ApplicationKeyResponseMeta,
1537+
ApplicationKeyResponseMetaPage: ApplicationKeyResponseMetaPage,
15301538
ApplicationKeyUpdateAttributes: ApplicationKeyUpdateAttributes,
15311539
ApplicationKeyUpdateData: ApplicationKeyUpdateData,
15321540
ApplicationKeyUpdateRequest: ApplicationKeyUpdateRequest,

0 commit comments

Comments
 (0)