Skip to content

Commit 99798c7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 71b5d7a of spec repo
1 parent 6a43b41 commit 99798c7

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7384,6 +7384,8 @@ components:
73847384
description: The type of the object, must be `budget`.
73857385
example: ''
73867386
type: string
7387+
required:
7388+
- type
73877389
type: object
73887390
BudgetWithEntriesDataAttributes:
73897391
properties:
@@ -70572,7 +70574,7 @@ paths:
7057270574
content:
7057370575
application/json:
7057470576
schema:
70575-
$ref: '#/components/schemas/BudgetValidationRequest'
70577+
$ref: '#/components/schemas/BudgetWithEntries'
7057670578
description: OK
7057770579
'429':
7057870580
$ref: '#/components/responses/TooManyRequestsResponse'

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def __init__(self, api_client=None):
320320

321321
self._get_budget_endpoint = _Endpoint(
322322
settings={
323-
"response_type": (BudgetValidationRequest,),
323+
"response_type": (BudgetWithEntries,),
324324
"auth": ["apiKeyAuth", "appKeyAuth"],
325325
"endpoint_path": "/api/v2/cost/budget/{budget_id}",
326326
"operation_id": "get_budget",
@@ -1095,14 +1095,14 @@ def delete_tag_pipelines_ruleset(
10951095
def get_budget(
10961096
self,
10971097
budget_id: str,
1098-
) -> BudgetValidationRequest:
1098+
) -> BudgetWithEntries:
10991099
"""Get budget.
11001100
11011101
Get a budget
11021102
11031103
:param budget_id: Budget id.
11041104
:type budget_id: str
1105-
:rtype: BudgetValidationRequest
1105+
:rtype: BudgetWithEntries
11061106
"""
11071107
kwargs: Dict[str, Any] = {}
11081108
kwargs["budget_id"] = budget_id

src/datadog_api_client/v2/model/budget_with_entries_data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def openapi_types(_):
3636

3737
def __init__(
3838
self_,
39+
type: str,
3940
attributes: Union[BudgetAttributes, UnsetType] = unset,
4041
id: Union[str, UnsetType] = unset,
41-
type: Union[str, UnsetType] = unset,
4242
**kwargs,
4343
):
4444
"""
@@ -51,12 +51,12 @@ def __init__(
5151
:type id: str, optional
5252
5353
:param type: The type of the object, must be ``budget``.
54-
:type type: str, optional
54+
:type type: str
5555
"""
5656
if attributes is not unset:
5757
kwargs["attributes"] = attributes
5858
if id is not unset:
5959
kwargs["id"] = id
60-
if type is not unset:
61-
kwargs["type"] = type
6260
super().__init__(kwargs)
61+
62+
self_.type = type

0 commit comments

Comments
 (0)