Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87463,9 +87463,6 @@ paths:
summary: List ServiceNow assignment groups
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/servicenow/business_services/{instance_id}:
get:
description: |-
Expand Down Expand Up @@ -87504,9 +87501,6 @@ paths:
summary: List ServiceNow business services
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/servicenow/handles:
get:
description: |-
Expand All @@ -87524,9 +87518,6 @@ paths:
summary: List ServiceNow templates
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
post:
description: |-
Create a new ServiceNow template.
Expand Down Expand Up @@ -87555,9 +87546,6 @@ paths:
summary: Create ServiceNow template
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/servicenow/handles/{template_id}:
delete:
description: |-
Expand Down Expand Up @@ -87592,9 +87580,6 @@ paths:
summary: Delete ServiceNow template
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
get:
description: |-
Get a ServiceNow template by ID.
Expand Down Expand Up @@ -87632,9 +87617,6 @@ paths:
summary: Get ServiceNow template
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
put:
description: |-
Update a ServiceNow template by ID.
Expand Down Expand Up @@ -87678,9 +87660,6 @@ paths:
summary: Update ServiceNow template
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/servicenow/instances:
get:
description: |-
Expand All @@ -87704,9 +87683,6 @@ paths:
summary: List ServiceNow instances
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integration/servicenow/users/{instance_id}:
get:
description: |-
Expand Down Expand Up @@ -87745,9 +87721,6 @@ paths:
summary: List ServiceNow users
tags:
- ServiceNow Integration
x-unstable: |-
**Note**: This endpoint is in public beta and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/integrations:
get:
operationId: ListIntegrations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Create ServiceNow template returns "Created" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.create_service_now_template".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new

body = DatadogAPIClient::V2::ServiceNowTemplateCreateRequest.new({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Delete ServiceNow template returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.delete_service_now_template".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.delete_service_now_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
3 changes: 0 additions & 3 deletions examples/v2/servicenow-integration/GetServiceNowTemplate.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Get ServiceNow template returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_service_now_template".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.get_service_now_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List ServiceNow assignment groups returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_service_now_assignment_groups".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.list_service_now_assignment_groups("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List ServiceNow business services returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_service_now_business_services".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.list_service_now_business_services("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List ServiceNow instances returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_service_now_instances".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.list_service_now_instances()
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List ServiceNow templates returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_service_now_templates".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.list_service_now_templates()
3 changes: 0 additions & 3 deletions examples/v2/servicenow-integration/ListServiceNowUsers.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# List ServiceNow users returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_service_now_users".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new
p api_instance.list_service_now_users("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Update ServiceNow template returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.update_service_now_template".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new

body = DatadogAPIClient::V2::ServiceNowTemplateUpdateRequest.new({
Expand Down
69 changes: 23 additions & 46 deletions features/v2/servicenow_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,183 +11,160 @@ Feature: ServiceNow Integration

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Create ServiceNow template returns "Bad Request" response
Given operation "CreateServiceNowTemplate" enabled
And new "CreateServiceNowTemplate" request
Given new "CreateServiceNowTemplate" request
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"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Create ServiceNow template returns "Created" response
Given operation "CreateServiceNowTemplate" enabled
And new "CreateServiceNowTemplate" request
Given new "CreateServiceNowTemplate" request
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"}}
When the request is sent
Then the response status is 201 Created

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

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

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Delete ServiceNow template returns "OK" response
Given operation "DeleteServiceNowTemplate" enabled
And new "DeleteServiceNowTemplate" request
Given new "DeleteServiceNowTemplate" request
And request contains "template_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

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

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

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Get ServiceNow template returns "OK" response
Given operation "GetServiceNowTemplate" enabled
And new "GetServiceNowTemplate" request
Given new "GetServiceNowTemplate" request
And request contains "template_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

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

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

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

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

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

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

@generated @skip @team:Datadog/collaboration-integrations
Scenario: List ServiceNow instances returns "Not Found" response
Given operation "ListServiceNowInstances" enabled
And new "ListServiceNowInstances" request
Given new "ListServiceNowInstances" request
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:Datadog/collaboration-integrations
Scenario: List ServiceNow instances returns "OK" response
Given operation "ListServiceNowInstances" enabled
And new "ListServiceNowInstances" request
Given new "ListServiceNowInstances" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:Datadog/collaboration-integrations
Scenario: List ServiceNow templates returns "OK" response
Given operation "ListServiceNowTemplates" enabled
And new "ListServiceNowTemplates" request
Given new "ListServiceNowTemplates" request
When the request is sent
Then the response status is 200 OK

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

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

@generated @skip @team:Datadog/collaboration-integrations
Scenario: List ServiceNow users returns "OK" response
Given operation "ListServiceNowUsers" enabled
And new "ListServiceNowUsers" request
Given new "ListServiceNowUsers" request
And request contains "instance_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Update ServiceNow template returns "Bad Request" response
Given operation "UpdateServiceNowTemplate" enabled
And new "UpdateServiceNowTemplate" request
Given new "UpdateServiceNowTemplate" request
And request contains "template_id" parameter from "REPLACE.ME"
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"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Update ServiceNow template returns "Not Found" response
Given operation "UpdateServiceNowTemplate" enabled
And new "UpdateServiceNowTemplate" request
Given new "UpdateServiceNowTemplate" request
And request contains "template_id" parameter from "REPLACE.ME"
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"}}
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:Datadog/collaboration-integrations
Scenario: Update ServiceNow template returns "OK" response
Given operation "UpdateServiceNowTemplate" enabled
And new "UpdateServiceNowTemplate" request
Given new "UpdateServiceNowTemplate" request
And request contains "template_id" parameter from "REPLACE.ME"
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"}}
When the request is sent
Expand Down
9 changes: 0 additions & 9 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,6 @@ def initialize
"v2.update_jira_issue_template": false,
"v2.create_tenancy_config": false,
"v2.get_tenancy_configs": false,
"v2.create_service_now_template": false,
"v2.delete_service_now_template": false,
"v2.get_service_now_template": false,
"v2.list_service_now_assignment_groups": false,
"v2.list_service_now_business_services": false,
"v2.list_service_now_instances": false,
"v2.list_service_now_templates": false,
"v2.list_service_now_users": false,
"v2.update_service_now_template": false,
"v2.create_llm_obs_dataset": false,
"v2.create_llm_obs_dataset_records": false,
"v2.create_llm_obs_experiment": false,
Expand Down
Loading
Loading