Skip to content

Commit 8916e3b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit d7618fa5 of spec repo (#2753)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 80d93a5 commit 8916e3b

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
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.6.6",
7-
"regenerated": "2025-03-10 19:35:54.501123",
8-
"spec_repo_commit": "7d0b49f6"
7+
"regenerated": "2025-03-11 13:16:49.007546",
8+
"spec_repo_commit": "d7618fa5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-10 19:35:54.516849",
13-
"spec_repo_commit": "7d0b49f6"
12+
"regenerated": "2025-03-11 13:16:49.023038",
13+
"spec_repo_commit": "d7618fa5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28773,10 +28773,6 @@ paths:
2877328773
type: string
2877428774
responses:
2877528775
'200':
28776-
content:
28777-
application/json:
28778-
schema:
28779-
$ref: '#/components/schemas/LogsIndex'
2878028776
description: OK
2878128777
'403':
2878228778
content:

examples/v1/logs-indexes/DeleteLogsIndex.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v1.api.LogsIndexesApi;
6-
import com.datadog.api.client.v1.model.LogsIndex;
76

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

1312
try {
14-
LogsIndex result = apiInstance.deleteLogsIndex("name");
15-
System.out.println(result);
13+
apiInstance.deleteLogsIndex("name");
1614
} catch (ApiException e) {
1715
System.err.println("Exception when calling LogsIndexesApi#deleteLogsIndex");
1816
System.err.println("Status code: " + e.getCode());

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,10 @@ public CompletableFuture<ApiResponse<LogsIndex>> createLogsIndexWithHttpInfoAsyn
183183
* <p>See {@link #deleteLogsIndexWithHttpInfo}.
184184
*
185185
* @param name Name of the log index. (required)
186-
* @return LogsIndex
187186
* @throws ApiException if fails to make API call
188187
*/
189-
public LogsIndex deleteLogsIndex(String name) throws ApiException {
190-
return deleteLogsIndexWithHttpInfo(name).getData();
188+
public void deleteLogsIndex(String name) throws ApiException {
189+
deleteLogsIndexWithHttpInfo(name);
191190
}
192191

193192
/**
@@ -196,9 +195,9 @@ public LogsIndex deleteLogsIndex(String name) throws ApiException {
196195
* <p>See {@link #deleteLogsIndexWithHttpInfoAsync}.
197196
*
198197
* @param name Name of the log index. (required)
199-
* @return CompletableFuture&lt;LogsIndex&gt;
198+
* @return CompletableFuture
200199
*/
201-
public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
200+
public CompletableFuture<Void> deleteLogsIndexAsync(String name) {
202201
return deleteLogsIndexWithHttpInfoAsync(name)
203202
.thenApply(
204203
response -> {
@@ -211,7 +210,7 @@ public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
211210
* reverted. You cannot recreate an index with the same name as deleted ones.
212211
*
213212
* @param name Name of the log index. (required)
214-
* @return ApiResponse&lt;LogsIndex&gt;
213+
* @return ApiResponse&lt;Void&gt;
215214
* @throws ApiException if fails to make API call
216215
* @http.response.details
217216
* <table border="1">
@@ -223,7 +222,7 @@ public CompletableFuture<LogsIndex> deleteLogsIndexAsync(String name) {
223222
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
224223
* </table>
225224
*/
226-
public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws ApiException {
225+
public ApiResponse<Void> deleteLogsIndexWithHttpInfo(String name) throws ApiException {
227226
Object localVarPostBody = null;
228227

229228
// verify the required parameter 'name' is set
@@ -245,7 +244,7 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
245244
new ArrayList<Pair>(),
246245
localVarHeaderParams,
247246
new HashMap<String, String>(),
248-
new String[] {"application/json"},
247+
new String[] {"*/*"},
249248
new String[] {"apiKeyAuth", "appKeyAuth"});
250249
return apiClient.invokeAPI(
251250
"DELETE",
@@ -255,7 +254,7 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
255254
localVarPostBody,
256255
new HashMap<String, Object>(),
257256
false,
258-
new GenericType<LogsIndex>() {});
257+
null);
259258
}
260259

261260
/**
@@ -264,14 +263,14 @@ public ApiResponse<LogsIndex> deleteLogsIndexWithHttpInfo(String name) throws Ap
264263
* <p>See {@link #deleteLogsIndexWithHttpInfo}.
265264
*
266265
* @param name Name of the log index. (required)
267-
* @return CompletableFuture&lt;ApiResponse&lt;LogsIndex&gt;&gt;
266+
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
268267
*/
269-
public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsync(String name) {
268+
public CompletableFuture<ApiResponse<Void>> deleteLogsIndexWithHttpInfoAsync(String name) {
270269
Object localVarPostBody = null;
271270

272271
// verify the required parameter 'name' is set
273272
if (name == null) {
274-
CompletableFuture<ApiResponse<LogsIndex>> result = new CompletableFuture<>();
273+
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
275274
result.completeExceptionally(
276275
new ApiException(
277276
400, "Missing the required parameter 'name' when calling deleteLogsIndex"));
@@ -293,10 +292,10 @@ public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsyn
293292
new ArrayList<Pair>(),
294293
localVarHeaderParams,
295294
new HashMap<String, String>(),
296-
new String[] {"application/json"},
295+
new String[] {"*/*"},
297296
new String[] {"apiKeyAuth", "appKeyAuth"});
298297
} catch (ApiException ex) {
299-
CompletableFuture<ApiResponse<LogsIndex>> result = new CompletableFuture<>();
298+
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
300299
result.completeExceptionally(ex);
301300
return result;
302301
}
@@ -308,7 +307,7 @@ public CompletableFuture<ApiResponse<LogsIndex>> deleteLogsIndexWithHttpInfoAsyn
308307
localVarPostBody,
309308
new HashMap<String, Object>(),
310309
false,
311-
new GenericType<LogsIndex>() {});
310+
null);
312311
}
313312

314313
/**

0 commit comments

Comments
 (0)