Skip to content

Commit eab6015

Browse files
committed
Updated swagger to latest version
1 parent 44cdf56 commit eab6015

32 files changed

+2047
-790
lines changed

influxdb2/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@
112112
from influxdb2.domain.flux_suggestions import FluxSuggestions
113113
from influxdb2.domain.function_expression import FunctionExpression
114114
from influxdb2.domain.gauge_view_properties import GaugeViewProperties
115+
from influxdb2.domain.greater_threshold import GreaterThreshold
116+
from influxdb2.domain.http_notification_rule import HTTPNotificationRule
117+
from influxdb2.domain.http_notification_rule_base import HTTPNotificationRuleBase
115118
from influxdb2.domain.health_check import HealthCheck
116119
from influxdb2.domain.heatmap_view_properties import HeatmapViewProperties
117120
from influxdb2.domain.histogram_view_properties import HistogramViewProperties
@@ -128,6 +131,7 @@
128131
from influxdb2.domain.labels_response import LabelsResponse
129132
from influxdb2.domain.language_request import LanguageRequest
130133
from influxdb2.domain.legend import Legend
134+
from influxdb2.domain.lesser_threshold import LesserThreshold
131135
from influxdb2.domain.level_rule import LevelRule
132136
from influxdb2.domain.line_plus_single_stat_properties import LinePlusSingleStatProperties
133137
from influxdb2.domain.line_protocol_error import LineProtocolError
@@ -144,6 +148,7 @@
144148
from influxdb2.domain.node import Node
145149
from influxdb2.domain.notification_endpoint import NotificationEndpoint
146150
from influxdb2.domain.notification_endpoint_base import NotificationEndpointBase
151+
from influxdb2.domain.notification_endpoint_type import NotificationEndpointType
147152
from influxdb2.domain.notification_endpoints import NotificationEndpoints
148153
from influxdb2.domain.notification_rule import NotificationRule
149154
from influxdb2.domain.notification_rule_base import NotificationRuleBase
@@ -163,6 +168,7 @@
163168
from influxdb2.domain.package_clause import PackageClause
164169
from influxdb2.domain.pager_duty_notification_endpoint import PagerDutyNotificationEndpoint
165170
from influxdb2.domain.pager_duty_notification_rule import PagerDutyNotificationRule
171+
from influxdb2.domain.pager_duty_notification_rule_base import PagerDutyNotificationRuleBase
166172
from influxdb2.domain.password_reset_body import PasswordResetBody
167173
from influxdb2.domain.permission import Permission
168174
from influxdb2.domain.permission_resource import PermissionResource
@@ -173,6 +179,7 @@
173179
from influxdb2.domain.query_edit_mode import QueryEditMode
174180
from influxdb2.domain.query_variable_properties import QueryVariableProperties
175181
from influxdb2.domain.query_variable_properties_values import QueryVariablePropertiesValues
182+
from influxdb2.domain.range_threshold import RangeThreshold
176183
from influxdb2.domain.ready import Ready
177184
from influxdb2.domain.regexp_literal import RegexpLiteral
178185
from influxdb2.domain.renamable_field import RenamableField
@@ -190,8 +197,8 @@
190197
from influxdb2.domain.run_log import RunLog
191198
from influxdb2.domain.run_manually import RunManually
192199
from influxdb2.domain.runs import Runs
193-
from influxdb2.domain.smtp_notification_endpoint import SMTPNotificationEndpoint
194200
from influxdb2.domain.smtp_notification_rule import SMTPNotificationRule
201+
from influxdb2.domain.smtp_notification_rule_base import SMTPNotificationRuleBase
195202
from influxdb2.domain.scatter_view_properties import ScatterViewProperties
196203
from influxdb2.domain.scraper_target_request import ScraperTargetRequest
197204
from influxdb2.domain.scraper_target_response import ScraperTargetResponse
@@ -201,6 +208,7 @@
201208
from influxdb2.domain.single_stat_view_properties import SingleStatViewProperties
202209
from influxdb2.domain.slack_notification_endpoint import SlackNotificationEndpoint
203210
from influxdb2.domain.slack_notification_rule import SlackNotificationRule
211+
from influxdb2.domain.slack_notification_rule_base import SlackNotificationRuleBase
204212
from influxdb2.domain.source import Source
205213
from influxdb2.domain.source_links import SourceLinks
206214
from influxdb2.domain.sources import Sources
@@ -255,6 +263,7 @@
255263
from influxdb2.domain.telegrafs import Telegrafs
256264
from influxdb2.domain.test_statement import TestStatement
257265
from influxdb2.domain.threshold import Threshold
266+
from influxdb2.domain.threshold_base import ThresholdBase
258267
from influxdb2.domain.threshold_check import ThresholdCheck
259268
from influxdb2.domain.unary_expression import UnaryExpression
260269
from influxdb2.domain.unsigned_integer_literal import UnsignedIntegerLiteral

