|
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,
|
@@ -67,6 +67,7 @@ def openapi_types(_):
|
67 | 67 | "dns_server_port": (str,),
|
68 | 68 | "files": ([SyntheticsTestRequestBodyFile],),
|
69 | 69 | "follow_redirects": (bool,),
|
| 70 | + "form": ({str: (str,)},), |
70 | 71 | "headers": (SyntheticsTestHeaders,),
|
71 | 72 | "host": (str,),
|
72 | 73 | "http_version": (SyntheticsTestOptionsHTTPVersion,),
|
@@ -100,6 +101,7 @@ def openapi_types(_):
|
100 | 101 | "dns_server_port": "dnsServerPort",
|
101 | 102 | "files": "files",
|
102 | 103 | "follow_redirects": "follow_redirects",
|
| 104 | + "form": "form", |
103 | 105 | "headers": "headers",
|
104 | 106 | "host": "host",
|
105 | 107 | "http_version": "httpVersion",
|
@@ -143,6 +145,7 @@ def __init__(
|
143 | 145 | dns_server_port: Union[str, UnsetType] = unset,
|
144 | 146 | files: Union[List[SyntheticsTestRequestBodyFile], UnsetType] = unset,
|
145 | 147 | follow_redirects: Union[bool, UnsetType] = unset,
|
| 148 | + form: Union[Dict[str, str], UnsetType] = unset, |
146 | 149 | headers: Union[SyntheticsTestHeaders, UnsetType] = unset,
|
147 | 150 | host: Union[str, UnsetType] = unset,
|
148 | 151 | http_version: Union[SyntheticsTestOptionsHTTPVersion, UnsetType] = unset,
|
@@ -198,12 +201,15 @@ def __init__(
|
198 | 201 | :param dns_server_port: DNS server port to use for DNS tests.
|
199 | 202 | :type dns_server_port: str, optional
|
200 | 203 |
|
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``. |
202 | 205 | :type files: [SyntheticsTestRequestBodyFile], optional
|
203 | 206 |
|
204 | 207 | :param follow_redirects: Specifies whether or not the request follows redirects.
|
205 | 208 | :type follow_redirects: bool, optional
|
206 | 209 |
|
| 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: {str: (str,)}, optional |
| 212 | +
|
207 | 213 | :param headers: Headers to include when performing the test.
|
208 | 214 | :type headers: SyntheticsTestHeaders, optional
|
209 | 215 |
|
@@ -283,6 +289,8 @@ def __init__(
|
283 | 289 | kwargs["files"] = files
|
284 | 290 | if follow_redirects is not unset:
|
285 | 291 | kwargs["follow_redirects"] = follow_redirects
|
| 292 | + if form is not unset: |
| 293 | + kwargs["form"] = form |
286 | 294 | if headers is not unset:
|
287 | 295 | kwargs["headers"] = headers
|
288 | 296 | if host is not unset:
|
|
0 commit comments