Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions tb_rest_client/api/api_ce/__init__.py
Original file line number Diff line number Diff line change
@@ -1,47 +1,34 @@
from .o_auth_2_config_template_controller_api import OAuth2ConfigTemplateControllerApi
from .asset_controller_api import AssetControllerApi
from .asset_controller_api import AssetControllerApi
from .rule_chain_controller_api import RuleChainControllerApi
from .auth_controller_api import AuthControllerApi
from .event_controller_api import EventControllerApi
from .telemetry_controller_api import TelemetryControllerApi
from .alarm_controller_api import AlarmControllerApi
from .edge_controller_api import EdgeControllerApi
from .edge_controller_api import EdgeControllerApi
from .rpc_v_2_controller_api import RpcV2ControllerApi
from .rpc_v_2_controller_api import RpcV2ControllerApi
from .edge_event_controller_api import EdgeEventControllerApi
from .edge_event_controller_api import EdgeEventControllerApi
from .customer_controller_api import CustomerControllerApi
from .customer_controller_api import CustomerControllerApi
from .user_controller_api import UserControllerApi
from .user_controller_api import UserControllerApi
from .queue_controller_api import QueueControllerApi
from .rpc_v_1_controller_api import RpcV1ControllerApi
from .device_controller_api import DeviceControllerApi
from .device_controller_api import DeviceControllerApi
from .entity_relation_controller_api import EntityRelationControllerApi
from .entity_view_controller_api import EntityViewControllerApi
from .entity_view_controller_api import EntityViewControllerApi
from .admin_controller_api import AdminControllerApi
from .admin_controller_api import AdminControllerApi
from .sign_up_controller_api import SignUpControllerApi
from .sign_up_controller_api import SignUpControllerApi
from .tb_resource_controller_api import TbResourceControllerApi
from .o_auth_2_controller_api import OAuth2ControllerApi
from .tenant_profile_controller_api import TenantProfileControllerApi
from .widgets_bundle_controller_api import WidgetsBundleControllerApi
from .device_profile_controller_api import DeviceProfileControllerApi
from .dashboard_controller_api import DashboardControllerApi
from .dashboard_controller_api import DashboardControllerApi
from .entity_query_controller_api import EntityQueryControllerApi
from .widget_type_controller_api import WidgetTypeControllerApi
from .audit_log_controller_api import AuditLogControllerApi
from .lwm_2m_controller_api import Lwm2mControllerApi
from .lwm_2m_controller_api import Lwm2mControllerApi
from .component_descriptor_controller_api import ComponentDescriptorControllerApi
from .tenant_controller_api import TenantControllerApi
from .tenant_controller_api import TenantControllerApi
from .ota_package_controller_api import OtaPackageControllerApi
from .entities_version_control_controller_api import EntitiesVersionControlControllerApi
from .device_api_controller_api import DeviceApiControllerApi
Expand Down
12 changes: 8 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 @@ -1747,14 +1747,15 @@ def process_assets_bulk_import_using_post_with_http_info(self, **kwargs): # noq
def save_asset_using_post(self, **kwargs): # noqa: E501
"""Create Or Update Asset (saveAsset) # noqa: E501

Creates or Updates the Asset. When creating asset, platform generates Asset Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Asset id will be present in the response. Specify existing Asset id to update the asset. Referencing non-existing Asset Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
Creates or Updates the Asset. When creating asset, platform generates Asset Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Asset id will be present in the response. Specify existing Asset id to update the asset. Referencing non-existing Asset Id will cause 'Not Found' error. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.save_asset_using_post(async_req=True)
>>> result = thread.get()

:param async_req bool
:param Asset body:
:param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.
:return: Asset
If the method is called asynchronously,
returns the request thread.
Expand All @@ -1769,20 +1770,21 @@ def save_asset_using_post(self, **kwargs): # noqa: E501
def save_asset_using_post_with_http_info(self, **kwargs): # noqa: E501
"""Create Or Update Asset (saveAsset) # noqa: E501

