Skip to content

Commit 0d65809

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 9d22381 of spec repo (#418)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 311ece4 commit 0d65809

File tree

10 files changed

+68
-16
lines changed

10 files changed

+68
-16
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.4.1.dev6",
7-
"regenerated": "2021-04-29 10:02:46.886445",
8-
"spec_repo_commit": "88ccf9e"
7+
"regenerated": "2021-04-29 15:11:11.219601",
8+
"spec_repo_commit": "9d22381"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-04-29 10:03:10.950194",
13-
"spec_repo_commit": "88ccf9e"
12+
"regenerated": "2021-04-29 15:11:33.368621",
13+
"spec_repo_commit": "9d22381"
1414
}
1515
}
1616
}

docs/v1/SyntheticsAPIStep.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ The steps used in a Synthetics multistep API test.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**allow_failure** | **bool** | Determines whether or not to continue with test if this step fails. | [optional]
89
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] if omitted the server will use the default value of []
910
**extracted_values** | [**[SyntheticsParsingOptions]**](SyntheticsParsingOptions.md) | Array of values to parse and save as variables from the response. | [optional]
11+
**is_critical** | **bool** | Determines whether or not to consider the entire test as failed if this step fails. Can be used only if &#x60;allowFailure&#x60; is &#x60;true&#x60;. | [optional]
1012
**name** | **str** | The name of the step. | [optional]
1113
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
1214
**subtype** | [**SyntheticsAPIStepSubtype**](SyntheticsAPIStepSubtype.md) | | [optional]

