Skip to content

Commit 71299a3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add usage field region (#1606)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent edefe5c commit 71299a3

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.5",
7-
"regenerated": "2023-08-01 15:39:53.565283",
8-
"spec_repo_commit": "87a5a9d8"
7+
"regenerated": "2023-08-02 14:07:31.852968",
8+
"spec_repo_commit": "75a8c502"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-01 15:39:53.582771",
13-
"spec_repo_commit": "87a5a9d8"
12+
"regenerated": "2023-08-02 14:07:31.870804",
13+
"spec_repo_commit": "75a8c502"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16666,6 +16666,10 @@ components:
1666616666
public_id:
1666716667
description: The organization public ID.
1666816668
type: string
16669+
region:
16670+
description: The region of the Datadog instance that the organization belongs
16671+
to.
16672+
type: string
1666916673
timeseries:
1667016674
description: List of usage data reported for each requested hour.
1667116675
items:

src/datadog_api_client/v2/model/usage_attributes_object.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def openapi_types(_):
2828
"org_name": (str,),
2929
"product_family": (str,),
3030
"public_id": (str,),
31+
"region": (str,),
3132
"timeseries": ([UsageTimeSeriesObject],),
3233
"usage_type": (HourlyUsageType,),
3334
}
@@ -36,6 +37,7 @@ def openapi_types(_):
3637
"org_name": "org_name",
3738
"product_family": "product_family",
3839
"public_id": "public_id",
40+
"region": "region",
3941
"timeseries": "timeseries",
4042
"usage_type": "usage_type",
4143
}
@@ -45,6 +47,7 @@ def __init__(
4547
org_name: Union[str, UnsetType] = unset,
4648
product_family: Union[str, UnsetType] = unset,
4749
public_id: Union[str, UnsetType] = unset,
50+
region: Union[str, UnsetType] = unset,
4851
timeseries: Union[List[UsageTimeSeriesObject], UnsetType] = unset,
4952
usage_type: Union[HourlyUsageType, UnsetType] = unset,
5053
**kwargs,
@@ -61,6 +64,9 @@ def __init__(
6164
:param public_id: The organization public ID.
6265
:type public_id: str, optional
6366
67+
:param region: The region of the Datadog instance that the organization belongs to.
68+
:type region: str, optional
69+
6470
:param timeseries: List of usage data reported for each requested hour.
6571
:type timeseries: [UsageTimeSeriesObject], optional
6672
@@ -73,6 +79,8 @@ def __init__(
7379
kwargs["product_family"] = product_family
7480
if public_id is not unset:
7581
kwargs["public_id"] = public_id
82+
if region is not unset:
83+
kwargs["region"] = region
7684
if timeseries is not unset:
7785
kwargs["timeseries"] = timeseries
7886
if usage_type is not unset:

0 commit comments

Comments
 (0)