Skip to content

Commit 68fd92e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add region to estimated cost and historical cost response (#1326)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 42aa49a commit 68fd92e

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
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.4",
7-
"regenerated": "2023-02-06 19:15:27.095481",
8-
"spec_repo_commit": "7d2f8965"
7+
"regenerated": "2023-02-06 19:26:32.509103",
8+
"spec_repo_commit": "61fed166"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-06 19:15:27.107209",
13-
"spec_repo_commit": "7d2f8965"
12+
"regenerated": "2023-02-06 19:26:32.521492",
13+
"spec_repo_commit": "61fed166"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,10 @@ components:
26262626
public_id:
26272627
description: The organization public ID.
26282628
type: string
2629+
region:
2630+
description: The region of the Datadog instance that the organization belongs
2631+
to.
2632+
type: string
26292633
total_cost:
26302634
description: The total cost of products for the month.
26312635
format: double

src/datadog_api_client/v2/model/cost_by_org_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def openapi_types(_):
2828
"date": (datetime,),
2929
"org_name": (str,),
3030
"public_id": (str,),
31+
"region": (str,),
3132
"total_cost": (float,),
3233
}
3334

@@ -36,6 +37,7 @@ def openapi_types(_):
3637
"date": "date",
3738
"org_name": "org_name",
3839
"public_id": "public_id",
40+
"region": "region",
3941
"total_cost": "total_cost",
4042
}
4143

@@ -45,6 +47,7 @@ def __init__(
4547
date: Union[datetime, UnsetType] = unset,
4648
org_name: Union[str, UnsetType] = unset,
4749
public_id: Union[str, UnsetType] = unset,
50+
region: Union[str, UnsetType] = unset,
4851
total_cost: Union[float, UnsetType] = unset,
4952
**kwargs,
5053
):
@@ -63,6 +66,9 @@ def __init__(
6366
:param public_id: The organization public ID.
6467
:type public_id: str, optional
6568
69+
:param region: The region of the Datadog instance that the organization belongs to.
70+
:type region: str, optional
71+
6672
:param total_cost: The total cost of products for the month.
6773
:type total_cost: float, optional
6874
"""
@@ -74,6 +80,8 @@ def __init__(
7480
kwargs["org_name"] = org_name
7581
if public_id is not unset:
7682
kwargs["public_id"] = public_id
83+
if region is not unset:
84+
kwargs["region"] = region
7785
if total_cost is not unset:
7886
kwargs["total_cost"] = total_cost
7987
super().__init__(kwargs)

0 commit comments

Comments
 (0)