Skip to content

Commit 2b6bf1a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Document EQUAL comparator (#1621)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent dcda584 commit 2b6bf1a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
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-08-10 19:08:19.092814",
8-
"spec_repo_commit": "991b8a6f"
7+
"regenerated": "2023-08-11 17:08:58.152185",
8+
"spec_repo_commit": "0b6bfbed"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-10 19:08:19.108755",
13-
"spec_repo_commit": "991b8a6f"
12+
"regenerated": "2023-08-11 17:08:58.164642",
13+
"spec_repo_commit": "0b6bfbed"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19320,13 +19320,15 @@ components:
1932019320
WidgetComparator:
1932119321
description: Comparator to apply.
1932219322
enum:
19323+
- '='
1932319324
- '>'
1932419325
- '>='
1932519326
- <
1932619327
- <=
1932719328
example: '>'
1932819329
type: string
1932919330
x-enum-varnames:
19331+
- EQUAL_TO
1933019332
- GREATER_THAN
1933119333
- GREATER_THAN_OR_EQUAL_TO
1933219334
- LESS_THAN

src/datadog_api_client/v1/model/widget_comparator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ class WidgetComparator(ModelSimple):
1616
"""
1717
Comparator to apply.
1818
19-
:param value: Must be one of [">", ">=", "<", "<="].
19+
:param value: Must be one of ["=", ">", ">=", "<", "<="].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
24+
"=",
2425
">",
2526
">=",
2627
"<",
2728
"<=",
2829
}
30+
EQUAL_TO: ClassVar["WidgetComparator"]
2931
GREATER_THAN: ClassVar["WidgetComparator"]
3032
GREATER_THAN_OR_EQUAL_TO: ClassVar["WidgetComparator"]
3133
LESS_THAN: ClassVar["WidgetComparator"]
@@ -38,6 +40,7 @@ def openapi_types(_):
3840
}
3941

4042

43+
WidgetComparator.EQUAL_TO = WidgetComparator("=")
4144
WidgetComparator.GREATER_THAN = WidgetComparator(">")
4245
WidgetComparator.GREATER_THAN_OR_EQUAL_TO = WidgetComparator(">=")
4346
WidgetComparator.LESS_THAN = WidgetComparator("<")

0 commit comments

Comments
 (0)