Skip to content

Commit 63c657f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 235ad9c of spec repo (#4561)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fdfd964 commit 63c657f

3 files changed

Lines changed: 6 additions & 38 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173432,9 +173432,6 @@ paths:
173432173432
permissions:
173433173433
- security_monitoring_findings_write
173434173434
- appsec_vm_write
173435-
x-unstable: |-
173436-
**Note**: This endpoint is in preview and is subject to change.
173437-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
173438173435
post:
173439173436
description: >-
173440173437
Create ServiceNow tickets for security findings.
@@ -173505,9 +173502,6 @@ paths:
173505173502
permissions:
173506173503
- security_monitoring_findings_write
173507173504
- appsec_vm_write
173508-
x-unstable: |-
173509-
**Note**: This endpoint is in preview and is subject to change.
173510-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
173511173505
/api/v2/security/sboms:
173512173506
get:
173513173507
description: |-

features/v2/security_monitoring.feature

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,21 @@ Feature: Security Monitoring
113113

114114
@generated @skip @team:DataDog/k9-investigation
115115
Scenario: Attach security findings to a ServiceNow ticket returns "Bad Request" response
116-
Given operation "AttachServiceNowTicket" enabled
117-
And new "AttachServiceNowTicket" request
116+
Given new "AttachServiceNowTicket" request
118117
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
119118
When the request is sent
120119
Then the response status is 400 Bad Request
121120

122121
@generated @skip @team:DataDog/k9-investigation
123122
Scenario: Attach security findings to a ServiceNow ticket returns "Not Found" response
124-
Given operation "AttachServiceNowTicket" enabled
125-
And new "AttachServiceNowTicket" request
123+
Given new "AttachServiceNowTicket" request
126124
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
127125
When the request is sent
128126
Then the response status is 404 Not Found
129127

130128
@generated @skip @team:DataDog/k9-investigation
131129
Scenario: Attach security findings to a ServiceNow ticket returns "OK" response
132-
Given operation "AttachServiceNowTicket" enabled
133-
And new "AttachServiceNowTicket" request
130+
Given new "AttachServiceNowTicket" request
134131
And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}}
135132
When the request is sent
136133
Then the response status is 200 OK
@@ -532,24 +529,21 @@ Feature: Security Monitoring
532529

533530
@generated @skip @team:DataDog/k9-investigation
534531
Scenario: Create ServiceNow tickets for security findings returns "Bad Request" response
535-
Given operation "CreateServiceNowTickets" enabled
536-
And new "CreateServiceNowTickets" request
532+
Given new "CreateServiceNowTickets" request
537533
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
538534
When the request is sent
539535
Then the response status is 400 Bad Request
540536

541537
@generated @skip @team:DataDog/k9-investigation
542538
Scenario: Create ServiceNow tickets for security findings returns "Created" response
543-
Given operation "CreateServiceNowTickets" enabled
544-
And new "CreateServiceNowTickets" request
539+
Given new "CreateServiceNowTickets" request
545540
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
546541
When the request is sent
547542
Then the response status is 201 Created
548543

549544
@generated @skip @team:DataDog/k9-investigation
550545
Scenario: Create ServiceNow tickets for security findings returns "Not Found" response
551-
Given operation "CreateServiceNowTickets" enabled
552-
And new "CreateServiceNowTickets" request
546+
Given new "CreateServiceNowTickets" request
553547
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
554548
When the request is sent
555549
Then the response status is 404 Not Found

services/security_monitoring/src/v2/SecurityMonitoringApi.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -375,16 +375,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
375375
): Promise<RequestContext> {
376376
const _config = _options || this.configuration;
377377

378-
if (
379-
!_config.unstableOperations[
380-
"SecurityMonitoringApi.v2.attachServiceNowTicket"
381-
]
382-
) {
383-
throw new Error(
384-
"Unstable operation 'attachServiceNowTicket' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.attachServiceNowTicket'] = true`",
385-
);
386-
}
387-
388378
// verify required parameter 'body' is not null or undefined
389379
if (body === null || body === undefined) {
390380
throw new RequiredError("body", "attachServiceNowTicket");
@@ -2127,16 +2117,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
21272117
): Promise<RequestContext> {
21282118
const _config = _options || this.configuration;
21292119

2130-
if (
2131-
!_config.unstableOperations[
2132-
"SecurityMonitoringApi.v2.createServiceNowTickets"
2133-
]
2134-
) {
2135-
throw new Error(
2136-
"Unstable operation 'createServiceNowTickets' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.createServiceNowTickets'] = true`",
2137-
);
2138-
}
2139-
21402120
// verify required parameter 'body' is not null or undefined
21412121
if (body === null || body === undefined) {
21422122
throw new RequiredError("body", "createServiceNowTickets");

0 commit comments

Comments
 (0)