@@ -6,8 +6,6 @@ package datadogV2
66
77import (
88 _context "context"
9- _fmt "fmt"
10- _log "log"
119 _nethttp "net/http"
1210 _neturl "net/url"
1311
@@ -25,15 +23,6 @@ func (a *TestOptimizationApi) DeleteTestOptimizationServiceSettings(ctx _context
2523 localVarPostBody interface {}
2624 )
2725
28- operationId := "v2.DeleteTestOptimizationServiceSettings"
29- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
30- if ! isOperationEnabled {
31- return nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
32- }
33- if isOperationEnabled && a .Client .Cfg .Debug {
34- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
35- }
36-
3726 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.DeleteTestOptimizationServiceSettings" )
3827 if err != nil {
3928 return nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -105,15 +94,6 @@ func (a *TestOptimizationApi) GetFlakyTestsManagementPolicies(ctx _context.Conte
10594 localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse
10695 )
10796
108- operationId := "v2.GetFlakyTestsManagementPolicies"
109- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
110- if ! isOperationEnabled {
111- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
112- }
113- if isOperationEnabled && a .Client .Cfg .Debug {
114- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
115- }
116-
11797 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.GetFlakyTestsManagementPolicies" )
11898 if err != nil {
11999 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -194,15 +174,6 @@ func (a *TestOptimizationApi) GetTestOptimizationServiceSettings(ctx _context.Co
194174 localVarReturnValue TestOptimizationServiceSettingsResponse
195175 )
196176
197- operationId := "v2.GetTestOptimizationServiceSettings"
198- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
199- if ! isOperationEnabled {
200- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
201- }
202- if isOperationEnabled && a .Client .Cfg .Debug {
203- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
204- }
205-
206177 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.GetTestOptimizationServiceSettings" )
207178 if err != nil {
208179 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -321,15 +292,6 @@ func (a *TestOptimizationApi) SearchFlakyTests(ctx _context.Context, o ...Search
321292 optionalParams = o [0 ]
322293 }
323294
324- operationId := "v2.SearchFlakyTests"
325- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
326- if ! isOperationEnabled {
327- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
328- }
329- if isOperationEnabled && a .Client .Cfg .Debug {
330- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
331- }
332-
333295 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.SearchFlakyTests" )
334296 if err != nil {
335297 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -482,15 +444,6 @@ func (a *TestOptimizationApi) UpdateFlakyTests(ctx _context.Context, body Update
482444 localVarReturnValue UpdateFlakyTestsResponse
483445 )
484446
485- operationId := "v2.UpdateFlakyTests"
486- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
487- if ! isOperationEnabled {
488- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
489- }
490- if isOperationEnabled && a .Client .Cfg .Debug {
491- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
492- }
493-
494447 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.UpdateFlakyTests" )
495448 if err != nil {
496449 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -572,15 +525,6 @@ func (a *TestOptimizationApi) UpdateFlakyTestsManagementPolicies(ctx _context.Co
572525 localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse
573526 )
574527
575- operationId := "v2.UpdateFlakyTestsManagementPolicies"
576- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
577- if ! isOperationEnabled {
578- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
579- }
580- if isOperationEnabled && a .Client .Cfg .Debug {
581- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
582- }
583-
584528 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.UpdateFlakyTestsManagementPolicies" )
585529 if err != nil {
586530 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -662,15 +606,6 @@ func (a *TestOptimizationApi) UpdateTestOptimizationServiceSettings(ctx _context
662606 localVarReturnValue TestOptimizationServiceSettingsResponse
663607 )
664608
665- operationId := "v2.UpdateTestOptimizationServiceSettings"
666- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
667- if ! isOperationEnabled {
668- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
669- }
670- if isOperationEnabled && a .Client .Cfg .Debug {
671- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
672- }
673-
674609 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.TestOptimizationApi.UpdateTestOptimizationServiceSettings" )
675610 if err != nil {
676611 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
0 commit comments