Skip to content

Update REST Client to v.3.6 #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
277 changes: 276 additions & 1 deletion tb_rest_client/api/api_ce/admin_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

ThingsBoard open-source IoT platform REST API documentation. # noqa: E501

OpenAPI spec version: 3.5.0
OpenAPI spec version: 3.6.0
Contact: [email protected]
Generated by: https://github.com./swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -315,6 +315,107 @@ def check_updates_using_get_with_http_info(self, **kwargs): # noqa: E501
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def code_processing_url_using_get(self, code, state, **kwargs): # noqa: E501
"""codeProcessingUrl # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.code_processing_url_using_get(code, state, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str code: code (required)
:param str state: state (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.code_processing_url_using_get_with_http_info(code, state, **kwargs) # noqa: E501
else:
(data) = self.code_processing_url_using_get_with_http_info(code, state, **kwargs) # noqa: E501
return data

def code_processing_url_using_get_with_http_info(self, code, state, **kwargs): # noqa: E501
"""codeProcessingUrl # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.code_processing_url_using_get_with_http_info(code, state, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str code: code (required)
:param str state: state (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['code', 'state'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')

params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method code_processing_url_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'code' is set
if ('code' not in params or
params['code'] is None):
raise ValueError("Missing the required parameter `code` when calling `code_processing_url_using_get`") # noqa: E501
# verify the required parameter 'state' is set
if ('state' not in params or
params['state'] is None):
raise ValueError("Missing the required parameter `state` when calling `code_processing_url_using_get`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []
if 'code' in params:
query_params.append(('code', params['code'])) # noqa: E501
if 'state' in params:
query_params.append(('state', params['state'])) # noqa: E501

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501

return self.api_client.call_api(
'/api/admin/mail/oauth2/code{?code,state}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def delete_auto_commit_settings_using_delete(self, **kwargs): # noqa: E501
"""Delete auto commit settings (deleteAutoCommitSettings) # noqa: E501

Expand Down Expand Up @@ -584,6 +685,93 @@ def get_admin_settings_using_get_with_http_info(self, key, **kwargs): # noqa: E
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def get_authorization_url_using_get(self, **kwargs): # noqa: E501
"""Redirect user to mail provider login page. # noqa: E501

After user logged in and provided accessprovider sends authorization code to specified redirect uri.) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_authorization_url_using_get(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_authorization_url_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_authorization_url_using_get_with_http_info(**kwargs) # noqa: E501
return data

def get_authorization_url_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Redirect user to mail provider login page. # noqa: E501

After user logged in and provided accessprovider sends authorization code to specified redirect uri.) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_authorization_url_using_get_with_http_info(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""

all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')

params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_authorization_url_using_get" % key
)
params[key] = val
del params['kwargs']

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/text']) # noqa: E501

# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501

return self.api_client.call_api(
'/api/admin/mail/oauth2/authorize', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def get_auto_commit_settings_using_get(self, **kwargs): # noqa: E501
"""Get auto commit settings (getAutoCommitSettings) # noqa: E501

Expand Down Expand Up @@ -845,6 +1033,93 @@ def get_jwt_settings_using_get_with_http_info(self, **kwargs): # noqa: E501
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def get_mail_processing_url_using_get(self, **kwargs): # noqa: E501
"""Get OAuth2 log in processing URL (getMailProcessingUrl) # noqa: E501

Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider and user consent for requested scope, it makes a redirect to this path so that the platform can do further log in processing and generating access tokens. Available for users with 'SYS_ADMIN' authority. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_mail_processing_url_using_get(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_mail_processing_url_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_mail_processing_url_using_get_with_http_info(**kwargs) # noqa: E501
return data

def get_mail_processing_url_using_get_with_http_info(self, **kwargs): # noqa: E501
"""Get OAuth2 log in processing URL (getMailProcessingUrl) # noqa: E501

Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider and user consent for requested scope, it makes a redirect to this path so that the platform can do further log in processing and generating access tokens. Available for users with 'SYS_ADMIN' authority. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_mail_processing_url_using_get_with_http_info(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: str
If the method is called asynchronously,
returns the request thread.
"""

all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')

params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_mail_processing_url_using_get" % key
)
params[key] = val
del params['kwargs']

collection_formats = {}

path_params = {}

query_params = []

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# Authentication setting
auth_settings = ['X-Authorization'] # noqa: E501

return self.api_client.call_api(
'/api/admin/mail/oauth2/loginProcessingUrl', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def get_repository_settings_info_using_get(self, **kwargs): # noqa: E501
"""getRepositorySettingsInfo # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion tb_rest_client/api/api_ce/alarm_comment_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

ThingsBoard open-source IoT platform REST API documentation. # noqa: E501

OpenAPI spec version: 3.5.0
OpenAPI spec version: 3.6.0
Contact: [email protected]
Generated by: https://github.com./swagger-api/swagger-codegen.git
"""
Expand Down
Loading