@@ -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
@@ -27,15 +25,6 @@ func (a *ServiceNowIntegrationApi) CreateServiceNowTemplate(ctx _context.Context
2725 localVarReturnValue ServiceNowTemplateResponse
2826 )
2927
30- operationId := "v2.CreateServiceNowTemplate"
31- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
32- if ! isOperationEnabled {
33- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
34- }
35- if isOperationEnabled && a .Client .Cfg .Debug {
36- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
37- }
38-
3928 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.CreateServiceNowTemplate" )
4029 if err != nil {
4130 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -124,15 +113,6 @@ func (a *ServiceNowIntegrationApi) DeleteServiceNowTemplate(ctx _context.Context
124113 localVarPostBody interface {}
125114 )
126115
127- operationId := "v2.DeleteServiceNowTemplate"
128- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
129- if ! isOperationEnabled {
130- return nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
131- }
132- if isOperationEnabled && a .Client .Cfg .Debug {
133- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
134- }
135-
136116 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.DeleteServiceNowTemplate" )
137117 if err != nil {
138118 return nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -211,15 +191,6 @@ func (a *ServiceNowIntegrationApi) GetServiceNowTemplate(ctx _context.Context, t
211191 localVarReturnValue ServiceNowTemplateResponse
212192 )
213193
214- operationId := "v2.GetServiceNowTemplate"
215- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
216- if ! isOperationEnabled {
217- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
218- }
219- if isOperationEnabled && a .Client .Cfg .Debug {
220- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
221- }
222-
223194 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.GetServiceNowTemplate" )
224195 if err != nil {
225196 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -307,15 +278,6 @@ func (a *ServiceNowIntegrationApi) ListServiceNowAssignmentGroups(ctx _context.C
307278 localVarReturnValue ServiceNowAssignmentGroupsResponse
308279 )
309280
310- operationId := "v2.ListServiceNowAssignmentGroups"
311- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
312- if ! isOperationEnabled {
313- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
314- }
315- if isOperationEnabled && a .Client .Cfg .Debug {
316- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
317- }
318-
319281 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.ListServiceNowAssignmentGroups" )
320282 if err != nil {
321283 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -403,15 +365,6 @@ func (a *ServiceNowIntegrationApi) ListServiceNowBusinessServices(ctx _context.C
403365 localVarReturnValue ServiceNowBusinessServicesResponse
404366 )
405367
406- operationId := "v2.ListServiceNowBusinessServices"
407- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
408- if ! isOperationEnabled {
409- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
410- }
411- if isOperationEnabled && a .Client .Cfg .Debug {
412- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
413- }
414-
415368 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.ListServiceNowBusinessServices" )
416369 if err != nil {
417370 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -499,15 +452,6 @@ func (a *ServiceNowIntegrationApi) ListServiceNowInstances(ctx _context.Context)
499452 localVarReturnValue ServiceNowInstancesResponse
500453 )
501454
502- operationId := "v2.ListServiceNowInstances"
503- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
504- if ! isOperationEnabled {
505- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
506- }
507- if isOperationEnabled && a .Client .Cfg .Debug {
508- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
509- }
510-
511455 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.ListServiceNowInstances" )
512456 if err != nil {
513457 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -594,15 +538,6 @@ func (a *ServiceNowIntegrationApi) ListServiceNowTemplates(ctx _context.Context)
594538 localVarReturnValue ServiceNowTemplatesResponse
595539 )
596540
597- operationId := "v2.ListServiceNowTemplates"
598- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
599- if ! isOperationEnabled {
600- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
601- }
602- if isOperationEnabled && a .Client .Cfg .Debug {
603- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
604- }
605-
606541 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.ListServiceNowTemplates" )
607542 if err != nil {
608543 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -680,15 +615,6 @@ func (a *ServiceNowIntegrationApi) ListServiceNowUsers(ctx _context.Context, ins
680615 localVarReturnValue ServiceNowUsersResponse
681616 )
682617
683- operationId := "v2.ListServiceNowUsers"
684- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
685- if ! isOperationEnabled {
686- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
687- }
688- if isOperationEnabled && a .Client .Cfg .Debug {
689- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
690- }
691-
692618 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.ListServiceNowUsers" )
693619 if err != nil {
694620 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
@@ -776,15 +702,6 @@ func (a *ServiceNowIntegrationApi) UpdateServiceNowTemplate(ctx _context.Context
776702 localVarReturnValue ServiceNowTemplateResponse
777703 )
778704
779- operationId := "v2.UpdateServiceNowTemplate"
780- isOperationEnabled := a .Client .Cfg .IsUnstableOperationEnabled (operationId )
781- if ! isOperationEnabled {
782- return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : _fmt .Sprintf ("Unstable operation '%s' is disabled" , operationId )}
783- }
784- if isOperationEnabled && a .Client .Cfg .Debug {
785- _log .Printf ("WARNING: Using unstable operation '%s'" , operationId )
786- }
787-
788705 localBasePath , err := a .Client .Cfg .ServerURLWithContext (ctx , "v2.ServiceNowIntegrationApi.UpdateServiceNowTemplate" )
789706 if err != nil {
790707 return localVarReturnValue , nil , datadog.GenericOpenAPIError {ErrorMessage : err .Error ()}
0 commit comments