Skip to content

Commit acfa5de

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 8d1ef64 of spec repo (#104)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a8d3d20 commit acfa5de

16 files changed

+467
-41
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.2.0",
7-
"regenerated": "2020-10-02 09:00:49.166789",
8-
"spec_repo_commit": "bdbc1cb"
7+
"regenerated": "2020-10-02 12:11:56.338365",
8+
"spec_repo_commit": "8d1ef64"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-10-02 09:00:59.749925",
13-
"spec_repo_commit": "bdbc1cb"
12+
"regenerated": "2020-10-02 12:12:05.995977",
13+
"spec_repo_commit": "8d1ef64"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,10 @@ Class | Method | HTTP request | Description
575575
- [SyntheticsTriggerCITestsResponseResults](SyntheticsTriggerCITestsResponseResults.md)
576576
- [SyntheticsUpdateTestPauseStatusPayload](SyntheticsUpdateTestPauseStatusPayload.md)
577577
- [SyntheticsWarningType](SyntheticsWarningType.md)
578+
- [TableWidgetCellDisplayMode](TableWidgetCellDisplayMode.md)
578579
- [TableWidgetDefinition](TableWidgetDefinition.md)
579580
- [TableWidgetDefinitionType](TableWidgetDefinitionType.md)
581+
- [TableWidgetHasSearchBar](TableWidgetHasSearchBar.md)
580582
- [TableWidgetRequest](TableWidgetRequest.md)
581583
- [TagToHosts](TagToHosts.md)
582584
- [TargetFormatType](TargetFormatType.md)

docs/v1/TableWidgetCellDisplayMode.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TableWidgetCellDisplayMode
2+
3+
Define a display mode for the table cell.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Define a display mode for the table cell. | if omitted the server will use the default value of "number", must be one of ["number", "bar", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v1/TableWidgetDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**requests** | [**[TableWidgetRequest]**](TableWidgetRequest.md) | Widget definition. |
88
**type** | [**TableWidgetDefinitionType**](TableWidgetDefinitionType.md) | |
99
**custom_links** | [**[WidgetCustomLink]**](WidgetCustomLink.md) | List of custom links. | [optional]
10-
**has_search_bar** | **str** | Controls the display of the search bar. | [optional] if omitted the server will use the default value of "auto"
10+
**has_search_bar** | [**TableWidgetHasSearchBar**](TableWidgetHasSearchBar.md) | | [optional]
1111
**time** | [**WidgetTime**](WidgetTime.md) | | [optional]
1212
**title** | **str** | Title of your widget. | [optional]
1313
**title_align** | [**WidgetTextAlign**](WidgetTextAlign.md) | | [optional]

docs/v1/TableWidgetHasSearchBar.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TableWidgetHasSearchBar
2+
3+
Controls the display of the search bar.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Controls the display of the search bar. | if omitted the server will use the default value of "auto", must be one of ["always", "never", "auto", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v1/TableWidgetRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**alias** | **str** | The column name (defaults to the metric name). | [optional]
99
**apm_query** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional]
1010
**apm_stats_query** | [**ApmStatsQueryDefinition**](ApmStatsQueryDefinition.md) | | [optional]
11-
**cell_display_mode** | **[str]** | A list of display modes for each table cell. | [optional]
11+
**cell_display_mode** | [**[TableWidgetCellDisplayMode]**](TableWidgetCellDisplayMode.md) | A list of display modes for each table cell. | [optional]
1212
**conditional_formats** | [**[WidgetConditionalFormat]**](WidgetConditionalFormat.md) | List of conditional formats. | [optional]
1313
**event_query** | [**EventQueryDefinition**](EventQueryDefinition.md) | | [optional]
1414
**limit** | **int** | For metric queries, the number of lines to show in the table. Only one request should have this property. | [optional]

docs/v1/WidgetDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Name | Type | Description | Notes
8181
**show_latency** | **bool** | Whether to show the latency metrics or not. | [optional]
8282
**show_resource_list** | **bool** | Whether to show the resource list or not. | [optional]
8383
**size_format** | [**WidgetSizeFormat**](WidgetSizeFormat.md) | | [optional]
84-
**has_search_bar** | **str** | Controls the display of the search bar. | [optional] if omitted the server will use the default value of "auto"
84+
**has_search_bar** | [**TableWidgetHasSearchBar**](TableWidgetHasSearchBar.md) | | [optional]
8585
**markers** | [**[WidgetMarker]**](WidgetMarker.md) | List of markers. | [optional]
8686
**right_yaxis** | [**WidgetAxis**](WidgetAxis.md) | | [optional]
8787
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# coding: utf-8
2+
3+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
4+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
5+
# Copyright 2019-Present Datadog, Inc.
6+
7+
8+
import re # noqa: F401
9+
import sys # noqa: F401
10+
11+
import nulltype # noqa: F401
12+
13+
from datadog_api_client.v1.model_utils import ( # noqa: F401
14+
ApiTypeError,
15+
ModelComposed,
16+
ModelNormal,
17+
ModelSimple,
18+
cached_property,
19+
change_keys_js_to_python,
20+
convert_js_args_to_python_args,
21+
date,
22+
datetime,
23+
file_type,
24+
none_type,
25+
validate_get_composed_info,
26+
)
27+
28+
29+
class TableWidgetCellDisplayMode(ModelSimple):
30+
"""NOTE: This class is auto generated by OpenAPI Generator.
31+
Ref: https://openapi-generator.tech
32+
33+
Do not edit the class manually.
34+
35+
Attributes:
36+
allowed_values (dict): The key is the tuple path to the attribute
37+
and the for var_name this is (var_name,). The value is a dict
38+
with a capitalized key describing the allowed value and an allowed
39+
value. These dicts store the allowed enum values.
40+
validations (dict): The key is the tuple path to the attribute
41+
and the for var_name this is (var_name,). The value is a dict
42+
that stores validations for max_length, min_length, max_items,
43+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
44+
inclusive_minimum, and regex.
45+
additional_properties_type (tuple): A tuple of classes accepted
46+
as additional properties values.
47+
"""
48+
49+
allowed_values = {
50+
('value',): {
51+
'NUMBER': "number",
52+
'BAR': "bar",
53+
},
54+
}
55+
56+
validations = {
57+
}
58+
59+
additional_properties_type = None
60+
61+
_nullable = False
62+
63+
@cached_property
64+
def openapi_types():
65+
"""
66+
This must be a method because a model may have properties that are
67+
of type self, this must run after the class is loaded
68+
69+
Returns
70+
openapi_types (dict): The key is attribute name
71+
and the value is attribute type.
72+
"""
73+
return {
74+
'value': (str,),
75+
}
76+
77+
@cached_property
78+
def discriminator():
79+
return None
80+
81+
82+
attribute_map = {}
83+
84+
_composed_schemas = None
85+
86+
required_properties = set([
87+
'_data_store',
88+
'_check_type',
89+
'_spec_property_naming',
90+
'_path_to_item',
91+
'_configuration',
92+
'_visited_composed_classes',
93+
])
94+
95+
@convert_js_args_to_python_args
96+
def __init__(self, value, *args, **kwargs):
97+
"""TableWidgetCellDisplayMode - a model defined in OpenAPI
98+
99+
Args:
100+
value (str): Define a display mode for the table cell.. if omitted the server will use the default value of "number", must be one of ["number", "bar", ] # noqa: E501
101+
102+
Keyword Args:
103+
_check_type (bool): if True, values for parameters in openapi_types
104+
will be type checked and a TypeError will be
105+
raised if the wrong type is input.
106+
Defaults to True
107+
_path_to_item (tuple/list): This is a list of keys or values to
108+
drill down to the model in received_data
109+
when deserializing a response
110+
_spec_property_naming (bool): True if the variable names in the input data
111+
are serialized names, as specified in the OpenAPI document.
112+
False if the variable names in the input data
113+
are pythonic names, e.g. snake case (default)
114+
_configuration (Configuration): the instance to use when
115+
deserializing a file_type parameter.
116+
If passed, type conversion is attempted
117+
If omitted no type conversion is done.
118+
_visited_composed_classes (tuple): This stores a tuple of
119+
classes that we have traveled through so that
120+
if we see that class again we will not use its
121+
discriminator again.
122+
When traveling through a discriminator, the
123+
composed schema that is
124+
is traveled through is added to this set.
125+
For example if Animal has a discriminator
126+
petType and we pass in "Dog", and the class Dog
127+
allOf includes Animal, we move through Animal
128+
once using the discriminator, and pick Dog.
129+
Then in Dog, we will make an instance of the
130+
Animal class but this time we won't travel
131+
through its discriminator because we passed in
132+
_visited_composed_classes = (Animal,)
133+
"""
134+
135+
_check_type = kwargs.pop('_check_type', True)
136+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
137+
_path_to_item = kwargs.pop('_path_to_item', ())
138+
_configuration = kwargs.pop('_configuration', None)
139+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
140+
141+
if args:
142+
raise ApiTypeError(
143+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
144+
args,
145+
self.__class__.__name__,
146+
),
147+
path_to_item=_path_to_item,
148+
valid_classes=(self.__class__,),
149+
)
150+
151+
self._data_store = {}
152+
self._check_type = _check_type
153+
self._spec_property_naming = _spec_property_naming
154+
self._path_to_item = _path_to_item
155+
self._configuration = _configuration
156+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
157+
self.value = value
158+
if kwargs:
159+
raise ApiTypeError(
160+
"Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
161+
kwargs,
162+
self.__class__.__name__,
163+
),
164+
path_to_item=_path_to_item,
165+
valid_classes=(self.__class__,),
166+
)

