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.6",
"regenerated": "2025-03-10 19:35:54.501123",
"spec_repo_commit": "7d0b49f6"
"regenerated": "2025-03-11 13:16:49.007546",
"spec_repo_commit": "d7618fa5"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-10 19:35:54.516849",
"spec_repo_commit": "7d0b49f6"
"regenerated": "2025-03-11 13:16:49.023038",
"spec_repo_commit": "d7618fa5"
}
}
}
4 changes: 0 additions & 4 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28773,10 +28773,6 @@ paths:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/LogsIndex'
description: OK
'403':
content:
Expand Down
4 changes: 1 addition & 3 deletions examples/v1/logs-indexes/DeleteLogsIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v1.api.LogsIndexesApi;
import com.datadog.api.client.v1.model.LogsIndex;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
LogsIndexesApi apiInstance = new LogsIndexesApi(defaultClient);

try {
LogsIndex result = apiInstance.deleteLogsIndex("name");
System.out.println(result);
apiInstance.deleteLogsIndex("name");
} catch (ApiException e) {
System.err.println("Exception when calling LogsIndexesApi#deleteLogsIndex");
System.err.println("Status code: " + e.getCode());
Expand Down
29 changes: 14 additions & 15 deletions src/main/java/com/datadog/api/client/v1/api/LogsIndexesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ public CompletableFuture<ApiResponse<LogsIndex>> createLogsIndexWithHttpInfoAsyn
* <p>See {@link #deleteLogsIndexWithHttpInfo}.
*
* @param name Name of the log index. (required)
* @return LogsIndex
* @throws ApiException if fails to make API call
*/
public LogsIndex deleteLogsIndex(String name) throws ApiException {
return deleteLogsIndexWithHttpInfo(name).getData();
public void deleteLogsIndex(String name) throws ApiException {
deleteLogsIndexWithHttpInfo(name);
}

/**
Expand All @@ -196,9 +195,9 @@ public LogsIndex deleteLogsIndex(String name) throws ApiException {
* <p>See {@link #deleteLogsIndexWithHttpInfoAsync}.
*
* @param name Name of the log index. (required)
* @return CompletableFuture&lt;LogsIndex&gt;
* @return CompletableFuture
*/
public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
public CompletableFuture<Void> deleteLogsIndexAsync(String name) {
return deleteLogsIndexWithHttpInfoAsync(name)
.thenApply(
response -> {
Expand All @@ -211,7 +210,7 @@ public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
* reverted. You cannot recreate an index with the same name as deleted ones.
*
* @param name Name of the log index. (required)
* @return ApiResponse&lt;LogsIndex&gt;
* @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call
* @http.response.details
* <table border="1">
Expand All @@ -223,7 +222,7 @@ public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*/
public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws ApiException {
public ApiResponse<Void> deleteLogsIndexWithHttpInfo(String name) throws ApiException {
Object localVarPostBody = null;

// verify the required parameter 'name' is set
Expand All @@ -245,7 +244,7 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
new ArrayList<Pair>(),
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"*/*"},
new String[] {"apiKeyAuth", "appKeyAuth"});
return apiClient.invokeAPI(
"DELETE",
Expand All @@ -255,7 +254,7 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<LogsIndex>() {});
null);
}

/**
Expand All @@ -264,14 +263,14 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
* <p>See {@link #deleteLogsIndexWithHttpInfo}.
*
* @param name Name of the log index. (required)
* @return CompletableFuture&lt;ApiResponse&lt;LogsIndex&gt;&gt;
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
*/
public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsync(String name) {
public CompletableFuture<ApiResponse<Void>> deleteLogsIndexWithHttpInfoAsync(String name) {
Object localVarPostBody = null;

// verify the required parameter 'name' is set
if (name == null) {
CompletableFuture<ApiResponse<LogsIndex>> result = new CompletableFuture<>();
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400, "Missing the required parameter 'name' when calling deleteLogsIndex"));
Expand All @@ -293,10 +292,10 @@ public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsyn
new ArrayList<Pair>(),
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"*/*"},
new String[] {"apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<LogsIndex>> result = new CompletableFuture<>();
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
Expand All @@ -308,7 +307,7 @@ public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsyn
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<LogsIndex>() {});
null);
}

/**
Expand Down