Skip to content

Commit 99ca5f1

Browse files
authored
Added and changed api functions for api_ce and api_pe (#20)
* Added get_customer_device_infos api function for api_ce * Added get_device_info_by_id api function for api_ce * Added unassign_device_from_edge api function for api_ce * Added assign_device_to_edge api function for api_ce * Added get_edge_devices api function for api_ce * Added get_tenant_device_infos api function for api_ce * Added assign_device_to_tenant api function for api_ce * Added get_all_alarms api function for api_ce * Added get_asset_info_by_id api function for api_ce * Added get_customer_asset_infos api function for api_ce * Added get_customer_asset_infos api function for api_ce * Added unassign_asset_from_edge api function for api_ce * Added assing_asset_to_edge api function for api_ce * Added get_edge_assets api function for api_ce * Added get_tenant_asset_infos api function for api_ce * Added get_home_dashboard api function for api_ce * Added get_home_dashboard_info api function for api_ce * Added unassign_dashboard_from_edge api function for api_ce * Added assign_dashboard_to_edge api function for api_ce * Added get_edge_dashboards api function for api_ce * Added get_edge_dashboards api function for api_ce * Added get_tenant_home_dashboard_info api function for api_ce * Added set_tenant_home_dashboard_info api function for api_ce * Changed delete_relations api function for api_ce * Added get_persisted_rpc_by_device, delete_resource, get_persisted_rpc api functions for api_ce * Added check_integration_connection api function for api_pe * Refactored api functions for api_ce and api_pe * Added api functions for api_pe * Added api function for api_ce and api_pe * Added api function for api_pe
1 parent a6cd17e commit 99ca5f1

File tree

65 files changed

+25606
-618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+25606
-618
lines changed

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tb_rest_client/api/api_ce/alarm_controller_api.py

Lines changed: 173 additions & 27 deletions
Large diffs are not rendered by default.

tb_rest_client/api/api_ce/asset_controller_api.py

Lines changed: 730 additions & 32 deletions
Large diffs are not rendered by default.

tb_rest_client/api/api_ce/component_descriptor_controller_api.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def get_component_descriptors_by_type_using_get_with_http_info(self, component_t
163163
returns the request thread.
164164
"""
165165

166-
all_params = ['component_type'] # noqa: E501
166+
all_params = ['component_type', 'rule_chain_type'] # noqa: E501
167167
all_params.append('async_req')
168168
all_params.append('_return_http_data_only')
169169
all_params.append('_preload_content')
@@ -187,6 +187,9 @@ def get_component_descriptors_by_type_using_get_with_http_info(self, component_t
187187

188188
query_params = []
189189

190+
if 'rule_chain_type' in params:
191+
query_params.append(('ruleChainType', params['rule_chain_type'])) # noqa: E501
192+
190193
header_params = {}
191194

192195
form_params = []
@@ -205,7 +208,7 @@ def get_component_descriptors_by_type_using_get_with_http_info(self, component_t
205208
auth_settings = ['X-Authorization'] # noqa: E501
206209

207210
return self.api_client.call_api(
208-
'/api/components/{componentType}', 'GET',
211+
'/api/components/{componentType}{?ruleChainType}', 'GET',
209212
path_params,
210213
query_params,
211214
header_params,
@@ -256,7 +259,7 @@ def get_component_descriptors_by_types_using_get_with_http_info(self, component_
256259
returns the request thread.
257260
"""
258261

259-
all_params = ['component_types'] # noqa: E501
262+
all_params = ['component_types', 'rule_chain_type'] # noqa: E501
260263
all_params.append('async_req')
261264
all_params.append('_return_http_data_only')
262265
all_params.append('_preload_content')
@@ -279,6 +282,8 @@ def get_component_descriptors_by_types_using_get_with_http_info(self, component_
279282
query_params = []
280283
if 'component_types' in params:
281284
query_params.append(('componentTypes', params['component_types'])) # noqa: E501
285+
if 'rule_chain_type' in params:
286+
query_params.append(('ruleChainType', params['rule_chain_type'])) # noqa: E501
282287

283288
header_params = {}
284289

@@ -298,7 +303,7 @@ def get_component_descriptors_by_types_using_get_with_http_info(self, component_
298303
auth_settings = ['X-Authorization'] # noqa: E501
299304

300305
return self.api_client.call_api(
301-
'/api/components{?componentTypes}', 'GET',
306+
'/api/components{?ruleChainType,componentTypes}', 'GET',
302307
path_params,
303308
query_params,
304309
header_params,

tb_rest_client/api/api_ce/dashboard_controller_api.py

Lines changed: 788 additions & 67 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)