Skip to content

Commit 9e3efad

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e913a88 of spec repo (#3687)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2a5f494 commit 9e3efad

5 files changed

Lines changed: 6 additions & 22 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166470,9 +166470,6 @@ paths:
166470166470
permissions:
166471166471
- security_monitoring_findings_write
166472166472
- appsec_vm_write
166473-
x-unstable: |-
166474-
**Note**: This endpoint is in preview and is subject to change.
166475-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
166476166473
post:
166477166474
description: >-
166478166475
Create ServiceNow tickets for security findings.
@@ -166543,9 +166540,6 @@ paths:
166543166540
permissions:
166544166541
- security_monitoring_findings_write
166545166542
- appsec_vm_write
166546-
x-unstable: |-
166547-
**Note**: This endpoint is in preview and is subject to change.
166548-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
166549166543
/api/v2/security/sboms:
166550166544
get:
166551166545
description: |-

examples/v2/security-monitoring/AttachServiceNowTicket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
)
4747

4848
configuration = Configuration()
49-
configuration.unstable_operations["attach_service_now_ticket"] = True
5049
with ApiClient(configuration) as api_client:
5150
api_instance = SecurityMonitoringApi(api_client)
5251
response = api_instance.attach_service_now_ticket(body=body)

examples/v2/security-monitoring/CreateServiceNowTickets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
)
5353

5454
configuration = Configuration()
55-
configuration.unstable_operations["create_service_now_tickets"] = True
5655
with ApiClient(configuration) as api_client:
5756
api_instance = SecurityMonitoringApi(api_client)
5857
response = api_instance.create_service_now_tickets(body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ def __init__(
395395
"v2.get_aws_cloud_auth_persona_mapping": False,
396396
"v2.list_aws_cloud_auth_persona_mappings": False,
397397
"v2.activate_content_pack": False,
398-
"v2.attach_service_now_ticket": False,
399398
"v2.batch_get_security_monitoring_dataset_dependencies": False,
400399
"v2.bulk_create_sample_log_generation_subscriptions": False,
401400
"v2.bulk_export_security_monitoring_terraform_resources": False,
@@ -405,7 +404,6 @@ def __init__(
405404
"v2.create_sample_log_generation_subscription": False,
406405
"v2.create_security_monitoring_dataset": False,
407406
"v2.create_security_monitoring_integration_config": False,
408-
"v2.create_service_now_tickets": False,
409407
"v2.create_static_analysis_ast": False,
410408
"v2.create_static_analysis_server_analysis": False,
411409
"v2.deactivate_content_pack": False,

tests/v2/features/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

0 commit comments

Comments
 (0)