Skip to content

Commit f081b71

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c8905f8 of spec repo
1 parent 8c169f8 commit f081b71

95 files changed

Lines changed: 14069 additions & 134 deletions

File tree

Some content is hidden

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

.generator/schemas/v2/openapi.yaml

Lines changed: 2457 additions & 74 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
@@ -4333,6 +4333,21 @@
43334333
"public_id" => "String",
43344334
"body" => "SuiteJsonPatchRequest",
43354335
},
4336+
"v2.ListSyntheticsBrowserTestLatestResults" => {
4337+
"public_id" => "String",
4338+
"from_ts" => "Integer",
4339+
"to_ts" => "Integer",
4340+
"status" => "SyntheticsTestResultStatus",
4341+
"run_type" => "SyntheticsTestResultRunType",
4342+
"probe_dc" => "Array<String>",
4343+
"device_id" => "Array<String>",
4344+
},
4345+
"v2.GetSyntheticsBrowserTestResult" => {
4346+
"public_id" => "String",
4347+
"result_id" => "String",
4348+
"event_id" => "String",
4349+
"timestamp" => "Integer",
4350+
},
43364351
"v2.DeleteSyntheticsTests" => {
43374352
"body" => "DeletedTestsRequestDeleteRequest",
43384353
},
@@ -4349,6 +4364,9 @@
43494364
"public_id" => "String",
43504365
"body" => "SyntheticsNetworkTestEditRequest",
43514366
},
4367+
"v2.PollSyntheticsTestResults" => {
4368+
"result_ids" => "String",
4369+
},
43524370
"v2.GetTestFileDownloadUrl" => {
43534371
"public_id" => "String",
43544372
"body" => "SyntheticsTestFileDownloadRequest",
@@ -4368,6 +4386,21 @@
43684386
"v2.GetTestParentSuites" => {
43694387
"public_id" => "String",
43704388
},
4389+
"v2.ListSyntheticsTestLatestResults" => {
4390+
"public_id" => "String",
4391+
"from_ts" => "Integer",
4392+
"to_ts" => "Integer",
4393+
"status" => "SyntheticsTestResultStatus",
4394+
"run_type" => "SyntheticsTestResultRunType",
4395+
"probe_dc" => "Array<String>",
4396+
"device_id" => "Array<String>",
4397+
},
4398+
"v2.GetSyntheticsTestResult" => {
4399+
"public_id" => "String",
4400+
"result_id" => "String",
4401+
"event_id" => "String",
4402+
"timestamp" => "Integer",
4403+
},
43714404
"v2.ListSyntheticsTestVersions" => {
43724405
"public_id" => "String",
43734406
"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
@@ -6459,6 +6459,18 @@
64596459
"type": "idempotent"
64606460
}
64616461
},
6462+
"ListSyntheticsBrowserTestLatestResults": {
6463+
"tag": "Synthetics",
6464+
"undo": {
6465+
"type": "safe"
6466+
}
6467+
},
6468+
"GetSyntheticsBrowserTestResult": {
6469+
"tag": "Synthetics",
6470+
"undo": {
6471+
"type": "safe"
6472+
}
6473+
},
64626474
"DeleteSyntheticsTests": {
64636475
"tag": "Synthetics",
64646476
"undo": {
@@ -6496,6 +6508,12 @@
64966508
"type": "idempotent"
64976509
}
64986510
},
6511+
"PollSyntheticsTestResults": {
6512+
"tag": "Synthetics",
6513+
"undo": {
6514+
"type": "safe"
6515+
}
6516+
},
64996517
"GetTestFileDownloadUrl": {
65006518
"tag": "Synthetics",
65016519
"undo": {
@@ -6526,6 +6544,18 @@
65266544
"type": "safe"
65276545
}
65286546
},
6547+
"ListSyntheticsTestLatestResults": {
6548+
"tag": "Synthetics",
6549+
"undo": {
6550+
"type": "safe"
6551+
}
6552+
},
6553+
"GetSyntheticsTestResult": {
6554+
"tag": "Synthetics",
6555+
"undo": {
6556+
"type": "safe"
6557+
}
6558+
},
65296559
"ListSyntheticsTestVersions": {
65306560
"tag": "Synthetics",
65316561
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 82 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5630,11 +5630,9 @@ def overrides
56305630
"v2.synthetics_fast_test_result_attributes" => "SyntheticsFastTestResultAttributes",
56315631
"v2.synthetics_fast_test_result_data" => "SyntheticsFastTestResultData",
56325632
"v2.synthetics_fast_test_result_detail" => "SyntheticsFastTestResultDetail",
5633-
"v2.synthetics_fast_test_result_device" => "SyntheticsFastTestResultDevice",
5634-
"v2.synthetics_fast_test_result_failure" => "SyntheticsFastTestResultFailure",
5635-
"v2.synthetics_fast_test_result_location" => "SyntheticsFastTestResultLocation",
56365633
"v2.synthetics_fast_test_result_type" => "SyntheticsFastTestResultType",
56375634
"v2.synthetics_fast_test_sub_type" => "SyntheticsFastTestSubType",
5635+
"v2.synthetics_fast_test_type" => "SyntheticsFastTestType",
56385636
"v2.synthetics_global_variable" => "SyntheticsGlobalVariable",
56395637
"v2.synthetics_global_variable_attributes" => "SyntheticsGlobalVariableAttributes",
56405638
"v2.synthetics_global_variable_options" => "SyntheticsGlobalVariableOptions",
@@ -5665,6 +5663,7 @@ def overrides
56655663
"v2.synthetics_network_test_response_type" => "SyntheticsNetworkTestResponseType",
56665664
"v2.synthetics_network_test_sub_type" => "SyntheticsNetworkTestSubType",
56675665
"v2.synthetics_network_test_type" => "SyntheticsNetworkTestType",
5666+
"v2.synthetics_poll_test_results_response" => "SyntheticsPollTestResultsResponse",
56685667
"v2.synthetics_suite" => "SyntheticsSuite",
56695668
"v2.synthetics_suite_options" => "SyntheticsSuiteOptions",
56705669
"v2.synthetics_suite_response" => "SyntheticsSuiteResponse",
@@ -5686,6 +5685,7 @@ def overrides
56865685
"v2.synthetics_test_file_multipart_presigned_urls_request" => "SyntheticsTestFileMultipartPresignedUrlsRequest",
56875686
"v2.synthetics_test_file_multipart_presigned_urls_request_bucket_key_prefix" => "SyntheticsTestFileMultipartPresignedUrlsRequestBucketKeyPrefix",
56885687
"v2.synthetics_test_file_multipart_presigned_urls_response" => "SyntheticsTestFileMultipartPresignedUrlsResponse",
5688+
"v2.synthetics_test_latest_results_response" => "SyntheticsTestLatestResultsResponse",
56895689
"v2.synthetics_test_options" => "SyntheticsTestOptions",
56905690
"v2.synthetics_test_options_monitor_options" => "SyntheticsTestOptionsMonitorOptions",
56915691
"v2.synthetics_test_options_monitor_options_notification_preset_name" => "SyntheticsTestOptionsMonitorOptionsNotificationPresetName",
@@ -5697,6 +5697,85 @@ def overrides
56975697
"v2.synthetics_test_parent_suites_response" => "SyntheticsTestParentSuitesResponse",
56985698
"v2.synthetics_test_parent_suite_type" => "SyntheticsTestParentSuiteType",
56995699
"v2.synthetics_test_pause_status" => "SyntheticsTestPauseStatus",
5700+
"v2.synthetics_test_result_assertion_result" => "SyntheticsTestResultAssertionResult",
5701+
"v2.synthetics_test_result_attributes" => "SyntheticsTestResultAttributes",
5702+
"v2.synthetics_test_result_batch" => "SyntheticsTestResultBatch",
5703+
"v2.synthetics_test_result_bounds" => "SyntheticsTestResultBounds",
5704+
"v2.synthetics_test_result_browser_error" => "SyntheticsTestResultBrowserError",
5705+
"v2.synthetics_test_result_bucket_keys" => "SyntheticsTestResultBucketKeys",
5706+
"v2.synthetics_test_result_cdn_cache_status" => "SyntheticsTestResultCdnCacheStatus",
5707+
"v2.synthetics_test_result_cdn_provider_info" => "SyntheticsTestResultCdnProviderInfo",
5708+
"v2.synthetics_test_result_cdn_resource" => "SyntheticsTestResultCdnResource",
5709+
"v2.synthetics_test_result_certificate" => "SyntheticsTestResultCertificate",
5710+
"v2.synthetics_test_result_certificate_validity" => "SyntheticsTestResultCertificateValidity",
5711+
"v2.synthetics_test_result_ci" => "SyntheticsTestResultCI",
5712+
"v2.synthetics_test_result_ci_pipeline" => "SyntheticsTestResultCIPipeline",
5713+
"v2.synthetics_test_result_ci_provider" => "SyntheticsTestResultCIProvider",
5714+
"v2.synthetics_test_result_ci_stage" => "SyntheticsTestResultCIStage",
5715+
"v2.synthetics_test_result_data" => "SyntheticsTestResultData",
5716+
"v2.synthetics_test_result_detail" => "SyntheticsTestResultDetail",
5717+
"v2.synthetics_test_result_device" => "SyntheticsTestResultDevice",
5718+
"v2.synthetics_test_result_device_browser" => "SyntheticsTestResultDeviceBrowser",
5719+
"v2.synthetics_test_result_device_platform" => "SyntheticsTestResultDevicePlatform",
5720+
"v2.synthetics_test_result_device_resolution" => "SyntheticsTestResultDeviceResolution",
5721+
"v2.synthetics_test_result_dns_record" => "SyntheticsTestResultDnsRecord",
5722+
"v2.synthetics_test_result_dns_resolution" => "SyntheticsTestResultDnsResolution",
5723+
"v2.synthetics_test_result_duration" => "SyntheticsTestResultDuration",
5724+
"v2.synthetics_test_result_execution_info" => "SyntheticsTestResultExecutionInfo",
5725+
"v2.synthetics_test_result_failure" => "SyntheticsTestResultFailure",
5726+
"v2.synthetics_test_result_file_ref" => "SyntheticsTestResultFileRef",
5727+
"v2.synthetics_test_result_git" => "SyntheticsTestResultGit",
5728+
"v2.synthetics_test_result_git_commit" => "SyntheticsTestResultGitCommit",
5729+
"v2.synthetics_test_result_git_user" => "SyntheticsTestResultGitUser",
5730+
"v2.synthetics_test_result_handshake" => "SyntheticsTestResultHandshake",
5731+
"v2.synthetics_test_result_health_check" => "SyntheticsTestResultHealthCheck",
5732+
"v2.synthetics_test_result_included_item" => "SyntheticsTestResultIncludedItem",
5733+
"v2.synthetics_test_result_location" => "SyntheticsTestResultLocation",
5734+
"v2.synthetics_test_result_netpath" => "SyntheticsTestResultNetpath",
5735+
"v2.synthetics_test_result_netpath_destination" => "SyntheticsTestResultNetpathDestination",
5736+
"v2.synthetics_test_result_netpath_endpoint" => "SyntheticsTestResultNetpathEndpoint",
5737+
"v2.synthetics_test_result_netpath_hop" => "SyntheticsTestResultNetpathHop",
5738+
"v2.synthetics_test_result_netstats" => "SyntheticsTestResultNetstats",
5739+
"v2.synthetics_test_result_netstats_hops" => "SyntheticsTestResultNetstatsHops",
5740+
"v2.synthetics_test_result_network_latency" => "SyntheticsTestResultNetworkLatency",
5741+
"v2.synthetics_test_result_ocsp_certificate" => "SyntheticsTestResultOCSPCertificate",
5742+
"v2.synthetics_test_result_ocsp_response" => "SyntheticsTestResultOCSPResponse",
5743+
"v2.synthetics_test_result_ocsp_updates" => "SyntheticsTestResultOCSPUpdates",
5744+
"v2.synthetics_test_result_parent_step" => "SyntheticsTestResultParentStep",
5745+
"v2.synthetics_test_result_parent_test" => "SyntheticsTestResultParentTest",
5746+
"v2.synthetics_test_result_redirect" => "SyntheticsTestResultRedirect",
5747+
"v2.synthetics_test_result_relationships" => "SyntheticsTestResultRelationships",
5748+
"v2.synthetics_test_result_relationship_test" => "SyntheticsTestResultRelationshipTest",
5749+
"v2.synthetics_test_result_relationship_test_data" => "SyntheticsTestResultRelationshipTestData",
5750+
"v2.synthetics_test_result_request_info" => "SyntheticsTestResultRequestInfo",
5751+
"v2.synthetics_test_result_response" => "SyntheticsTestResultResponse",
5752+
"v2.synthetics_test_result_response_info" => "SyntheticsTestResultResponseInfo",
5753+
"v2.synthetics_test_result_router" => "SyntheticsTestResultRouter",
5754+
"v2.synthetics_test_result_rum_context" => "SyntheticsTestResultRumContext",
5755+
"v2.synthetics_test_result_run_type" => "SyntheticsTestResultRunType",
5756+
"v2.synthetics_test_result_status" => "SyntheticsTestResultStatus",
5757+
"v2.synthetics_test_result_step" => "SyntheticsTestResultStep",
5758+
"v2.synthetics_test_result_step_assertion_result" => "SyntheticsTestResultStepAssertionResult",
5759+
"v2.synthetics_test_result_step_element_updates" => "SyntheticsTestResultStepElementUpdates",
5760+
"v2.synthetics_test_result_steps_info" => "SyntheticsTestResultStepsInfo",
5761+
"v2.synthetics_test_result_sub_step" => "SyntheticsTestResultSubStep",
5762+
"v2.synthetics_test_result_sub_test" => "SyntheticsTestResultSubTest",
5763+
"v2.synthetics_test_result_summary_attributes" => "SyntheticsTestResultSummaryAttributes",
5764+
"v2.synthetics_test_result_summary_data" => "SyntheticsTestResultSummaryData",
5765+
"v2.synthetics_test_result_summary_type" => "SyntheticsTestResultSummaryType",
5766+
"v2.synthetics_test_result_tab" => "SyntheticsTestResultTab",
5767+
"v2.synthetics_test_result_trace" => "SyntheticsTestResultTrace",
5768+
"v2.synthetics_test_result_traceroute_hop" => "SyntheticsTestResultTracerouteHop",
5769+
"v2.synthetics_test_result_turn" => "SyntheticsTestResultTurn",
5770+
"v2.synthetics_test_result_turn_step" => "SyntheticsTestResultTurnStep",
5771+
"v2.synthetics_test_result_type" => "SyntheticsTestResultType",
5772+
"v2.synthetics_test_result_variable" => "SyntheticsTestResultVariable",
5773+
"v2.synthetics_test_result_variables" => "SyntheticsTestResultVariables",
5774+
"v2.synthetics_test_result_vitals_metrics" => "SyntheticsTestResultVitalsMetrics",
5775+
"v2.synthetics_test_result_warning" => "SyntheticsTestResultWarning",
5776+
"v2.synthetics_test_result_web_socket_close" => "SyntheticsTestResultWebSocketClose",
5777+
"v2.synthetics_test_sub_type" => "SyntheticsTestSubType",
5778+
"v2.synthetics_test_type" => "SyntheticsTestType",
57005779
"v2.synthetics_test_version_action_metadata" => "SyntheticsTestVersionActionMetadata",
57015780
"v2.synthetics_test_version_attributes" => "SyntheticsTestVersionAttributes",
57025781
"v2.synthetics_test_version_author" => "SyntheticsTestVersionAuthor",

0 commit comments

Comments
 (0)