|
3 | 3 | # Copyright 2019-Present Datadog, Inc.
|
4 | 4 | from __future__ import annotations
|
5 | 5 |
|
6 |
| -from typing import List, Union, TYPE_CHECKING |
| 6 | +from typing import Dict, List, Union, TYPE_CHECKING |
7 | 7 |
|
8 | 8 | from datadog_api_client.model_utils import (
|
9 | 9 | ModelNormal,
|
@@ -68,6 +68,7 @@ def openapi_types(_):
|
68 | 68 | "dns_server_port": (str,),
|
69 | 69 | "files": ([SyntheticsTestRequestBodyFile],),
|
70 | 70 | "follow_redirects": (bool,),
|
| 71 | + "form": ({str: (str,)},), |
71 | 72 | "headers": (SyntheticsTestHeaders,),
|
72 | 73 | "host": (str,),
|
73 | 74 | "http_version": (SyntheticsTestOptionsHTTPVersion,),
|
@@ -103,6 +104,7 @@ def openapi_types(_):
|
103 | 104 | "dns_server_port": "dnsServerPort",
|
104 | 105 | "files": "files",
|
105 | 106 | "follow_redirects": "follow_redirects",
|
| 107 | + "form": "form", |
106 | 108 | "headers": "headers",
|
107 | 109 | "host": "host",
|
108 | 110 | "http_version": "httpVersion",
|
@@ -148,6 +150,7 @@ def __init__(
|
148 | 150 | dns_server_port: Union[str, UnsetType] = unset,
|
149 | 151 | files: Union[List[SyntheticsTestRequestBodyFile], UnsetType] = unset,
|
150 | 152 | follow_redirects: Union[bool, UnsetType] = unset,
|
| 153 | + form: Union[Dict[str, str], UnsetType] = unset, |
151 | 154 | headers: Union[SyntheticsTestHeaders, UnsetType] = unset,
|
152 | 155 | host: Union[str, UnsetType] = unset,
|
153 | 156 | http_version: Union[SyntheticsTestOptionsHTTPVersion, UnsetType] = unset,
|
@@ -207,12 +210,15 @@ def __init__(
|
207 | 210 | :param dns_server_port: DNS server port to use for DNS tests.
|
208 | 211 | :type dns_server_port: str, optional
|
209 | 212 |
|
210 |
| - :param files: Files to be used as part of the request in the test. |
| 213 | + :param files: Files to be used as part of the request in the test. Only valid if ``bodyType`` is ``multipart/form-data``. |
211 | 214 | :type files: [SyntheticsTestRequestBodyFile], optional
|
212 | 215 |
|
213 | 216 | :param follow_redirects: Specifies whether or not the request follows redirects.
|
214 | 217 | :type follow_redirects: bool, optional
|
215 | 218 |
|
| 219 | + :param form: Form to be used as part of the request in the test. Only valid if ``bodyType`` is ``multipart/form-data``. |
| 220 | + :type form: {str: (str,)}, optional |
| 221 | +
|
216 | 222 | :param headers: Headers to include when performing the test.
|
217 | 223 | :type headers: SyntheticsTestHeaders, optional
|
218 | 224 |
|
@@ -297,6 +303,8 @@ def __init__(
|
297 | 303 | kwargs["files"] = files
|
298 | 304 | if follow_redirects is not unset:
|
299 | 305 | kwargs["follow_redirects"] = follow_redirects
|
| 306 | + if form is not unset: |
| 307 | + kwargs["form"] = form |
300 | 308 | if headers is not unset:
|
301 | 309 | kwargs["headers"] = headers
|
302 | 310 | if host is not unset:
|
|
0 commit comments