Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 05a6bb8

Browse files
committedMay 28, 2021
feat: updating to latest swagger
1 parent bad189f commit 05a6bb8

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed
 

‎influxdb_client/domain/query.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Query(object):
3535
'extern': 'File',
3636
'query': 'str',
3737
'type': 'str',
38+
'params': 'dict(str, object)',
3839
'dialect': 'Dialect',
3940
'now': 'datetime'
4041
}
@@ -43,15 +44,17 @@ class Query(object):
4344
'extern': 'extern',
4445
'query': 'query',
4546
'type': 'type',
47+
'params': 'params',
4648
'dialect': 'dialect',
4749
'now': 'now'
4850
}
4951

50-
def __init__(self, extern=None, query=None, type=None, dialect=None, now=None): # noqa: E501,D401,D403
52+
def __init__(self, extern=None, query=None, type=None, params=None, dialect=None, now=None): # noqa: E501,D401,D403
5153
"""Query - a model defined in OpenAPI.""" # noqa: E501
5254
self._extern = None
5355
self._query = None
5456
self._type = None
57+
self._params = None
5558
self._dialect = None
5659
self._now = None
5760
self.discriminator = None
@@ -61,6 +64,8 @@ def __init__(self, extern=None, query=None, type=None, dialect=None, now=None):
6164
self.query = query
6265
if type is not None:
6366
self.type = type
67+
if params is not None:
68+
self.params = params
6469
if dialect is not None:
6570
self.dialect = dialect
6671
if now is not None:
@@ -130,6 +135,28 @@ def type(self, type):
130135
""" # noqa: E501
131136
self._type = type
132137

138+
@property
139+
def params(self):
140+
"""Get the params of this Query.
141+
142+
Enumeration of key/value pairs that respresent parameters to be injected into query (can only specify either this field or extern and not both)
143+
144+
:return: The params of this Query.
145+
:rtype: dict(str, object)
146+
""" # noqa: E501
147+
return self._params
148+
149+
@params.setter
150+
def params(self, params):
151+
"""Set the params of this Query.
152+
153+
Enumeration of key/value pairs that respresent parameters to be injected into query (can only specify either this field or extern and not both)
154+
155+
:param params: The params of this Query.
156+
:type: dict(str, object)
157+
""" # noqa: E501
158+
self._params = params
159+
133160
@property
134161
def dialect(self):
135162
"""Get the dialect of this Query.

‎influxdb_client/service/tasks_service.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ def post_tasks_id_runs_id_retry(self, task_id, run_id, **kwargs): # noqa: E501,
22822282
:param str task_id: The task ID. (required)
22832283
:param str run_id: The run ID. (required)
22842284
:param str zap_trace_span: OpenTracing span context
2285+
:param str body:
22852286
:return: Run
22862287
If the method is called asynchronously,
22872288
returns the request thread.
@@ -2305,13 +2306,14 @@ def post_tasks_id_runs_id_retry_with_http_info(self, task_id, run_id, **kwargs):
23052306
:param str task_id: The task ID. (required)
23062307
:param str run_id: The run ID. (required)
23072308
:param str zap_trace_span: OpenTracing span context
2309+
:param str body:
23082310
:return: Run
23092311
If the method is called asynchronously,
23102312
returns the request thread.
23112313
""" # noqa: E501
23122314
local_var_params = locals()
23132315

2314-
all_params = ['task_id', 'run_id', 'zap_trace_span'] # noqa: E501
2316+
all_params = ['task_id', 'run_id', 'zap_trace_span', 'body'] # noqa: E501
23152317
all_params.append('async_req')
23162318
all_params.append('_return_http_data_only')
23172319
all_params.append('_preload_content')
@@ -2353,10 +2355,16 @@ def post_tasks_id_runs_id_retry_with_http_info(self, task_id, run_id, **kwargs):
23532355
local_var_files = {}
23542356

23552357
body_params = None
2358+
if 'body' in local_var_params:
2359+
body_params = local_var_params['body']
23562360
# HTTP header `Accept`
23572361
header_params['Accept'] = self.api_client.select_header_accept(
23582362
['application/json']) # noqa: E501
23592363

2364+
# HTTP header `Content-Type`
2365+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2366+
['application/json; charset=utf-8']) # noqa: E501
2367+
23602368
# Authentication setting
23612369
auth_settings = [] # noqa: E501
23622370

0 commit comments

Comments
 (0)
Please sign in to comment.