Creates or Updates the Asset. When creating asset, platform generates Asset Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Asset id will be present in the response. Specify existing Asset id to update the asset. Referencing non-existing Asset Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
Creates or Updates the Asset. When creating asset, platform generates Asset Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Asset id will be present in the response. Specify existing Asset id to update the asset. Referencing non-existing Asset Id will cause 'Not Found' error. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.save_asset_using_post_with_http_info(async_req=True)
>>> result = thread.get()

:param async_req bool
:param Asset body:
:param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.
:return: Asset
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['body'] # noqa: E501
all_params = ['body', 'entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
Expand All @@ -1803,6 +1805,8 @@ def save_asset_using_post_with_http_info(self, **kwargs): # noqa: E501
path_params = {}

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

header_params = {}

Expand All @@ -1824,7 +1828,7 @@ def save_asset_using_post_with_http_info(self, **kwargs): # noqa: E501
auth_settings = ['X-Authorization'] # noqa: E501

return self.api_client.call_api(
'/api/asset', 'POST',
'/api/asset{?entityGroupId}', 'POST',
path_params,
query_params,
header_params,
Expand Down
21 changes: 13 additions & 8 deletions tb_rest_client/api/api_ce/customer_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def get_customer_by_id_using_get_with_http_info(self, customer_id, **kwargs): #
def get_customer_title_by_id_using_get(self, customer_id, **kwargs): # noqa: E501
"""Get Customer Title (getCustomerTitleById) # noqa: E501

Get the title of the customer. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
Get the title of the customer. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # 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_customer_title_by_id_using_get(customer_id, async_req=True)
Expand All @@ -247,7 +247,7 @@ def get_customer_title_by_id_using_get(self, customer_id, **kwargs): # noqa: E5
def get_customer_title_by_id_using_get_with_http_info(self, customer_id, **kwargs): # noqa: E501
"""Get Customer Title (getCustomerTitleById) # noqa: E501

Get the title of the customer. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
Get the title of the customer. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # 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_customer_title_by_id_using_get_with_http_info(customer_id, async_req=True)
Expand Down Expand Up @@ -278,7 +278,8 @@ def get_customer_title_by_id_using_get_with_http_info(self, customer_id, **kwarg
# verify the required parameter 'customer_id' is set
if ('customer_id' not in params or
params['customer_id'] is None):
raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_title_by_id_using_get`") # noqa: E501
raise ValueError(
"Missing the required parameter `customer_id` when calling `get_customer_title_by_id_using_get`") # noqa: E501

collection_formats = {}

Expand Down Expand Up @@ -625,14 +626,15 @@ def get_tenant_customer_using_get_with_http_info(self, customer_title, **kwargs)
def save_customer_using_post(self, **kwargs): # noqa: E501
"""Create or update Customer (saveCustomer) # noqa: E501

Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Customer Id will be present in the response. Specify existing Customer Id to update the Customer. Referencing non-existing Customer Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Customer Id will be present in the response. Specify existing Customer Id to update the Customer. Referencing non-existing Customer Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.save_customer_using_post(async_req=True)
>>> result = thread.get()

:param async_req bool
:param Customer body:
:param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.
:return: Customer
If the method is called asynchronously,
returns the request thread.
Expand All @@ -647,20 +649,21 @@ def save_customer_using_post(self, **kwargs): # noqa: E501
def save_customer_using_post_with_http_info(self, **kwargs): # noqa: E501
"""Create or update Customer (saveCustomer) # noqa: E501

Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Customer Id will be present in the response. Specify existing Customer Id to update the Customer. Referencing non-existing Customer Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Customer Id will be present in the response. Specify existing Customer Id to update the Customer. Referencing non-existing Customer Id will cause 'Not Found' error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.save_customer_using_post_with_http_info(async_req=True)
>>> result = thread.get()

:param async_req bool
:param Customer body:
:param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.
:return: Customer
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['body'] # noqa: E501
all_params = ['body', 'entity_group_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
Expand All @@ -681,6 +684,8 @@ def save_customer_using_post_with_http_info(self, **kwargs): # noqa: E501
path_params = {}

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

header_params = {}

Expand All @@ -699,10 +704,10 @@ def save_customer_using_post_with_http_info(self, **kwargs): # noqa: E501
['application/json']) # noqa: E501

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

return self.api_client.call_api(
'/api/customer', 'POST',
'/api/customer{?entityGroupId}', 'POST',
path_params,
query_params,
header_params,
Expand Down
2 changes: 1 addition & 1 deletion tb_rest_client/api/api_ce/telemetry_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ def save_entity_telemetry_with_ttl_using_post(self, entity_type, entity_id, scop
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
:param str scope: Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility (required)
:param int ttl: A long value representing TTL (Time to Live) parameter. (required)
:param str ttl: A long value representing TTL (Time to Live) parameter. (required)
:param str body:
:return: DeferredResultResponseEntity
If the method is called asynchronously,
Expand Down
14 changes: 0 additions & 14 deletions tb_rest_client/api/api_pe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,54 +1,40 @@
from .self_registration_controller_api import SelfRegistrationControllerApi
from .http_integration_controller_api import HttpIntegrationControllerApi
from .asset_controller_api import AssetControllerApi
from .asset_controller_api import AssetControllerApi
from .device_group_ota_package_controller_api import DeviceGroupOtaPackageControllerApi
from .edge_controller_api import EdgeControllerApi
from .edge_controller_api import EdgeControllerApi
from .ocean_connect_integration_controller_api import OceanConnectIntegrationControllerApi
from .user_permissions_controller_api import UserPermissionsControllerApi
from .owner_controller_api import OwnerControllerApi
from .rpc_v_2_controller_api import RpcV2ControllerApi
from .rpc_v_2_controller_api import RpcV2ControllerApi
from .edge_event_controller_api import EdgeEventControllerApi
from .edge_event_controller_api import EdgeEventControllerApi
from .customer_controller_api import CustomerControllerApi
from .customer_controller_api import CustomerControllerApi
from .user_controller_api import UserControllerApi
from .user_controller_api import UserControllerApi
from .group_permission_controller_api import GroupPermissionControllerApi
from .device_controller_api import DeviceControllerApi
from .device_controller_api import DeviceControllerApi
from .converter_controller_api import ConverterControllerApi
from .entity_view_controller_api import EntityViewControllerApi
from .entity_view_controller_api import EntityViewControllerApi
from .rule_engine_controller_api import RuleEngineControllerApi
from .admin_controller_api import AdminControllerApi
from .admin_controller_api import AdminControllerApi
from .t_mobile_iot_cdp_integration_controller_api import TMobileIotCdpIntegrationControllerApi
from .sign_up_controller_api import SignUpControllerApi
from .sign_up_controller_api import SignUpControllerApi
from .trail_controller_api import TrailControllerApi
from .thing_park_integration_controller_api import ThingParkIntegrationControllerApi
from .sig_fox_integration_controller_api import SigFoxIntegrationControllerApi
from .scheduler_event_controller_api import SchedulerEventControllerApi
from .report_controller_api import ReportControllerApi
from .dashboard_controller_api import DashboardControllerApi
from .dashboard_controller_api import DashboardControllerApi
from .integration_controller_api import IntegrationControllerApi
from .custom_menu_controller_api import CustomMenuControllerApi
from .lwm_2m_controller_api import Lwm2mControllerApi
from .lwm_2m_controller_api import Lwm2mControllerApi
from .custom_translation_controller_api import CustomTranslationControllerApi
from .role_controller_api import RoleControllerApi
from .blob_entity_controller_api import BlobEntityControllerApi
from .loriot_integration_controller_api import LoriotIntegrationControllerApi
from .tenant_controller_api import TenantControllerApi
from .tenant_controller_api import TenantControllerApi
from .chirp_stack_integration_controller_api import ChirpStackIntegrationControllerApi
from .white_labeling_controller_api import WhiteLabelingControllerApi
from .ota_package_controller_api import OtaPackageControllerApi
from .ota_package_controller_api import OtaPackageControllerApi
from .entity_group_controller_api import EntityGroupControllerApi
from .subscription_controller_api import SubscriptionControllerApi
from .solution_controller_api import SolutionControllerApi
Expand Down
Loading