Skip to content

Commit b8729be

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 2a64634 of spec repo (#608)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3174d94 commit b8729be

File tree

5 files changed

+74
-14
lines changed

5 files changed

+74
-14
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.dev2",
7-
"regenerated": "2021-01-13 20:16:01.073732",
8-
"spec_repo_commit": "fe2e0b5"
7+
"regenerated": "2021-01-13 22:19:35.316427",
8+
"spec_repo_commit": "2a64634"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-01-13 20:16:11.121788",
13-
"spec_repo_commit": "fe2e0b5"
12+
"regenerated": "2021-01-13 22:19:46.499138",
13+
"spec_repo_commit": "2a64634"
1414
}
1515
}
1616
}

src/main/java/com/datadog/api/v1/client/ApiClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ public class ApiClient extends JavaTimeFormatter {
308308
put("listLogIndexes", false);
309309
put("updateLogsIndex", false);
310310
put("updateLogsIndexOrder", false);
311+
put("createSLOCorrection", false);
312+
put("deleteSLOCorrection", false);
313+
put("getSLOCorrection", false);
314+
put("listSLOCorrection", false);
315+
put("updateSLOCorrection", false);
311316
put("getSLOHistory", false);
312317
put("getDailyCustomReports", false);
313318
put("getMonthlyCustomReports", false);

src/main/java/com/datadog/api/v1/client/api/ServiceLevelObjectiveCorrectionsApi.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ public ApiResponse<SLOCorrectionResponse> executeWithHttpInfo() throws ApiExcept
154154
155155
*/
156156
public APIcreateSLOCorrectionRequest createSLOCorrection() throws ApiException {
157+
String operationId = "createSLOCorrection";
158+
if (apiClient.isUnstableOperationEnabled(operationId)) {
159+
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
160+
} else {
161+
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
162+
}
157163
return new APIcreateSLOCorrectionRequest();
158164
}
159165

@@ -252,6 +258,12 @@ public ApiResponse<Void> executeWithHttpInfo() throws ApiException {
252258
253259
*/
254260
public APIdeleteSLOCorrectionRequest deleteSLOCorrection(String sloCorrectionId) throws ApiException {
261+
String operationId = "deleteSLOCorrection";
262+
if (apiClient.isUnstableOperationEnabled(operationId)) {
263+
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
264+
} else {
265+
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
266+
}
255267
return new APIdeleteSLOCorrectionRequest(sloCorrectionId);
256268
}
257269

@@ -352,6 +364,12 @@ public ApiResponse<SLOCorrectionResponse> executeWithHttpInfo() throws ApiExcept
352364
353365
*/
354366
public APIgetSLOCorrectionRequest getSLOCorrection(String sloCorrectionId) throws ApiException {
367+
String operationId = "getSLOCorrection";
368+
if (apiClient.isUnstableOperationEnabled(operationId)) {
369+
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
370+
} else {
371+
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
372+
}
355373
return new APIgetSLOCorrectionRequest(sloCorrectionId);
356374
}
357375

@@ -441,6 +459,12 @@ public ApiResponse<SLOCorrectionListResponse> executeWithHttpInfo() throws ApiEx
441459
442460
*/
443461
public APIlistSLOCorrectionRequest listSLOCorrection() throws ApiException {
462+
String operationId = "listSLOCorrection";
463+
if (apiClient.isUnstableOperationEnabled(operationId)) {
464+
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
465+
} else {
466+
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
467+
}
444468
return new APIlistSLOCorrectionRequest();
445469
}
446470

@@ -559,6 +583,12 @@ public ApiResponse<SLOCorrectionResponse> executeWithHttpInfo() throws ApiExcept
559583
560584
*/
561585
public APIupdateSLOCorrectionRequest updateSLOCorrection(String sloCorrectionId) throws ApiException {
586+
String operationId = "updateSLOCorrection";
587+
if (apiClient.isUnstableOperationEnabled(operationId)) {
588+
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
589+
} else {
590+
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
591+
}
562592
return new APIupdateSLOCorrectionRequest(sloCorrectionId);
563593
}
564594
}

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14500,6 +14500,9 @@ paths:
1450014500
- Service Level Objective Corrections
1450114501
x-undo:
1450214502
type: safe
14503+
x-unstable: '**Note**: This endpoint is in public beta.
14504+
14505+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1450314506
post:
1450414507
description: Create an SLO Correction
1450514508
operationId: CreateSLOCorrection
@@ -14549,6 +14552,9 @@ paths:
1454914552
- name: slo_correction_id
1455014553
source: data.id
1455114554
type: unsafe
14555+
x-unstable: '**Note**: This endpoint is in public beta.
14556+
14557+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1455214558
/api/v1/slo/correction/{slo_correction_id}:
1455314559
delete:
1455414560
description: Permanently delete the specified SLO Correction object
@@ -14580,6 +14586,9 @@ paths:
1458014586
- Service Level Objective Corrections
1458114587
x-undo:
1458214588
type: idempotent
14589+
x-unstable: '**Note**: This endpoint is in public beta.
14590+
14591+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1458314592
get:
1458414593
description: Get an SLO Correction
1458514594
operationId: GetSLOCorrection
@@ -14614,6 +14623,9 @@ paths:
1461414623
- Service Level Objective Corrections
1461514624
x-undo:
1461614625
type: safe
14626+
x-unstable: '**Note**: This endpoint is in public beta.
14627+
14628+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1461714629
patch:
1461814630
description: Update the specified SLO correction object object
1461914631
operationId: UpdateSLOCorrection
@@ -14662,6 +14674,9 @@ paths:
1466214674
x-codegen-request-body-name: body
1466314675
x-undo:
1466414676
type: idempotent
14677+
x-unstable: '**Note**: This endpoint is in public beta.
14678+
14679+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1466514680
/api/v1/slo/{slo_id}:
1466614681
delete:
1466714682
description: 'Permanently delete the specified service level objective object.

src/test/resources/com/datadog/api/v1/client/api/service_level_objective_corrections.feature

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,81 @@ Feature: Service Level Objective Corrections
1313

1414
@generated @skip
1515
Scenario: Get all SLO corrections returns "OK" response
16-
Given new "ListSLOCorrection" request
16+
Given operation "ListSLOCorrection" enabled
17+
And new "ListSLOCorrection" request
1718
When the request is sent
1819
Then the response status is 200 OK
1920

2021
@generated @skip
2122
Scenario: Create an SLO correction returns "OK" response
22-
Given new "CreateSLOCorrection" request
23+
Given operation "CreateSLOCorrection" enabled
24+
And new "CreateSLOCorrection" request
2325
And body {}
2426
When the request is sent
2527
Then the response status is 200 OK
2628

2729
@generated @skip
2830
Scenario: Delete an SLO Correction returns "OK" response
29-
Given new "DeleteSLOCorrection" request
31+
Given operation "DeleteSLOCorrection" enabled
32+
And new "DeleteSLOCorrection" request
3033
And request contains "slo_correction_id" parameter from "<PATH>"
3134
When the request is sent
3235
Then the response status is 204 OK
3336

3437
@generated @skip
3538
Scenario: Get an SLO correction for an SLO returns "OK" response
36-
Given new "GetSLOCorrection" request
39+
Given operation "GetSLOCorrection" enabled
40+
And new "GetSLOCorrection" request
3741
And request contains "slo_correction_id" parameter from "<PATH>"
3842
When the request is sent
3943
Then the response status is 200 OK
4044

4145
@generated @skip
4246
Scenario: Update an SLO Correction returns "OK" response
43-
Given new "UpdateSLOCorrection" request
47+
Given operation "UpdateSLOCorrection" enabled
48+
And new "UpdateSLOCorrection" request
4449
And request contains "slo_correction_id" parameter from "<PATH>"
4550
And body {}
4651
When the request is sent
4752
Then the response status is 200 OK
4853

4954
@generated @skip
5055
Scenario: Create an SLO correction returns "Bad Request" response
51-
Given new "CreateSLOCorrection" request
56+
Given operation "CreateSLOCorrection" enabled
57+
And new "CreateSLOCorrection" request
5258
And body {}
5359
When the request is sent
5460
Then the response status is 400 Bad Request
5561

5662
@generated @skip
5763
Scenario: Delete an SLO Correction returns "Not found" response
58-
Given new "DeleteSLOCorrection" request
64+
Given operation "DeleteSLOCorrection" enabled
65+
And new "DeleteSLOCorrection" request
5966
And request contains "slo_correction_id" parameter from "<PATH>"
6067
When the request is sent
6168
Then the response status is 404 Not found
6269

6370
@generated @skip
6471
Scenario: Get an SLO correction for an SLO returns "Bad Request" response
65-
Given new "GetSLOCorrection" request
72+
Given operation "GetSLOCorrection" enabled
73+
And new "GetSLOCorrection" request
6674
And request contains "slo_correction_id" parameter from "<PATH>"
6775
When the request is sent
6876
Then the response status is 400 Bad Request
6977

7078
@generated @skip
7179
Scenario: Update an SLO Correction returns "Bad Request" response
72-
Given new "UpdateSLOCorrection" request
80+
Given operation "UpdateSLOCorrection" enabled
81+
And new "UpdateSLOCorrection" request
7382
And request contains "slo_correction_id" parameter from "<PATH>"
7483
And body {}
7584
When the request is sent
7685
Then the response status is 400 Bad Request
7786

7887
@generated @skip
7988
Scenario: Update an SLO Correction returns "Not Found" response
80-
Given new "UpdateSLOCorrection" request
89+
Given operation "UpdateSLOCorrection" enabled
90+
And new "UpdateSLOCorrection" request
8191
And request contains "slo_correction_id" parameter from "<PATH>"
8292
And body {}
8393
When the request is sent

0 commit comments

Comments
 (0)