influxdb2/domain/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
from influxdb2.domain.flux_suggestions import FluxSuggestions
8080
from influxdb2.domain.function_expression import FunctionExpression
8181
from influxdb2.domain.gauge_view_properties import GaugeViewProperties
82+
from influxdb2.domain.greater_threshold import GreaterThreshold
83+
from influxdb2.domain.http_notification_rule import HTTPNotificationRule
84+
from influxdb2.domain.http_notification_rule_base import HTTPNotificationRuleBase
8285
from influxdb2.domain.health_check import HealthCheck
8386
from influxdb2.domain.heatmap_view_properties import HeatmapViewProperties
8487
from influxdb2.domain.histogram_view_properties import HistogramViewProperties
@@ -95,6 +98,7 @@
9598
from influxdb2.domain.labels_response import LabelsResponse
9699
from influxdb2.domain.language_request import LanguageRequest
97100
from influxdb2.domain.legend import Legend
101+
from influxdb2.domain.lesser_threshold import LesserThreshold
98102
from influxdb2.domain.level_rule import LevelRule
99103
from influxdb2.domain.line_plus_single_stat_properties import LinePlusSingleStatProperties
100104
from influxdb2.domain.line_protocol_error import LineProtocolError
@@ -111,6 +115,7 @@
111115
from influxdb2.domain.node import Node
112116
from influxdb2.domain.notification_endpoint import NotificationEndpoint
113117
from influxdb2.domain.notification_endpoint_base import NotificationEndpointBase
118+
from influxdb2.domain.notification_endpoint_type import NotificationEndpointType
114119
from influxdb2.domain.notification_endpoints import NotificationEndpoints
115120
from influxdb2.domain.notification_rule import NotificationRule
116121
from influxdb2.domain.notification_rule_base import NotificationRuleBase
@@ -130,6 +135,7 @@
130135
from influxdb2.domain.package_clause import PackageClause
131136
from influxdb2.domain.pager_duty_notification_endpoint import PagerDutyNotificationEndpoint
132137
from influxdb2.domain.pager_duty_notification_rule import PagerDutyNotificationRule
138+
from influxdb2.domain.pager_duty_notification_rule_base import PagerDutyNotificationRuleBase
133139
from influxdb2.domain.password_reset_body import PasswordResetBody
134140
from influxdb2.domain.permission import Permission
135141
from influxdb2.domain.permission_resource import PermissionResource
@@ -140,6 +146,7 @@
140146
from influxdb2.domain.query_edit_mode import QueryEditMode
141147
from influxdb2.domain.query_variable_properties import QueryVariableProperties
142148
from influxdb2.domain.query_variable_properties_values import QueryVariablePropertiesValues
149+
from influxdb2.domain.range_threshold import RangeThreshold
143150
from influxdb2.domain.ready import Ready
144151
from influxdb2.domain.regexp_literal import RegexpLiteral
145152
from influxdb2.domain.renamable_field import RenamableField
@@ -157,8 +164,8 @@
157164
from influxdb2.domain.run_log import RunLog
158165
from influxdb2.domain.run_manually import RunManually
159166
from influxdb2.domain.runs import Runs
160-
from influxdb2.domain.smtp_notification_endpoint import SMTPNotificationEndpoint
161167
from influxdb2.domain.smtp_notification_rule import SMTPNotificationRule
168+
from influxdb2.domain.smtp_notification_rule_base import SMTPNotificationRuleBase
162169
from influxdb2.domain.scatter_view_properties import ScatterViewProperties
163170
from influxdb2.domain.scraper_target_request import ScraperTargetRequest
164171
from influxdb2.domain.scraper_target_response import ScraperTargetResponse
@@ -168,6 +175,7 @@
168175
from influxdb2.domain.single_stat_view_properties import SingleStatViewProperties
169176
from influxdb2.domain.slack_notification_endpoint import SlackNotificationEndpoint
170177
from influxdb2.domain.slack_notification_rule import SlackNotificationRule
178+
from influxdb2.domain.slack_notification_rule_base import SlackNotificationRuleBase
171179
from influxdb2.domain.source import Source
172180
from influxdb2.domain.source_links import SourceLinks
173181
from influxdb2.domain.sources import Sources
@@ -222,6 +230,7 @@
222230
from influxdb2.domain.telegrafs import Telegrafs
223231
from influxdb2.domain.test_statement import TestStatement
224232
from influxdb2.domain.threshold import Threshold
233+
from influxdb2.domain.threshold_base import ThresholdBase
225234
from influxdb2.domain.threshold_check import ThresholdCheck
226235
from influxdb2.domain.unary_expression import UnaryExpression
227236
from influxdb2.domain.unsigned_integer_literal import UnsignedIntegerLiteral