docs/v1/SyntheticsApi.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ with ApiClient(configuration) as api_client:
251251
),
252252
),
253253
dns_server="dns_server_example",
254+
dns_server_port=1,
254255
headers=SyntheticsTestHeaders(
255256
key="key_example",
256257
),
@@ -266,6 +267,7 @@ with ApiClient(configuration) as api_client:
266267
),
267268
steps=[
268269
SyntheticsAPIStep(
270+
allow_failure=True,
269271
assertions=[],
270272
extracted_values=[
271273
SyntheticsParsingOptions(
@@ -278,6 +280,7 @@ with ApiClient(configuration) as api_client:
278280
type=SyntheticsGlobalVariableParseTestOptionsType("http_body"),
279281
),
280282
],
283+
is_critical=True,
281284
name="name_example",
282285
request=SyntheticsTestRequest(
283286
basic_auth=SyntheticsBasicAuth(
@@ -298,6 +301,7 @@ with ApiClient(configuration) as api_client:
298301
),
299302
),
300303
dns_server="dns_server_example",
304+
dns_server_port=1,
301305
headers=SyntheticsTestHeaders(SyntheticsTestHeaders),
302306
host="host_example",
303307
method=HTTPMethod("GET"),
@@ -437,6 +441,7 @@ with ApiClient(configuration) as api_client:
437441
),
438442
),
439443
dns_server="dns_server_example",
444+
dns_server_port=1,
440445
headers=SyntheticsTestHeaders(
441446
key="key_example",
442447
),
@@ -450,6 +455,7 @@ with ApiClient(configuration) as api_client:
450455
timeout=3.14,
451456
url="url_example",
452457
),
458+
set_cookie="set_cookie_example",
453459
variables=[
454460
SyntheticsBrowserVariable(
455461
example="example_example",
@@ -1746,6 +1752,7 @@ with ApiClient(configuration) as api_client:
17461752
),
17471753
),
17481754
dns_server="dns_server_example",
1755+
dns_server_port=1,
17491756
headers=SyntheticsTestHeaders(
17501757
key="key_example",
17511758
),
@@ -1761,6 +1768,7 @@ with ApiClient(configuration) as api_client:
17611768
),
17621769
steps=[
17631770
SyntheticsAPIStep(
1771+
allow_failure=True,
17641772
assertions=[],
17651773
extracted_values=[
17661774
SyntheticsParsingOptions(
@@ -1773,6 +1781,7 @@ with ApiClient(configuration) as api_client:
17731781
type=SyntheticsGlobalVariableParseTestOptionsType("http_body"),
17741782
),
17751783
],
1784+
is_critical=True,
17761785
name="name_example",
17771786
request=SyntheticsTestRequest(
17781787
basic_auth=SyntheticsBasicAuth(
@@ -1793,6 +1802,7 @@ with ApiClient(configuration) as api_client:
17931802
),
17941803
),
17951804
dns_server="dns_server_example",
1805+
dns_server_port=1,
17961806
headers=SyntheticsTestHeaders(SyntheticsTestHeaders),
17971807
host="host_example",
17981808
method=HTTPMethod("GET"),
@@ -1934,6 +1944,7 @@ with ApiClient(configuration) as api_client:
19341944
),
19351945
),
19361946
dns_server="dns_server_example",
1947+
dns_server_port=1,
19371948
headers=SyntheticsTestHeaders(
19381949
key="key_example",
19391950
),
@@ -1947,6 +1958,7 @@ with ApiClient(configuration) as api_client:
19471958
timeout=3.14,
19481959
url="url_example",
19491960
),
1961+
set_cookie="set_cookie_example",
19501962
variables=[
19511963
SyntheticsBrowserVariable(
19521964
example="example_example",

docs/v1/SyntheticsBrowserTestConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | |
99
**assertions** | [**[SyntheticsAssertion]**](SyntheticsAssertion.md) | Array of assertions used for the test. | defaults to []
10+
**set_cookie** | **str** | Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. | [optional]
1011
**variables** | [**[SyntheticsBrowserVariable]**](SyntheticsBrowserVariable.md) | Array of variables used for the test steps. | [optional]
1112

1213
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v1/SyntheticsTestRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**body** | **str** | Body to include in the test. | [optional]
1010
**certificate** | [**SyntheticsTestRequestCertificate**](SyntheticsTestRequestCertificate.md) | | [optional]
1111
**dns_server** | **str** | DNS server to use for DNS tests. | [optional]
12+
**dns_server_port** | **int** | DNS server port to use for DNS tests. | [optional]
1213
**headers** | [**SyntheticsTestHeaders**](SyntheticsTestHeaders.md) | | [optional]
1314
**host** | **str** | Host name to perform the test with. | [optional]
1415
**method** | [**HTTPMethod**](HTTPMethod.md) | | [optional]

src/datadog_api_client/v1/model/synthetics_api_step.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ def openapi_types():
7878
"""
7979
lazy_import()
8080
return {
81+
"allow_failure": (bool,), # noqa: E501
8182
"assertions": ([SyntheticsAssertion],), # noqa: E501
8283
"extracted_values": ([SyntheticsParsingOptions],), # noqa: E501
84+
"is_critical": (bool,), # noqa: E501
8385
"name": (str,), # noqa: E501
8486
"request": (SyntheticsTestRequest,), # noqa: E501
8587
"subtype": (SyntheticsAPIStepSubtype,), # noqa: E501
@@ -90,8 +92,10 @@ def discriminator():
9092
return None
9193

9294
attribute_map = {
95+
"allow_failure": "allowFailure", # noqa: E501
9396
"assertions": "assertions", # noqa: E501
9497
"extracted_values": "extractedValues", # noqa: E501
98+
"is_critical": "isCritical", # noqa: E501
9599
"name": "name", # noqa: E501
96100
"request": "request", # noqa: E501
97101
"subtype": "subtype", # noqa: E501
@@ -145,8 +149,10 @@ def __init__(self, *args, **kwargs): # noqa: E501
145149
Animal class but this time we won't travel
146150
through its discriminator because we passed in
147151
_visited_composed_classes = (Animal,)
152+
allow_failure (bool): Determines whether or not to continue with test if this step fails.. [optional] # noqa: E501
148153
assertions ([SyntheticsAssertion]): Array of assertions used for the test.. [optional] if omitted the server will use the default value of [] # noqa: E501
149154
extracted_values ([SyntheticsParsingOptions]): Array of values to parse and save as variables from the response.. [optional] # noqa: E501
155+
is_critical (bool): Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`.. [optional] # noqa: E501
150156
name (str): The name of the step.. [optional] # noqa: E501
151157
request (SyntheticsTestRequest): [optional] # noqa: E501
152158
subtype (SyntheticsAPIStepSubtype): [optional] # noqa: E501

src/datadog_api_client/v1/model/synthetics_browser_test_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def openapi_types():
7878
return {
7979
"assertions": ([SyntheticsAssertion],), # noqa: E501
8080
"request": (SyntheticsTestRequest,), # noqa: E501
81+
"set_cookie": (str,), # noqa: E501
8182
"variables": ([SyntheticsBrowserVariable],), # noqa: E501
8283
}
8384

@@ -88,6 +89,7 @@ def discriminator():
8889
attribute_map = {
8990
"assertions": "assertions", # noqa: E501
9091
"request": "request", # noqa: E501
92+
"set_cookie": "setCookie", # noqa: E501
9193
"variables": "variables", # noqa: E501
9294
}
9395

@@ -143,6 +145,7 @@ def __init__(self, request, *args, **kwargs): # noqa: E501
143145
Animal class but this time we won't travel
144146
through its discriminator because we passed in
145147
_visited_composed_classes = (Animal,)
148+
set_cookie (str): Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax.. [optional] # noqa: E501
146149
variables ([SyntheticsBrowserVariable]): Array of variables used for the test steps.. [optional] # noqa: E501
147150
"""
148151

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ class SyntheticsTestRequest(ModelNormal):
6161
allowed_values = {}
6262

6363
validations = {
64+
("dns_server_port",): {
65+
"inclusive_maximum": 65535,
66+
"inclusive_minimum": 1,
67+
},
6468
("number_of_packets",): {
6569
"inclusive_maximum": 10,
6670
"inclusive_minimum": 0,
@@ -87,6 +91,7 @@ def openapi_types():
8791
"body": (str,), # noqa: E501
8892
"certificate": (SyntheticsTestRequestCertificate,), # noqa: E501
8993
"dns_server": (str,), # noqa: E501
94+
"dns_server_port": (int,), # noqa: E501
9095
"headers": (SyntheticsTestHeaders,), # noqa: E501
9196
"host": (str,), # noqa: E501
9297
"method": (HTTPMethod,), # noqa: E501
@@ -108,6 +113,7 @@ def discriminator():
108113
"body": "body", # noqa: E501
109114
"certificate": "certificate", # noqa: E501
110115
"dns_server": "dnsServer", # noqa: E501
116+
"dns_server_port": "dnsServerPort", # noqa: E501
111117
"headers": "headers", # noqa: E501
112118
"host": "host", # noqa: E501
113119
"method": "method", # noqa: E501
@@ -172,6 +178,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
172178
body (str): Body to include in the test.. [optional] # noqa: E501
173179
certificate (SyntheticsTestRequestCertificate): [optional] # noqa: E501
174180
dns_server (str): DNS server to use for DNS tests.. [optional] # noqa: E501
181+
dns_server_port (int): DNS server port to use for DNS tests.. [optional] # noqa: E501
175182
headers (SyntheticsTestHeaders): [optional] # noqa: E501
176183
host (str): Host name to perform the test with.. [optional] # noqa: E501
177184
method (HTTPMethod): [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6879,6 +6879,10 @@ components:
68796879
SyntheticsAPIStep:
68806880
description: The steps used in a Synthetics multistep API test.
68816881
properties:
6882+
allowFailure:
6883+
description: Determines whether or not to continue with test if this step
6884+
fails.
6885+
type: boolean
68826886
assertions:
68836887
default: []
68846888
description: Array of assertions used for the test.
@@ -6891,6 +6895,12 @@ components:
68916895
items:
68926896
$ref: '#/components/schemas/SyntheticsParsingOptions'
68936897
type: array
6898+
isCritical:
6899+
description: 'Determines whether or not to consider the entire test as failed
6900+
if this step fails.
6901+
6902+
Can be used only if `allowFailure` is `true`.'
6903+
type: boolean
68946904
name:
68956905
description: The name of the step.
68966906
type: string
@@ -7301,6 +7311,10 @@ components:
73017311
type: array
73027312
request:
73037313
$ref: '#/components/schemas/SyntheticsTestRequest'
7314+
setCookie:
7315+
description: Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)
7316+
syntax.
7317+
type: string
73047318
variables:
73057319
description: Array of variables used for the test steps.
73067320
items:
@@ -8474,6 +8488,12 @@ components:
84748488
dnsServer:
84758489
description: DNS server to use for DNS tests.
84768490
type: string
8491+
dnsServerPort:
8492+
description: DNS server port to use for DNS tests.
8493+
format: int32
8494+
maximum: 65535
8495+
minimum: 1
8496+
type: integer
84778497
headers:
84788498
$ref: '#/components/schemas/SyntheticsTestHeaders'
84798499
host:

0 commit comments

Comments
 (0)