Skip to content

Commit dd02598

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 63d8880 of spec repo (DataDog#264)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 85fcc76 commit dd02598

16 files changed

+81
-71
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.5.1.dev2",
7-
"regenerated": "2021-09-14 13:21:09.431901",
8-
"spec_repo_commit": "e4b1338"
7+
"regenerated": "2021-09-14 15:31:24.142819",
8+
"spec_repo_commit": "63d8880"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-09-14 13:22:22.372680",
13-
"spec_repo_commit": "e4b1338"
12+
"regenerated": "2021-09-14 15:32:54.862523",
13+
"spec_repo_commit": "63d8880"
1414
}
1515
}
1616
}

docs/v1/ServiceLevelObjectiveCorrectionsApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Method | HTTP request | Description
1414
## **createSLOCorrection**
1515
> SLOCorrectionResponse createSLOCorrection(body)
1616
17-
Create an SLO Correction
17+
Create an SLO Correction.
1818

1919
### Example
2020

@@ -83,7 +83,7 @@ Name | Type | Description | Notes
8383
## **deleteSLOCorrection**
8484
> void deleteSLOCorrection()
8585
86-
Permanently delete the specified SLO correction object
86+
Permanently delete the specified SLO correction object.
8787

8888
### Example
8989

@@ -96,7 +96,7 @@ const configuration = v1.createConfiguration();
9696
const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration);
9797

9898
let params:v1.ServiceLevelObjectiveCorrectionsApiDeleteSLOCorrectionRequest = {
99-
// string | The ID of the SLO correction object
99+
// string | The ID of the SLO correction object.
100100
sloCorrectionId: "slo_correction_id_example",
101101
};
102102

