Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-09-07 17:53:27.473235",
"spec_repo_commit": "40dbfff2"
"regenerated": "2023-09-12 16:35:51.258459",
"spec_repo_commit": "cbc99635"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-09-07 17:53:27.486739",
"spec_repo_commit": "40dbfff2"
"regenerated": "2023-09-12 16:35:51.271703",
"spec_repo_commit": "cbc99635"
}
}
}
18 changes: 0 additions & 18 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18853,9 +18853,6 @@ paths:
limitParam: page[limit]
pageOffsetParam: page[offset]
resultsPath: data
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
post:
description: Schedule a downtime.
operationId: CreateDowntime
Expand Down Expand Up @@ -18896,9 +18893,6 @@ paths:
tags:
- Downtimes
x-codegen-request-body-name: body
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/downtime/{downtime_id}:
delete:
description: Cancel a downtime.
Expand Down Expand Up @@ -18936,9 +18930,6 @@ paths:
summary: Cancel a downtime
tags:
- Downtimes
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
get:
description: Get downtime detail by `downtime_id`.
operationId: GetDowntime
Expand Down Expand Up @@ -18995,9 +18986,6 @@ paths:
summary: Get a downtime
tags:
- Downtimes
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
patch:
description: Update a downtime by `downtime_id`.
operationId: UpdateDowntime
Expand Down Expand Up @@ -19052,9 +19040,6 @@ paths:
tags:
- Downtimes
x-codegen-request-body-name: body
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/events:
get:
description: 'List endpoint returns events that match an events search query.
Expand Down Expand Up @@ -22619,9 +22604,6 @@ paths:
tags:
- Downtimes
x-codegen-request-body-name: body
x-unstable: '**Note**: This endpoint is in private beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/permissions:
get:
description: Returns a list of all permissions, including name, description,
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/CancelDowntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.cancelDowntime", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

// there is a valid "downtime_v2" in the system
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/CreateDowntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.createDowntime", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

DowntimeCreateRequest body =
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/GetDowntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getDowntime", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

// there is a valid "downtime_v2" in the system
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/ListDowntimes.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listDowntimes", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

