Skip to content

Commit ef9976c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d84b8ea1 of spec repo
1 parent a863de0 commit ef9976c

File tree

29 files changed

+154
-67
lines changed

29 files changed

+154
-67
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.6",
7-
"regenerated": "2025-05-27 17:12:13.841874",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-06-03 09:28:01.495264",
8+
"spec_repo_commit": "d84b8ea1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:13.857049",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-06-03 09:28:01.512727",
13+
"spec_repo_commit": "d84b8ea1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17166,13 +17166,18 @@ components:
1716617166
description: DNS server port to use for DNS tests.
1716717167
type: string
1716817168
files:
17169-
description: Files to be used as part of the request in the test.
17169+
description: Files to be used as part of the request in the test. Only valid
17170+
if `bodyType` is `multipart/form-data`.
1717017171
items:
1717117172
$ref: '#/components/schemas/SyntheticsTestRequestBodyFile'
1717217173
type: array
1717317174
follow_redirects:
1717417175
description: Specifies whether or not the request follows redirects.
1717517176
type: boolean
17177+
form:
17178+
description: Form to be used as part of the request in the test. Only valid
17179+
if `bodyType` is `multipart/form-data`.
17180+
type: object
1717617181
headers:
1717717182
$ref: '#/components/schemas/SyntheticsTestHeaders'
1717817183
host:
@@ -17245,6 +17250,8 @@ components:
1724517250
description: Content of the file.
1724617251
maxLength: 3145728
1724717252
type: string
17253+
encoding:
17254+
$ref: '#/components/schemas/SyntheticsTestRequestBodyFileEncoding'
1724817255
name:
1724917256
description: Name of the file.
1725017257
maxLength: 1500
@@ -17264,6 +17271,13 @@ components:
1726417271
maxLength: 1500
1726517272
type: string
1726617273
type: object
17274+
SyntheticsTestRequestBodyFileEncoding:
17275+
description: Encoding of the file.
17276+
enum:
17277+
- base64
17278+
type: string
17279+
x-enum-varnames:
17280+
- BASE64
1726717281
SyntheticsTestRequestBodyType:
1726817282
description: Type of the request body.
1726917283
enum:

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,6 +4995,13 @@ datadog\_api\_client.v1.model.synthetics\_test\_request\_body\_file module
49954995
:members:
49964996
:show-inheritance:
49974997

4998+
datadog\_api\_client.v1.model.synthetics\_test\_request\_body\_file\_encoding module
4999+
------------------------------------------------------------------------------------
5000+
5001+
.. automodule:: datadog_api_client.v1.model.synthetics_test_request_body_file_encoding
5002+
:members:
5003+
:show-inheritance:
5004+
49985005
datadog\_api\_client.v1.model.synthetics\_test\_request\_body\_type module
49995006
--------------------------------------------------------------------------
50005007