@@ -110,7 +110,7 @@ apiInstance.deleteSLOCorrection(params).then((data:any) => {
110110

111111
Name | Type | Description | Notes
112112
------------- | ------------- | ------------- | -------------
113-
**sloCorrectionId** | [**string**] | The ID of the SLO correction object | defaults to undefined
113+
**sloCorrectionId** | [**string**] | The ID of the SLO correction object. | defaults to undefined
114114

115115

116116
### Return type
@@ -139,7 +139,7 @@ Name | Type | Description | Notes
139139
## **getSLOCorrection**
140140
> SLOCorrectionResponse getSLOCorrection()
141141
142-
Get an SLO correction
142+
Get an SLO correction.
143143

144144
### Example
145145

@@ -152,7 +152,7 @@ const configuration = v1.createConfiguration();
152152
const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration);
153153

154154
let params:v1.ServiceLevelObjectiveCorrectionsApiGetSLOCorrectionRequest = {
155-
// string | The ID of the SLO correction object
155+
// string | The ID of the SLO correction object.
156156
sloCorrectionId: "slo_correction_id_example",
157157
};
158158

@@ -166,7 +166,7 @@ apiInstance.getSLOCorrection(params).then((data:any) => {
166166

167167
Name | Type | Description | Notes
168168
------------- | ------------- | ------------- | -------------
169-
**sloCorrectionId** | [**string**] | The ID of the SLO correction object | defaults to undefined
169+
**sloCorrectionId** | [**string**] | The ID of the SLO correction object. | defaults to undefined
170170

171171

172172
### Return type
@@ -195,7 +195,7 @@ Name | Type | Description | Notes
195195
## **listSLOCorrection**
196196
> SLOCorrectionListResponse listSLOCorrection()
197197
198-
Get all Service Level Objective corrections
198+
Get all Service Level Objective corrections.
199199

200200
### Example
201201

@@ -243,7 +243,7 @@ This endpoint does not need any parameter.
243243
## **updateSLOCorrection**
244244
> SLOCorrectionResponse updateSLOCorrection(body)
245245
246-
Update the specified SLO correction object object
246+
Update the specified SLO correction object object.
247247

248248
### Example
249249

@@ -256,7 +256,7 @@ const configuration = v1.createConfiguration();
256256
const apiInstance = new v1.ServiceLevelObjectiveCorrectionsApi(configuration);
257257

258258
let params:v1.ServiceLevelObjectiveCorrectionsApiUpdateSLOCorrectionRequest = {
259-
// string | The ID of the SLO correction object
259+
// string | The ID of the SLO correction object.
260260
sloCorrectionId: "slo_correction_id_example",
261261
// SLOCorrectionUpdateRequest | The edited SLO correction object.
262262
body: {
@@ -284,7 +284,7 @@ apiInstance.updateSLOCorrection(params).then((data:any) => {
284284
Name | Type | Description | Notes
285285
------------- | ------------- | ------------- | -------------
286286
**body** | **SLOCorrectionUpdateRequest**| The edited SLO correction object. |
287-
**sloCorrectionId** | [**string**] | The ID of the SLO correction object | defaults to undefined
287+
**sloCorrectionId** | [**string**] | The ID of the SLO correction object. | defaults to undefined
288288

289289

290290
### Return type

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { SLOCorrectionUpdateRequest } from "../models/SLOCorrectionUpdateRequest
1717
*/
1818
export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRequestFactory {
1919
/**
20-
* Create an SLO Correction
20+
* Create an SLO Correction.
2121
* Create an SLO correction
2222
* @param body Create an SLO Correction
2323
*/
@@ -78,9 +78,9 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe
7878
}
7979

8080
/**
81-
* Permanently delete the specified SLO correction object
81+
* Permanently delete the specified SLO correction object.
8282
* Delete an SLO correction
83-
* @param sloCorrectionId The ID of the SLO correction object
83+
* @param sloCorrectionId The ID of the SLO correction object.
8484
*/
8585
public async deleteSLOCorrection(
8686
sloCorrectionId: string,
@@ -133,9 +133,9 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe
133133
}
134134

135135
/**
136-
* Get an SLO correction
136+
* Get an SLO correction.
137137
* Get an SLO correction for an SLO
138-
* @param sloCorrectionId The ID of the SLO correction object
138+
* @param sloCorrectionId The ID of the SLO correction object.
139139
*/
140140
public async getSLOCorrection(
141141
sloCorrectionId: string,
@@ -188,7 +188,7 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe
188188
}
189189

190190
/**
191-
* Get all Service Level Objective corrections
191+
* Get all Service Level Objective corrections.
192192
* Get all SLO corrections
193193
*/
194194
public async listSLOCorrection(
@@ -231,9 +231,9 @@ export class ServiceLevelObjectiveCorrectionsApiRequestFactory extends BaseAPIRe
231231
}
232232

233233
/**
234-
* Update the specified SLO correction object object
234+
* Update the specified SLO correction object object.
235235
* Update an SLO correction
236-
* @param sloCorrectionId The ID of the SLO correction object
236+
* @param sloCorrectionId The ID of the SLO correction object.
237237
* @param body The edited SLO correction object.
238238
*/
239239
public async updateSLOCorrection(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import { SLOCorrectionType } from "./SLOCorrectionType";
1313
import { ObjectSerializer } from "./ObjectSerializer";
1414

1515
/**
16-
* The response object of a list of SLO corrections
16+
* The response object of a list of SLO corrections.
1717
*/
1818

1919
export class SLOCorrection {
2020
"attributes"?: SLOCorrectionResponseAttributes;
2121
/**
22-
* The ID of the SLO correction
22+
* The ID of the SLO correction.
2323
*/
2424
"id"?: string;
2525
"type"?: SLOCorrectionType;

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import { SLOCorrectionType } from "./SLOCorrectionType";
1313
import { ObjectSerializer } from "./ObjectSerializer";
1414

1515
/**
16-
* The data object associated with the SLO correction to be created
16+
* The data object associated with the SLO correction to be created.
1717
*/
1818

1919
export class SLOCorrectionCreateData {
2020
"attributes"?: SLOCorrectionCreateRequestAttributes;
21-
"type"?: SLOCorrectionType;
21+
"type": SLOCorrectionType;
2222

2323
"unparsedObject"?: any;
2424

@@ -52,6 +52,11 @@ export class SLOCorrectionCreateData {
5252
""
5353
);
5454

55+
if (data.type === undefined) {
56+
throw new TypeError(
57+
"missing required attribute 'type' on 'SLOCorrectionCreateData' object"
58+
);
59+
}
5560
if (["correction", undefined].includes(data.type)) {
5661
res.type = data.type;
5762
} else {
@@ -80,6 +85,11 @@ export class SLOCorrectionCreateData {
8085
""
8186
);
8287

88+
if (data.type === undefined) {
89+
throw new TypeError(
90+
"missing required attribute 'type' on 'SLOCorrectionCreateData' object"
91+
);
92+
}
8393
if (["correction", undefined].includes(data.type)) {
8494
res.type = data.type;
8595
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { SLOCorrectionCreateData } from "./SLOCorrectionCreateData";
1212
import { ObjectSerializer } from "./ObjectSerializer";
1313

1414
/**
15-
* An object that defines a correction to be applied to an SLO
15+
* An object that defines a correction to be applied to an SLO.
1616
*/
1717

1818
export class SLOCorrectionCreateRequest {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { SLOCorrectionCategory } from "./SLOCorrectionCategory";
1212
import { ObjectSerializer } from "./ObjectSerializer";
1313

1414
/**
15-
* The attribute object associated with the SLO correction to be created
15+
* The attribute object associated with the SLO correction to be created.
1616
*/
1717

1818
export class SLOCorrectionCreateRequestAttributes {
@@ -22,19 +22,19 @@ export class SLOCorrectionCreateRequestAttributes {
2222
*/
2323
"description"?: string;
2424
/**
25-
* Ending time of the correction in epoch seconds
25+
* Ending time of the correction in epoch seconds.
2626
*/
2727
"end": number;
2828
/**
29-
* ID of the SLO that this correction will be applied to
29+
* ID of the SLO that this correction will be applied to.
3030
*/
3131
"sloId": string;
3232
/**
33-
* Starting time of the correction in epoch seconds
33+
* Starting time of the correction in epoch seconds.
3434
*/
3535
"start": number;
3636
/**
37-
* The timezone to display in the UI for the correction times (defaults to \"UTC\")
37+
* The timezone to display in the UI for the correction times (defaults to \"UTC\").
3838
*/
3939
"timezone"?: string;
4040

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import { SLOCorrection } from "./SLOCorrection";
1313
import { ObjectSerializer } from "./ObjectSerializer";
1414

1515
/**
16-
* A list of SLO correction objects
16+
* A list of SLO correction objects.
1717
*/
1818

1919
export class SLOCorrectionListResponse {
2020
/**
21-
* The list of of SLO corrections objects
21+
* The list of of SLO corrections objects.
2222
*/
2323
"data"?: Array<SLOCorrection>;
2424
"meta"?: ResponseMetaAttributes;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { SLOCorrection } from "./SLOCorrection";
1212
import { ObjectSerializer } from "./ObjectSerializer";
1313

1414
/**
15-
* The response object of an SLO correction
15+
* The response object of an SLO correction.
1616
*/
1717

1818
export class SLOCorrectionResponse {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { SLOCorrectionCategory } from "./SLOCorrectionCategory";
1313
import { ObjectSerializer } from "./ObjectSerializer";
1414

1515
/**
16-
* The attribute object associated with the SLO correction
16+
* The attribute object associated with the SLO correction.
1717
*/
1818

1919
export class SLOCorrectionResponseAttributes {
@@ -24,19 +24,19 @@ export class SLOCorrectionResponseAttributes {
2424
*/
2525
"description"?: string;
2626
/**
27-
* Ending time of the correction in epoch seconds
27+
* Ending time of the correction in epoch seconds.
2828
*/
2929
"end"?: number;
3030
/**
31-
* ID of the SLO that this correction will be applied to
31+
* ID of the SLO that this correction will be applied to.
3232
*/
3333
"sloId"?: string;
3434
/**
35-
* Starting time of the correction in epoch seconds
35+
* Starting time of the correction in epoch seconds.
3636
*/
3737
"start"?: number;
3838
/**
39-
* The timezone to display in the UI for the correction times (defaults to \"UTC\")
39+
* The timezone to display in the UI for the correction times (defaults to \"UTC\").
4040
*/
4141
"timezone"?: string;
4242

0 commit comments

Comments
 (0)