10000 fix: `Threshold` domain models mapping, response types for `Dashboard… · calvinlua/influxdb-client-python@a26fc4c · GitHub
[go: up one dir, main page]

Skip to content

Commit a26fc4c

Browse files
authored
fix: Threshold domain models mapping, response types for DashboardService (influxdata#290)
1 parent 025e97e commit a26fc4c

17 files changed

+170
-44
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
### Bug Fixes
77
1. [#283](https://github.com/influxdata/influxdb-client-python/pull/283): Set proxy server in config file
8+
1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `Threshold` domain models mapping
9+
1. [#290](https://github.com/influxdata/influxdb-client-python/pull/290): `DashboardService` responses types
810

911
## 1.19.0 [2021-07-09]
1012

influxdb_client/domain/check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class Check(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'str',
35+
'type': 'str'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/greater_threshold.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
import re # noqa: F401
1515

1616
import six
17-
from influxdb_client.domain.threshold import Threshold
17+
from influxdb_client.domain.threshold_base import ThresholdBase
1818

1919

20-
class GreaterThreshold(Threshold):
20+
class GreaterThreshold(ThresholdBase):
2121
"""NOTE: This class is auto generated by OpenAPI Generator.
2222
2323
Ref: https://openapi-generator.tech
@@ -48,7 +48,7 @@ class GreaterThreshold(Threshold):
4848

4949
def __init__(self, type="greater", value=None, level=None, all_values=None): # noqa: E501,D401,D403
5050
"""GreaterThreshold - a model defined in OpenAPI.""" # noqa: E501
51-
Threshold.__init__(self, level=level, all_values=all_values) # noqa: E501
51+
ThresholdBase.__init__(self, level=level, all_values=all_values) # noqa: E501
5252

5353
self._type = None
5454
self._value = None

influxdb_client/domain/lesser_threshold.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
import re # noqa: F401
1515

1616
import six
17-
from influxdb_client.domain.threshold import Threshold
17+
from influxdb_client.domain.threshold_base import ThresholdBase
1818

1919

20-
class LesserThreshold(Threshold):
20+
class LesserThreshold(ThresholdBase):
2121
"""NOTE: This class is auto generated by OpenAPI Generator.
2222
2323
Ref: https://openapi-generator.tech
@@ -48,7 +48,7 @@ class LesserThreshold(Threshold):
4848

4949
def __init__(self, type="lesser", value=None, level=None, all_values=None): # noqa: E501,D401,D403
5050
"""LesserThreshold - a model defined in OpenAPI.""" # noqa: E501
51-
Threshold.__init__(self, level=level, all_values=all_values) # noqa: E501
51+
ThresholdBase.__init__(self, level=level, all_values=all_values) # noqa: E501
5252

5353
self._type = None
5454
self._value = None

influxdb_client/domain/notification_endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class NotificationEndpoint(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'NotificationEndpointType',
35+
'type': 'NotificationEndpointType'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/notification_rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class NotificationRule(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'str',
35+
'type': 'str'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/post_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class PostCheck(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'str',
35+
'type': 'str'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/post_notification_endpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class PostNotificationEndpoint(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'NotificationEndpointType',
35+
'type': 'NotificationEndpointType'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/post_notification_rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class PostNotificationRule(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'type': 'str',
35+
'type': 'str'
3636
}
3737

3838
attribute_map = {
39-
'type': 'type',
39+
'type': 'type'
4040
}
4141

4242
discriminator_value_class_map = {

influxdb_client/domain/property_key.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
import re # noqa: F401
1515

1616
import six
17+
from influxdb_client.domain.expression import Expression
1718

1819

19-
class PropertyKey(object):
20+
class PropertyKey(Expression):
2021
"""NOTE: This class is auto generated by OpenAPI Generator.
2122
2223
Ref: https://openapi-generator.tech
@@ -38,7 +39,9 @@ class PropertyKey(object):
3839
}
3940

4041
def __init__(self): # noqa: E501,D401,D403
41-
"""PropertyKey - a model defined in OpenAPI.""" # noqa: E501 self.discriminator = None
42+
"""PropertyKey - a model defined in OpenAPI.""" # noqa: E501
43+
Expression.__init__(self) # noqa: E501
44+
self.discriminator = None
4245

4346
def to_dict(self):
4447
"""Return the model properties as a dict."""

0 commit comments

Comments
 (0)
0