@@ -290,17 +290,9 @@ impl LogsIndexesAPI {
290290 pub async fn delete_logs_index (
291291 & self ,
292292 name : String ,
293- ) -> Result < crate :: datadogV1 :: model :: LogsIndex , datadog:: Error < DeleteLogsIndexError > > {
293+ ) -> Result < ( ) , datadog:: Error < DeleteLogsIndexError > > {
294294 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 ( ( ) ) ,
304296 Err ( err) => Err ( err) ,
305297 }
306298 }
@@ -310,10 +302,7 @@ impl LogsIndexesAPI {
310302 pub async fn delete_logs_index_with_http_info (
311303 & self ,
312304 name : String ,
313- ) -> Result <
314- datadog:: ResponseContent < crate :: datadogV1:: model:: LogsIndex > ,
315- datadog:: Error < DeleteLogsIndexError > ,
316- > {
305+ ) -> Result < datadog:: ResponseContent < ( ) > , datadog:: Error < DeleteLogsIndexError > > {
317306 let local_configuration = & self . config ;
318307 let operation_id = "v1.delete_logs_index" ;
319308
@@ -329,7 +318,7 @@ impl LogsIndexesAPI {
329318
330319 // build headers
331320 let mut headers = HeaderMap :: new ( ) ;
332- headers. insert ( "Accept" , HeaderValue :: from_static ( "application/json " ) ) ;
321+ headers. insert ( "Accept" , HeaderValue :: from_static ( "*/* " ) ) ;
333322
334323 // build user agent
335324 match HeaderValue :: from_str ( local_configuration. user_agent . as_str ( ) ) {
@@ -369,16 +358,11 @@ impl LogsIndexesAPI {
369358 log:: debug!( "response content: {}" , local_content) ;
370359
371360 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+ } )
382366 } else {
383367 let local_entity: Option < DeleteLogsIndexError > =
384368 serde_json:: from_str ( & local_content) . ok ( ) ;
0 commit comments