Skip to content

Commit d2f9625

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 57b74c2 of spec repo
1 parent d8b087c commit d2f9625

File tree

92 files changed

+13813
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13813
-144
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2415 additions & 81 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a browser test result returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.get_synthetics_browser_test_result("public_id", "result_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a test result returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.get_synthetics_test_result("public_id", "result_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a browser test's latest results returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.list_synthetics_browser_test_latest_results("public_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a test's latest results returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.list_synthetics_test_latest_results("public_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Poll for test results returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::SyntheticsAPI.new
5+
p api_instance.poll_synthetics_test_results("result_ids")

features/scenarios_model_mapping.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,6 +4274,21 @@
42744274
"public_id" => "String",
42754275
"body" => "SuiteJsonPatchRequest",
42764276
},
4277+
"v2.ListSyntheticsBrowserTestLatestResults" => {
4278+
"public_id" => "String",
4279+
"from_ts" => "Integer",
4280+
"to_ts" => "Integer",
4281+
"status" => "SyntheticsTestResultStatus",
4282+
"run_type" => "SyntheticsTestResultRunType",
4283+
"probe_dc" => "Array<String>",
4284+
"device_id" => "Array<String>",
4285+
},
4286+
"v2.GetSyntheticsBrowserTestResult" => {
4287+
"public_id" => "String",
4288+
"result_id" => "String",
4289+
"event_id" => "String",
4290+
"timestamp" => "Integer",
4291+
},
42774292
"v2.DeleteSyntheticsTests" => {
42784293
"body" => "DeletedTestsRequestDeleteRequest",
42794294
},
@@ -4290,6 +4305,9 @@
42904305
"public_id" => "String",
42914306
"body" => "SyntheticsNetworkTestEditRequest",
42924307
},
4308+
"v2.PollSyntheticsTestResults" => {
4309+
"result_ids" => "String",
4310+
},
42934311
"v2.GetTestFileDownloadUrl" => {
42944312
"public_id" => "String",
42954313
"body" => "SyntheticsTestFileDownloadRequest",
@@ -4309,6 +4327,21 @@
43094327
"v2.GetTestParentSuites" => {
43104328
"public_id" => "String",
43114329
},
4330+
"v2.ListSyntheticsTestLatestResults" => {
4331+
"public_id" => "String",
4332+
"from_ts" => "Integer",
4333+
"to_ts" => "Integer",
4334+
"status" => "SyntheticsTestResultStatus",
4335+
"run_type" => "SyntheticsTestResultRunType",
4336+
"probe_dc" => "Array<String>",
4337+
"device_id" => "Array<String>",
4338+
},
4339+
"v2.GetSyntheticsTestResult" => {
4340+
"public_id" => "String",
4341+
"result_id" => "String",
4342+
"event_id" => "String",
4343+
"timestamp" => "Integer",
4344+
},
43124345
"v2.ListSyntheticsTestVersions" => {
43134346
"public_id" => "String",
43144347
"last_version_number" => "Integer",

features/v2/synthetics.feature

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,36 @@ Feature: Synthetics
151151
When the request is sent
152152
Then the response status is 200 OK
153153

154+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
155+
Scenario: Get a browser test result returns "API error response." response
156+
Given new "GetSyntheticsBrowserTestResult" request
157+
And request contains "public_id" parameter from "REPLACE.ME"
158+
And request contains "result_id" parameter from "REPLACE.ME"
159+
When the request is sent
160+
Then the response status is 404 API error response.
161+
162+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
163+
Scenario: Get a browser test result returns "OK" response
164+
Given new "GetSyntheticsBrowserTestResult" request
165+
And request contains "public_id" parameter from "REPLACE.ME"
166+
And request contains "result_id" parameter from "REPLACE.ME"
167+
When the request is sent
168+
Then the response status is 200 OK
169+
170+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
171+
Scenario: Get a browser test's latest results returns "API error response." response
172+
Given new "ListSyntheticsBrowserTestLatestResults" request
173+
And request contains "public_id" parameter from "REPLACE.ME"
174+
When the request is sent
175+
Then the response status is 404 API error response.
176+
177+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
178+
Scenario: Get a browser test's latest results returns "OK" response
179+
Given new "ListSyntheticsBrowserTestLatestResults" request
180+
And request contains "public_id" parameter from "REPLACE.ME"
181+
When the request is sent
182+
Then the response status is 200 OK
183+
154184
@generated @skip @team:DataDog/synthetics-orchestrating-managing
155185
Scenario: Get a fast test result returns "API error response." response
156186
Given new "GetSyntheticsFastTestResult" request
@@ -211,6 +241,36 @@ Feature: Synthetics
211241
When the request is sent
212242
Then the response status is 200 OK
213243

244+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
245+
Scenario: Get a test result returns "API error response." response
246+
Given new "GetSyntheticsTestResult" request
247+
And request contains "public_id" parameter from "REPLACE.ME"
248+
And request contains "result_id" parameter from "REPLACE.ME"
249+
When the request is sent
250+
Then the response status is 404 API error response.
251+
252+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
253+
Scenario: Get a test result returns "OK" response
254+
Given new "GetSyntheticsTestResult" request
255+
And request contains "public_id" parameter from "REPLACE.ME"
256+
And request contains "result_id" parameter from "REPLACE.ME"
257+
When the request is sent
258+
Then the response status is 200 OK
259+
260+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
261+
Scenario: Get a test's latest results returns "API error response." response
262+
Given new "ListSyntheticsTestLatestResults" request
263+
And request contains "public_id" parameter from "REPLACE.ME"
264+
When the request is sent
265+
Then the response status is 404 API error response.
266+
267+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
268+
Scenario: Get a test's latest results returns "OK" response
269+
Given new "ListSyntheticsTestLatestResults" request
270+
And request contains "public_id" parameter from "REPLACE.ME"
271+
When the request is sent
272+
Then the response status is 200 OK
273+
214274
@generated @skip @team:DataDog/synthetics-orchestrating-managing
215275
Scenario: Get available subtests for a multistep test returns "OK" response
216276
Given new "GetApiMultistepSubtests" request
@@ -322,6 +382,20 @@ Feature: Synthetics
322382
When the request is sent
323383
Then the response status is 200 OK
324384

385+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
386+
Scenario: Poll for test results returns "API error response." response
387+
Given new "PollSyntheticsTestResults" request
388+
And request contains "result_ids" parameter from "REPLACE.ME"
389+
When the request is sent
390+
Then the response status is 404 API error response.
391+
392+
@generated @skip @team:DataDog/synthetics-orchestrating-managing
393+
Scenario: Poll for test results returns "OK" response
394+
Given new "PollSyntheticsTestResults" request
395+
And request contains "result_ids" parameter from "REPLACE.ME"
396+
When the request is sent
397+
Then the response status is 200 OK
398+
325399
@team:DataDog/synthetics-orchestrating-managing
326400
Scenario: Save new value for on-demand concurrency cap returns "OK" response
327401
Given new "SetOnDemandConcurrencyCap" request

features/v2/undo.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6404,6 +6404,18 @@
64046404
"type": "idempotent"
64056405
}
64066406
},
6407+
"ListSyntheticsBrowserTestLatestResults": {
6408+
"tag": "Synthetics",
6409+
"undo": {
6410+
"type": "safe"
6411+
}
6412+
},
6413+
"GetSyntheticsBrowserTestResult": {
6414+
"tag": "Synthetics",
6415+
"undo": {
6416+
"type": "safe"
6417+
}
6418+
},
64076419
"DeleteSyntheticsTests": {
64086420
"tag": "Synthetics",
64096421
"undo": {
@@ -6441,6 +6453,12 @@
64416453
"type": "idempotent"
64426454
}
64436455
},
6456+
"PollSyntheticsTestResults": {
6457+
"tag": "Synthetics",
6458+
"undo": {
6459+
"type": "safe"
6460+
}
6461+
},
64446462
"GetTestFileDownloadUrl": {
64456463
"tag": "Synthetics",
64466464
"undo": {
@@ -6471,6 +6489,18 @@
64716489
"type": "safe"
64726490
}
64736491
},
6492+
"ListSyntheticsTestLatestResults": {
6493+
"tag": "Synthetics",
6494+
"undo": {
6495+
"type": "safe"
6496+
}
6497+
},
6498+
"GetSyntheticsTestResult": {
6499+
"tag": "Synthetics",
6500+
"undo": {
6501+
"type": "safe"
6502+
}
6503+
},
64746504
"ListSyntheticsTestVersions": {
64756505
"tag": "Synthetics",
64766506
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,10 +5591,6 @@ def overrides
55915591
"v2.synthetics_fast_test_result_attributes" => "SyntheticsFastTestResultAttributes",
55925592
"v2.synthetics_fast_test_result_data" => "SyntheticsFastTestResultData",
55935593
"v2.synthetics_fast_test_result_detail" => "SyntheticsFastTestResultDetail",
5594-
"v2.synthetics_fast_test_result_device" => "SyntheticsFastTestResultDevice",
5595-
"v2.synthetics_fast_test_result_failure" => "SyntheticsFastTestResultFailure",
5596-
"v2.synthetics_fast_test_result_location" => "SyntheticsFastTestResultLocation",
5597-
"v2.synthetics_fast_test_result_type" => "SyntheticsFastTestResultType",
55985594
"v2.synthetics_fast_test_sub_type" => "SyntheticsFastTestSubType",
55995595
"v2.synthetics_global_variable" => "SyntheticsGlobalVariable",
56005596
"v2.synthetics_global_variable_attributes" => "SyntheticsGlobalVariableAttributes",
@@ -5626,6 +5622,7 @@ def overrides
56265622
"v2.synthetics_network_test_response_type" => "SyntheticsNetworkTestResponseType",
56275623
"v2.synthetics_network_test_sub_type" => "SyntheticsNetworkTestSubType",
56285624
"v2.synthetics_network_test_type" => "SyntheticsNetworkTestType",
5625+
"v2.synthetics_poll_test_results_response" => "SyntheticsPollTestResultsResponse",
56295626
"v2.synthetics_suite" => "SyntheticsSuite",
56305627
"v2.synthetics_suite_options" => "SyntheticsSuiteOptions",
56315628
"v2.synthetics_suite_response" => "SyntheticsSuiteResponse",
@@ -5647,6 +5644,7 @@ def overrides
56475644
"v2.synthetics_test_file_multipart_presigned_urls_request" => "SyntheticsTestFileMultipartPresignedUrlsRequest",
56485645
"v2.synthetics_test_file_multipart_presigned_urls_request_bucket_key_prefix" => "SyntheticsTestFileMultipartPresignedUrlsRequestBucketKeyPrefix",
56495646
"v2.synthetics_test_file_multipart_presigned_urls_response" => "SyntheticsTestFileMultipartPresignedUrlsResponse",
5647+
"v2.synthetics_test_latest_results_response" => "SyntheticsTestLatestResultsResponse",
56505648
"v2.synthetics_test_options" => "SyntheticsTestOptions",
56515649
"v2.synthetics_test_options_monitor_options" => "SyntheticsTestOptionsMonitorOptions",
56525650
"v2.synthetics_test_options_monitor_options_notification_preset_name" => "SyntheticsTestOptionsMonitorOptionsNotificationPresetName",
@@ -5658,6 +5656,82 @@ def overrides
56585656
"v2.synthetics_test_parent_suites_response" => "SyntheticsTestParentSuitesResponse",
56595657
"v2.synthetics_test_parent_suite_type" => "SyntheticsTestParentSuiteType",
56605658
"v2.synthetics_test_pause_status" => "SyntheticsTestPauseStatus",
5659+
"v2.synthetics_test_result_assertion_result" => "SyntheticsTestResultAssertionResult",
5660+
"v2.synthetics_test_result_attributes" => "SyntheticsTestResultAttributes",
5661+
"v2.synthetics_test_result_batch" => "SyntheticsTestResultBatch",
5662+
"v2.synthetics_test_result_bounds" => "SyntheticsTestResultBounds",
5663+
"v2.synthetics_test_result_browser_error" => "SyntheticsTestResultBrowserError",
5664+
"v2.synthetics_test_result_bucket_keys" => "SyntheticsTestResultBucketKeys",
5665+
"v2.synthetics_test_result_cdn_cache_status" => "SyntheticsTestResultCdnCacheStatus",
5666+
"v2.synthetics_test_result_cdn_provider_info" => "SyntheticsTestResultCdnProviderInfo",
5667+
"v2.synthetics_test_result_cdn_resource" => "SyntheticsTestResultCdnResource",
5668+
"v2.synthetics_test_result_certificate" => "SyntheticsTestResultCertificate",
5669+
"v2.synthetics_test_result_certificate_validity" => "SyntheticsTestResultCertificateValidity",
5670+
"v2.synthetics_test_result_ci" => "SyntheticsTestResultCI",
5671+
"v2.synthetics_test_result_ci_pipeline" => "SyntheticsTestResultCIPipeline",
5672+
"v2.synthetics_test_result_ci_provider" => "SyntheticsTestResultCIProvider",
5673+
"v2.synthetics_test_result_ci_stage" => "SyntheticsTestResultCIStage",
5674+
"v2.synthetics_test_result_data" => "SyntheticsTestResultData",
5675+
"v2.synthetics_test_result_detail" => "SyntheticsTestResultDetail",
5676+
"v2.synthetics_test_result_device" => "SyntheticsTestResultDevice",
5677+
"v2.synthetics_test_result_device_browser" => "SyntheticsTestResultDeviceBrowser",
5678+
"v2.synthetics_test_result_device_platform" => "SyntheticsTestResultDevicePlatform",
5679+
"v2.synthetics_test_result_device_resolution" => "SyntheticsTestResultDeviceResolution",
5680+
"v2.synthetics_test_result_dns_record" => "SyntheticsTestResultDnsRecord",
5681+
"v2.synthetics_test_result_dns_resolution" => "SyntheticsTestResultDnsResolution",
5682+
"v2.synthetics_test_result_execution_info" => "SyntheticsTestResultExecutionInfo",
5683+
"v2.synthetics_test_result_failure" => "SyntheticsTestResultFailure",
5684+
"v2.synthetics_test_result_file_ref" => "SyntheticsTestResultFileRef",
5685+
"v2.synthetics_test_result_git" => "SyntheticsTestResultGit",
5686+
"v2.synthetics_test_result_git_commit" => "SyntheticsTestResultGitCommit",
5687+
"v2.synthetics_test_result_git_user" => "SyntheticsTestResultGitUser",
5688+
"v2.synthetics_test_result_handshake" => "SyntheticsTestResultHandshake",
5689+
"v2.synthetics_test_result_health_check" => "SyntheticsTestResultHealthCheck",
5690+
"v2.synthetics_test_result_included_item" => "SyntheticsTestResultIncludedItem",
5691+
"v2.synthetics_test_result_location" => "SyntheticsTestResultLocation",
5692+
"v2.synthetics_test_result_netpath" => "SyntheticsTestResultNetpath",
5693+
"v2.synthetics_test_result_netpath_destination" => "SyntheticsTestResultNetpathDestination",
5694+
"v2.synthetics_test_result_netpath_endpoint" => "SyntheticsTestResultNetpathEndpoint",
5695+
"v2.synthetics_test_result_netpath_hop" => "SyntheticsTestResultNetpathHop",
5696+
"v2.synthetics_test_result_netstats" => "SyntheticsTestResultNetstats",
5697+
"v2.synthetics_test_result_netstats_hops" => "SyntheticsTestResultNetstatsHops",
5698+
"v2.synthetics_test_result_network_latency" => "SyntheticsTestResultNetworkLatency",
5699+
"v2.synthetics_test_result_ocsp_certificate" => "SyntheticsTestResultOCSPCertificate",
5700+
"v2.synthetics_test_result_ocsp_response" => "SyntheticsTestResultOCSPResponse",
5701+
"v2.synthetics_test_result_ocsp_updates" => "SyntheticsTestResultOCSPUpdates",
5702+
"v2.synthetics_test_result_parent_step" => "SyntheticsTestResultParentStep",
5703+
"v2.synthetics_test_result_parent_test" => "SyntheticsTestResultParentTest",
5704+
"v2.synthetics_test_result_redirect" => "SyntheticsTestResultRedirect",
5705+
"v2.synthetics_test_result_relationships" => "SyntheticsTestResultRelationships",
5706+
"v2.synthetics_test_result_relationship_test" => "SyntheticsTestResultRelationshipTest",
5707+
"v2.synthetics_test_result_relationship_test_data" => "SyntheticsTestResultRelationshipTestData",
5708+
"v2.synthetics_test_result_request_info" => "SyntheticsTestResultRequestInfo",
5709+
"v2.synthetics_test_result_response" => "SyntheticsTestResultResponse",
5710+
"v2.synthetics_test_result_response_info" => "SyntheticsTestResultResponseInfo",
5711+
"v2.synthetics_test_result_router" => "SyntheticsTestResultRouter",
5712+
"v2.synthetics_test_result_rum_context" => "SyntheticsTestResultRumContext",
5713+
"v2.synthetics_test_result_run_type" => "SyntheticsTestResultRunType",
5714+
"v2.synthetics_test_result_status" => "SyntheticsTestResultStatus",
5715+
"v2.synthetics_test_result_step" => "SyntheticsTestResultStep",
5716+
"v2.synthetics_test_result_step_assertion_result" => "SyntheticsTestResultStepAssertionResult",
5717+
"v2.synthetics_test_result_step_element_updates" => "SyntheticsTestResultStepElementUpdates",
5718+
"v2.synthetics_test_result_steps_info" => "SyntheticsTestResultStepsInfo",
5719+
"v2.synthetics_test_result_sub_step" => "SyntheticsTestResultSubStep",
5720+
"v2.synthetics_test_result_sub_test" => "SyntheticsTestResultSubTest",
5721+
"v2.synthetics_test_result_summary_attributes" => "SyntheticsTestResultSummaryAttributes",
5722+
"v2.synthetics_test_result_summary_data" => "SyntheticsTestResultSummaryData",
5723+
"v2.synthetics_test_result_summary_type" => "SyntheticsTestResultSummaryType",
5724+
"v2.synthetics_test_result_tab" => "SyntheticsTestResultTab",
5725+
"v2.synthetics_test_result_trace" => "SyntheticsTestResultTrace",
5726+
"v2.synthetics_test_result_traceroute_hop" => "SyntheticsTestResultTracerouteHop",
5727+
"v2.synthetics_test_result_turn" => "SyntheticsTestResultTurn",
5728+
"v2.synthetics_test_result_turn_step" => "SyntheticsTestResultTurnStep",
5729+
"v2.synthetics_test_result_type" => "SyntheticsTestResultType",
5730+
"v2.synthetics_test_result_variable" => "SyntheticsTestResultVariable",
5731+
"v2.synthetics_test_result_variables" => "SyntheticsTestResultVariables",
5732+
"v2.synthetics_test_result_vitals_metrics" => "SyntheticsTestResultVitalsMetrics",
5733+
"v2.synthetics_test_result_warning" => "SyntheticsTestResultWarning",
5734+
"v2.synthetics_test_result_web_socket_close" => "SyntheticsTestResultWebSocketClose",
56615735
"v2.synthetics_test_version_action_metadata" => "SyntheticsTestVersionActionMetadata",
56625736
"v2.synthetics_test_version_attributes" => "SyntheticsTestVersionAttributes",
56635737
"v2.synthetics_test_version_author" => "SyntheticsTestVersionAuthor",

0 commit comments

Comments
 (0)