Skip to content

Commit a474c28

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Allow for any type for additionalProperties in HTTPLogItem (#2216)
* Regenerate client from commit 37070fd4 of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 0684b39 commit a474c28

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
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.6",
7-
"regenerated": "2024-10-17 14:10:51.942099",
8-
"spec_repo_commit": "fb024a45"
7+
"regenerated": "2024-10-18 21:00:52.065672",
8+
"spec_repo_commit": "37070fd4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-17 14:10:51.959206",
13-
"spec_repo_commit": "fb024a45"
12+
"regenerated": "2024-10-18 21:00:52.083245",
13+
"spec_repo_commit": "37070fd4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9917,7 +9917,6 @@ components:
99179917
HTTPLogItem:
99189918
additionalProperties:
99199919
description: Additional log attributes.
9920-
type: string
99219920
description: Logs that are sent over HTTP.
99229921
properties:
99239922
ddsource:

src/datadog_api_client/v2/model/http_log_item.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,30 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
date,
12+
datetime,
13+
none_type,
1114
unset,
1215
UnsetType,
16+
UUID,
1317
)
1418

1519

1620
class HTTPLogItem(ModelNormal):
1721
@cached_property
1822
def additional_properties_type(_):
19-
return (str,)
23+
return (
24+
bool,
25+
date,
26+
datetime,
27+
dict,
28+
float,
29+
int,
30+
list,
31+
str,
32+
UUID,
33+
none_type,
34+
)
2035

2136
@cached_property
2237
def openapi_types(_):

0 commit comments

Comments
 (0)