influxdb2/domain/check.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Check(CheckBase):
3535
'id': 'str',
3636
'name': 'str',
3737
'org_id': 'str',
38-
'authorization_id': 'str',
38+
'owner_id': 'str',
3939
'created_at': 'datetime',
4040
'updated_at': 'datetime',
4141
'query': 'DashboardQuery',
@@ -53,7 +53,7 @@ class Check(CheckBase):
5353
'id': 'id',
5454
'name': 'name',
5555
'org_id': 'orgID',
56-
'authorization_id': 'authorizationID',
56+
'owner_id': 'ownerID',
5757
'created_at': 'createdAt',
5858
'updated_at': 'updatedAt',
5959
'query': 'query',
@@ -67,9 +67,9 @@ class Check(CheckBase):
6767
'labels': 'labels'
6868
}
6969

70-
def __init__(self, id=None, name=None, org_id=None, authorization_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
70+
def __init__(self, id=None, name=None, org_id=None, owner_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
7171
"""Check - a model defined in OpenAPI""" # noqa: E501
72-
CheckBase.__init__(self, id=id, name=name, org_id=org_id, authorization_id=authorization_id, created_at=created_at, updated_at=updated_at, query=query, status=status, every=every, offset=offset, cron=cron, tags=tags, description=description, status_message_template=status_message_template, labels=labels)
72+
CheckBase.__init__(self, id=id, name=name, org_id=org_id, owner_id=owner_id, created_at=created_at, updated_at=updated_at, query=query, status=status, every=every, offset=offset, cron=cron, tags=tags, description=description, status_message_template=status_message_template, labels=labels)
7373
self.discriminator = None
7474

7575
def to_dict(self):

influxdb2/domain/check_base.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CheckBase(object):
3434
'id': 'str',
3535
'name': 'str',
3636
'org_id': 'str',
37-
'authorization_id': 'str',
37+
'owner_id': 'str',
3838
'created_at': 'datetime',
3939
'updated_at': 'datetime',
4040
'query': 'DashboardQuery',
@@ -52,7 +52,7 @@ class CheckBase(object):
5252
'id': 'id',
5353
'name': 'name',
5454
'org_id': 'orgID',
55-
'authorization_id': 'authorizationID',
55+
'owner_id': 'ownerID',
5656
'created_at': 'createdAt',
5757
'updated_at': 'updatedAt',
5858
'query': 'query',
@@ -66,13 +66,13 @@ class CheckBase(object):
6666
'labels': 'labels'
6767
}
6868

69-
def __init__(self, id=None, name=None, org_id=None, authorization_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
69+
def __init__(self, id=None, name=None, org_id=None, owner_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
7070
"""CheckBase - a model defined in OpenAPI""" # noqa: E501
7171

7272
self._id = None
7373
self._name = None
7474
self._org_id = None
75-
self._authorization_id = None
75+
self._owner_id = None
7676
self._created_at = None
7777
self._updated_at = None
7878
self._query = None
@@ -90,8 +90,8 @@ def __init__(self, id=None, name=None, org_id=None, authorization_id=None, creat
9090
self.id = id
9191
self.name = name
9292
self.org_id = org_id
93-
if authorization_id is not None:
94-
self.authorization_id = authorization_id
93+
if owner_id is not None:
94+
self.owner_id = owner_id
9595
if created_at is not None:
9696
self.created_at = created_at
9797
if updated_at is not None:
@@ -184,27 +184,27 @@ def org_id(self, org_id):
184184
self._org_id = org_id
185185

186186
@property
187-
def authorization_id(self):
188-
"""Gets the authorization_id of this CheckBase. # noqa: E501
187+
def owner_id(self):
188+
"""Gets the owner_id of this CheckBase. # noqa: E501
189189
190-
The ID of the authorization used to create this check. # noqa: E501
190+
The ID of creator used to create this check. # noqa: E501
191191
192-
:return: The authorization_id of this CheckBase. # noqa: E501
192+
:return: The owner_id of this CheckBase. # noqa: E501
193193
:rtype: str
194194
"""
195-
return self._authorization_id
195+
return self._owner_id
196196

197-
@authorization_id.setter
198-
def authorization_id(self, authorization_id):
199-
"""Sets the authorization_id of this CheckBase.
197+
@owner_id.setter
198+
def owner_id(self, owner_id):
199+
"""Sets the owner_id of this CheckBase.
200200
201-
The ID of the authorization used to create this check. # noqa: E501
201+
The ID of creator used to create this check. # noqa: E501
202202
203-
:param authorization_id: The authorization_id of this CheckBase. # noqa: E501
203+
:param owner_id: The owner_id of this CheckBase. # noqa: E501
204204
:type: str
205205
"""
206206

207-
self._authorization_id = authorization_id
207+
self._owner_id = owner_id
208208

209209
@property
210210
def created_at(self):

influxdb2/domain/deadman_check.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DeadmanCheck(CheckBase):
3939
'id': 'str',
4040
'name': 'str',
4141
'org_id': 'str',
42-
'authorization_id': 'str',
42+
'owner_id': 'str',
4343
'created_at': 'datetime',
4444
'updated_at': 'datetime',
4545
'query': 'DashboardQuery',
@@ -61,7 +61,7 @@ class DeadmanCheck(CheckBase):
6161
'id': 'id',
6262
'name': 'name',
6363
'org_id': 'orgID',
64-
'authorization_id': 'authorizationID',
64+
'owner_id': 'ownerID',
6565
'created_at': 'createdAt',
6666
'updated_at': 'updatedAt',
6767
'query': 'query',
@@ -75,9 +75,9 @@ class DeadmanCheck(CheckBase):
7575
'labels': 'labels'
7676
}
7777

78-
def __init__(self, type=None, time_since=None, report_zero=None, level=None, id=None, name=None, org_id=None, authorization_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
78+
def __init__(self, type=None, time_since=None, report_zero=None, level=None, id=None, name=None, org_id=None, owner_id=None, created_at=None, updated_at=None, query=None, status=None, every=None, offset=None, cron=None, tags=None, description=None, status_message_template=None, labels=None): # noqa: E501
7979
"""DeadmanCheck - a model defined in OpenAPI""" # noqa: E501
80-
CheckBase.__init__(self, id=id, name=name, org_id=org_id, authorization_id=authorization_id, created_at=created_at, updated_at=updated_at, query=query, status=status, every=every, offset=offset, cron=cron, tags=tags, description=description, status_message_template=status_message_template, labels=labels)
80+
CheckBase.__init__(self, id=id, name=name, org_id=org_id, owner_id=owner_id, created_at=created_at, updated_at=updated_at, query=query, status=status, every=every, offset=offset, cron=cron, tags=tags, description=description, status_message_template=status_message_template, labels=labels)
8181

8282
self._type = None
8383
self._time_since = None

influxdb2/domain/document_meta.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class DocumentMeta(object):
3333
openapi_types = {
3434
'name': 'str',
3535
'type': 'str',
36+
'template_id': 'str',
3637
'description': 'str',
3738
'version': 'str',
3839
'created_at': 'datetime',
@@ -42,17 +43,19 @@ class DocumentMeta(object):
4243
attribute_map = {
4344
'name': 'name',
4445
'type': 'type',
46+
'template_id': 'templateID',
4547
'description': 'description',
4648
'version': 'version',
4749
'created_at': 'createdAt',
4850
'updated_at': 'updatedAt'
4951
}
5052

51-
def __init__(self, name=None, type=None, description=None, version=None, created_at=None, updated_at=None): # noqa: E501
53+
def __init__(self, name=None, type=None, template_id=None, description=None, version=None, created_at=None, updated_at=None): # noqa: E501
5254
"""DocumentMeta - a model defined in OpenAPI""" # noqa: E501
5355

5456
self._name = None
5557
self._type = None
58+
self._template_id = None
5659
self._description = None
5760
self._version = None
5861
self._created_at = None
@@ -62,6 +65,8 @@ def __init__(self, name=None, type=None, description=None, version=None, created
6265
self.name = name
6366
if type is not None:
6467
self.type = type
68+
if template_id is not None:
69+
self.template_id = template_id
6570
if description is not None:
6671
self.description = description
6772
self.version = version
@@ -114,6 +119,27 @@ def type(self, type):
114119

115120
self._type = type
116121

122+
@property
123+
def template_id(self):
124+
"""Gets the template_id of this DocumentMeta. # noqa: E501
125+
126+
127+
:return: The template_id of this DocumentMeta. # noqa: E501
128+
:rtype: str
129+
"""
130+
return self._template_id
131+
132+
@template_id.setter
133+
def template_id(self, template_id):
134+
"""Sets the template_id of this DocumentMeta.
135+
136+
137+
:param template_id: The template_id of this DocumentMeta. # noqa: E501
138+
:type: str
139+
"""
140+
141+
self._template_id = template_id
142+
117143
@property
118144
def description(self):
119145
"""Gets the description of this DocumentMeta. # noqa: E501

0 commit comments

Comments
 (0)