Skip to content

Commit

Permalink
Merge pull request #145 from samson0v/develop/3.6.2
Browse files Browse the repository at this point in the history
Updated client to 3.6.2
  • Loading branch information
imbeacon authored Jan 10, 2024
2 parents 087dde9 + 83b8395 commit 7b8e672
Show file tree
Hide file tree
Showing 1,022 changed files with 9,053 additions and 3,148 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/configure_vcs_access.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/example_application.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/example_application_2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/load_all_entities_from_vcs_ce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/load_all_entities_from_vcs_pe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/load_all_entities_to_vcs_ce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/load_all_entities_to_vcs_pe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/version_control_complex_example_ce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/version_control_complex_example_pe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/version_control_single_device_example_ce.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion examples/version_control_single_device_example_pe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand All @@ -17,7 +17,7 @@
from os import path

NAME = "tb-rest-client"
VERSION = "3.6"
VERSION = "3.6.2"

this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
Expand Down
2 changes: 1 addition & 1 deletion tb_rest_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion tb_rest_client/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down
3 changes: 2 additions & 1 deletion tb_rest_client/api/api_ce/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.
Expand Down Expand Up @@ -54,3 +54,4 @@
from .notification_template_controller_api import NotificationTemplateControllerApi
from .usage_info_controller_api import UsageInfoControllerApi
from .two_factor_auth_config_controller_api import TwoFactorAuthConfigControllerApi
from .image_controller_api import ImageControllerApi
7 changes: 3 additions & 4 deletions tb_rest_client/api/api_ce/admin_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tb_rest_client/api/api_ce/alarm_comment_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tb_rest_client/api/api_ce/alarm_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions tb_rest_client/api/api_ce/asset_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
103 changes: 99 additions & 4 deletions tb_rest_client/api/api_ce/asset_profile_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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')
Expand All @@ -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 = {}

Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tb_rest_client/api/api_ce/audit_log_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tb_rest_client/api/api_ce/auth_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 7b8e672

Please sign in to comment.