Skip to content

Commit d8ab5d3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 47f45603 of spec repo (#1128)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3d4a550 commit d8ab5d3

File tree

30 files changed

+161
-102
lines changed

30 files changed

+161
-102
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-08-30 09:41:16.697170",
8-
"spec_repo_commit": "267e916e"
7+
"regenerated": "2022-08-30 12:29:08.851250",
8+
"spec_repo_commit": "47f45603"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-08-30 09:41:16.709766",
13-
"spec_repo_commit": "267e916e"
12+
"regenerated": "2022-08-30 12:29:08.863371",
13+
"spec_repo_commit": "47f45603"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12564,9 +12564,20 @@ components:
1256412564
disableCors:
1256512565
description: Whether or not to disable CORS mechanism.
1256612566
type: boolean
12567+
disableCsp:
12568+
description: Disable Content Security Policy for browser tests.
12569+
type: boolean
1256712570
follow_redirects:
1256812571
description: For API HTTP test, whether or not the test should follow redirects.
1256912572
type: boolean
12573+
ignoreServerCertificateError:
12574+
description: Ignore server certificate error.
12575+
type: boolean
12576+
initialNavigationTimeout:
12577+
description: Timeout before declaring the initial step as failed (in seconds)
12578+
for browser tests.
12579+
format: int64
12580+
type: integer
1257012581
min_failure_duration:
1257112582
description: Minimum amount of time in failure required to trigger an alert.
1257212583
format: int64
@@ -12677,6 +12688,16 @@ components:
1267712688
type: string
1267812689
certificate:
1267912690
$ref: '#/components/schemas/SyntheticsTestRequestCertificate'
12691+
certificateDomains:
12692+
default: []
12693+
description: By default, the client certificate is applied on the domain
12694+
of the starting URL for browser tests. If you want your client certificate
12695+
to be applied on other domains instead, add them in `certificateDomains`.
12696+
items:
12697+
description: Domain to apply the client certificate.
12698+
example: ''
12699+
type: string
12700+
type: array
1268012701
dnsServer:
1268112702
description: DNS server to use for DNS tests.
1268212703
type: string

examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
request=SyntheticsTestRequest(
3535
method=HTTPMethod("GET"),
3636
url="https://datadoghq.com",
37+
certificate_domains=[
38+
"https://datadoghq.com",
39+
],
3740
),
3841
set_cookie="name:test",
3942
),
@@ -66,6 +69,9 @@
6669
ci=SyntheticsTestCiOptions(
6770
execution_rule=SyntheticsTestExecutionRule("skipped"),
6871
),
72+
ignore_server_certificate_error=True,
73+
disable_csp=True,
74+
initial_navigation_timeout=200,
6975
),
7076
tags=[
7177
"testing:browser",

examples/v1/synthetics/UpdateBrowserTest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
cert=SyntheticsTestRequestCertificateItem(),
5050
key=SyntheticsTestRequestCertificateItem(),
5151
),
52+
certificate_domains=[],
5253
method=HTTPMethod("GET"),
5354
proxy=SyntheticsTestRequestProxy(
5455
url="https://example.com",

src/datadog_api_client/v1/model/synthetics_test_options.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def openapi_types(_):
3939
"ci": (SyntheticsTestCiOptions,),
4040
"device_ids": ([SyntheticsDeviceID],),
4141
"disable_cors": (bool,),
42+
"disable_csp": (bool,),
4243
"follow_redirects": (bool,),
44+
"ignore_server_certificate_error": (bool,),
45+
"initial_navigation_timeout": (int,),
4346
"min_failure_duration": (int,),
4447
"min_location_failed": (int,),
4548
"monitor_name": (str,),
@@ -59,7 +62,10 @@ def openapi_types(_):
5962
"ci": "ci",
6063
"device_ids": "device_ids",
6164
"disable_cors": "disableCors",
65+
"disable_csp": "disableCsp",
6266
"follow_redirects": "follow_redirects",
67+
"ignore_server_certificate_error": "ignoreServerCertificateError",
68+
"initial_navigation_timeout": "initialNavigationTimeout",
6369
"min_failure_duration": "min_failure_duration",
6470
"min_location_failed": "min_location_failed",
6571
"monitor_name": "monitor_name",
@@ -95,9 +101,18 @@ def __init__(self, *args, **kwargs):
95101
:param disable_cors: Whether or not to disable CORS mechanism.
96102
:type disable_cors: bool, optional
97103
104+
:param disable_csp: Disable Content Security Policy for browser tests.
105+
:type disable_csp: bool, optional
106+
98107
:param follow_redirects: For API HTTP test, whether or not the test should follow redirects.
99108
:type follow_redirects: bool, optional
100109
110+
:param ignore_server_certificate_error: Ignore server certificate error.
111+
:type ignore_server_certificate_error: bool, optional
112+
113+
:param initial_navigation_timeout: Timeout before declaring the initial step as failed (in seconds) for browser tests.
114+
:type initial_navigation_timeout: int, optional
115+
101116
:param min_failure_duration: Minimum amount of time in failure required to trigger an alert.
102117
:type min_failure_duration: int, optional
103118

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def openapi_types(_):
3535
"basic_auth": (SyntheticsBasicAuth,),
3636
"body": (str,),
3737
"certificate": (SyntheticsTestRequestCertificate,),
38+
"certificate_domains": ([str],),
3839
"dns_server": (str,),
3940
"dns_server_port": (int,),
4041
"follow_redirects": (bool,),
@@ -60,6 +61,7 @@ def openapi_types(_):
6061
"basic_auth": "basicAuth",
6162
"body": "body",
6263
"certificate": "certificate",
64+
"certificate_domains": "certificateDomains",
6365
"dns_server": "dnsServer",
6466
"dns_server_port": "dnsServerPort",
6567
"follow_redirects": "follow_redirects",
@@ -96,6 +98,9 @@ def __init__(self, *args, **kwargs):
9698
:param certificate: Client certificate to use when performing the test request.
9799
:type certificate: SyntheticsTestRequestCertificate, optional
98100
101+
:param certificate_domains: By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in ``certificateDomains``.
102+
:type certificate_domains: [str], optional
103+
99104
:param dns_server: DNS server to use for DNS tests.
100105
:type dns_server: str, optional
101106
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-07-11T13:41:26.739Z
1+
2022-08-18T09:19:30.220Z

tests/v1/cassettes/test_scenarios/test_create_a_browser_test_returns_ok_returns_saved_rumsettings_response.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test
4-
message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1657546886","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
3+
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificateDomains":["https://datadoghq.com"],"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test
4+
message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1660814370","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
55
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
66
headers:
77
accept:
@@ -12,17 +12,17 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1313
response:
1414
body:
15-
string: '{"status":"paused","public_id":"wc2-mv4-f5w","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
16-
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1657546886","monitor_id":76610201,"type":"browser","created_at":"2022-07-11T13:41:27.188209+00:00","modified_at":"2022-07-11T13:41:27.188209+00:00","steps":[{"name":"Refresh
17-
page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"ci":{"executionRule":"skipped"},"noScreenshot":true,"rumSettings":{"isEnabled":true,"applicationId":"mockApplicationId","clientTokenId":12345},"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
15+
string: '{"status":"paused","public_id":"3ry-tnf-fqu","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
16+
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1660814370","monitor_id":80432986,"type":"browser","created_at":"2022-08-18T09:19:30.959520+00:00","modified_at":"2022-08-18T09:19:30.959520+00:00","steps":[{"name":"Refresh
17+
page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","certificateDomains":["https://datadoghq.com"],"method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"disableCsp":true,"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"ci":{"executionRule":"skipped"},"noScreenshot":true,"rumSettings":{"isEnabled":true,"applicationId":"mockApplicationId","clientTokenId":12345},"initialNavigationTimeout":200,"disableCors":true,"device_ids":["tablet"],"tick_every":300,"ignoreServerCertificateError":true}}'
1818
headers:
1919
content-type:
2020
- application/json
2121
status:
2222
code: 200
2323
message: OK
2424
- request:
25-
body: '{"public_ids":["wc2-mv4-f5w"]}'
25+
body: '{"public_ids":["3ry-tnf-fqu"]}'
2626
headers:
2727
accept:
2828
- application/json
@@ -32,7 +32,7 @@ interactions:
3232
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3333
response:
3434
body:
35-
string: '{"deleted_tests":[{"deleted_at":"2022-07-11T13:41:32.446608+00:00","public_id":"wc2-mv4-f5w"}]}'
35+
string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:36.462930+00:00","public_id":"3ry-tnf-fqu"}]}'
3636
headers:
3737
content-type:
3838
- application/json
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-02-10T12:24:10.485Z
1+
2022-08-18T09:19:36.544Z

tests/v1/cassettes/test_scenarios/test_create_a_browser_test_returns_ok_returns_the_created_test_details_response.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test
4-
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
4+
message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1660814376","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh
55
page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}'
66
headers:
77
accept:
@@ -12,8 +12,8 @@ interactions:
1212
uri: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1313
response:
1414
body:
15-
string: '{"status":"paused","public_id":"rsw-sd4-iu5","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
16-
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","monitor_id":63812386,"type":"browser","created_at":"2022-02-10T12:24:11.196393+00:00","modified_at":"2022-02-10T12:24:11.196393+00:00","steps":[{"name":"Refresh
15+
string: '{"status":"paused","public_id":"j74-mhg-nnq","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
16+
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1660814376","monitor_id":80432989,"type":"browser","created_at":"2022-08-18T09:19:38.140296+00:00","modified_at":"2022-08-18T09:19:38.140296+00:00","steps":[{"name":"Refresh
1717
page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
1818
headers:
1919
content-type:
@@ -22,7 +22,7 @@ interactions:
2222
code: 200
2323
message: OK
2424
- request:
25-
body: '{"public_ids":["rsw-sd4-iu5"]}'
25+
body: '{"public_ids":["j74-mhg-nnq"]}'
2626
headers:
2727
accept:
2828
- application/json
@@ -32,7 +32,7 @@ interactions:
3232
uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3333
response:
3434
body:
35-
string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:11.753160+00:00","public_id":"rsw-sd4-iu5"}]}'
35+
string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:43.678246+00:00","public_id":"j74-mhg-nnq"}]}'
3636
headers:
3737
content-type:
3838
- application/json

0 commit comments

Comments
 (0)