try {
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/ListDowntimes_805770330.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listDowntimes", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

try {
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/ListMonitorDowntimes.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listMonitorDowntimes", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listMonitorDowntimes", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

try {
Expand Down
1 change: 0 additions & 1 deletion examples/v2/downtimes/UpdateDowntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.updateDowntime", true);
DowntimesApi apiInstance = new DowntimesApi(defaultClient);

// there is a valid "downtime_v2" in the system
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@ public class ApiClient {
new HashMap<String, Boolean>() {
{
put("v2.createCIAppPipelineEvent", false);
put("v2.cancelDowntime", false);
put("v2.createDowntime", false);
put("v2.getDowntime", false);
put("v2.listDowntimes", false);
put("v2.listMonitorDowntimes", false);
put("v2.updateDowntime", false);
put("v2.listEvents", false);
put("v2.searchEvents", false);
put("v2.createIncident", false);
Expand Down
103 changes: 0 additions & 103 deletions src/main/java/com/datadog/api/client/v2/api/DowntimesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ public CompletableFuture<Void> cancelDowntimeAsync(String downtimeId) {
* </table>
*/
public ApiResponse<Void> cancelDowntimeWithHttpInfo(String downtimeId) throws ApiException {
// Check if unstable operation is enabled
String operationId = "cancelDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'downtimeId' is set
Expand Down Expand Up @@ -147,16 +140,6 @@ public ApiResponse<Void> cancelDowntimeWithHttpInfo(String downtimeId) throws Ap
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
*/
public CompletableFuture<ApiResponse<Void>> cancelDowntimeWithHttpInfoAsync(String downtimeId) {
// Check if unstable operation is enabled
String operationId = "cancelDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'downtimeId' is set
Expand Down Expand Up @@ -249,13 +232,6 @@ public CompletableFuture<DowntimeResponse> createDowntimeAsync(DowntimeCreateReq
*/
public ApiResponse<DowntimeResponse> createDowntimeWithHttpInfo(DowntimeCreateRequest body)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "createDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down Expand Up @@ -298,16 +274,6 @@ public ApiResponse<DowntimeResponse> createDowntimeWithHttpInfo(DowntimeCreateRe
*/
public CompletableFuture<ApiResponse<DowntimeResponse>> createDowntimeWithHttpInfoAsync(
DowntimeCreateRequest body) {
// Check if unstable operation is enabled
String operationId = "createDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<DowntimeResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down Expand Up @@ -450,13 +416,6 @@ public CompletableFuture<DowntimeResponse> getDowntimeAsync(
*/
public ApiResponse<DowntimeResponse> getDowntimeWithHttpInfo(
String downtimeId, GetDowntimeOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
String operationId = "getDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'downtimeId' is set
Expand Down Expand Up @@ -507,16 +466,6 @@ public ApiResponse<DowntimeResponse> getDowntimeWithHttpInfo(
*/
public CompletableFuture<ApiResponse<DowntimeResponse>> getDowntimeWithHttpInfoAsync(
String downtimeId, GetDowntimeOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "getDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<DowntimeResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'downtimeId' is set
Expand Down Expand Up @@ -748,13 +697,6 @@ public PaginationIterable<DowntimeResponseData> listDowntimesWithPagination(
*/
public ApiResponse<ListDowntimesResponse> listDowntimesWithHttpInfo(
ListDowntimesOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
String operationId = "listDowntimes";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;
Boolean currentOnly = parameters.currentOnly;
String include = parameters.include;
Expand Down Expand Up @@ -801,16 +743,6 @@ public ApiResponse<ListDowntimesResponse> listDowntimesWithHttpInfo(
*/
public CompletableFuture<ApiResponse<ListDowntimesResponse>> listDowntimesWithHttpInfoAsync(
ListDowntimesOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "listDowntimes";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<ListDowntimesResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;
Boolean currentOnly = parameters.currentOnly;
String include = parameters.include;
Expand Down Expand Up @@ -900,13 +832,6 @@ public CompletableFuture<MonitorDowntimeMatchResponse> listMonitorDowntimesAsync
*/
public ApiResponse<MonitorDowntimeMatchResponse> listMonitorDowntimesWithHttpInfo(Long monitorId)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "listMonitorDowntimes";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'monitorId' is set
Expand Down Expand Up @@ -951,17 +876,6 @@ public ApiResponse<MonitorDowntimeMatchResponse> listMonitorDowntimesWithHttpInf
*/
public CompletableFuture<ApiResponse<MonitorDowntimeMatchResponse>>
listMonitorDowntimesWithHttpInfoAsync(Long monitorId) {
// Check if unstable operation is enabled
String operationId = "listMonitorDowntimes";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<MonitorDowntimeMatchResponse>> result =
new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'monitorId' is set
Expand Down Expand Up @@ -1061,13 +975,6 @@ public CompletableFuture<DowntimeResponse> updateDowntimeAsync(
*/
public ApiResponse<DowntimeResponse> updateDowntimeWithHttpInfo(
String downtimeId, DowntimeUpdateRequest body) throws ApiException {
// Check if unstable operation is enabled
String operationId = "updateDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'downtimeId' is set
Expand Down Expand Up @@ -1120,16 +1027,6 @@ public ApiResponse<DowntimeResponse> updateDowntimeWithHttpInfo(
*/
public CompletableFuture<ApiResponse<DowntimeResponse>> updateDowntimeWithHttpInfoAsync(
String downtimeId, DowntimeUpdateRequest body) {
// Check if unstable operation is enabled
String operationId = "updateDowntime";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<DowntimeResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'downtimeId' is set
Expand Down
Loading