Skip to content

Commit 073ea6e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit dcc3176b of spec repo
1 parent a037357 commit 073ea6e

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
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": "2024-08-14 20:10:54.348512",
8-
"spec_repo_commit": "fafdefa8"
7+
"regenerated": "2024-08-14 20:56:46.442629",
8+
"spec_repo_commit": "dcc3176b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-14 20:10:54.365784",
13-
"spec_repo_commit": "fafdefa8"
12+
"regenerated": "2024-08-14 20:56:46.460123",
13+
"spec_repo_commit": "dcc3176b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8061,6 +8061,10 @@ components:
80618061
FastlyAccounResponseAttributes:
80628062
description: Attributes object of a Fastly account.
80638063
properties:
8064+
api_key:
8065+
description: The FastlyAccounResponseAttributes api_key.
8066+
type: string
8067+
writeOnly: true
80648068
name:
80658069
description: The name of the Fastly account.
80668070
example: test-name
@@ -8158,6 +8162,9 @@ components:
81588162
description: The API key of the Fastly account.
81598163
example: ABCDEFG123
81608164
type: string
8165+
name:
8166+
description: The FastlyAccountUpdateRequestAttributes name.
8167+
type: string
81618168
type: object
81628169
FastlyAccountUpdateRequestData:
81638170
description: Data object for updating a Fastly account.

src/datadog_api_client/v2/model/fastly_accoun_response_attributes.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,38 @@ def openapi_types(_):
2323
from datadog_api_client.v2.model.fastly_service import FastlyService
2424

2525
return {
26+
"api_key": (str,),
2627
"name": (str,),
2728
"services": ([FastlyService],),
2829
}
2930

3031
attribute_map = {
32+
"api_key": "api_key",
3133
"name": "name",
3234
"services": "services",
3335
}
3436

35-
def __init__(self_, name: str, services: Union[List[FastlyService], UnsetType] = unset, **kwargs):
37+
def __init__(
38+
self_,
39+
name: str,
40+
api_key: Union[str, UnsetType] = unset,
41+
services: Union[List[FastlyService], UnsetType] = unset,
42+
**kwargs,
43+
):
3644
"""
3745
Attributes object of a Fastly account.
3846
47+
:param api_key: The FastlyAccounResponseAttributes api_key.
48+
:type api_key: str, optional
49+
3950
:param name: The name of the Fastly account.
4051
:type name: str
4152
4253
:param services: A list of services belonging to the parent account.
4354
:type services: [FastlyService], optional
4455
"""
56+
if api_key is not unset:
57+
kwargs["api_key"] = api_key
4558
if services is not unset:
4659
kwargs["services"] = services
4760
super().__init__(kwargs)

src/datadog_api_client/v2/model/fastly_account_update_request_attributes.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,26 @@ class FastlyAccountUpdateRequestAttributes(ModelNormal):
1818
def openapi_types(_):
1919
return {
2020
"api_key": (str,),
21+
"name": (str,),
2122
}
2223

2324
attribute_map = {
2425
"api_key": "api_key",
26+
"name": "name",
2527
}
2628

27-
def __init__(self_, api_key: Union[str, UnsetType] = unset, **kwargs):
29+
def __init__(self_, api_key: Union[str, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs):
2830
"""
2931
Attributes object for updating a Fastly account.
3032
3133
:param api_key: The API key of the Fastly account.
3234
:type api_key: str, optional
35+
36+
:param name: The FastlyAccountUpdateRequestAttributes name.
37+
:type name: str, optional
3338
"""
3439
if api_key is not unset:
3540
kwargs["api_key"] = api_key
41+
if name is not unset:
42+
kwargs["name"] = name
3643
super().__init__(kwargs)

0 commit comments

Comments
 (0)