Skip to content

Commit

Permalink
Mark usage metering field lines_indexed as nullable (#1521)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jun 14, 2023
1 parent 2b28b24 commit 6a068f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
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.4",
"regenerated": "2023-06-14 09:53:27.834820",
"spec_repo_commit": "e0974b9b"
"regenerated": "2023-06-14 14:30:34.005418",
"spec_repo_commit": "23362011"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-14 09:53:27.851959",
"spec_repo_commit": "e0974b9b"
"regenerated": "2023-06-14 14:30:34.017315",
"spec_repo_commit": "23362011"
}
}
}
1 change: 1 addition & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15982,6 +15982,7 @@ components:
description: The total number of audit logs lines indexed during a given
hour.
format: int64
nullable: true
type: integer
org_name:
description: The organization name.
Expand Down
7 changes: 4 additions & 3 deletions src/datadog_api_client/v1/model/usage_audit_logs_hour.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
ModelNormal,
cached_property,
datetime,
none_type,
unset,
UnsetType,
)
Expand All @@ -19,7 +20,7 @@ class UsageAuditLogsHour(ModelNormal):
def openapi_types(_):
return {
"hour": (datetime,),
"lines_indexed": (int,),
"lines_indexed": (int, none_type),
"org_name": (str,),
"public_id": (str,),
}
Expand All @@ -34,7 +35,7 @@ def openapi_types(_):
def __init__(
self_,
hour: Union[datetime, UnsetType] = unset,
lines_indexed: Union[int, UnsetType] = unset,
lines_indexed: Union[int, none_type, UnsetType] = unset,
org_name: Union[str, UnsetType] = unset,
public_id: Union[str, UnsetType] = unset,
**kwargs,
Expand All @@ -46,7 +47,7 @@ def __init__(
:type hour: datetime, optional
:param lines_indexed: The total number of audit logs lines indexed during a given hour.
:type lines_indexed: int, optional
:type lines_indexed: int, none_type, optional
:param org_name: The organization name.
:type org_name: str, optional
Expand Down

0 comments on commit 6a068f6

Please sign in to comment.