src/datadog_api_client/v1/model/table_widget_definition.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727

2828
def lazy_import():
2929
from datadog_api_client.v1.model.table_widget_definition_type import TableWidgetDefinitionType
30+
from datadog_api_client.v1.model.table_widget_has_search_bar import TableWidgetHasSearchBar
3031
from datadog_api_client.v1.model.table_widget_request import TableWidgetRequest
3132
from datadog_api_client.v1.model.widget_custom_link import WidgetCustomLink
3233
from datadog_api_client.v1.model.widget_text_align import WidgetTextAlign
3334
from datadog_api_client.v1.model.widget_time import WidgetTime
3435
globals()['TableWidgetDefinitionType'] = TableWidgetDefinitionType
36+
globals()['TableWidgetHasSearchBar'] = TableWidgetHasSearchBar
3537
globals()['TableWidgetRequest'] = TableWidgetRequest
3638
globals()['WidgetCustomLink'] = WidgetCustomLink
3739
globals()['WidgetTextAlign'] = WidgetTextAlign
@@ -63,11 +65,6 @@ class TableWidgetDefinition(ModelNormal):
6365
"""
6466

6567
allowed_values = {
66-
('has_search_bar',): {
67-
'ALWAYS': "always",
68-
'NEVER': "never",
69-
'AUTO': "auto",
70-
},
7168
}
7269

7370
validations = {
@@ -92,7 +89,7 @@ def openapi_types():
9289
'requests': ([TableWidgetRequest],), # noqa: E501
9390
'type': (TableWidgetDefinitionType,), # noqa: E501
9491
'custom_links': ([WidgetCustomLink],), # noqa: E501
95-
'has_search_bar': (str,), # noqa: E501
92+
'has_search_bar': (TableWidgetHasSearchBar,), # noqa: E501
9693
'time': (WidgetTime,), # noqa: E501
9794
'title': (str,), # noqa: E501
9895
'title_align': (WidgetTextAlign,), # noqa: E501
@@ -166,7 +163,7 @@ def __init__(self, requests, type, *args, **kwargs): # noqa: E501
166163
through its discriminator because we passed in
167164
_visited_composed_classes = (Animal,)
168165
custom_links ([WidgetCustomLink]): List of custom links.. [optional] # noqa: E501
169-
has_search_bar (str): Controls the display of the search bar.. [optional] if omitted the server will use the default value of "auto" # noqa: E501
166+
has_search_bar (TableWidgetHasSearchBar): [optional] # noqa: E501
170167
time (WidgetTime): [optional] # noqa: E501
171168
title (str): Title of your widget.. [optional] # noqa: E501
172169
title_align (WidgetTextAlign): [optional] # noqa: E501

0 commit comments

Comments
 (0)