Skip to content

Commit 5718fda

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specskarimo
authored
Regenerate client from commit 40dbfff2 of spec repo (#1656)
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> Co-authored-by: skarimo <[email protected]>
1 parent e54f10b commit 5718fda

File tree

6 files changed

+90
-17
lines changed

6 files changed

+90
-17
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-06 15:59:41.504730",
8-
"spec_repo_commit": "f65a8312"
7+
"regenerated": "2023-09-07 17:53:35.006145",
8+
"spec_repo_commit": "40dbfff2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-06 15:59:41.521256",
13-
"spec_repo_commit": "f65a8312"
12+
"regenerated": "2023-09-07 17:53:35.025696",
13+
"spec_repo_commit": "40dbfff2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,18 +6901,20 @@ components:
69016901
MonitorSearchCount:
69026902
description: Search facets.
69036903
items:
6904-
description: A facet item.
6905-
properties:
6906-
count:
6907-
description: The number of found monitors with the listed value.
6908-
format: int64
6909-
readOnly: true
6910-
type: integer
6911-
name:
6912-
description: The facet value.
6913-
readOnly: true
6914-
type: object
6904+
$ref: '#/components/schemas/MonitorSearchCountItem'
69156905
type: array
6906+
MonitorSearchCountItem:
6907+
description: A facet item.
6908+
properties:
6909+
count:
6910+
description: The number of found monitors with the listed value.
6911+
format: int64
6912+
readOnly: true
6913+
type: integer
6914+
name:
6915+
description: The facet value.
6916+
readOnly: true
6917+
type: object
69166918
MonitorSearchResponse:
69176919
description: The response form a monitor search.
69186920
example:

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,13 @@ monitor\_search\_count
20662066
:members:
20672067
:show-inheritance:
20682068

2069+
monitor\_search\_count\_item
2070+
----------------------------
2071+
2072+
.. automodule:: datadog_api_client.v1.model.monitor_search_count_item
2073+
:members:
2074+
:show-inheritance:
2075+
20692076
monitor\_search\_response
20702077
-------------------------
20712078

src/datadog_api_client/v1/model/monitor_search_count.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ class MonitorSearchCount(ModelSimple):
1515
Search facets.
1616
1717
18-
:type value: [dict]
18+
:type value: [MonitorSearchCountItem]
1919
"""
2020

2121
@cached_property
2222
def openapi_types(_):
23+
from datadog_api_client.v1.model.monitor_search_count_item import MonitorSearchCountItem
24+
2325
return {
24-
"value": ([dict],),
26+
"value": ([MonitorSearchCountItem],),
2527
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Any, Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
date,
12+
datetime,
13+
none_type,
14+
unset,
15+
UnsetType,
16+
)
17+
18+
19+
class MonitorSearchCountItem(ModelNormal):
20+
@cached_property
21+
def openapi_types(_):
22+
return {
23+
"count": (int,),
24+
"name": (
25+
bool,
26+
date,
27+
datetime,
28+
dict,
29+
float,
30+
int,
31+
list,
32+
str,
33+
none_type,
34+
),
35+
}
36+
37+
attribute_map = {
38+
"count": "count",
39+
"name": "name",
40+
}
41+
read_only_vars = {
42+
"count",
43+
"name",
44+
}
45+
46+
def __init__(self_, count: Union[int, UnsetType] = unset, name: Union[Any, UnsetType] = unset, **kwargs):
47+
"""
48+
A facet item.
49+
50+
:param count: The number of found monitors with the listed value.
51+
:type count: int, optional
52+
53+
:param name: The facet value.
54+
:type name: bool, date, datetime, dict, float, int, list, str, none_type, optional
55+
"""
56+
if count is not unset:
57+
kwargs["count"] = count
58+
if name is not unset:
59+
kwargs["name"] = name
60+
super().__init__(kwargs)

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@
345345
from datadog_api_client.v1.model.monitor_overall_states import MonitorOverallStates
346346
from datadog_api_client.v1.model.monitor_renotify_status_type import MonitorRenotifyStatusType
347347
from datadog_api_client.v1.model.monitor_search_count import MonitorSearchCount
348+
from datadog_api_client.v1.model.monitor_search_count_item import MonitorSearchCountItem
348349
from datadog_api_client.v1.model.monitor_search_response import MonitorSearchResponse
349350
from datadog_api_client.v1.model.monitor_search_response_counts import MonitorSearchResponseCounts
350351
from datadog_api_client.v1.model.monitor_search_response_metadata import MonitorSearchResponseMetadata
@@ -1213,6 +1214,7 @@
12131214
"MonitorOverallStates",
12141215
"MonitorRenotifyStatusType",
12151216
"MonitorSearchCount",
1217+
"MonitorSearchCountItem",
12161218
"MonitorSearchResponse",
12171219
"MonitorSearchResponseCounts",
12181220
"MonitorSearchResponseMetadata",

0 commit comments

Comments
 (0)