Skip to content

Commit 2a03243

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit cc977e5 of spec repo (#320)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3db5117 commit 2a03243

14 files changed

+499
-4
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.4.1.dev6",
7-
"regenerated": "2021-03-12 10:38:27.522185",
8-
"spec_repo_commit": "95807f2"
7+
"regenerated": "2021-03-16 19:17:21.689325",
8+
"spec_repo_commit": "cc977e5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-03-12 10:39:09.334271",
13-
"spec_repo_commit": "95807f2"
12+
"regenerated": "2021-03-16 19:18:01.088583",
13+
"spec_repo_commit": "cc977e5"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,8 @@ Class | Method | HTTP request | Description
665665
- [TimeseriesWidgetDefinition](TimeseriesWidgetDefinition.md)
666666
- [TimeseriesWidgetDefinitionType](TimeseriesWidgetDefinitionType.md)
667667
- [TimeseriesWidgetExpressionAlias](TimeseriesWidgetExpressionAlias.md)
668+
- [TimeseriesWidgetLegendColumns](TimeseriesWidgetLegendColumns.md)
669+
- [TimeseriesWidgetLegendLayout](TimeseriesWidgetLegendLayout.md)
668670
- [TimeseriesWidgetRequest](TimeseriesWidgetRequest.md)
669671
- [ToplistWidgetDefinition](ToplistWidgetDefinition.md)
670672
- [ToplistWidgetDefinitionType](ToplistWidgetDefinitionType.md)

docs/v1/TimeseriesWidgetDefinition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
88
**type** | [**TimeseriesWidgetDefinitionType**](TimeseriesWidgetDefinitionType.md) | |
99
**custom_links** | [**[WidgetCustomLink]**](WidgetCustomLink.md) | List of custom links. | [optional]
1010
**events** | [**[WidgetEvent]**](WidgetEvent.md) | List of widget events. | [optional]
11+
**legend_columns** | [**TimeseriesWidgetLegendColumns**](TimeseriesWidgetLegendColumns.md) | | [optional]
12+
**legend_layout** | [**TimeseriesWidgetLegendLayout**](TimeseriesWidgetLegendLayout.md) | | [optional]
1113
**legend_size** | **str** | Available legend sizes for a widget. Should be one of \&quot;0\&quot;, \&quot;2\&quot;, \&quot;4\&quot;, \&quot;8\&quot;, \&quot;16\&quot;, or \&quot;auto\&quot;. | [optional]
1214
**markers** | [**[WidgetMarker]**](WidgetMarker.md) | List of markers. | [optional]
1315
**right_yaxis** | [**WidgetAxis**](WidgetAxis.md) | | [optional]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TimeseriesWidgetLegendColumns
2+
3+
Columns displayed in the legend.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **[str]** | Columns displayed in the legend. |
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+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TimeseriesWidgetLegendLayout
2+
3+
Layout of the legend.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Layout of the legend. | must be one of ["auto", "horizontal", "vertical", ]
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/WidgetDefinition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Name | Type | Description | Notes
6464
**show_resource_list** | **bool** | Whether to show the resource list or not. | [optional]
6565
**size_format** | [**WidgetSizeFormat**](WidgetSizeFormat.md) | | [optional]
6666
**has_search_bar** | [**TableWidgetHasSearchBar**](TableWidgetHasSearchBar.md) | | [optional]
67+
**legend_columns** | [**TimeseriesWidgetLegendColumns**](TimeseriesWidgetLegendColumns.md) | | [optional]
68+
**legend_layout** | [**TimeseriesWidgetLegendLayout**](TimeseriesWidgetLegendLayout.md) | | [optional]
6769
**markers** | [**[WidgetMarker]**](WidgetMarker.md) | List of markers. | [optional]
6870
**right_yaxis** | [**WidgetAxis**](WidgetAxis.md) | | [optional]
6971
**alert_id** | **str** | ID of the alert to use in the widget. | [optional]

src/datadog_api_client/v1/model/timeseries_widget_definition.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
def lazy_import():
2626
from datadog_api_client.v1.model.timeseries_widget_definition_type import TimeseriesWidgetDefinitionType
27+
from datadog_api_client.v1.model.timeseries_widget_legend_columns import TimeseriesWidgetLegendColumns
28+
from datadog_api_client.v1.model.timeseries_widget_legend_layout import TimeseriesWidgetLegendLayout
2729
from datadog_api_client.v1.model.timeseries_widget_request import TimeseriesWidgetRequest
2830
from datadog_api_client.v1.model.widget_axis import WidgetAxis
2931
from datadog_api_client.v1.model.widget_custom_link import WidgetCustomLink
@@ -33,6 +35,8 @@ def lazy_import():
3335
from datadog_api_client.v1.model.widget_time import WidgetTime
3436

3537
globals()["TimeseriesWidgetDefinitionType"] = TimeseriesWidgetDefinitionType
38+
globals()["TimeseriesWidgetLegendColumns"] = TimeseriesWidgetLegendColumns
39+
globals()["TimeseriesWidgetLegendLayout"] = TimeseriesWidgetLegendLayout
3640
globals()["TimeseriesWidgetRequest"] = TimeseriesWidgetRequest
3741
globals()["WidgetAxis"] = WidgetAxis
3842
globals()["WidgetCustomLink"] = WidgetCustomLink
@@ -94,6 +98,8 @@ def openapi_types():
9498
"type": (TimeseriesWidgetDefinitionType,), # noqa: E501
9599
"custom_links": ([WidgetCustomLink],), # noqa: E501
96100
"events": ([WidgetEvent],), # noqa: E501
101+
"legend_columns": (TimeseriesWidgetLegendColumns,), # noqa: E501
102+
"legend_layout": (TimeseriesWidgetLegendLayout,), # noqa: E501
97103
"legend_size": (str,), # noqa: E501
98104
"markers": ([WidgetMarker],), # noqa: E501
99105
"right_yaxis": (WidgetAxis,), # noqa: E501
@@ -114,6 +120,8 @@ def discriminator():
114120
"type": "type", # noqa: E501
115121
"custom_links": "custom_links", # noqa: E501
116122
"events": "events", # noqa: E501
123+
"legend_columns": "legend_columns", # noqa: E501
124+
"legend_layout": "legend_layout", # noqa: E501
117125
"legend_size": "legend_size", # noqa: E501
118126
"markers": "markers", # noqa: E501
119127
"right_yaxis": "right_yaxis", # noqa: E501
@@ -179,6 +187,8 @@ def __init__(self, requests, type, *args, **kwargs): # noqa: E501
179187
_visited_composed_classes = (Animal,)
180188
custom_links ([WidgetCustomLink]): List of custom links.. [optional] # noqa: E501
181189
events ([WidgetEvent]): List of widget events.. [optional] # noqa: E501
190+
legend_columns (TimeseriesWidgetLegendColumns): [optional] # noqa: E501
191+
legend_layout (TimeseriesWidgetLegendLayout): [optional] # noqa: E501
182192
legend_size (str): Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".. [optional] # noqa: E501
183193
markers ([WidgetMarker]): List of markers.. [optional] # noqa: E501
184194
right_yaxis (WidgetAxis): [optional] # noqa: E501
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
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+
5+
6+
import re # noqa: F401
7+
import sys # noqa: F401
8+
9+
from datadog_api_client.v1.model_utils import ( # noqa: F401
10+
ApiTypeError,
11+
ModelComposed,
12+
ModelNormal,
13+
ModelSimple,
14+
cached_property,
15+
change_keys_js_to_python,
16+
convert_js_args_to_python_args,
17+
date,
18+
datetime,
19+
file_type,
20+
none_type,
21+
validate_get_composed_info,
22+
)
23+
24+
25+
class TimeseriesWidgetLegendColumns(ModelSimple):
26+
"""NOTE: This class is auto generated by OpenAPI Generator.
27+
Ref: https://openapi-generator.tech
28+
29+
Do not edit the class manually.
30+
31+
Attributes:
32+
allowed_values (dict): The key is the tuple path to the attribute
33+
and the for var_name this is (var_name,). The value is a dict
34+
with a capitalized key describing the allowed value and an allowed
35+
value. These dicts store the allowed enum values.
36+
validations (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+
that stores validations for max_length, min_length, max_items,
39+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
40+
inclusive_minimum, and regex.
41+
additional_properties_type (tuple): A tuple of classes accepted
42+
as additional properties values.
43+
"""
44+
45+
allowed_values = {}
46+
47+
validations = {}
48+
49+
additional_properties_type = None
50+
51+
_nullable = False
52+
53+
@cached_property
54+
def openapi_types():
55+
"""
56+
This must be a method because a model may have properties that are
57+
of type self, this must run after the class is loaded
58+
59+
Returns
60+
openapi_types (dict): The key is attribute name
61+
and the value is attribute type.
62+
"""
63+
return {
64+
"value": ([str],),
65+
}
66+
67+
@cached_property
68+
def discriminator():
69+
return None
70+
71+
attribute_map = {}
72+
73+
_composed_schemas = None
74+
75+
required_properties = set(
76+
[
77+
"_data_store",
78+
"_check_type",
79+
"_spec_property_naming",
80+
"_path_to_item",
81+
"_configuration",
82+
"_visited_composed_classes",
83+
]
84+
)
85+
86+
@convert_js_args_to_python_args
87+
def __init__(self, *args, **kwargs):
88+
"""TimeseriesWidgetLegendColumns - a model defined in OpenAPI
89+
90+
Note that value can be passed either in args or in kwargs, but not in both.
91+
92+
Args:
93+
args[0] ([str]): Columns displayed in the legend.. # noqa: E501
94+
95+
Keyword Args:
96+
value ([str]): Columns displayed in the legend.. # noqa: E501
97+
_check_type (bool): if True, values for parameters in openapi_types
98+
will be type checked and a TypeError will be
99+
raised if the wrong type is input.
100+
Defaults to True
101+
_path_to_item (tuple/list): This is a list of keys or values to
102+
drill down to the model in received_data
103+
when deserializing a response
104+
_spec_property_naming (bool): True if the variable names in the input data
105+
are serialized names, as specified in the OpenAPI document.
106+
False if the variable names in the input data
107+
are pythonic names, e.g. snake case (default)
108+
_configuration (Configuration): the instance to use when
109+
deserializing a file_type parameter.
110+
If passed, type conversion is attempted
111+
If omitted no type conversion is done.
112+
_visited_composed_classes (tuple): This stores a tuple of
113+
classes that we have traveled through so that
114+
if we see that class again we will not use its
115+
discriminator again.
116+
When traveling through a discriminator, the
117+
composed schema that is
118+
is traveled through is added to this set.
119+
For example if Animal has a discriminator
120+
petType and we pass in "Dog", and the class Dog
121+
allOf includes Animal, we move through Animal
122+
once using the discriminator, and pick Dog.
123+
Then in Dog, we will make an instance of the
124+
Animal class but this time we won't travel
125+
through its discriminator because we passed in
126+
_visited_composed_classes = (Animal,)
127+
"""
128+
# required up here when default value is not given
129+
_path_to_item = kwargs.pop("_path_to_item", ())
130+
131+
if "value" in kwargs:
132+
value = kwargs.pop("value")
133+
elif args:
134+
args = list(args)
135+
value = args.pop(0)
136+
else:
137+
raise ApiTypeError(
138+
"value is required, but not passed in args or kwargs and doesn't have default",
139+
path_to_item=_path_to_item,
140+
valid_classes=(self.__class__,),
141+
)
142+
143+
_check_type = kwargs.pop("_check_type", True)
144+
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
145+
_configuration = kwargs.pop("_configuration", None)
146+
_visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
147+
148+
if args:
149+
raise ApiTypeError(
150+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
151+
% (
152+
args,
153+
self.__class__.__name__,
154+
),
155+
path_to_item=_path_to_item,
156+
valid_classes=(self.__class__,),
157+
)
158+
159+
self._data_store = {}
160+
self._check_type = _check_type
161+
self._spec_property_naming = _spec_property_naming
162+
self._path_to_item = _path_to_item
163+
self._configuration = _configuration
164+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
165+
self.value = value
166+
if kwargs:
167+
raise ApiTypeError(
168+
"Invalid named arguments=%s passed to %s. Remove those invalid named arguments."
169+
% (
170+
kwargs,
171+
self.__class__.__name__,
172+
),
173+
path_to_item=_path_to_item,
174+
valid_classes=(self.__class__,),
175+
)

0 commit comments

Comments
 (0)