Skip to content

Commit 231aaf1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 74866a53 of spec repo (#2638)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ad6b895 commit 231aaf1

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
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-06-20 19:51:47.941164",
8-
"spec_repo_commit": "51272749"
7+
"regenerated": "2025-06-23 07:59:27.432755",
8+
"spec_repo_commit": "74866a53"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-20 19:51:47.957501",
13-
"spec_repo_commit": "51272749"
12+
"regenerated": "2025-06-23 07:59:27.448135",
13+
"spec_repo_commit": "74866a53"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14785,9 +14785,6 @@ components:
1478514785
description: Username to use for the basic authentication.
1478614786
example: my_username
1478714787
type: string
14788-
required:
14789-
- password
14790-
- username
1479114788
type: object
1479214789
SyntheticsBasicAuthWebType:
1479314790
default: web

src/datadog_api_client/v1/model/synthetics_basic_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ def __init__(self, **kwargs):
1616
Object to handle basic authentication when performing the test.
1717
1818
:param password: Password to use for the basic authentication.
19-
:type password: str
19+
:type password: str, optional
2020
2121
:param type: The type of basic authentication to use when performing the test.
2222
:type type: SyntheticsBasicAuthWebType, optional
2323
2424
:param username: Username to use for the basic authentication.
25-
:type username: str
25+
:type username: str, optional
2626
2727
:param access_key: Access key for the `SIGV4` authentication.
2828
:type access_key: str

src/datadog_api_client/v1/model/synthetics_basic_auth_web.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,28 @@ def openapi_types(_):
3535
}
3636

3737
def __init__(
38-
self_, password: str, username: str, type: Union[SyntheticsBasicAuthWebType, UnsetType] = unset, **kwargs
38+
self_,
39+
password: Union[str, UnsetType] = unset,
40+
type: Union[SyntheticsBasicAuthWebType, UnsetType] = unset,
41+
username: Union[str, UnsetType] = unset,
42+
**kwargs,
3943
):
4044
"""
4145
Object to handle basic authentication when performing the test.
4246
4347
:param password: Password to use for the basic authentication.
44-
:type password: str
48+
:type password: str, optional
4549
4650
:param type: The type of basic authentication to use when performing the test.
4751
:type type: SyntheticsBasicAuthWebType, optional
4852
4953
:param username: Username to use for the basic authentication.
50-
:type username: str
54+
:type username: str, optional
5155
"""
56+
if password is not unset:
57+
kwargs["password"] = password
5258
if type is not unset:
5359
kwargs["type"] = type
60+
if username is not unset:
61+
kwargs["username"] = username
5462
super().__init__(kwargs)
55-
56-
self_.password = password
57-
self_.username = username

0 commit comments

Comments
 (0)