Skip to content

Commit

Permalink
Regenerate client from commit 2ce4b7f1 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 27, 2023
1 parent afdc539 commit fd9b6af
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 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.6",
"regenerated": "2023-12-27 15:09:17.062005",
"spec_repo_commit": "61dc4c3e"
"regenerated": "2023-12-27 20:48:47.909259",
"spec_repo_commit": "2ce4b7f1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-12-27 15:09:17.081944",
"spec_repo_commit": "61dc4c3e"
"regenerated": "2023-12-27 20:48:47.927339",
"spec_repo_commit": "2ce4b7f1"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25995,6 +25995,8 @@ paths:
description: Get all active downtimes for the specified monitor.
operationId: ListMonitorDowntimes
parameters:
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageNumber'
- description: The id of the monitor.
in: path
name: monitor_id
Expand Down
23 changes: 23 additions & 0 deletions src/datadog_api_client/v2/api/downtimes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ def __init__(self, api_client=None):
"version": "v2",
},
params_map={
"page_size": {
"openapi_types": (int,),
"attribute": "page[size]",
"location": "query",
},
"page_number": {
"openapi_types": (int,),
"attribute": "page[number]",
"location": "query",
},
"monitor_id": {
"required": True,
"openapi_types": (int,),
Expand Down Expand Up @@ -344,16 +354,29 @@ def list_downtimes_with_pagination(
def list_monitor_downtimes(
self,
monitor_id: int,
*,
page_size: Union[int, UnsetType] = unset,
page_number: Union[int, UnsetType] = unset,
) -> MonitorDowntimeMatchResponse:
"""Get active downtimes for a monitor.
Get all active downtimes for the specified monitor.
:param monitor_id: The id of the monitor.
:type monitor_id: int
:param page_size: Size for a given page. The maximum allowed value is 100.
:type page_size: int, optional
:param page_number: Specific page number to return.
:type page_number: int, optional
:rtype: MonitorDowntimeMatchResponse
"""
kwargs: Dict[str, Any] = {}
if page_size is not unset:
kwargs["page_size"] = page_size

if page_number is not unset:
kwargs["page_number"] = page_number

kwargs["monitor_id"] = monitor_id

return self._list_monitor_downtimes_endpoint.call_with_http_info(**kwargs)
Expand Down

0 comments on commit fd9b6af

Please sign in to comment.