Skip to content

Commit 6a068f6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark usage metering field lines_indexed as nullable (#1521)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2b28b24 commit 6a068f6

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
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-06-14 09:53:27.834820",
8-
"spec_repo_commit": "e0974b9b"
7+
"regenerated": "2023-06-14 14:30:34.005418",
8+
"spec_repo_commit": "23362011"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-14 09:53:27.851959",
13-
"spec_repo_commit": "e0974b9b"
12+
"regenerated": "2023-06-14 14:30:34.017315",
13+
"spec_repo_commit": "23362011"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15982,6 +15982,7 @@ components:
1598215982
description: The total number of audit logs lines indexed during a given
1598315983
hour.
1598415984
format: int64
15985+
nullable: true
1598515986
type: integer
1598615987
org_name:
1598715988
description: The organization name.

src/datadog_api_client/v1/model/usage_audit_logs_hour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
ModelNormal,
1010
cached_property,
1111
datetime,
12+
none_type,
1213
unset,
1314
UnsetType,
1415
)
@@ -19,7 +20,7 @@ class UsageAuditLogsHour(ModelNormal):
1920
def openapi_types(_):
2021
return {
2122
"hour": (datetime,),
22-
"lines_indexed": (int,),
23+
"lines_indexed": (int, none_type),
2324
"org_name": (str,),
2425
"public_id": (str,),
2526
}
@@ -34,7 +35,7 @@ def openapi_types(_):
3435
def __init__(
3536
self_,
3637
hour: Union[datetime, UnsetType] = unset,
37-
lines_indexed: Union[int, UnsetType] = unset,
38+
lines_indexed: Union[int, none_type, UnsetType] = unset,
3839
org_name: Union[str, UnsetType] = unset,
3940
public_id: Union[str, UnsetType] = unset,
4041
**kwargs,
@@ -46,7 +47,7 @@ def __init__(
4647
:type hour: datetime, optional
4748
4849
:param lines_indexed: The total number of audit logs lines indexed during a given hour.
49-
:type lines_indexed: int, optional
50+
:type lines_indexed: int, none_type, optional
5051
5152
:param org_name: The organization name.
5253
:type org_name: str, optional

0 commit comments

Comments
 (0)