Skip to content

Commit f70c066

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark ServiceNow Integration endpoints as stable (#3872)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3e256d3 commit f70c066

13 files changed

Lines changed: 23 additions & 174 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87463,9 +87463,6 @@ paths:
8746387463
summary: List ServiceNow assignment groups
8746487464
tags:
8746587465
- ServiceNow Integration
87466-
x-unstable: |-
87467-
**Note**: This endpoint is in public beta and is subject to change.
87468-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8746987466
/api/v2/integration/servicenow/business_services/{instance_id}:
8747087467
get:
8747187468
description: |-
@@ -87504,9 +87501,6 @@ paths:
8750487501
summary: List ServiceNow business services
8750587502
tags:
8750687503
- ServiceNow Integration
87507-
x-unstable: |-
87508-
**Note**: This endpoint is in public beta and is subject to change.
87509-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8751087504
/api/v2/integration/servicenow/handles:
8751187505
get:
8751287506
description: |-
@@ -87524,9 +87518,6 @@ paths:
8752487518
summary: List ServiceNow templates
8752587519
tags:
8752687520
- ServiceNow Integration
87527-
x-unstable: |-
87528-
**Note**: This endpoint is in public beta and is subject to change.
87529-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8753087521
post:
8753187522
description: |-
8753287523
Create a new ServiceNow template.
@@ -87555,9 +87546,6 @@ paths:
8755587546
summary: Create ServiceNow template
8755687547
tags:
8755787548
- ServiceNow Integration
87558-
x-unstable: |-
87559-
**Note**: This endpoint is in public beta and is subject to change.
87560-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8756187549
/api/v2/integration/servicenow/handles/{template_id}:
8756287550
delete:
8756387551
description: |-
@@ -87592,9 +87580,6 @@ paths:
8759287580
summary: Delete ServiceNow template
8759387581
tags:
8759487582
- ServiceNow Integration
87595-
x-unstable: |-
87596-
**Note**: This endpoint is in public beta and is subject to change.
87597-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8759887583
get:
8759987584
description: |-
8760087585
Get a ServiceNow template by ID.
@@ -87632,9 +87617,6 @@ paths:
8763287617
summary: Get ServiceNow template
8763387618
tags:
8763487619
- ServiceNow Integration
87635-
x-unstable: |-
87636-
**Note**: This endpoint is in public beta and is subject to change.
87637-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8763887620
put:
8763987621
description: |-
8764087622
Update a ServiceNow template by ID.
@@ -87678,9 +87660,6 @@ paths:
8767887660
summary: Update ServiceNow template
8767987661
tags:
8768087662
- ServiceNow Integration
87681-
x-unstable: |-
87682-
**Note**: This endpoint is in public beta and is subject to change.
87683-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8768487663
/api/v2/integration/servicenow/instances:
8768587664
get:
8768687665
description: |-
@@ -87704,9 +87683,6 @@ paths:
8770487683
summary: List ServiceNow instances
8770587684
tags:
8770687685
- ServiceNow Integration
87707-
x-unstable: |-
87708-
**Note**: This endpoint is in public beta and is subject to change.
87709-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8771087686
/api/v2/integration/servicenow/users/{instance_id}:
8771187687
get:
8771287688
description: |-
@@ -87745,9 +87721,6 @@ paths:
8774587721
summary: List ServiceNow users
8774687722
tags:
8774787723
- ServiceNow Integration
87748-
x-unstable: |-
87749-
**Note**: This endpoint is in public beta and is subject to change.
87750-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
8775187724
/api/v2/integrations:
8775287725
get:
8775387726
operationId: ListIntegrations

api/datadog/configuration.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -797,15 +797,6 @@ func NewConfiguration() *Configuration {
797797
"v2.UpdateJiraIssueTemplate": false,
798798
"v2.CreateTenancyConfig": false,
799799
"v2.GetTenancyConfigs": false,
800-
"v2.CreateServiceNowTemplate": false,
801-
"v2.DeleteServiceNowTemplate": false,
802-
"v2.GetServiceNowTemplate": false,
803-
"v2.ListServiceNowAssignmentGroups": false,
804-
"v2.ListServiceNowBusinessServices": false,
805-
"v2.ListServiceNowInstances": false,
806-
"v2.ListServiceNowTemplates": false,
807-
"v2.ListServiceNowUsers": false,
808-
"v2.UpdateServiceNowTemplate": false,
809800
"v2.CreateLLMObsDataset": false,
810801
"v2.CreateLLMObsDatasetRecords": false,
811802
"v2.CreateLLMObsExperiment": false,

api/datadogV2/api_service_now_integration.go

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ package datadogV2
66

77
import (
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()}

examples/v2/servicenow-integration/CreateServiceNowTemplate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ func main() {
3333
}
3434
ctx := datadog.NewDefaultContext(context.Background())
3535
configuration := datadog.NewConfiguration()
36-
configuration.SetUnstableOperationEnabled("v2.CreateServiceNowTemplate", true)
3736
apiClient := datadog.NewAPIClient(configuration)
3837
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
3938
resp, r, err := api.CreateServiceNowTemplate(ctx, body)

examples/v2/servicenow-integration/DeleteServiceNowTemplate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.DeleteServiceNowTemplate", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2120
r, err := api.DeleteServiceNowTemplate(ctx, uuid.MustParse("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"))

examples/v2/servicenow-integration/GetServiceNowTemplate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
func main() {
1717
ctx := datadog.NewDefaultContext(context.Background())
1818
configuration := datadog.NewConfiguration()
19-
configuration.SetUnstableOperationEnabled("v2.GetServiceNowTemplate", true)
2019
apiClient := datadog.NewAPIClient(configuration)
2120
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2221
resp, r, err := api.GetServiceNowTemplate(ctx, uuid.MustParse("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"))

examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
func main() {
1717
ctx := datadog.NewDefaultContext(context.Background())
1818
configuration := datadog.NewConfiguration()
19-
configuration.SetUnstableOperationEnabled("v2.ListServiceNowAssignmentGroups", true)
2019
apiClient := datadog.NewAPIClient(configuration)
2120
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2221
resp, r, err := api.ListServiceNowAssignmentGroups(ctx, uuid.MustParse("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"))

examples/v2/servicenow-integration/ListServiceNowBusinessServices.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
func main() {
1717
ctx := datadog.NewDefaultContext(context.Background())
1818
configuration := datadog.NewConfiguration()
19-
configuration.SetUnstableOperationEnabled("v2.ListServiceNowBusinessServices", true)
2019
apiClient := datadog.NewAPIClient(configuration)
2120
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2221
resp, r, err := api.ListServiceNowBusinessServices(ctx, uuid.MustParse("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"))

examples/v2/servicenow-integration/ListServiceNowInstances.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.ListServiceNowInstances", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2120
resp, r, err := api.ListServiceNowInstances(ctx)

examples/v2/servicenow-integration/ListServiceNowTemplates.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func main() {
1616
ctx := datadog.NewDefaultContext(context.Background())
1717
configuration := datadog.NewConfiguration()
18-
configuration.SetUnstableOperationEnabled("v2.ListServiceNowTemplates", true)
1918
apiClient := datadog.NewAPIClient(configuration)
2019
api := datadogV2.NewServiceNowIntegrationApi(apiClient)
2120
resp, r, err := api.ListServiceNowTemplates(ctx)

0 commit comments

Comments
 (0)