Skip to content

Commit 5ee6503

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix downtimes monitor relationship id schema type (#1649)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 44f2dca commit 5ee6503

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
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-09-04 09:06:11.821242",
8-
"spec_repo_commit": "a5115137"
7+
"regenerated": "2023-09-05 15:12:58.134946",
8+
"spec_repo_commit": "eb534d74"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-04 09:06:11.834122",
13-
"spec_repo_commit": "a5115137"
12+
"regenerated": "2023-09-05 15:12:58.147487",
13+
"spec_repo_commit": "eb534d74"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4017,9 +4017,8 @@ components:
40174017
properties:
40184018
id:
40194019
description: Monitor ID of the downtime.
4020-
example: 12345
4021-
format: int64
4022-
type: integer
4020+
example: '12345'
4021+
type: string
40234022
type:
40244023
$ref: '#/components/schemas/DowntimeIncludedMonitorType'
40254024
type: object

src/datadog_api_client/v2/model/downtime_relationships_monitor_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def openapi_types(_):
2525
from datadog_api_client.v2.model.downtime_included_monitor_type import DowntimeIncludedMonitorType
2626

2727
return {
28-
"id": (int,),
28+
"id": (str,),
2929
"type": (DowntimeIncludedMonitorType,),
3030
}
3131

@@ -35,13 +35,13 @@ def openapi_types(_):
3535
}
3636

3737
def __init__(
38-
self_, id: Union[int, UnsetType] = unset, type: Union[DowntimeIncludedMonitorType, UnsetType] = unset, **kwargs
38+
self_, id: Union[str, UnsetType] = unset, type: Union[DowntimeIncludedMonitorType, UnsetType] = unset, **kwargs
3939
):
4040
"""
4141
Data for the monitor.
4242
4343
:param id: Monitor ID of the downtime.
44-
:type id: int, optional
44+
:type id: str, optional
4545
4646
:param type: Monitor resource type.
4747
:type type: DowntimeIncludedMonitorType, optional

0 commit comments

Comments
 (0)