Skip to content

Commit 7697202

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

File tree

4 files changed

+23
-171
lines changed

4 files changed

+23
-171
lines changed

.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

features/v2/servicenow_integration.feature

Lines changed: 23 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,183 +11,160 @@ Feature: ServiceNow Integration
1111

1212
@generated @skip @team:Datadog/collaboration-integrations
1313
Scenario: Create ServiceNow template returns "Bad Request" response
14-
Given operation "CreateServiceNowTemplate" enabled
15-
And new "CreateServiceNowTemplate" request
14+
Given new "CreateServiceNowTemplate" request
1615
And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "software", "priority": "1"}, "handle_name": "incident-template", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}}
1716
When the request is sent
1817
Then the response status is 400 Bad Request
1918

2019
@generated @skip @team:Datadog/collaboration-integrations
2120
Scenario: Create ServiceNow template returns "Created" response
22-
Given operation "CreateServiceNowTemplate" enabled
23-
And new "CreateServiceNowTemplate" request
21+
Given new "CreateServiceNowTemplate" request
2422
And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "software", "priority": "1"}, "handle_name": "incident-template", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}}
2523
When the request is sent
2624
Then the response status is 201 Created
2725

2826
@generated @skip @team:Datadog/collaboration-integrations
2927
Scenario: Delete ServiceNow template returns "Bad Request" response
30-
Given operation "DeleteServiceNowTemplate" enabled
31-
And new "DeleteServiceNowTemplate" request
28+
Given new "DeleteServiceNowTemplate" request
3229
And request contains "template_id" parameter from "REPLACE.ME"
3330
When the request is sent
3431
Then the response status is 400 Bad Request
3532

3633
@generated @skip @team:Datadog/collaboration-integrations
3734
Scenario: Delete ServiceNow template returns "Not Found" response
38-
Given operation "DeleteServiceNowTemplate" enabled
39-
And new "DeleteServiceNowTemplate" request
35+
Given new "DeleteServiceNowTemplate" request
4036
And request contains "template_id" parameter from "REPLACE.ME"
4137
When the request is sent
4238
Then the response status is 404 Not Found
4339

4440
@generated @skip @team:Datadog/collaboration-integrations
4541
Scenario: Delete ServiceNow template returns "OK" response
46-
Given operation "DeleteServiceNowTemplate" enabled
47-
And new "DeleteServiceNowTemplate" request
42+
Given new "DeleteServiceNowTemplate" request
4843
And request contains "template_id" parameter from "REPLACE.ME"
4944
When the request is sent
5045
Then the response status is 200 OK
5146

5247
@generated @skip @team:Datadog/collaboration-integrations
5348
Scenario: Get ServiceNow template returns "Bad Request" response
54-
Given operation "GetServiceNowTemplate" enabled
55-
And new "GetServiceNowTemplate" request
49+
Given new "GetServiceNowTemplate" request
5650
And request contains "template_id" parameter from "REPLACE.ME"
5751
When the request is sent
5852
Then the response status is 400 Bad Request
5953

6054
@generated @skip @team:Datadog/collaboration-integrations
6155
Scenario: Get ServiceNow template returns "Not Found" response
62-
Given operation "GetServiceNowTemplate" enabled
63-
And new "GetServiceNowTemplate" request
56+
Given new "GetServiceNowTemplate" request
6457
And request contains "template_id" parameter from "REPLACE.ME"
6558
When the request is sent
6659
Then the response status is 404 Not Found
6760

6861
@generated @skip @team:Datadog/collaboration-integrations
6962
Scenario: Get ServiceNow template returns "OK" response
70-
Given operation "GetServiceNowTemplate" enabled
71-
And new "GetServiceNowTemplate" request
63+
Given new "GetServiceNowTemplate" request
7264
And request contains "template_id" parameter from "REPLACE.ME"
7365
When the request is sent
7466
Then the response status is 200 OK
7567

7668
@generated @skip @team:Datadog/collaboration-integrations
7769
Scenario: List ServiceNow assignment groups returns "Bad Request" response
78-
Given operation "ListServiceNowAssignmentGroups" enabled
79-
And new "ListServiceNowAssignmentGroups" request
70+
Given new "ListServiceNowAssignmentGroups" request
8071
And request contains "instance_id" parameter from "REPLACE.ME"
8172
When the request is sent
8273
Then the response status is 400 Bad Request
8374

8475
@generated @skip @team:Datadog/collaboration-integrations
8576
Scenario: List ServiceNow assignment groups returns "Not Found" response
86-
Given operation "ListServiceNowAssignmentGroups" enabled
87-
And new "ListServiceNowAssignmentGroups" request
77+
Given new "ListServiceNowAssignmentGroups" request
8878
And request contains "instance_id" parameter from "REPLACE.ME"
8979
When the request is sent
9080
Then the response status is 404 Not Found
9181

9282
@generated @skip @team:Datadog/collaboration-integrations
9383
Scenario: List ServiceNow assignment groups returns "OK" response
94-
Given operation "ListServiceNowAssignmentGroups" enabled
95-
And new "ListServiceNowAssignmentGroups" request
84+
Given new "ListServiceNowAssignmentGroups" request
9685
And request contains "instance_id" parameter from "REPLACE.ME"
9786
When the request is sent
9887
Then the response status is 200 OK
9988

10089
@generated @skip @team:Datadog/collaboration-integrations
10190
Scenario: List ServiceNow business services returns "Bad Request" response
102-
Given operation "ListServiceNowBusinessServices" enabled
103-
And new "ListServiceNowBusinessServices" request
91+
Given new "ListServiceNowBusinessServices" request
10492
And request contains "instance_id" parameter from "REPLACE.ME"
10593
When the request is sent
10694
Then the response status is 400 Bad Request
10795

