Skip to content

Add usage field region #1606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-01 15:39:53.565283",
"spec_repo_commit": "87a5a9d8"
"regenerated": "2023-08-02 14:07:31.852968",
"spec_repo_commit": "75a8c502"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-01 15:39:53.582771",
"spec_repo_commit": "87a5a9d8"
"regenerated": "2023-08-02 14:07:31.870804",
"spec_repo_commit": "75a8c502"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16666,6 +16666,10 @@ components:
public_id:
description: The organization public ID.
type: string
region:
description: The region of the Datadog instance that the organization belongs
to.
type: string
timeseries:
description: List of usage data reported for each requested hour.
items:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v2/model/usage_attributes_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def openapi_types(_):
"org_name": (str,),
"product_family": (str,),
"public_id": (str,),
"region": (str,),
"timeseries": ([UsageTimeSeriesObject],),
"usage_type": (HourlyUsageType,),
}
Expand All @@ -36,6 +37,7 @@ def openapi_types(_):
"org_name": "org_name",
"product_family": "product_family",
"public_id": "public_id",
"region": "region",
"timeseries": "timeseries",
"usage_type": "usage_type",
}
Expand All @@ -45,6 +47,7 @@ def __init__(
org_name: Union[str, UnsetType] = unset,
product_family: Union[str, UnsetType] = unset,
public_id: Union[str, UnsetType] = unset,
region: Union[str, UnsetType] = unset,
timeseries: Union[List[UsageTimeSeriesObject], UnsetType] = unset,
usage_type: Union[HourlyUsageType, UnsetType] = unset,
**kwargs,
Expand All @@ -61,6 +64,9 @@ def __init__(
:param public_id: The organization public ID.
:type public_id: str, optional

:param region: The region of the Datadog instance that the organization belongs to.
:type region: str, optional

:param timeseries: List of usage data reported for each requested hour.
:type timeseries: [UsageTimeSeriesObject], optional

Expand All @@ -73,6 +79,8 @@ def __init__(
kwargs["product_family"] = product_family
if public_id is not unset:
kwargs["public_id"] = public_id
if region is not unset:
kwargs["region"] = region
if timeseries is not unset:
kwargs["timeseries"] = timeseries
if usage_type is not unset:
Expand Down