@@ -290,17 +290,9 @@ impl LogsIndexesAPI {
290
290
pub async fn delete_logs_index (
291
291
& self ,
292
292
name : String ,
293
- ) -> Result < crate :: datadogV1 :: model :: LogsIndex , datadog:: Error < DeleteLogsIndexError > > {
293
+ ) -> Result < ( ) , datadog:: Error < DeleteLogsIndexError > > {
294
294
match self . delete_logs_index_with_http_info ( name) . await {
295
- Ok ( response_content) => {
296
- if let Some ( e) = response_content. entity {
297
- Ok ( e)
298
- } else {
299
- Err ( datadog:: Error :: Serde ( serde:: de:: Error :: custom (
300
- "response content was None" ,
301
- ) ) )
302
- }
303
- }
295
+ Ok ( _) => Ok ( ( ) ) ,
304
296
Err ( err) => Err ( err) ,
305
297
}
306
298
}
@@ -310,10 +302,7 @@ impl LogsIndexesAPI {
310
302
pub async fn delete_logs_index_with_http_info (
311
303
& self ,
312
304
name : String ,
313
- ) -> Result <
314
- datadog:: ResponseContent < crate :: datadogV1:: model:: LogsIndex > ,
315
- datadog:: Error < DeleteLogsIndexError > ,
316
- > {
305
+ ) -> Result < datadog:: ResponseContent < ( ) > , datadog:: Error < DeleteLogsIndexError > > {
317
306
let local_configuration = & self . config ;
318
307
let operation_id = "v1.delete_logs_index" ;
319
308
@@ -329,7 +318,7 @@ impl LogsIndexesAPI {
329
318
330
319
// build headers
331
320
let mut headers = HeaderMap :: new ( ) ;
332
- headers. insert ( "Accept" , HeaderValue :: from_static ( "application/json " ) ) ;
321
+ headers. insert ( "Accept" , HeaderValue :: from_static ( "*/* " ) ) ;
333
322
334
323
// build user agent
335
324
match HeaderValue :: from_str ( local_configuration. user_agent . as_str ( ) ) {
@@ -369,16 +358,11 @@ impl LogsIndexesAPI {
369
358
log:: debug!( "response content: {}" , local_content) ;
370
359
371
360
if !local_status. is_client_error ( ) && !local_status. is_server_error ( ) {
372
- match serde_json:: from_str :: < crate :: datadogV1:: model:: LogsIndex > ( & local_content) {
373
- Ok ( e) => {
374
- return Ok ( datadog:: ResponseContent {
375
- status : local_status,
376
- content : local_content,
377
- entity : Some ( e) ,
378
- } )
379
- }
380
- Err ( e) => return Err ( datadog:: Error :: Serde ( e) ) ,
381
- } ;
361
+ Ok ( datadog:: ResponseContent {
362
+ status : local_status,
363
+ content : local_content,
364
+ entity : None ,
365
+ } )
382
366
} else {
383
367
let local_entity: Option < DeleteLogsIndexError > =
384
368
serde_json:: from_str ( & local_content) . ok ( ) ;
0 commit comments