examples/v1/synthetics/UpdateBrowserTest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from datadog_api_client.v1.model.synthetics_test_pause_status import SyntheticsTestPauseStatus
3535
from datadog_api_client.v1.model.synthetics_test_request import SyntheticsTestRequest
3636
from datadog_api_client.v1.model.synthetics_test_request_body_file import SyntheticsTestRequestBodyFile
37+
from datadog_api_client.v1.model.synthetics_test_request_body_file_encoding import SyntheticsTestRequestBodyFileEncoding
3738
from datadog_api_client.v1.model.synthetics_test_request_body_type import SyntheticsTestRequestBodyType
3839
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
3940
from datadog_api_client.v1.model.synthetics_test_request_certificate_item import SyntheticsTestRequestCertificateItem
@@ -63,7 +64,9 @@
6364
),
6465
certificate_domains=[],
6566
files=[
66-
SyntheticsTestRequestBodyFile(),
67+
SyntheticsTestRequestBodyFile(
68+
encoding=SyntheticsTestRequestBodyFileEncoding.BASE64,
69+
),
6770
],
6871
http_version=SyntheticsTestOptionsHTTPVersion.HTTP1,
6972
proxy=SyntheticsTestRequestProxy(

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def openapi_types(_):
6767
"dns_server_port": (str,),
6868
"files": ([SyntheticsTestRequestBodyFile],),
6969
"follow_redirects": (bool,),
70+
"form": (dict,),
7071
"headers": (SyntheticsTestHeaders,),
7172
"host": (str,),
7273
"http_version": (SyntheticsTestOptionsHTTPVersion,),
@@ -100,6 +101,7 @@ def openapi_types(_):
100101
"dns_server_port": "dnsServerPort",
101102
"files": "files",
102103
"follow_redirects": "follow_redirects",
104+
"form": "form",
103105
"headers": "headers",
104106
"host": "host",
105107
"http_version": "httpVersion",
@@ -143,6 +145,7 @@ def __init__(
143145
dns_server_port: Union[str, UnsetType] = unset,
144146
files: Union[List[SyntheticsTestRequestBodyFile], UnsetType] = unset,
145147
follow_redirects: Union[bool, UnsetType] = unset,
148+
form: Union[dict, UnsetType] = unset,
146149
headers: Union[SyntheticsTestHeaders, UnsetType] = unset,
147150
host: Union[str, UnsetType] = unset,
148151
http_version: Union[SyntheticsTestOptionsHTTPVersion, UnsetType] = unset,
@@ -198,12 +201,15 @@ def __init__(
198201
:param dns_server_port: DNS server port to use for DNS tests.
199202
:type dns_server_port: str, optional
200203
201-
:param files: Files to be used as part of the request in the test.
204+
:param files: Files to be used as part of the request in the test. Only valid if ``bodyType`` is ``multipart/form-data``.
202205
:type files: [SyntheticsTestRequestBodyFile], optional
203206
204207
:param follow_redirects: Specifies whether or not the request follows redirects.
205208
:type follow_redirects: bool, optional
206209
210+
:param form: Form to be used as part of the request in the test. Only valid if ``bodyType`` is ``multipart/form-data``.
211+
:type form: dict, optional
212+
207213
:param headers: Headers to include when performing the test.
208214
:type headers: SyntheticsTestHeaders, optional
209215
@@ -283,6 +289,8 @@ def __init__(
283289
kwargs["files"] = files
284290
if follow_redirects is not unset:
285291
kwargs["follow_redirects"] = follow_redirects
292+
if form is not unset:
293+
kwargs["form"] = form
286294
if headers is not unset:
287295
kwargs["headers"] = headers
288296
if host is not unset:

src/datadog_api_client/v1/model/synthetics_test_request_body_file.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -13,6 +13,12 @@
1313
)
1414

1515

16+
if TYPE_CHECKING:
17+
from datadog_api_client.v1.model.synthetics_test_request_body_file_encoding import (
18+
SyntheticsTestRequestBodyFileEncoding,
19+
)
20+
21+
1622
class SyntheticsTestRequestBodyFile(ModelNormal):
1723
validations = {
1824
"content": {
@@ -35,9 +41,14 @@ class SyntheticsTestRequestBodyFile(ModelNormal):
3541

3642
@cached_property
3743
def openapi_types(_):
44+
from datadog_api_client.v1.model.synthetics_test_request_body_file_encoding import (
45+
SyntheticsTestRequestBodyFileEncoding,
46+
)
47+
3848
return {
3949
"bucket_key": (str,),
4050
"content": (str,),
51+
"encoding": (SyntheticsTestRequestBodyFileEncoding,),
4152
"name": (str,),
4253
"original_file_name": (str,),
4354
"size": (int,),
@@ -47,6 +58,7 @@ def openapi_types(_):
4758
attribute_map = {
4859
"bucket_key": "bucketKey",
4960
"content": "content",
61+
"encoding": "encoding",
5062
"name": "name",
5163
"original_file_name": "originalFileName",
5264
"size": "size",
@@ -57,6 +69,7 @@ def __init__(
5769
self_,
5870
bucket_key: Union[str, UnsetType] = unset,
5971
content: Union[str, UnsetType] = unset,
72+
encoding: Union[SyntheticsTestRequestBodyFileEncoding, UnsetType] = unset,
6073
name: Union[str, UnsetType] = unset,
6174
original_file_name: Union[str, UnsetType] = unset,
6275
size: Union[int, UnsetType] = unset,
@@ -72,6 +85,9 @@ def __init__(
7285
:param content: Content of the file.
7386
:type content: str, optional
7487
88+
:param encoding: Encoding of the file.
89+
:type encoding: SyntheticsTestRequestBodyFileEncoding, optional
90+
7591
:param name: Name of the file.
7692
:type name: str, optional
7793
@@ -88,6 +104,8 @@ def __init__(
88104
kwargs["bucket_key"] = bucket_key
89105
if content is not unset:
90106
kwargs["content"] = content
107+
if encoding is not unset:
108+
kwargs["encoding"] = encoding
91109
if name is not unset:
92110
kwargs["name"] = name
93111
if original_file_name is not unset:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class SyntheticsTestRequestBodyFileEncoding(ModelSimple):
16+
"""
17+
Encoding of the file.
18+
19+
:param value: If omitted defaults to "base64". Must be one of ["base64"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"base64",
25+
}
26+
BASE64: ClassVar["SyntheticsTestRequestBodyFileEncoding"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
SyntheticsTestRequestBodyFileEncoding.BASE64 = SyntheticsTestRequestBodyFileEncoding("base64")

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@
842842
from datadog_api_client.v1.model.synthetics_test_process_status import SyntheticsTestProcessStatus
843843
from datadog_api_client.v1.model.synthetics_test_request import SyntheticsTestRequest
844844
from datadog_api_client.v1.model.synthetics_test_request_body_file import SyntheticsTestRequestBodyFile
845+
from datadog_api_client.v1.model.synthetics_test_request_body_file_encoding import SyntheticsTestRequestBodyFileEncoding
845846
from datadog_api_client.v1.model.synthetics_test_request_body_type import SyntheticsTestRequestBodyType
846847
from datadog_api_client.v1.model.synthetics_test_request_certificate import SyntheticsTestRequestCertificate
847848
from datadog_api_client.v1.model.synthetics_test_request_certificate_item import SyntheticsTestRequestCertificateItem
@@ -1799,6 +1800,7 @@
17991800
"SyntheticsTestProcessStatus",
18001801
"SyntheticsTestRequest",
18011802
"SyntheticsTestRequestBodyFile",
1803+
"SyntheticsTestRequestBodyFileEncoding",
18021804
"SyntheticsTestRequestBodyType",
18031805
"SyntheticsTestRequestCertificate",
18041806
"SyntheticsTestRequestCertificateItem",

0 commit comments

Comments
 (0)