thingsboard-python-rest-client
thingsboard-python-rest-client copied to clipboard
Parameter 'type' not listed in 'all_params'
This issue affects a lot of methods in different controllers. i.e. def get_customer_user_infos(self, customer_id: CustomerId, page_size: int, page: int, type: Optional[str] = None,text_search:Optional[str] = None, sort_property: Optional[str] = None,sort_order: Optional[str] = None,include_customers:Optional[bool] = None) -> PageDataUserInfo:
customer_id = self.get_id(customer_id)
return self.user_controller.get_customer_user_infos_using_get(customer_id=customer_id,page_size=page_size, page=page, type=type, text_search=text_search,sort_property=sort_property,sort_order=sort_order,include_customers=include_customers)
as param 'type' is missing in all_params in method: def get_customer_user_infos_using_get_with_http_info(self, customer_id, page_size, page, **kwargs):
all_params = ['customer_id', 'page_size', 'page', 'include_customers', 'text_search', 'sort_property', 'sort_order']
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
the method throws an exception:
if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_customer_user_infos_using_get" % key )