Skip to content

Commit e74bea5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ac83bf0 of spec repo (#112)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d473ef2 commit e74bea5

File tree

9 files changed

+166
-4
lines changed

9 files changed

+166
-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.4.1.dev6",
7-
"regenerated": "2021-04-28 12:51:26.260167",
8-
"spec_repo_commit": "93dbed8"
7+
"regenerated": "2021-04-29 09:07:08.158884",
8+
"spec_repo_commit": "ac83bf0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-04-28 12:51:31.910529",
13-
"spec_repo_commit": "93dbed8"
12+
"regenerated": "2021-04-29 09:07:13.597404",
13+
"spec_repo_commit": "ac83bf0"
1414
}
1515
}
1616
}

packages/datadog-api-client-v1/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ models/SLOHistoryResponseData.ts
298298
models/SLOHistoryResponseError.ts
299299
models/SLOHistorySLIData.ts
300300
models/SLOListResponse.ts
301+
models/SLOListResponseMetadata.ts
302+
models/SLOListResponseMetadataPage.ts
301303
models/SLOResponse.ts
302304
models/SLOThreshold.ts
303305
models/SLOTimeframe.ts

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ import { SLOHistoryResponseData } from './SLOHistoryResponseData';
260260
import { SLOHistoryResponseError } from './SLOHistoryResponseError';
261261
import { SLOHistorySLIData } from './SLOHistorySLIData';
262262
import { SLOListResponse } from './SLOListResponse';
263+
import { SLOListResponseMetadata } from './SLOListResponseMetadata';
264+
import { SLOListResponseMetadataPage } from './SLOListResponseMetadataPage';
263265
import { SLOResponse } from './SLOResponse';
264266
import { SLOThreshold } from './SLOThreshold';
265267
import { SLOTimeframe } from './SLOTimeframe';
@@ -872,6 +874,8 @@ let typeMap: {[index: string]: any} = {
872874
"SLOHistoryResponseError": SLOHistoryResponseError,
873875
"SLOHistorySLIData": SLOHistorySLIData,
874876
"SLOListResponse": SLOListResponse,
877+
"SLOListResponseMetadata": SLOListResponseMetadata,
878+
"SLOListResponseMetadataPage": SLOListResponseMetadataPage,
875879
"SLOResponse": SLOResponse,
876880
"SLOThreshold": SLOThreshold,
877881
"SLOWidgetDefinition": SLOWidgetDefinition,

packages/datadog-api-client-v1/models/SLOListResponse.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Do not edit the class manually.
99
*/
1010

11+
import { SLOListResponseMetadata } from './SLOListResponseMetadata';
1112
import { ServiceLevelObjective } from './ServiceLevelObjective';
1213
import { HttpFile } from '../http/http';
1314
import { ObjectSerializer } from './ObjectSerializer';
@@ -25,6 +26,7 @@ export class SLOListResponse {
2526
* An array of error messages. Each endpoint documents how/whether this field is used.
2627
*/
2728
'errors'?: Array<string>;
29+
'metadata'?: SLOListResponseMetadata;
2830

2931
static readonly discriminator: string | undefined = undefined;
3032

@@ -38,6 +40,11 @@ export class SLOListResponse {
3840
"baseName": "errors",
3941
"type": "Array<string>",
4042
"format": ""
43+
},
44+
"metadata": {
45+
"baseName": "metadata",
46+
"type": "SLOListResponseMetadata",
47+
"format": ""
4148
} };
4249

4350
static getAttributeTypeMap() {
@@ -51,6 +58,8 @@ export class SLOListResponse {
5158

5259
res.errors = ObjectSerializer.deserialize(data.errors, "Array<string>", "")
5360

61+
res.metadata = ObjectSerializer.deserialize(data.metadata, "SLOListResponseMetadata", "")
62+
5463

5564
return res;
5665
}
@@ -67,6 +76,8 @@ export class SLOListResponse {
6776

6877
res.errors = ObjectSerializer.serialize(data.errors, "Array<string>", "")
6978

79+
res.metadata = ObjectSerializer.serialize(data.metadata, "SLOListResponseMetadata", "")
80+
7081
return res
7182
}
7283

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7+
* https://openapi-generator.tech
8+
* Do not edit the class manually.
9+
*/
10+
11+
import { SLOListResponseMetadataPage } from './SLOListResponseMetadataPage';
12+
import { HttpFile } from '../http/http';
13+
import { ObjectSerializer } from './ObjectSerializer';
14+
15+
/**
16+
* The metadata object containing additional information about the list of SLOs.
17+
*/
18+
19+
export class SLOListResponseMetadata {
20+
'page'?: SLOListResponseMetadataPage;
21+
22+
static readonly discriminator: string | undefined = undefined;
23+
24+
static readonly attributeTypeMap: {[key: string]: {baseName: string, type: string, format: string}} = {
25+
"page": {
26+
"baseName": "page",
27+
"type": "SLOListResponseMetadataPage",
28+
"format": ""
29+
} };
30+
31+
static getAttributeTypeMap() {
32+
return SLOListResponseMetadata.attributeTypeMap;
33+
}
34+
35+
static deserialize(data: {[key: string]: any}): SLOListResponseMetadata {
36+
let res = new SLOListResponseMetadata();
37+
38+
res.page = ObjectSerializer.deserialize(data.page, "SLOListResponseMetadataPage", "")
39+
40+
41+
return res;
42+
}
43+
44+
static serialize(data: SLOListResponseMetadata): {[key: string]: any} {
45+
let attributeTypes = SLOListResponseMetadata.getAttributeTypeMap();
46+
let res: {[index: string]: any} = {};
47+
for (let [key, value] of Object.entries(data)) {
48+
if (!(key in attributeTypes)) {
49+
throw new TypeError(`${key} attribute not in schema`);
50+
}
51+
}
52+
res.page = ObjectSerializer.serialize(data.page, "SLOListResponseMetadataPage", "")
53+
54+
return res
55+
}
56+
57+
public constructor() {
58+
}
59+
}
60+
61+
62+
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7+
* https://openapi-generator.tech
8+
* Do not edit the class manually.
9+
*/
10+
11+
import { HttpFile } from '../http/http';
12+
import { ObjectSerializer } from './ObjectSerializer';
13+
14+
/**
15+
* The object containing information about the pages of the list of SLOs.
16+
*/
17+
18+
export class SLOListResponseMetadataPage {
19+
/**
20+
* The total number of resources that could be retrieved ignoring the parameters and filters in the request.
21+
*/
22+
'totalCount'?: number;
23+
/**
24+
* The total number of resources that match the parameters and filters in the request. This attribute can be used by a client to determine the total number of pages.
25+
*/
26+
'totalFilteredCount'?: number;
27+
28+
static readonly discriminator: string | undefined = undefined;
29+
30+
static readonly attributeTypeMap: {[key: string]: {baseName: string, type: string, format: string}} = {
31+
"totalCount": {
32+
"baseName": "total_count",
33+
"type": "number",
34+
"format": "int64"
35+
},
36+
"totalFilteredCount": {
37+
"baseName": "total_filtered_count",
38+
"type": "number",
39+
"format": "int64"
40+
} };
41+
42+
static getAttributeTypeMap() {
43+
return SLOListResponseMetadataPage.attributeTypeMap;
44+
}
45+
46+
static deserialize(data: {[key: string]: any}): SLOListResponseMetadataPage {
47+
let res = new SLOListResponseMetadataPage();
48+
49+
res.totalCount = ObjectSerializer.deserialize(data.total_count, "number", "int64")
50+
51+
res.totalFilteredCount = ObjectSerializer.deserialize(data.total_filtered_count, "number", "int64")
52+
53+
54+
return res;
55+
}
56+
57+
static serialize(data: SLOListResponseMetadataPage): {[key: string]: any} {
58+
let attributeTypes = SLOListResponseMetadataPage.getAttributeTypeMap();
59+
let res: {[index: string]: any} = {};
60+
for (let [key, value] of Object.entries(data)) {
61+
if (!(key in attributeTypes)) {
62+
throw new TypeError(`${key} attribute not in schema`);
63+
}
64+
}
65+
res.total_count = ObjectSerializer.serialize(data.totalCount, "number", "int64")
66+
67+
res.total_filtered_count = ObjectSerializer.serialize(data.totalFilteredCount, "number", "int64")
68+
69+
return res
70+
}
71+
72+
public constructor() {
73+
}
74+
}
75+
76+
77+

packages/datadog-api-client-v1/types/ObjectParamAPI.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ import { SLOHistoryResponseData } from '../models/SLOHistoryResponseData';
264264
import { SLOHistoryResponseError } from '../models/SLOHistoryResponseError';
265265
import { SLOHistorySLIData } from '../models/SLOHistorySLIData';
266266
import { SLOListResponse } from '../models/SLOListResponse';
267+
import { SLOListResponseMetadata } from '../models/SLOListResponseMetadata';
268+
import { SLOListResponseMetadataPage } from '../models/SLOListResponseMetadataPage';
267269
import { SLOResponse } from '../models/SLOResponse';
268270
import { SLOThreshold } from '../models/SLOThreshold';
269271
import { SLOTimeframe } from '../models/SLOTimeframe';

packages/datadog-api-client-v1/types/ObservableAPI.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ import { SLOHistoryResponseData } from '../models/SLOHistoryResponseData';
265265
import { SLOHistoryResponseError } from '../models/SLOHistoryResponseError';
266266
import { SLOHistorySLIData } from '../models/SLOHistorySLIData';
267267
import { SLOListResponse } from '../models/SLOListResponse';
268+
import { SLOListResponseMetadata } from '../models/SLOListResponseMetadata';
269+
import { SLOListResponseMetadataPage } from '../models/SLOListResponseMetadataPage';
268270
import { SLOResponse } from '../models/SLOResponse';
269271
import { SLOThreshold } from '../models/SLOThreshold';
270272
import { SLOTimeframe } from '../models/SLOTimeframe';

packages/datadog-api-client-v1/types/PromiseAPI.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ import { SLOHistoryResponseData } from '../models/SLOHistoryResponseData';
264264
import { SLOHistoryResponseError } from '../models/SLOHistoryResponseError';
265265
import { SLOHistorySLIData } from '../models/SLOHistorySLIData';
266266
import { SLOListResponse } from '../models/SLOListResponse';
267+
import { SLOListResponseMetadata } from '../models/SLOListResponseMetadata';
268+
import { SLOListResponseMetadataPage } from '../models/SLOListResponseMetadataPage';
267269
import { SLOResponse } from '../models/SLOResponse';
268270
import { SLOThreshold } from '../models/SLOThreshold';
269271
import { SLOTimeframe } from '../models/SLOTimeframe';

0 commit comments

Comments
 (0)