Skip to content

Commit 6077567

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 12fe430 of spec repo
1 parent f175fd0 commit 6077567

36 files changed

+3372
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 453 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-01-07T12:38:44.484Z

cassettes/features/v2/synthetics/Search-Synthetics-suites-returns-OK-response.yml

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-01-07T12:38:45.716Z

cassettes/features/v2/synthetics/Synthetics-Create-a-test-suite-returns-OK-response.yml

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Synthetics: Create a test suite returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
6+
body = DatadogAPIClient::V2::SuiteCreateEditRequest.new({
7+
data: DatadogAPIClient::V2::SuiteCreateEdit.new({
8+
attributes: DatadogAPIClient::V2::SyntheticsSuite.new({
9+
message: "Notification message",
10+
name: "Example suite name",
11+
options: DatadogAPIClient::V2::SyntheticsSuiteOptions.new({}),
12+
tags: [
13+
"env:production",
14+
],
15+
tests: [],
16+
type: DatadogAPIClient::V2::SyntheticsSuiteType::SUITE,
17+
}),
18+
type: DatadogAPIClient::V2::SyntheticsSuiteTypes::SUITES,
19+
}),
20+
})
21+
p api_instance.create_synthetics_suite(body)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Synthetics: Bulk delete suites returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
6+
body = DatadogAPIClient::V2::DeletedSuitesRequestDeleteRequest.new({
7+
data: DatadogAPIClient::V2::DeletedSuitesRequestDelete.new({
8+
attributes: DatadogAPIClient::V2::DeletedSuitesRequestDeleteAttributes.new({
9+
public_ids: [
10+
"",
11+
],
12+
}),
13+
type: DatadogAPIClient::V2::DeletedSuitesRequestType::DELETE_SUITES_REQUEST,
14+
}),
15+
})
16+
p api_instance.delete_synthetics_suites(body)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Synthetics: Edit a test suite returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
6+
body = DatadogAPIClient::V2::SuiteCreateEditRequest.new({
7+
data: DatadogAPIClient::V2::SuiteCreateEdit.new({
8+
attributes: DatadogAPIClient::V2::SyntheticsSuite.new({
9+
message: "Notification message",
10+
name: "Example suite name",
11+
options: DatadogAPIClient::V2::SyntheticsSuiteOptions.new({}),
12+
tags: [
13+
"env:production",
14+
],
15+
tests: [
16+
DatadogAPIClient::V2::SyntheticsSuiteTest.new({
17+
alerting_criticality: DatadogAPIClient::V2::SyntheticsSuiteTestAlertingCriticality::CRITICAL,
18+
public_id: "",
19+
}),
20+
],
21+
type: DatadogAPIClient::V2::SyntheticsSuiteType::SUITE,
22+
}),
23+
type: DatadogAPIClient::V2::SyntheticsSuiteTypes::SUITES,
24+
}),
25+
})
26+
p api_instance.edit_synthetics_suite("public_id", body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Synthetics: Get a suite returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.get_synthetics_suite("public_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Search Synthetics suites returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.search_suites()

0 commit comments

Comments
 (0)