-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from samson0v/develop/3.6.2
Updated client to 3.6.2
- Loading branch information
Showing
1,022 changed files
with
9,053 additions
and
3,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -750,8 +750,7 @@ def get_authorization_url_using_get_with_http_info(self, **kwargs): # noqa: E50 | |
|
||
body_params = None | ||
# HTTP header `Accept` | ||
header_params['Accept'] = self.api_client.select_header_accept( | ||
['application/text']) # noqa: E501 | ||
header_params['Accept'] = self.api_client.select_header_accept(['application/text']) # noqa: E501 | ||
|
||
# Authentication setting | ||
auth_settings = ['X-Authorization'] # noqa: E501 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -730,7 +730,7 @@ def get_asset_info_by_id_using_get_with_http_info(self, asset_id, **kwargs): # | |
def get_asset_types_using_get(self, **kwargs): # noqa: E501 | ||
"""Get Asset Types (getAssetTypes) # noqa: E501 | ||
Returns a set of unique asset types based on assets that are either owned by the tenant or assigned to the customer which user is performing the request. # noqa: E501 | ||
Deprecated. See 'getAssetProfileNames' API from Asset Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' 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_asset_types_using_get(async_req=True) | ||
|
@@ -751,7 +751,7 @@ def get_asset_types_using_get(self, **kwargs): # noqa: E501 | |
def get_asset_types_using_get_with_http_info(self, **kwargs): # noqa: E501 | ||
"""Get Asset Types (getAssetTypes) # noqa: E501 | ||
Returns a set of unique asset types based on assets that are either owned by the tenant or assigned to the customer which user is performing the request. # noqa: E501 | ||
Deprecated. See 'getAssetProfileNames' API from Asset Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' 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_asset_types_using_get_with_http_info(async_req=True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -152,6 +152,7 @@ def get_asset_profile_by_id_using_get(self, asset_profile_id, **kwargs): # noqa | |
:param async_req bool | ||
:param str asset_profile_id: A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) | ||
:param bool inline_images: Inline images as a data URL (Base64) | ||
:return: AssetProfile | ||
If the method is called asynchronously, | ||
returns the request thread. | ||
|
@@ -174,12 +175,13 @@ def get_asset_profile_by_id_using_get_with_http_info(self, asset_profile_id, **k | |
:param async_req bool | ||
:param str asset_profile_id: A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) | ||
:param bool inline_images: Inline images as a data URL (Base64) | ||
:return: AssetProfile | ||
If the method is called asynchronously, | ||
returns the request thread. | ||
""" | ||
|
||
all_params = ['asset_profile_id'] # noqa: E501 | ||
all_params = ['asset_profile_id', 'inline_images'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
|
@@ -206,6 +208,8 @@ def get_asset_profile_by_id_using_get_with_http_info(self, asset_profile_id, **k | |
path_params['assetProfileId'] = params['asset_profile_id'] # noqa: E501 | ||
|
||
query_params = [] | ||
if 'inline_images' in params: | ||
query_params.append(('inlineImages', params['inline_images'])) # noqa: E501 | ||
|
||
header_params = {} | ||
|
||
|
@@ -221,7 +225,7 @@ def get_asset_profile_by_id_using_get_with_http_info(self, asset_profile_id, **k | |
auth_settings = ['X-Authorization'] # noqa: E501 | ||
|
||
return self.api_client.call_api( | ||
'/api/assetProfile/{assetProfileId}', 'GET', | ||
'/api/assetProfile/{assetProfileId}{?inlineImages}', 'GET', | ||
path_params, | ||
query_params, | ||
header_params, | ||
|
@@ -446,6 +450,97 @@ def get_asset_profile_infos_using_get_with_http_info(self, page_size, page, **kw | |
_request_timeout=params.get('_request_timeout'), | ||
collection_formats=collection_formats) | ||
|
||
def get_asset_profile_names_using_get(self, **kwargs): # noqa: E501 | ||
"""Get Asset Profile names (getAssetProfileNames) # noqa: E501 | ||
Returns a set of unique asset profile names owned by the tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' 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_asset_profile_names_using_get(async_req=True) | ||
>>> result = thread.get() | ||
:param async_req bool | ||
:param bool active_only: Flag indicating whether to retrieve exclusively the names of asset profiles that are referenced by tenant's assets. | ||
:return: list[EntityInfo] | ||
If the method is called asynchronously, | ||
returns the request thread. | ||
""" | ||
kwargs['_return_http_data_only'] = True | ||
if kwargs.get('async_req'): | ||
return self.get_asset_profile_names_using_get_with_http_info(**kwargs) # noqa: E501 | ||
else: | ||
(data) = self.get_asset_profile_names_using_get_with_http_info(**kwargs) # noqa: E501 | ||
return data | ||
|
||
def get_asset_profile_names_using_get_with_http_info(self, **kwargs): # noqa: E501 | ||
"""Get Asset Profile names (getAssetProfileNames) # noqa: E501 | ||
Returns a set of unique asset profile names owned by the tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' 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_asset_profile_names_using_get_with_http_info(async_req=True) | ||
>>> result = thread.get() | ||
:param async_req bool | ||
:param bool active_only: Flag indicating whether to retrieve exclusively the names of asset profiles that are referenced by tenant's assets. | ||
:return: list[EntityInfo] | ||
If the method is called asynchronously, | ||
returns the request thread. | ||
""" | ||
|
||
all_params = ['active_only'] # 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_asset_profile_names_using_get" % key | ||
) | ||
params[key] = val | ||
del params['kwargs'] | ||
|
||
collection_formats = {} | ||
|
||
path_params = {} | ||
|
||
query_params = [] | ||
if 'active_only' in params: | ||
query_params.append(('activeOnly', params['active_only'])) # 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/assetProfile/names{?activeOnly}', 'GET', | ||
path_params, | ||
query_params, | ||
header_params, | ||
body=body_params, | ||
post_params=form_params, | ||
files=local_var_files, | ||
response_type='list[EntityInfo]', # 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_asset_profiles_using_get(self, page_size, page, **kwargs): # noqa: E501 | ||
"""Get Asset Profiles (getAssetProfiles) # noqa: E501 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 | ||
OpenAPI spec version: 3.6.0 | ||
OpenAPI spec version: 3.6.2 | ||
Contact: [email protected] | ||
Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
""" | ||
|
||
# Copyright 2023. ThingsBoard | ||
# Copyright 2024. ThingsBoard | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
Oops, something went wrong.