@@ -141,15 +141,6 @@ func (a *IncidentsApi) CreateIncidentImpact(ctx _context.Context, incidentId str
141141 optionalParams = o [0 ]
142142 }
143143
144- operationId := "v2.CreateIncidentImpact"
145- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
146- if ! isOperationEnabled {
147- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
148- }
149- if isOperationEnabled && a .Client .Cfg .Debug {
150- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
151- }
152-
153144 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.IncidentsApi.CreateIncidentImpact" )
154145 if err != nil {
155146 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -757,15 +748,6 @@ func (a *IncidentsApi) DeleteIncidentImpact(ctx _context.Context, incidentId str
757748 localVarPostBody interface {}
758749 )
759750
760- operationId := "v2.DeleteIncidentImpact"
761- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
762- if ! isOperationEnabled {
763- return nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
764- }
765- if isOperationEnabled && a .Client .Cfg .Debug {
766- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
767- }
768-
769751 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.IncidentsApi.DeleteIncidentImpact" )
770752 if err != nil {
771753 return nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -2037,15 +2019,6 @@ func (a *IncidentsApi) ListIncidentImpacts(ctx _context.Context, incidentId stri
20372019 optionalParams = o [0 ]
20382020 }
20392021
2040- operationId := "v2.ListIncidentImpacts"
2041- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
2042- if ! isOperationEnabled {
2043- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
2044- }
2045- if isOperationEnabled && a .Client .Cfg .Debug {
2046- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
2047- }
2048-
20492022 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.IncidentsApi.ListIncidentImpacts" )
20502023 if err != nil {
20512024 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
0 commit comments