|
5 | 5 |
|
6 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501
|
7 | 7 |
|
8 |
| - OpenAPI spec version: 3.5.0 |
| 8 | + OpenAPI spec version: 3.6.0 |
9 | 9 |
|
10 | 10 | Generated by: https://github.com./swagger-api/swagger-codegen.git
|
11 | 11 | """
|
@@ -315,6 +315,107 @@ def check_updates_using_get_with_http_info(self, **kwargs): # noqa: E501
|
315 | 315 | _request_timeout=params.get('_request_timeout'),
|
316 | 316 | collection_formats=collection_formats)
|
317 | 317 |
|
| 318 | + def code_processing_url_using_get(self, code, state, **kwargs): # noqa: E501 |
| 319 | + """codeProcessingUrl # noqa: E501 |
| 320 | +
|
| 321 | + This method makes a synchronous HTTP request by default. To make an |
| 322 | + asynchronous HTTP request, please pass async_req=True |
| 323 | + >>> thread = api.code_processing_url_using_get(code, state, async_req=True) |
| 324 | + >>> result = thread.get() |
| 325 | +
|
| 326 | + :param async_req bool |
| 327 | + :param str code: code (required) |
| 328 | + :param str state: state (required) |
| 329 | + :return: None |
| 330 | + If the method is called asynchronously, |
| 331 | + returns the request thread. |
| 332 | + """ |
| 333 | + kwargs['_return_http_data_only'] = True |
| 334 | + if kwargs.get('async_req'): |
| 335 | + return self.code_processing_url_using_get_with_http_info(code, state, **kwargs) # noqa: E501 |
| 336 | + else: |
| 337 | + (data) = self.code_processing_url_using_get_with_http_info(code, state, **kwargs) # noqa: E501 |
| 338 | + return data |
| 339 | + |
| 340 | + def code_processing_url_using_get_with_http_info(self, code, state, **kwargs): # noqa: E501 |
| 341 | + """codeProcessingUrl # noqa: E501 |
| 342 | +
|
| 343 | + This method makes a synchronous HTTP request by default. To make an |
| 344 | + asynchronous HTTP request, please pass async_req=True |
| 345 | + >>> thread = api.code_processing_url_using_get_with_http_info(code, state, async_req=True) |
| 346 | + >>> result = thread.get() |
| 347 | +
|
| 348 | + :param async_req bool |
| 349 | + :param str code: code (required) |
| 350 | + :param str state: state (required) |
| 351 | + :return: None |
| 352 | + If the method is called asynchronously, |
| 353 | + returns the request thread. |
| 354 | + """ |
| 355 | + |
| 356 | + all_params = ['code', 'state'] # noqa: E501 |
| 357 | + all_params.append('async_req') |
| 358 | + all_params.append('_return_http_data_only') |
| 359 | + all_params.append('_preload_content') |
| 360 | + all_params.append('_request_timeout') |
| 361 | + |
| 362 | + params = locals() |
| 363 | + for key, val in six.iteritems(params['kwargs']): |
| 364 | + if key not in all_params: |
| 365 | + raise TypeError( |
| 366 | + "Got an unexpected keyword argument '%s'" |
| 367 | + " to method code_processing_url_using_get" % key |
| 368 | + ) |
| 369 | + params[key] = val |
| 370 | + del params['kwargs'] |
| 371 | + # verify the required parameter 'code' is set |
| 372 | + if ('code' not in params or |
| 373 | + params['code'] is None): |
| 374 | + raise ValueError("Missing the required parameter `code` when calling `code_processing_url_using_get`") # noqa: E501 |
| 375 | + # verify the required parameter 'state' is set |
| 376 | + if ('state' not in params or |
| 377 | + params['state'] is None): |
| 378 | + raise ValueError("Missing the required parameter `state` when calling `code_processing_url_using_get`") # noqa: E501 |
| 379 | + |
| 380 | + collection_formats = {} |
| 381 | + |
| 382 | + path_params = {} |
| 383 | + |
| 384 | + query_params = [] |
| 385 | + if 'code' in params: |
| 386 | + query_params.append(('code', params['code'])) # noqa: E501 |
| 387 | + if 'state' in params: |
| 388 | + query_params.append(('state', params['state'])) # noqa: E501 |
| 389 | + |
| 390 | + header_params = {} |
| 391 | + |
| 392 | + form_params = [] |
| 393 | + local_var_files = {} |
| 394 | + |
| 395 | + body_params = None |
| 396 | + # HTTP header `Accept` |
| 397 | + header_params['Accept'] = self.api_client.select_header_accept( |
| 398 | + ['application/json']) # noqa: E501 |
| 399 | + |
| 400 | + # Authentication setting |
| 401 | + auth_settings = ['X-Authorization'] # noqa: E501 |
| 402 | + |
| 403 | + return self.api_client.call_api( |
| 404 | + '/api/admin/mail/oauth2/code{?code,state}', 'GET', |
| 405 | + path_params, |
| 406 | + query_params, |
| 407 | + header_params, |
| 408 | + body=body_params, |
| 409 | + post_params=form_params, |
| 410 | + files=local_var_files, |
| 411 | + response_type=None, # noqa: E501 |
| 412 | + auth_settings=auth_settings, |
| 413 | + async_req=params.get('async_req'), |
| 414 | + _return_http_data_only=params.get('_return_http_data_only'), |
| 415 | + _preload_content=params.get('_preload_content', True), |
| 416 | + _request_timeout=params.get('_request_timeout'), |
| 417 | + collection_formats=collection_formats) |
| 418 | + |
318 | 419 | def delete_auto_commit_settings_using_delete(self, **kwargs): # noqa: E501
|
319 | 420 | """Delete auto commit settings (deleteAutoCommitSettings) # noqa: E501
|
320 | 421 |
|
@@ -584,6 +685,93 @@ def get_admin_settings_using_get_with_http_info(self, key, **kwargs): # noqa: E
|
584 | 685 | _request_timeout=params.get('_request_timeout'),
|
585 | 686 | collection_formats=collection_formats)
|
586 | 687 |
|
| 688 | + def get_authorization_url_using_get(self, **kwargs): # noqa: E501 |
| 689 | + """Redirect user to mail provider login page. # noqa: E501 |
| 690 | +
|
| 691 | + After user logged in and provided accessprovider sends authorization code to specified redirect uri.) # noqa: E501 |
| 692 | + This method makes a synchronous HTTP request by default. To make an |
| 693 | + asynchronous HTTP request, please pass async_req=True |
| 694 | + >>> thread = api.get_authorization_url_using_get(async_req=True) |
| 695 | + >>> result = thread.get() |
| 696 | +
|
| 697 | + :param async_req bool |
| 698 | + :return: str |
| 699 | + If the method is called asynchronously, |
| 700 | + returns the request thread. |
| 701 | + """ |
| 702 | + kwargs['_return_http_data_only'] = True |
| 703 | + if kwargs.get('async_req'): |
| 704 | + return self.get_authorization_url_using_get_with_http_info(**kwargs) # noqa: E501 |
| 705 | + else: |
| 706 | + (data) = self.get_authorization_url_using_get_with_http_info(**kwargs) # noqa: E501 |
| 707 | + return data |
| 708 | + |
| 709 | + def get_authorization_url_using_get_with_http_info(self, **kwargs): # noqa: E501 |
| 710 | + """Redirect user to mail provider login page. # noqa: E501 |
| 711 | +
|
| 712 | + After user logged in and provided accessprovider sends authorization code to specified redirect uri.) # noqa: E501 |
| 713 | + This method makes a synchronous HTTP request by default. To make an |
| 714 | + asynchronous HTTP request, please pass async_req=True |
| 715 | + >>> thread = api.get_authorization_url_using_get_with_http_info(async_req=True) |
| 716 | + >>> result = thread.get() |
| 717 | +
|
| 718 | + :param async_req bool |
| 719 | + :return: str |
| 720 | + If the method is called asynchronously, |
| 721 | + returns the request thread. |
| 722 | + """ |
| 723 | + |
| 724 | + all_params = [] # noqa: E501 |
| 725 | + all_params.append('async_req') |
| 726 | + all_params.append('_return_http_data_only') |
| 727 | + all_params.append('_preload_content') |
| 728 | + all_params.append('_request_timeout') |
| 729 | + |
| 730 | + params = locals() |
| 731 | + for key, val in six.iteritems(params['kwargs']): |
| 732 | + if key not in all_params: |
| 733 | + raise TypeError( |
| 734 | + "Got an unexpected keyword argument '%s'" |
| 735 | + " to method get_authorization_url_using_get" % key |
| 736 | + ) |
| 737 | + params[key] = val |
| 738 | + del params['kwargs'] |
| 739 | + |
| 740 | + collection_formats = {} |
| 741 | + |
| 742 | + path_params = {} |
| 743 | + |
| 744 | + query_params = [] |
| 745 | + |
| 746 | + header_params = {} |
| 747 | + |
| 748 | + form_params = [] |
| 749 | + local_var_files = {} |
| 750 | + |
| 751 | + body_params = None |
| 752 | + # HTTP header `Accept` |
| 753 | + header_params['Accept'] = self.api_client.select_header_accept( |
| 754 | + ['application/text']) # noqa: E501 |
| 755 | + |
| 756 | + # Authentication setting |
| 757 | + auth_settings = ['X-Authorization'] # noqa: E501 |
| 758 | + |
| 759 | + return self.api_client.call_api( |
| 760 | + '/api/admin/mail/oauth2/authorize', 'GET', |
| 761 | + path_params, |
| 762 | + query_params, |
| 763 | + header_params, |
| 764 | + body=body_params, |
| 765 | + post_params=form_params, |
| 766 | + files=local_var_files, |
| 767 | + response_type='str', # noqa: E501 |
| 768 | + auth_settings=auth_settings, |
| 769 | + async_req=params.get('async_req'), |
| 770 | + _return_http_data_only=params.get('_return_http_data_only'), |
| 771 | + _preload_content=params.get('_preload_content', True), |
| 772 | + _request_timeout=params.get('_request_timeout'), |
| 773 | + collection_formats=collection_formats) |
| 774 | + |
587 | 775 | def get_auto_commit_settings_using_get(self, **kwargs): # noqa: E501
|
588 | 776 | """Get auto commit settings (getAutoCommitSettings) # noqa: E501
|
589 | 777 |
|
@@ -845,6 +1033,93 @@ def get_jwt_settings_using_get_with_http_info(self, **kwargs): # noqa: E501
|
845 | 1033 | _request_timeout=params.get('_request_timeout'),
|
846 | 1034 | collection_formats=collection_formats)
|
847 | 1035 |
|
| 1036 | + def get_mail_processing_url_using_get(self, **kwargs): # noqa: E501 |
| 1037 | + """Get OAuth2 log in processing URL (getMailProcessingUrl) # noqa: E501 |
| 1038 | +
|
| 1039 | + 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 |
| 1040 | + This method makes a synchronous HTTP request by default. To make an |
| 1041 | + asynchronous HTTP request, please pass async_req=True |
| 1042 | + >>> thread = api.get_mail_processing_url_using_get(async_req=True) |
| 1043 | + >>> result = thread.get() |
| 1044 | +
|
| 1045 | + :param async_req bool |
| 1046 | + :return: str |
| 1047 | + If the method is called asynchronously, |
| 1048 | + returns the request thread. |
| 1049 | + """ |
| 1050 | + kwargs['_return_http_data_only'] = True |
| 1051 | + if kwargs.get('async_req'): |
| 1052 | + return self.get_mail_processing_url_using_get_with_http_info(**kwargs) # noqa: E501 |
| 1053 | + else: |
| 1054 | + (data) = self.get_mail_processing_url_using_get_with_http_info(**kwargs) # noqa: E501 |
| 1055 | + return data |
| 1056 | + |
| 1057 | + def get_mail_processing_url_using_get_with_http_info(self, **kwargs): # noqa: E501 |
| 1058 | + """Get OAuth2 log in processing URL (getMailProcessingUrl) # noqa: E501 |
| 1059 | +
|
| 1060 | + 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 |
| 1061 | + This method makes a synchronous HTTP request by default. To make an |
| 1062 | + asynchronous HTTP request, please pass async_req=True |
| 1063 | + >>> thread = api.get_mail_processing_url_using_get_with_http_info(async_req=True) |
| 1064 | + >>> result = thread.get() |
| 1065 | +
|
| 1066 | + :param async_req bool |
| 1067 | + :return: str |
| 1068 | + If the method is called asynchronously, |
| 1069 | + returns the request thread. |
| 1070 | + """ |
| 1071 | + |
| 1072 | + all_params = [] # noqa: E501 |
| 1073 | + all_params.append('async_req') |
| 1074 | + all_params.append('_return_http_data_only') |
| 1075 | + all_params.append('_preload_content') |
| 1076 | + all_params.append('_request_timeout') |
| 1077 | + |
| 1078 | + params = locals() |
| 1079 | + for key, val in six.iteritems(params['kwargs']): |
| 1080 | + if key not in all_params: |
| 1081 | + raise TypeError( |
| 1082 | + "Got an unexpected keyword argument '%s'" |
| 1083 | + " to method get_mail_processing_url_using_get" % key |
| 1084 | + ) |
| 1085 | + params[key] = val |
| 1086 | + del params['kwargs'] |
| 1087 | + |
| 1088 | + collection_formats = {} |
| 1089 | + |
| 1090 | + path_params = {} |
| 1091 | + |
| 1092 | + query_params = [] |
| 1093 | + |
| 1094 | + header_params = {} |
| 1095 | + |
| 1096 | + form_params = [] |
| 1097 | + local_var_files = {} |
| 1098 | + |
| 1099 | + body_params = None |
| 1100 | + # HTTP header `Accept` |
| 1101 | + header_params['Accept'] = self.api_client.select_header_accept( |
| 1102 | + ['application/json']) # noqa: E501 |
| 1103 | + |
| 1104 | + # Authentication setting |
| 1105 | + auth_settings = ['X-Authorization'] # noqa: E501 |
| 1106 | + |
| 1107 | + return self.api_client.call_api( |
| 1108 | + '/api/admin/mail/oauth2/loginProcessingUrl', 'GET', |
| 1109 | + path_params, |
| 1110 | + query_params, |
| 1111 | + header_params, |
| 1112 | + body=body_params, |
| 1113 | + post_params=form_params, |
| 1114 | + files=local_var_files, |
| 1115 | + response_type='str', # noqa: E501 |
| 1116 | + auth_settings=auth_settings, |
| 1117 | + async_req=params.get('async_req'), |
| 1118 | + _return_http_data_only=params.get('_return_http_data_only'), |
| 1119 | + _preload_content=params.get('_preload_content', True), |
| 1120 | + _request_timeout=params.get('_request_timeout'), |
| 1121 | + collection_formats=collection_formats) |
| 1122 | + |
848 | 1123 | def get_repository_settings_info_using_get(self, **kwargs): # noqa: E501
|
849 | 1124 | """getRepositorySettingsInfo # noqa: E501
|
850 | 1125 |
|
|
0 commit comments