10896
@generated @skip @team:Datadog/collaboration-integrations
10997
Scenario: List ServiceNow business services returns "Not Found" response
110-
Given operation "ListServiceNowBusinessServices" enabled
111-
And new "ListServiceNowBusinessServices" request
98+
Given new "ListServiceNowBusinessServices" request
11299
And request contains "instance_id" parameter from "REPLACE.ME"
113100
When the request is sent
114101
Then the response status is 404 Not Found
115102

116103
@generated @skip @team:Datadog/collaboration-integrations
117104
Scenario: List ServiceNow business services returns "OK" response
118-
Given operation "ListServiceNowBusinessServices" enabled
119-
And new "ListServiceNowBusinessServices" request
105+
Given new "ListServiceNowBusinessServices" request
120106
And request contains "instance_id" parameter from "REPLACE.ME"
121107
When the request is sent
122108
Then the response status is 200 OK
123109

124110
@generated @skip @team:Datadog/collaboration-integrations
125111
Scenario: List ServiceNow instances returns "Not Found" response
126-
Given operation "ListServiceNowInstances" enabled
127-
And new "ListServiceNowInstances" request
112+
Given new "ListServiceNowInstances" request
128113
When the request is sent
129114
Then the response status is 404 Not Found
130115

131116
@generated @skip @team:Datadog/collaboration-integrations
132117
Scenario: List ServiceNow instances returns "OK" response
133-
Given operation "ListServiceNowInstances" enabled
134-
And new "ListServiceNowInstances" request
118+
Given new "ListServiceNowInstances" request
135119
When the request is sent
136120
Then the response status is 200 OK
137121

138122
@generated @skip @team:Datadog/collaboration-integrations
139123
Scenario: List ServiceNow templates returns "OK" response
140-
Given operation "ListServiceNowTemplates" enabled
141-
And new "ListServiceNowTemplates" request
124+
Given new "ListServiceNowTemplates" request
142125
When the request is sent
143126
Then the response status is 200 OK
144127

145128
@generated @skip @team:Datadog/collaboration-integrations
146129
Scenario: List ServiceNow users returns "Bad Request" response
147-
Given operation "ListServiceNowUsers" enabled
148-
And new "ListServiceNowUsers" request
130+
Given new "ListServiceNowUsers" request
149131
And request contains "instance_id" parameter from "REPLACE.ME"
150132
When the request is sent
151133
Then the response status is 400 Bad Request
152134

153135
@generated @skip @team:Datadog/collaboration-integrations
154136
Scenario: List ServiceNow users returns "Not Found" response
155-
Given operation "ListServiceNowUsers" enabled
156-
And new "ListServiceNowUsers" request
137+
Given new "ListServiceNowUsers" request
157138
And request contains "instance_id" parameter from "REPLACE.ME"
158139
When the request is sent
159140
Then the response status is 404 Not Found
160141

161142
@generated @skip @team:Datadog/collaboration-integrations
162143
Scenario: List ServiceNow users returns "OK" response
163-
Given operation "ListServiceNowUsers" enabled
164-
And new "ListServiceNowUsers" request
144+
Given new "ListServiceNowUsers" request
165145
And request contains "instance_id" parameter from "REPLACE.ME"
166146
When the request is sent
167147
Then the response status is 200 OK
168148

169149
@generated @skip @team:Datadog/collaboration-integrations
170150
Scenario: Update ServiceNow template returns "Bad Request" response
171-
Given operation "UpdateServiceNowTemplate" enabled
172-
And new "UpdateServiceNowTemplate" request
151+
Given new "UpdateServiceNowTemplate" request
173152
And request contains "template_id" parameter from "REPLACE.ME"
174153
And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}}
175154
When the request is sent
176155
Then the response status is 400 Bad Request
177156

178157
@generated @skip @team:Datadog/collaboration-integrations
179158
Scenario: Update ServiceNow template returns "Not Found" response
180-
Given operation "UpdateServiceNowTemplate" enabled
181-
And new "UpdateServiceNowTemplate" request
159+
Given new "UpdateServiceNowTemplate" request
182160
And request contains "template_id" parameter from "REPLACE.ME"
183161
And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}}
184162
When the request is sent
185163
Then the response status is 404 Not Found
186164

187165
@generated @skip @team:Datadog/collaboration-integrations
188166
Scenario: Update ServiceNow template returns "OK" response
189-
Given operation "UpdateServiceNowTemplate" enabled
190-
And new "UpdateServiceNowTemplate" request
167+
Given new "UpdateServiceNowTemplate" request
191168
And request contains "template_id" parameter from "REPLACE.ME"
192169
And body with value {"data": {"attributes": {"assignment_group_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "business_service_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "fields_mapping": {"category": "hardware", "priority": "2"}, "handle_name": "incident-template-updated", "instance_id": "65b3341b-0680-47f9-a6d4-134db45c603e", "servicenow_tablename": "incident", "user_id": "65b3341b-0680-47f9-a6d4-134db45c603e"}, "type": "servicenow_templates"}}
193170
When the request is sent

services/service_now_integration/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ import { ServiceNowIntegrationApiV2 } from "@datadog/datadog-api-client-service-
2525
import { v2 } from "@datadog/datadog-api-client-service-now-integration";
2626

2727
const configuration = createConfiguration();
28-
// Enable unstable operations
29-
const configurationOpts = {
30-
unstableOperations: {
31-
"ServiceNowIntegrationApi.v2.listServiceNowAssignmentGroups": true
32-
}
33-
}
34-
35-
const configuration = createConfiguration(configurationOpts);
3628
const apiInstance = new ServiceNowIntegrationApiV2(configuration);
3729
const params = {/* parameters */};
3830

0 commit comments

Comments
 (0)