├── .gitignore ├── LICENSE ├── README.md ├── __init__.py ├── examples ├── __init__.py ├── configure_vcs_access.py ├── example_application.py ├── example_application_2.py ├── load_all_entities_from_vcs_ce.py ├── load_all_entities_from_vcs_pe.py ├── load_all_entities_to_vcs_ce.py ├── load_all_entities_to_vcs_pe.py ├── version_control_complex_example_ce.py ├── version_control_complex_example_pe.py ├── version_control_single_device_example_ce.py ├── version_control_single_device_example_pe.py └── watermeters.json ├── pyproject.toml ├── tb_rest_client ├── __init__.py ├── api │ ├── __init__.py │ ├── api_ce │ │ ├── __init__.py │ │ ├── admin_controller_api.py │ │ ├── alarm_comment_controller_api.py │ │ ├── alarm_controller_api.py │ │ ├── asset_controller_api.py │ │ ├── asset_profile_controller_api.py │ │ ├── audit_log_controller_api.py │ │ ├── auth_controller_api.py │ │ ├── calculated_field_controller_api.py │ │ ├── component_descriptor_controller_api.py │ │ ├── customer_controller_api.py │ │ ├── dashboard_controller_api.py │ │ ├── device_api_controller_api.py │ │ ├── device_connectivity_controller_api.py │ │ ├── device_controller_api.py │ │ ├── device_profile_controller_api.py │ │ ├── domain_controller_api.py │ │ ├── edge_controller_api.py │ │ ├── edge_event_controller_api.py │ │ ├── entities_version_control_controller_api.py │ │ ├── entity_query_controller_api.py │ │ ├── entity_relation_controller_api.py │ │ ├── entity_view_controller_api.py │ │ ├── event_controller_api.py │ │ ├── image_controller_api.py │ │ ├── job_controller_api.py │ │ ├── login_endpoint_api.py │ │ ├── lwm_2m_controller_api.py │ │ ├── mail_config_template_controller_api.py │ │ ├── mobile_app_bundle_controller_api.py │ │ ├── mobile_app_controller_api.py │ │ ├── mobile_application_controller_api.py │ │ ├── notification_controller_api.py │ │ ├── notification_rule_controller_api.py │ │ ├── notification_target_controller_api.py │ │ ├── notification_template_controller_api.py │ │ ├── o_auth_2_config_template_controller_api.py │ │ ├── o_auth_2_controller_api.py │ │ ├── ota_package_controller_api.py │ │ ├── qr_code_settings_controller_api.py │ │ ├── queue_controller_api.py │ │ ├── queue_stats_controller_api.py │ │ ├── rpc_v_1_controller_api.py │ │ ├── rpc_v_2_controller_api.py │ │ ├── rule_chain_controller_api.py │ │ ├── rule_engine_controller_api.py │ │ ├── tb_resource_controller_api.py │ │ ├── telemetry_controller_api.py │ │ ├── tenant_controller_api.py │ │ ├── tenant_profile_controller_api.py │ │ ├── trendz_controller_api.py │ │ ├── two_factor_auth_config_controller_api.py │ │ ├── two_factor_auth_controller_api.py │ │ ├── ui_settings_controller_api.py │ │ ├── usage_info_controller_api.py │ │ ├── user_controller_api.py │ │ ├── widget_type_controller_api.py │ │ └── widgets_bundle_controller_api.py │ └── api_pe │ │ ├── __init__.py │ │ ├── admin_controller_api.py │ │ ├── alarm_comment_controller_api.py │ │ ├── alarm_controller_api.py │ │ ├── asset_controller_api.py │ │ ├── asset_profile_controller_api.py │ │ ├── audit_log_controller_api.py │ │ ├── auth_controller_api.py │ │ ├── billing_endpoint_controller_api.py │ │ ├── blob_entity_controller_api.py │ │ ├── calculated_field_controller_api.py │ │ ├── chirp_stack_integration_controller_api.py │ │ ├── cloud_endpoint_controller_api.py │ │ ├── component_descriptor_controller_api.py │ │ ├── converter_controller_api.py │ │ ├── converter_library_controller_api.py │ │ ├── custom_menu_controller_api.py │ │ ├── custom_translation_controller_api.py │ │ ├── customer_controller_api.py │ │ ├── dashboard_controller_api.py │ │ ├── device_api_controller_api.py │ │ ├── device_connectivity_controller_api.py │ │ ├── device_controller_api.py │ │ ├── device_group_ota_package_controller_api.py │ │ ├── device_profile_controller_api.py │ │ ├── domain_controller_api.py │ │ ├── edge_controller_api.py │ │ ├── edge_event_controller_api.py │ │ ├── entities_version_control_controller_api.py │ │ ├── entity_group_controller_api.py │ │ ├── entity_query_controller_api.py │ │ ├── entity_relation_controller_api.py │ │ ├── entity_view_controller_api.py │ │ ├── event_controller_api.py │ │ ├── group_permission_controller_api.py │ │ ├── http_integration_controller_api.py │ │ ├── image_controller_api.py │ │ ├── integration_controller_api.py │ │ ├── job_controller_api.py │ │ ├── login_endpoint_api.py │ │ ├── lwm_2m_controller_api.py │ │ ├── mail_config_template_controller_api.py │ │ ├── mobile_app_bundle_controller_api.py │ │ ├── mobile_app_controller_api.py │ │ ├── mobile_application_controller_api.py │ │ ├── notification_controller_api.py │ │ ├── notification_rule_controller_api.py │ │ ├── notification_target_controller_api.py │ │ ├── notification_template_controller_api.py │ │ ├── o_auth_2_config_template_controller_api.py │ │ ├── o_auth_2_controller_api.py │ │ ├── ota_package_controller_api.py │ │ ├── owner_controller_api.py │ │ ├── qr_code_settings_controller_api.py │ │ ├── queue_controller_api.py │ │ ├── queue_stats_controller_api.py │ │ ├── report_controller_api.py │ │ ├── role_controller_api.py │ │ ├── rpc_controller_api.py │ │ ├── rpc_v_1_controller_api.py │ │ ├── rpc_v_2_controller_api.py │ │ ├── rule_chain_controller_api.py │ │ ├── rule_engine_controller_api.py │ │ ├── scheduler_event_controller_api.py │ │ ├── secret_controller_api.py │ │ ├── self_registration_controller_api.py │ │ ├── sig_fox_integration_controller_api.py │ │ ├── sign_up_controller_api.py │ │ ├── solution_controller_api.py │ │ ├── subscription_controller_api.py │ │ ├── t_mobile_iot_cdp_integration_controller_api.py │ │ ├── tb_resource_controller_api.py │ │ ├── telemetry_controller_api.py │ │ ├── tenant_controller_api.py │ │ ├── tenant_profile_controller_api.py │ │ ├── thing_park_integration_controller_api.py │ │ ├── translation_controller_api.py │ │ ├── trendz_controller_api.py │ │ ├── two_factor_auth_config_controller_api.py │ │ ├── two_factor_auth_controller_api.py │ │ ├── ui_settings_controller_api.py │ │ ├── usage_info_controller_api.py │ │ ├── user_controller_api.py │ │ ├── user_permissions_controller_api.py │ │ ├── white_labeling_controller_api.py │ │ ├── widget_type_controller_api.py │ │ └── widgets_bundle_controller_api.py ├── api_client.py ├── configuration.py ├── models │ ├── __init__.py │ ├── models_ce │ │ ├── __init__.py │ │ ├── account_configverification_code_body.py │ │ ├── account_two_fa_settings.py │ │ ├── activate_user_request.py │ │ ├── admin_settings.py │ │ ├── admin_settings_id.py │ │ ├── affected_tenant_administrators_filter.py │ │ ├── affected_user_filter.py │ │ ├── alarm.py │ │ ├── alarm_assignee.py │ │ ├── alarm_assignment_notification_rule_trigger_config.py │ │ ├── alarm_comment.py │ │ ├── alarm_comment_id.py │ │ ├── alarm_comment_info.py │ │ ├── alarm_comment_notification_rule_trigger_config.py │ │ ├── alarm_condition.py │ │ ├── alarm_condition_filter.py │ │ ├── alarm_condition_filter_key.py │ │ ├── alarm_condition_spec.py │ │ ├── alarm_count_query.py │ │ ├── alarm_data.py │ │ ├── alarm_data_page_link.py │ │ ├── alarm_data_query.py │ │ ├── alarm_id.py │ │ ├── alarm_info.py │ │ ├── alarm_notification_rule_trigger_config.py │ │ ├── alarm_rule.py │ │ ├── alarm_schedule.py │ │ ├── all_users_filter.py │ │ ├── allow_create_new_devices_device_profile_provision_configuration.py │ │ ├── android_config.py │ │ ├── any_time_schedule.py │ │ ├── api_image_body.py │ │ ├── api_usage_limit_notification_rule_trigger_config.py │ │ ├── api_usage_state_filter.py │ │ ├── argument.py │ │ ├── asset.py │ │ ├── asset_id.py │ │ ├── asset_info.py │ │ ├── asset_profile.py │ │ ├── asset_profile_id.py │ │ ├── asset_profile_info.py │ │ ├── asset_search_query.py │ │ ├── asset_search_query_filter.py │ │ ├── asset_type_filter.py │ │ ├── atomic_integer.py │ │ ├── attribute_export_data.py │ │ ├── attributes_entity_view.py │ │ ├── audit_log.py │ │ ├── audit_log_id.py │ │ ├── auto_commit_settings.py │ │ ├── auto_version_create_config.py │ │ ├── aws_sns_sms_provider_configuration.py │ │ ├── backup_code_two_fa_account_config.py │ │ ├── backup_code_two_fa_provider_config.py │ │ ├── boolean_filter_predicate.py │ │ ├── branch_info.py │ │ ├── bulk_import_request.py │ │ ├── bulk_import_result_asset.py │ │ ├── bulk_import_result_asset_created.py │ │ ├── bulk_import_result_device.py │ │ ├── bulk_import_result_edge.py │ │ ├── button.py │ │ ├── byte_array_resource.py │ │ ├── byte_buffer.py │ │ ├── calculated_field.py │ │ ├── calculated_field_configuration.py │ │ ├── calculated_field_debug_event_filter.py │ │ ├── calculated_field_id.py │ │ ├── change_password_request.py │ │ ├── check_pre_provisioned_devices_device_profile_provision_configuration.py │ │ ├── claim_request.py │ │ ├── clear_rule.py │ │ ├── client_attributes_querying_snmp_communication_config.py │ │ ├── coap_device_profile_transport_configuration.py │ │ ├── coap_device_transport_configuration.py │ │ ├── coap_device_type_configuration.py │ │ ├── column_mapping.py │ │ ├── comparison_ts_value.py │ │ ├── complex_filter_predicate.py │ │ ├── complex_version_create_request.py │ │ ├── component_descriptor.py │ │ ├── component_descriptor_id.py │ │ ├── config_submit_body.py │ │ ├── custom_mobile_page.py │ │ ├── custom_time_schedule.py │ │ ├── custom_time_schedule_item.py │ │ ├── customer.py │ │ ├── customer_id.py │ │ ├── customer_users_filter.py │ │ ├── dashboard.py │ │ ├── dashboard_id.py │ │ ├── dashboard_info.py │ │ ├── dashboard_page.py │ │ ├── debug_converter_event_filter.py │ │ ├── debug_integration_event_filter.py │ │ ├── debug_rule_chain_event_filter.py │ │ ├── debug_settings.py │ │ ├── default_coap_device_type_configuration.py │ │ ├── default_device_configuration.py │ │ ├── default_device_profile_configuration.py │ │ ├── default_device_profile_transport_configuration.py │ │ ├── default_device_transport_configuration.py │ │ ├── default_mobile_page.py │ │ ├── default_rule_chain_create_request.py │ │ ├── default_tenant_profile_configuration.py │ │ ├── deferred_result_entity_data_diff.py │ │ ├── deferred_result_entity_data_info.py │ │ ├── deferred_result_list_branch_info.py │ │ ├── deferred_result_list_versioned_entity_info.py │ │ ├── deferred_result_page_data_entity_version.py │ │ ├── deferred_result_repository_settings.py │ │ ├── deferred_result_response_entity.py │ │ ├── deferred_result_void.py │ │ ├── deferred_resultuuid.py │ │ ├── delivery_method_notification_template.py │ │ ├── device.py │ │ ├── device_activity_notification_rule_trigger_config.py │ │ ├── device_configuration.py │ │ ├── device_credentials.py │ │ ├── device_credentials_id.py │ │ ├── device_data.py │ │ ├── device_export_data.py │ │ ├── device_id.py │ │ ├── device_info.py │ │ ├── device_profile.py │ │ ├── device_profile_alarm.py │ │ ├── device_profile_configuration.py │ │ ├── device_profile_data.py │ │ ├── device_profile_id.py │ │ ├── device_profile_info.py │ │ ├── device_profile_provision_configuration.py │ │ ├── device_profile_transport_configuration.py │ │ ├── device_search_query.py │ │ ├── device_search_query_filter.py │ │ ├── device_transport_configuration.py │ │ ├── device_type_filter.py │ │ ├── disabled_device_profile_provision_configuration.py │ │ ├── domain.py │ │ ├── domain_id.py │ │ ├── domain_info.py │ │ ├── duration_alarm_condition_spec.py │ │ ├── dynamic_value_boolean.py │ │ ├── dynamic_value_double.py │ │ ├── dynamic_value_integer.py │ │ ├── dynamic_value_long.py │ │ ├── dynamic_value_string.py │ │ ├── edge.py │ │ ├── edge_communication_failure_notification_rule_trigger_config.py │ │ ├── edge_connection_notification_rule_trigger_config.py │ │ ├── edge_event.py │ │ ├── edge_event_id.py │ │ ├── edge_id.py │ │ ├── edge_info.py │ │ ├── edge_install_instructions.py │ │ ├── edge_instructions.py │ │ ├── edge_search_query.py │ │ ├── edge_search_query_filter.py │ │ ├── edge_type_filter.py │ │ ├── edqs_state.py │ │ ├── edqs_sync_request.py │ │ ├── efento_coap_device_type_configuration.py │ │ ├── email_delivery_method_notification_template.py │ │ ├── email_two_fa_account_config.py │ │ ├── email_two_fa_provider_config.py │ │ ├── entities_limit_notification_rule_trigger_config.py │ │ ├── entity_action_notification_rule_trigger_config.py │ │ ├── entity_count_query.py │ │ ├── entity_data.py │ │ ├── entity_data_diff.py │ │ ├── entity_data_info.py │ │ ├── entity_data_page_link.py │ │ ├── entity_data_query.py │ │ ├── entity_data_sort_order.py │ │ ├── entity_export_data_object.py │ │ ├── entity_filter.py │ │ ├── entity_id.py │ │ ├── entity_id_clearstart_timeend_time_body.py │ │ ├── entity_info.py │ │ ├── entity_key.py │ │ ├── entity_list_filter.py │ │ ├── entity_load_error.py │ │ ├── entity_name_filter.py │ │ ├── entity_relation.py │ │ ├── entity_relation_info.py │ │ ├── entity_relations_query.py │ │ ├── entity_subtype.py │ │ ├── entity_type_entity_idtenant_idpage_sizepagetext_searchsort_propertysort_orderstart_timeend_time_body.py │ │ ├── entity_type_filter.py │ │ ├── entity_type_load_result.py │ │ ├── entity_type_version_create_config.py │ │ ├── entity_type_version_load_config.py │ │ ├── entity_type_version_load_request.py │ │ ├── entity_version.py │ │ ├── entity_view.py │ │ ├── entity_view_id.py │ │ ├── entity_view_info.py │ │ ├── entity_view_search_query.py │ │ ├── entity_view_search_query_filter.py │ │ ├── entity_view_type_filter.py │ │ ├── error_event_filter.py │ │ ├── escalated_notification_rule_recipients_config.py │ │ ├── event.py │ │ ├── event_filter.py │ │ ├── event_id.py │ │ ├── event_info.py │ │ ├── features_info.py │ │ ├── file.py │ │ ├── filter_predicate_value_boolean.py │ │ ├── filter_predicate_value_double.py │ │ ├── filter_predicate_value_integer.py │ │ ├── filter_predicate_value_long.py │ │ ├── filter_predicate_value_string.py │ │ ├── has_id_object.py │ │ ├── home_dashboard.py │ │ ├── home_dashboard_info.py │ │ ├── image_export_data.py │ │ ├── inline_response200.py │ │ ├── input_stream.py │ │ ├── ios_config.py │ │ ├── job.py │ │ ├── job_configuration.py │ │ ├── job_id.py │ │ ├── job_result.py │ │ ├── json_node.py │ │ ├── json_transport_payload_configuration.py │ │ ├── jwt_pair.py │ │ ├── jwt_settings.py │ │ ├── key_filter.py │ │ ├── key_filter_predicate.py │ │ ├── last_visited_dashboard_info.py │ │ ├── life_cycle_event_filter.py │ │ ├── login_mobile_info.py │ │ ├── login_request.py │ │ ├── login_response.py │ │ ├── lw_m2_m_bootstrap_server_credential.py │ │ ├── lw_m2_m_server_security_config_default.py │ │ ├── lw_m2m_instance.py │ │ ├── lw_m2m_object.py │ │ ├── lw_m2m_resource_observe.py │ │ ├── lw_m2m_version.py │ │ ├── lwm2m_device_profile_transport_configuration.py │ │ ├── lwm2m_device_transport_configuration.py │ │ ├── mapping.py │ │ ├── microsoft_teams_delivery_method_notification_template.py │ │ ├── microsoft_teams_notification_target_config.py │ │ ├── mobile_app.py │ │ ├── mobile_app_bundle.py │ │ ├── mobile_app_bundle_id.py │ │ ├── mobile_app_bundle_info.py │ │ ├── mobile_app_delivery_method_notification_template.py │ │ ├── mobile_app_id.py │ │ ├── mobile_app_info.py │ │ ├── mobile_app_notification_delivery_method_config.py │ │ ├── mobile_app_settings.py │ │ ├── mobile_app_settings_id.py │ │ ├── mobile_app_version_info.py │ │ ├── mobile_layout_config.py │ │ ├── mobile_page.py │ │ ├── mobile_session_info.py │ │ ├── mqtt_device_profile_transport_configuration.py │ │ ├── mqtt_device_transport_configuration.py │ │ ├── new_platform_version_notification_rule_trigger_config.py │ │ ├── no_sec_lw_m2_m_bootstrap_server_credential.py │ │ ├── node_connection_info.py │ │ ├── notification.py │ │ ├── notification_delivery_method_config.py │ │ ├── notification_id.py │ │ ├── notification_info.py │ │ ├── notification_pref.py │ │ ├── notification_request.py │ │ ├── notification_request_config.py │ │ ├── notification_request_id.py │ │ ├── notification_request_info.py │ │ ├── notification_request_preview.py │ │ ├── notification_request_stats.py │ │ ├── notification_rule.py │ │ ├── notification_rule_config.py │ │ ├── notification_rule_id.py │ │ ├── notification_rule_info.py │ │ ├── notification_rule_recipients_config.py │ │ ├── notification_rule_trigger_config.py │ │ ├── notification_settings.py │ │ ├── notification_target.py │ │ ├── notification_target_config.py │ │ ├── notification_target_id.py │ │ ├── notification_template.py │ │ ├── notification_template_config.py │ │ ├── notification_template_id.py │ │ ├── numeric_filter_predicate.py │ │ ├── o_auth2_basic_mapper_config.py │ │ ├── o_auth2_client.py │ │ ├── o_auth2_client_id.py │ │ ├── o_auth2_client_info.py │ │ ├── o_auth2_client_login_info.py │ │ ├── o_auth2_client_registration_template.py │ │ ├── o_auth2_client_registration_template_id.py │ │ ├── o_auth2_custom_mapper_config.py │ │ ├── o_auth2_domain_info.py │ │ ├── o_auth2_info.py │ │ ├── o_auth2_mapper_config.py │ │ ├── o_auth2_mobile_info.py │ │ ├── o_auth2_params_info.py │ │ ├── o_auth2_registration_info.py │ │ ├── object_attributes.py │ │ ├── object_node.py │ │ ├── one_of_alarm_condition_filter_predicate.py │ │ ├── one_of_alarm_condition_spec.py │ │ ├── one_of_alarm_count_query_entity_filter.py │ │ ├── one_of_alarm_data_query_entity_filter.py │ │ ├── one_of_alarm_rule_schedule.py │ │ ├── one_of_device_data_configuration.py │ │ ├── one_of_device_data_transport_configuration.py │ │ ├── one_of_device_profile_data_configuration.py │ │ ├── one_of_device_profile_data_provision_configuration.py │ │ ├── one_of_device_profile_data_transport_configuration.py │ │ ├── one_of_entity_count_query_entity_filter.py │ │ ├── one_of_entity_data_diff_current_version.py │ │ ├── one_of_entity_data_diff_other_version.py │ │ ├── one_of_entity_data_query_entity_filter.py │ │ ├── one_of_key_filter_predicate.py │ │ ├── one_of_notification_rule_info_recipients_config.py │ │ ├── one_of_notification_rule_info_trigger_config.py │ │ ├── one_of_notification_rule_recipients_config.py │ │ ├── one_of_notification_rule_trigger_config.py │ │ ├── one_of_notification_target_configuration.py │ │ ├── one_of_platform_two_fa_settings_providers_items.py │ │ ├── one_of_tenant_profile_data_configuration.py │ │ ├── one_of_test_sms_request_provider_configuration.py │ │ ├── originator_entity_owner_users_filter.py │ │ ├── ota_package.py │ │ ├── ota_package_data.py │ │ ├── ota_package_id.py │ │ ├── ota_package_info.py │ │ ├── ota_package_ota_package_idchecksumchecksum_algorithm_body.py │ │ ├── other_configuration.py │ │ ├── page_data_alarm_comment_info.py │ │ ├── page_data_alarm_data.py │ │ ├── page_data_alarm_info.py │ │ ├── page_data_asset.py │ │ ├── page_data_asset_info.py │ │ ├── page_data_asset_profile.py │ │ ├── page_data_asset_profile_info.py │ │ ├── page_data_audit_log.py │ │ ├── page_data_calculated_field.py │ │ ├── page_data_customer.py │ │ ├── page_data_dashboard_info.py │ │ ├── page_data_device.py │ │ ├── page_data_device_info.py │ │ ├── page_data_device_profile.py │ │ ├── page_data_device_profile_info.py │ │ ├── page_data_domain_info.py │ │ ├── page_data_edge.py │ │ ├── page_data_edge_event.py │ │ ├── page_data_edge_info.py │ │ ├── page_data_entity_data.py │ │ ├── page_data_entity_info.py │ │ ├── page_data_entity_subtype.py │ │ ├── page_data_entity_version.py │ │ ├── page_data_entity_view.py │ │ ├── page_data_entity_view_info.py │ │ ├── page_data_event.py │ │ ├── page_data_event_info.py │ │ ├── page_data_mobile_app.py │ │ ├── page_data_mobile_app_bundle_info.py │ │ ├── page_data_mobile_app_info.py │ │ ├── page_data_notification.py │ │ ├── page_data_notification_request_info.py │ │ ├── page_data_notification_rule_info.py │ │ ├── page_data_notification_target.py │ │ ├── page_data_notification_template.py │ │ ├── page_data_o_auth2_client_info.py │ │ ├── page_data_ota_package_info.py │ │ ├── page_data_queue.py │ │ ├── page_data_queue_stats.py │ │ ├── page_data_rpc.py │ │ ├── page_data_rule_chain.py │ │ ├── page_data_tb_resource_info.py │ │ ├── page_data_tenant.py │ │ ├── page_data_tenant_info.py │ │ ├── page_data_tenant_profile.py │ │ ├── page_data_user.py │ │ ├── page_data_user_email_info.py │ │ ├── page_data_widget_type_info.py │ │ ├── page_data_widgets_bundle.py │ │ ├── platform_two_fa_settings.py │ │ ├── platform_users_notification_target_config.py │ │ ├── power_saving_configuration.py │ │ ├── processing_strategy.py │ │ ├── proto_transport_payload_configuration.py │ │ ├── psklw_m2_m_bootstrap_server_credential.py │ │ ├── qr_code_config.py │ │ ├── qr_code_settings.py │ │ ├── qr_code_settings_id.py │ │ ├── queue.py │ │ ├── queue_id.py │ │ ├── queue_stats.py │ │ ├── queue_stats_id.py │ │ ├── rate_limits_notification_rule_trigger_config.py │ │ ├── referenced_entity_key.py │ │ ├── relation_entity_type_filter.py │ │ ├── relations_query_filter.py │ │ ├── relations_search_parameters.py │ │ ├── repeating_alarm_condition_spec.py │ │ ├── repository_settings.py │ │ ├── repository_settings_info.py │ │ ├── reset_password_email_request.py │ │ ├── reset_password_request.py │ │ ├── resource.py │ │ ├── resource_export_data.py │ │ ├── response_entity.py │ │ ├── rpc.py │ │ ├── rpc_id.py │ │ ├── rpklw_m2_m_bootstrap_server_credential.py │ │ ├── rule_chain.py │ │ ├── rule_chain_connection_info.py │ │ ├── rule_chain_data.py │ │ ├── rule_chain_debug_event_filter.py │ │ ├── rule_chain_export_data.py │ │ ├── rule_chain_id.py │ │ ├── rule_chain_import_result.py │ │ ├── rule_chain_meta_data.py │ │ ├── rule_chain_output_labels_usage.py │ │ ├── rule_engine_component_lifecycle_event_notification_rule_trigger_config.py │ │ ├── rule_node.py │ │ ├── rule_node_debug_event_filter.py │ │ ├── rule_node_id.py │ │ ├── save_device_with_credentials_request.py │ │ ├── save_ota_package_info_request.py │ │ ├── security_settings.py │ │ ├── server_security_config.py │ │ ├── shared_attributes_setting_snmp_communication_config.py │ │ ├── short_customer_info.py │ │ ├── sign_up_request.py │ │ ├── simple_alarm_condition_spec.py │ │ ├── single_entity_filter.py │ │ ├── single_entity_version_create_request.py │ │ ├── single_entity_version_load_request.py │ │ ├── slack_conversation.py │ │ ├── slack_delivery_method_notification_template.py │ │ ├── slack_notification_delivery_method_config.py │ │ ├── slack_notification_target_config.py │ │ ├── smpp_sms_provider_configuration.py │ │ ├── sms_delivery_method_notification_template.py │ │ ├── sms_provider_configuration.py │ │ ├── sms_two_fa_account_config.py │ │ ├── sms_two_fa_provider_config.py │ │ ├── snmp_communication_config.py │ │ ├── snmp_device_profile_transport_configuration.py │ │ ├── snmp_device_transport_configuration.py │ │ ├── snmp_mapping.py │ │ ├── specific_time_schedule.py │ │ ├── starred_dashboard_info.py │ │ ├── statistics_event_filter.py │ │ ├── store_info.py │ │ ├── string_filter_predicate.py │ │ ├── submit_strategy.py │ │ ├── system_administrators_filter.py │ │ ├── system_info.py │ │ ├── system_info_data.py │ │ ├── task_processing_failure_notification_rule_trigger_config.py │ │ ├── tb_image_delete_result.py │ │ ├── tb_resource.py │ │ ├── tb_resource_id.py │ │ ├── tb_resource_info.py │ │ ├── telemetry_entity_view.py │ │ ├── telemetry_mapping_configuration.py │ │ ├── telemetry_querying_snmp_communication_config.py │ │ ├── tenant.py │ │ ├── tenant_administrators_filter.py │ │ ├── tenant_id.py │ │ ├── tenant_info.py │ │ ├── tenant_profile.py │ │ ├── tenant_profile_configuration.py │ │ ├── tenant_profile_data.py │ │ ├── tenant_profile_id.py │ │ ├── tenant_profile_queue_configuration.py │ │ ├── test_sms_request.py │ │ ├── thingsboard_credentials_expired_response.py │ │ ├── thingsboard_error_response.py │ │ ├── to_core_edqs_request.py │ │ ├── to_device_rpc_request_snmp_communication_config.py │ │ ├── to_server_rpc_request_snmp_communication_config.py │ │ ├── totp_two_fa_account_config.py │ │ ├── totp_two_fa_provider_config.py │ │ ├── transport_payload_type_configuration.py │ │ ├── trendz_settings.py │ │ ├── ts_value.py │ │ ├── twilio_sms_provider_configuration.py │ │ ├── two_fa_account_config.py │ │ ├── two_fa_account_config_update_request.py │ │ ├── two_fa_provider_config.py │ │ ├── two_fa_provider_info.py │ │ ├── type_key_body.py │ │ ├── update_message.py │ │ ├── usage_info.py │ │ ├── user.py │ │ ├── user_activation_link.py │ │ ├── user_dashboards_info.py │ │ ├── user_email_info.py │ │ ├── user_id.py │ │ ├── user_list_filter.py │ │ ├── user_mobile_info.py │ │ ├── user_notification_settings.py │ │ ├── user_password_policy.py │ │ ├── users_filter.py │ │ ├── vc_entity_body.py │ │ ├── vc_version_body.py │ │ ├── version.py │ │ ├── version_create_config.py │ │ ├── version_create_request.py │ │ ├── version_creation_result.py │ │ ├── version_load_config.py │ │ ├── version_load_request.py │ │ ├── version_load_result.py │ │ ├── versioned_entity_info.py │ │ ├── web_delivery_method_notification_template.py │ │ ├── web_view_page.py │ │ ├── widget_type.py │ │ ├── widget_type_details.py │ │ ├── widget_type_export_data.py │ │ ├── widget_type_id.py │ │ ├── widget_type_info.py │ │ ├── widgets_bundle.py │ │ ├── widgets_bundle_export_data.py │ │ ├── widgets_bundle_id.py │ │ ├── x509_certificate_chain_provision_configuration.py │ │ └── x509_lw_m2_m_bootstrap_server_credential.py │ └── models_pe │ │ ├── __init__.py │ │ ├── account_two_fa_settings.py │ │ ├── activate_user_request.py │ │ ├── admin_settings.py │ │ ├── admin_settings_id.py │ │ ├── affected_tenant_administrators_filter.py │ │ ├── affected_user_filter.py │ │ ├── alarm.py │ │ ├── alarm_assignee.py │ │ ├── alarm_assignment_notification_rule_trigger_config.py │ │ ├── alarm_comment.py │ │ ├── alarm_comment_id.py │ │ ├── alarm_comment_info.py │ │ ├── alarm_comment_notification_rule_trigger_config.py │ │ ├── alarm_condition.py │ │ ├── alarm_condition_filter.py │ │ ├── alarm_condition_filter_key.py │ │ ├── alarm_condition_spec.py │ │ ├── alarm_count_query.py │ │ ├── alarm_data.py │ │ ├── alarm_data_page_link.py │ │ ├── alarm_data_query.py │ │ ├── alarm_id.py │ │ ├── alarm_info.py │ │ ├── alarm_notification_rule_trigger_config.py │ │ ├── alarm_rule.py │ │ ├── alarm_schedule.py │ │ ├── all_users_filter.py │ │ ├── allow_create_new_devices_device_profile_provision_configuration.py │ │ ├── allowed_permissions_info.py │ │ ├── any_time_schedule.py │ │ ├── api_usage_limit_notification_rule_trigger_config.py │ │ ├── api_usage_state_filter.py │ │ ├── array_node.py │ │ ├── asset.py │ │ ├── asset_id.py │ │ ├── asset_info.py │ │ ├── asset_profile_id.py │ │ ├── asset_search_query.py │ │ ├── asset_search_query_filter.py │ │ ├── asset_type_filter.py │ │ ├── atomic_integer.py │ │ ├── attribute_export_data.py │ │ ├── attributes_entity_view.py │ │ ├── audit_log.py │ │ ├── audit_log_id.py │ │ ├── auto_version_create_config.py │ │ ├── aws_sns_sms_provider_configuration.py │ │ ├── backup_code_two_fa_account_config.py │ │ ├── backup_code_two_fa_provider_config.py │ │ ├── blob_entity_id.py │ │ ├── blob_entity_info.py │ │ ├── blob_entity_with_customer_info.py │ │ ├── boolean_filter_predicate.py │ │ ├── branch_info.py │ │ ├── bulk_import_request.py │ │ ├── bulk_import_result_asset.py │ │ ├── bulk_import_result_device.py │ │ ├── bulk_import_result_edge.py │ │ ├── byte_buffer.py │ │ ├── calculated_field_configuration.py │ │ ├── calculated_field_debug_event_filter.py │ │ ├── calculated_field_id.py │ │ ├── captcha_params.py │ │ ├── cf_reprocessing_validation_result.py │ │ ├── change_password_request.py │ │ ├── check_pre_provisioned_devices_device_profile_provision_configuration.py │ │ ├── claim_request.py │ │ ├── clear_rule.py │ │ ├── client_attributes_querying_snmp_communication_config.py │ │ ├── coap_device_profile_transport_configuration.py │ │ ├── coap_device_transport_configuration.py │ │ ├── coap_device_type_configuration.py │ │ ├── column_mapping.py │ │ ├── comparison_ts_value.py │ │ ├── complex_filter_predicate.py │ │ ├── complex_version_create_request.py │ │ ├── component_descriptor.py │ │ ├── component_descriptor_id.py │ │ ├── contact_based_object.py │ │ ├── converter.py │ │ ├── converter_id.py │ │ ├── converters_info.py │ │ ├── custom_menu.py │ │ ├── custom_menu_config.py │ │ ├── custom_menu_delete_result.py │ │ ├── custom_menu_id.py │ │ ├── custom_menu_info.py │ │ ├── custom_menu_item.py │ │ ├── custom_time_schedule.py │ │ ├── custom_time_schedule_item.py │ │ ├── custom_translation.py │ │ ├── customer_id.py │ │ ├── customer_info.py │ │ ├── customer_users_filter.py │ │ ├── dashboard_id.py │ │ ├── dashboard_info.py │ │ ├── debug_converter_event_filter.py │ │ ├── debug_integration_event_filter.py │ │ ├── default_coap_device_type_configuration.py │ │ ├── default_dashboard_params.py │ │ ├── default_device_configuration.py │ │ ├── default_device_profile_configuration.py │ │ ├── default_device_profile_transport_configuration.py │ │ ├── default_device_transport_configuration.py │ │ ├── default_menu_item.py │ │ ├── default_rule_chain_create_request.py │ │ ├── default_tenant_profile_configuration.py │ │ ├── deferred_result_entity_data_diff.py │ │ ├── deferred_result_entity_data_info.py │ │ ├── deferred_result_list_branch_info.py │ │ ├── deferred_result_list_versioned_entity_info.py │ │ ├── deferred_result_page_data_entity_version.py │ │ ├── deferred_result_repository_settings.py │ │ ├── deferred_result_void.py │ │ ├── deferred_resultuuid.py │ │ ├── delivery_method_notification_template.py │ │ ├── device.py │ │ ├── device_activity_notification_rule_trigger_config.py │ │ ├── device_configuration.py │ │ ├── device_credentials_id.py │ │ ├── device_data.py │ │ ├── device_export_data.py │ │ ├── device_group_ota_package.py │ │ ├── device_id.py │ │ ├── device_info.py │ │ ├── device_profile_alarm.py │ │ ├── device_profile_configuration.py │ │ ├── device_profile_data.py │ │ ├── device_profile_id.py │ │ ├── device_profile_provision_configuration.py │ │ ├── device_profile_transport_configuration.py │ │ ├── device_search_query.py │ │ ├── device_search_query_filter.py │ │ ├── device_transport_configuration.py │ │ ├── device_type_filter.py │ │ ├── disabled_device_profile_provision_configuration.py │ │ ├── duration_alarm_condition_spec.py │ │ ├── edge.py │ │ ├── edge_communication_failure_notification_rule_trigger_config.py │ │ ├── edge_connection_notification_rule_trigger_config.py │ │ ├── edge_event.py │ │ ├── edge_event_id.py │ │ ├── edge_id.py │ │ ├── edge_info.py │ │ ├── edge_instructions.py │ │ ├── edge_search_query.py │ │ ├── edge_search_query_filter.py │ │ ├── edge_type_filter.py │ │ ├── edqs_sync_request.py │ │ ├── efento_coap_device_type_configuration.py │ │ ├── email_delivery_method_notification_template.py │ │ ├── email_two_fa_account_config.py │ │ ├── email_two_fa_provider_config.py │ │ ├── enterprise_captcha_params.py │ │ ├── entities_by_group_name_filter.py │ │ ├── entities_limit_notification_rule_trigger_config.py │ │ ├── entity_action_notification_rule_trigger_config.py │ │ ├── entity_count_query.py │ │ ├── entity_data.py │ │ ├── entity_data_diff.py │ │ ├── entity_data_info.py │ │ ├── entity_data_page_link.py │ │ ├── entity_data_query.py │ │ ├── entity_data_sort_order.py │ │ ├── entity_export_data_object.py │ │ ├── entity_filter.py │ │ ├── entity_group.py │ │ ├── entity_group_export_data.py │ │ ├── entity_group_filter.py │ │ ├── entity_group_id.py │ │ ├── entity_group_info.py │ │ ├── entity_group_list_filter.py │ │ ├── entity_group_name_filter.py │ │ ├── entity_id.py │ │ ├── entity_key.py │ │ ├── entity_list_filter.py │ │ ├── entity_load_error.py │ │ ├── entity_name_filter.py │ │ ├── entity_relation_info.py │ │ ├── entity_relations_query.py │ │ ├── entity_subtype.py │ │ ├── entity_type_filter.py │ │ ├── entity_type_load_result.py │ │ ├── entity_type_version_create_config.py │ │ ├── entity_type_version_load_config.py │ │ ├── entity_type_version_load_request.py │ │ ├── entity_version.py │ │ ├── entity_view.py │ │ ├── entity_view_id.py │ │ ├── entity_view_info.py │ │ ├── entity_view_search_query.py │ │ ├── entity_view_search_query_filter.py │ │ ├── entity_view_type_filter.py │ │ ├── error_event_filter.py │ │ ├── escalated_notification_rule_recipients_config.py │ │ ├── event_filter.py │ │ ├── event_id.py │ │ ├── event_info.py │ │ ├── exportable_entity_entity_id.py │ │ ├── favicon.py │ │ ├── features_info.py │ │ ├── group_entity_export_data.py │ │ ├── group_permission.py │ │ ├── group_permission_id.py │ │ ├── group_permission_info.py │ │ ├── home_dashboard.py │ │ ├── home_menu_item.py │ │ ├── input_stream.py │ │ ├── integration.py │ │ ├── integration_converters_info.py │ │ ├── integration_id.py │ │ ├── integration_info.py │ │ ├── integration_lifecycle_event_notification_rule_trigger_config.py │ │ ├── json_node.py │ │ ├── json_transport_payload_configuration.py │ │ ├── key_filter.py │ │ ├── key_filter_predicate.py │ │ ├── last_visited_dashboard_info.py │ │ ├── license_usage_info.py │ │ ├── life_cycle_event_filter.py │ │ ├── locale_code_upload_body.py │ │ ├── login_request.py │ │ ├── login_response.py │ │ ├── login_white_labeling_params.py │ │ ├── lw_m2_m_bootstrap_server_credential.py │ │ ├── lw_m2_m_server_security_config_default.py │ │ ├── lw_m2m_instance.py │ │ ├── lw_m2m_object.py │ │ ├── lw_m2m_resource_observe.py │ │ ├── lwm2m_device_profile_transport_configuration.py │ │ ├── lwm2m_device_transport_configuration.py │ │ ├── mapping.py │ │ ├── menu_item.py │ │ ├── merged_group_permission_info.py │ │ ├── merged_group_type_permission_info.py │ │ ├── merged_user_permissions.py │ │ ├── mobile_app_delivery_method_notification_template.py │ │ ├── mobile_app_notification_delivery_method_config.py │ │ ├── mobile_app_settings_id.py │ │ ├── mobile_redirect_params.py │ │ ├── mobile_self_registration_params.py │ │ ├── mobile_session_info.py │ │ ├── model.py │ │ ├── mqtt_device_profile_transport_configuration.py │ │ ├── mqtt_device_transport_configuration.py │ │ ├── new_platform_version_notification_rule_trigger_config.py │ │ ├── no_sec_lw_m2_m_bootstrap_server_credential.py │ │ ├── node_connection_info.py │ │ ├── notification.py │ │ ├── notification_delivery_method_config.py │ │ ├── notification_id.py │ │ ├── notification_info.py │ │ ├── notification_request.py │ │ ├── notification_request_config.py │ │ ├── notification_request_id.py │ │ ├── notification_request_preview.py │ │ ├── notification_request_stats.py │ │ ├── notification_rule_config.py │ │ ├── notification_rule_id.py │ │ ├── notification_rule_recipients_config.py │ │ ├── notification_rule_trigger_config.py │ │ ├── notification_template_config.py │ │ ├── notification_template_id.py │ │ ├── numeric_filter_predicate.py │ │ ├── o_auth2_basic_mapper_config.py │ │ ├── o_auth2_client_info.py │ │ ├── o_auth2_client_registration_template.py │ │ ├── o_auth2_client_registration_template_id.py │ │ ├── o_auth2_custom_mapper_config.py │ │ ├── o_auth2_domain_info.py │ │ ├── o_auth2_info.py │ │ ├── o_auth2_mapper_config.py │ │ ├── o_auth2_mobile_info.py │ │ ├── o_auth2_params_info.py │ │ ├── o_auth2_registration_info.py │ │ ├── object_attributes.py │ │ ├── object_node.py │ │ ├── originator_entity_owner_users_filter.py │ │ ├── ota_package.py │ │ ├── ota_package_id.py │ │ ├── ota_package_info.py │ │ ├── ota_package_ota_package_id_body.py │ │ ├── other_configuration.py │ │ ├── page_data_blob_entity_with_customer_info.py │ │ ├── page_data_contact_basedobject.py │ │ ├── page_data_converter.py │ │ ├── page_data_customer_info.py │ │ ├── page_data_edge.py │ │ ├── page_data_edge_event.py │ │ ├── page_data_edge_info.py │ │ ├── page_data_entity_group_info.py │ │ ├── page_data_entity_version.py │ │ ├── page_data_entity_view_info.py │ │ ├── page_data_event_info.py │ │ ├── page_data_integration.py │ │ ├── page_data_integration_info.py │ │ ├── page_data_ota_package_info.py │ │ ├── page_data_queue.py │ │ ├── page_data_role.py │ │ ├── page_data_rule_chain.py │ │ ├── page_data_scheduler_event_info.py │ │ ├── page_data_secret_info.py │ │ ├── page_data_short_entity_view.py │ │ ├── page_data_user_email_info.py │ │ ├── page_data_user_info.py │ │ ├── palette.py │ │ ├── palette_settings.py │ │ ├── platform_two_fa_settings.py │ │ ├── platform_users_notification_target_config.py │ │ ├── power_saving_configuration.py │ │ ├── processing_strategy.py │ │ ├── proto_transport_payload_configuration.py │ │ ├── psklw_m2_m_bootstrap_server_credential.py │ │ ├── queue.py │ │ ├── raw_data_event_filter.py │ │ ├── relation_entity_type_filter.py │ │ ├── relations_query_filter.py │ │ ├── relations_search_parameters.py │ │ ├── repeating_alarm_condition_spec.py │ │ ├── report_config.py │ │ ├── repository_settings.py │ │ ├── repository_settings_info.py │ │ ├── reset_password_email_request.py │ │ ├── reset_password_request.py │ │ ├── resource.py │ │ ├── response_entity.py │ │ ├── role.py │ │ ├── role_id.py │ │ ├── rpc.py │ │ ├── rpc_id.py │ │ ├── rpklw_m2_m_bootstrap_server_credential.py │ │ ├── rule_chain.py │ │ ├── rule_chain_connection_info.py │ │ ├── rule_chain_data.py │ │ ├── rule_chain_debug_event_filter.py │ │ ├── rule_chain_export_data.py │ │ ├── rule_chain_id.py │ │ ├── rule_chain_import_result.py │ │ ├── rule_chain_meta_data.py │ │ ├── rule_chain_output_labels_usage.py │ │ ├── rule_engine_component_lifecycle_event_notification_rule_trigger_config.py │ │ ├── rule_node.py │ │ ├── rule_node_debug_event_filter.py │ │ ├── rule_node_id.py │ │ ├── save_device_with_credentials_request.py │ │ ├── save_ota_package_info_request.py │ │ ├── scheduler_event.py │ │ ├── scheduler_event_filter.py │ │ ├── scheduler_event_id.py │ │ ├── scheduler_event_info.py │ │ ├── scheduler_event_with_customer_info.py │ │ ├── secret.py │ │ ├── secret_id.py │ │ ├── secret_info.py │ │ ├── security_settings.py │ │ ├── self_registration_params.py │ │ ├── share_group_request.py │ │ ├── shared_attributes_setting_snmp_communication_config.py │ │ ├── short_customer_info.py │ │ ├── short_entity_view.py │ │ ├── sign_up_field.py │ │ ├── sign_up_request.py │ │ ├── sign_up_self_registration_params.py │ │ ├── simple_alarm_condition_spec.py │ │ ├── single_entity_filter.py │ │ ├── single_entity_version_create_request.py │ │ ├── single_entity_version_load_request.py │ │ ├── slack_conversation.py │ │ ├── slack_delivery_method_notification_template.py │ │ ├── slack_notification_delivery_method_config.py │ │ ├── slack_notification_target_config.py │ │ ├── smpp_sms_provider_configuration.py │ │ ├── sms_delivery_method_notification_template.py │ │ ├── sms_provider_configuration.py │ │ ├── sms_two_fa_account_config.py │ │ ├── sms_two_fa_provider_config.py │ │ ├── snmp_communication_config.py │ │ ├── snmp_device_profile_transport_configuration.py │ │ ├── snmp_device_transport_configuration.py │ │ ├── snmp_mapping.py │ │ ├── solution_install_response.py │ │ ├── specific_time_schedule.py │ │ ├── starred_dashboard_info.py │ │ ├── state_entity_owner_filter.py │ │ ├── statistics_event_filter.py │ │ ├── string_filter_predicate.py │ │ ├── submit_strategy.py │ │ ├── subscription_usage.py │ │ ├── system_administrators_filter.py │ │ ├── system_info.py │ │ ├── system_info_data.py │ │ ├── task_processing_failure_notification_rule_trigger_config.py │ │ ├── tb_image_delete_result.py │ │ ├── tb_resource.py │ │ ├── tb_resource_id.py │ │ ├── tb_resource_info.py │ │ ├── tb_secret_delete_result.py │ │ ├── telemetry_entity_view.py │ │ ├── telemetry_mapping_configuration.py │ │ ├── telemetry_querying_snmp_communication_config.py │ │ ├── tenant_administrators_filter.py │ │ ├── tenant_profile_configuration.py │ │ ├── tenant_profile_data.py │ │ ├── tenant_profile_id.py │ │ ├── tenant_profile_queue_configuration.py │ │ ├── tenant_solution_template_details.py │ │ ├── tenant_solution_template_info.py │ │ ├── tenant_solution_template_instructions.py │ │ ├── test_sms_request.py │ │ ├── thingsboard_credentials_expired_response.py │ │ ├── thingsboard_error_response.py │ │ ├── to_device_rpc_request_snmp_communication_config.py │ │ ├── totp_two_fa_account_config.py │ │ ├── totp_two_fa_provider_config.py │ │ ├── translation_info.py │ │ ├── transport_payload_type_configuration.py │ │ ├── ts_value.py │ │ ├── twilio_sms_provider_configuration.py │ │ ├── two_fa_account_config.py │ │ ├── two_fa_account_config_update_request.py │ │ ├── two_fa_provider_config.py │ │ ├── two_fa_provider_info.py │ │ ├── update_message.py │ │ ├── user.py │ │ ├── user_dashboards_info.py │ │ ├── user_email_info.py │ │ ├── user_group_list_filter.py │ │ ├── user_id.py │ │ ├── user_info.py │ │ ├── user_list_filter.py │ │ ├── user_password_policy.py │ │ ├── user_role_filter.py │ │ ├── users_filter.py │ │ ├── v2_captcha_params.py │ │ ├── v3_captcha_params.py │ │ ├── vendor.py │ │ ├── version_create_config.py │ │ ├── version_create_request.py │ │ ├── version_creation_result.py │ │ ├── version_load_config.py │ │ ├── version_load_request.py │ │ ├── version_load_result.py │ │ ├── versioned_entity_info.py │ │ ├── web_delivery_method_notification_template.py │ │ ├── web_self_registration_params.py │ │ ├── white_labeling.py │ │ ├── white_labeling_params.py │ │ ├── widget_type.py │ │ ├── widget_type_details.py │ │ ├── widget_type_export_data.py │ │ ├── widget_type_id.py │ │ ├── widget_type_info.py │ │ ├── widgets_bundle_export_data.py │ │ ├── widgets_bundle_id.py │ │ ├── x509_certificate_chain_provision_configuration.py │ │ └── x509_lw_m2_m_bootstrap_server_credential.py ├── rest.py ├── rest_client_base.py ├── rest_client_ce.py └── rest_client_pe.py └── test ├── __init__.py ├── data └── images │ └── task_done.png ├── tests.py ├── tests_ce.py └── tests_pe.py /README.md: -------------------------------------------------------------------------------- 1 | # ThingsBoard Python REST API client 2 | 3 | 4 | The ThingsBoard REST API Client helps you interact with [ThingsBoard REST API](https://thingsboard.io/docs/reference/rest-api/) from your Python script. 5 | With [Python Rest Client](https://thingsboard.io/docs/reference/python-rest-client/) you can programmatically create assets, devices, customers, users and other entities and their relations in ThingsBoard. 6 | 7 | The recommended method for installing the Rest Client is a pip. 8 | 9 | *The Python version of the REST API client is under developing. If you have discovered any bug, please write us using email or by opening the issue.* 10 | 11 | 12 | ##### Installation 13 | 14 | In order to install the ThingsBoard REST client, you should use the following command: 15 | 16 | ```bash 17 | pip3 install tb-rest-client 18 | ``` 19 | 20 | 21 | ##### Examples 22 | 23 | You can find the examples of the usage in the "examples" folder or on the [our website](https://thingsboard.io/docs/reference/python-rest-client/). 24 | 25 | 26 | **Note:** There are 2 REST clients for ThingsBoard, they are depend on version of the ThingsBoard, you use. 27 | 28 | - If you use the ThingsBoard Community Edition (ThingsBoard CE) - please use the following command to import the REST client into your script: 29 | `from tb_rest_client.rest_client_ce import *` 30 | The REST client class has name "RestClientCE". 31 | 32 | - If you use the ThingsBoard Professional Edition (ThingsBoard PE) - please use the following command to import the REST client into your script: 33 | `from tb_rest_client.rest_client_pe import *` 34 | The REST client class has name "RestClientPE". 35 | 36 | If you use the wrong version of the REST client, it could work unexpectedly. 37 | 38 | 39 | ## Support 40 | 41 | - [Community chat](https://gitter.im/thingsboard/chat) 42 | - [Q&A forum](https://groups.google.com/forum/#!forum/thingsboard) 43 | - [Stackoverflow](http://stackoverflow.com/questions/tagged/thingsboard) 44 | 45 | **Don't forget to star the repository to show your ❤️ and support.** 46 | 47 | 48 | ## Licenses 49 | 50 | This project is released under [Apache 2.0 License](./LICENSE). 51 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | -------------------------------------------------------------------------------- /examples/example_application.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | import logging 17 | # Importing models and REST client class from Community Edition version 18 | from tb_rest_client.rest_client_ce import * 19 | from tb_rest_client.rest import ApiException 20 | 21 | logging.basicConfig(level=logging.DEBUG, 22 | format='%(asctime)s - %(levelname)s - %(module)s - %(lineno)d - %(message)s', 23 | datefmt='%Y-%m-%d %H:%M:%S') 24 | 25 | # ThingsBoard REST API URL 26 | url = "http://127.0.0.1:8080" 27 | 28 | # Default Tenant Administrator credentials 29 | username = "tenant@thingsboard.org" 30 | password = "tenant" 31 | 32 | 33 | def main(): 34 | # Creating the REST client object with context manager to get auto token refresh 35 | with RestClientCE(base_url=url) as rest_client: 36 | try: 37 | # Auth with credentials 38 | rest_client.login(username=username, password=password) 39 | 40 | # Creating an Asset 41 | default_asset_profile_id = rest_client.get_default_asset_profile_info().id 42 | asset = Asset(name="Building 1", label="Building 1", 43 | asset_profile_id=default_asset_profile_id) 44 | asset = rest_client.save_asset(asset) 45 | 46 | logging.info("Asset was created:\n%r\n", asset) 47 | 48 | rest_client.process_devices_bulk_import() 49 | 50 | # Creating a Device 51 | # Also, you can use default Device Profile: 52 | # default_device_profile_id = rest_client.get_default_device_profile_info().id 53 | device_profile = DeviceProfile(name="Thermometer", 54 | type="DEFAULT", 55 | transport_type="DEFAULT", 56 | profile_data=DeviceProfileData(configuration={"type": "DEFAULT"}, 57 | transport_configuration={"type": "DEFAULT"})) 58 | device_profile = rest_client.save_device_profile(device_profile) 59 | device = Device(name="Thermometer 1", label="Thermometer 1", 60 | device_profile_id=device_profile.id) 61 | device = rest_client.save_device(device) 62 | 63 | logging.info(" Device was created:\n%r\n", device) 64 | 65 | # Creating relations from device to asset 66 | relation = EntityRelation(_from=asset.id, to=device.id, type="Contains") 67 | rest_client.save_relation(relation) 68 | 69 | logging.info(" Relation was created:\n%r\n", relation) 70 | except ApiException as e: 71 | logging.exception(e) 72 | 73 | 74 | if __name__ == '__main__': 75 | main() 76 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "tb-rest-client" 3 | version = "4.1.0" 4 | description = "ThingsBoard REST API client" 5 | authors = ["ThingsBoard "] 6 | license = "Apache-2.0" 7 | readme = "README.md" 8 | homepage = "https://thingsboard.io/docs/reference/python-rest-client/" 9 | repository = "https://github.com/thingsboard/thingsboard-python-rest-client" 10 | documentation = "https://thingsboard.io/docs/reference/python-rest-client/" 11 | keywords = ["tb-python-rest-client", "tb-rest-client"] 12 | maintainers = [ 13 | "Illia Barkov ", 14 | "Vitalii Bidochka " 15 | ] 16 | 17 | [tool.poetry.dependencies] 18 | python = "^3.9" 19 | certifi = ">=2023.7.22" 20 | six = ">=1.10" 21 | python_dateutil = ">=2.5.3" 22 | setuptools = ">=21.0.0" 23 | urllib3 = ">=2.0.7" 24 | requests = ">=2.31.0" 25 | pyjwt = ">=2.6.0" 26 | 27 | 28 | [build-system] 29 | requires = ["poetry-core"] 30 | build-backend = "poetry.core.masonry.api" 31 | -------------------------------------------------------------------------------- /tb_rest_client/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from .rest_client_ce import RestClientCE 16 | from .rest_client_pe import RestClientPE 17 | -------------------------------------------------------------------------------- /tb_rest_client/api/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | -------------------------------------------------------------------------------- /tb_rest_client/models/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/account_configverification_code_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class AccountConfigverificationCodeBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """AccountConfigverificationCodeBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(AccountConfigverificationCodeBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, AccountConfigverificationCodeBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/affected_user_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | from tb_rest_client.models.models_ce.users_filter import UsersFilter # noqa: F401,E501 32 | 33 | class AffectedUserFilter(UsersFilter): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | if hasattr(UsersFilter, "swagger_types"): 48 | swagger_types.update(UsersFilter.swagger_types) 49 | 50 | attribute_map = { 51 | } 52 | if hasattr(UsersFilter, "attribute_map"): 53 | attribute_map.update(UsersFilter.attribute_map) 54 | 55 | def __init__(self, *args, **kwargs): # noqa: E501 56 | """AffectedUserFilter - a model defined in Swagger""" # noqa: E501 57 | self.discriminator = None 58 | UsersFilter.__init__(self, *args, **kwargs) 59 | 60 | def to_dict(self): 61 | """Returns the model properties as a dict""" 62 | result = {} 63 | 64 | for attr, _ in six.iteritems(self.swagger_types): 65 | value = getattr(self, attr) 66 | if isinstance(value, list): 67 | result[attr] = list(map( 68 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 69 | value 70 | )) 71 | elif hasattr(value, "to_dict"): 72 | result[attr] = value.to_dict() 73 | elif isinstance(value, dict): 74 | result[attr] = dict(map( 75 | lambda item: (item[0], item[1].to_dict()) 76 | if hasattr(item[1], "to_dict") else item, 77 | value.items() 78 | )) 79 | else: 80 | result[attr] = value 81 | if issubclass(AffectedUserFilter, dict): 82 | for key, value in self.items(): 83 | result[key] = value 84 | 85 | return result 86 | 87 | def to_str(self): 88 | """Returns the string representation of the model""" 89 | return pprint.pformat(self.to_dict()) 90 | 91 | def __repr__(self): 92 | """For `print` and `pprint`""" 93 | return self.to_str() 94 | 95 | def __eq__(self, other): 96 | """Returns true if both objects are equal""" 97 | if not isinstance(other, AffectedUserFilter): 98 | return False 99 | 100 | return self.__dict__ == other.__dict__ 101 | 102 | def __ne__(self, other): 103 | """Returns true if both objects are not equal""" 104 | return not self == other 105 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/all_users_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | from tb_rest_client.models.models_ce.users_filter import UsersFilter # noqa: F401,E501 32 | 33 | class AllUsersFilter(UsersFilter): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | if hasattr(UsersFilter, "swagger_types"): 48 | swagger_types.update(UsersFilter.swagger_types) 49 | 50 | attribute_map = { 51 | } 52 | if hasattr(UsersFilter, "attribute_map"): 53 | attribute_map.update(UsersFilter.attribute_map) 54 | 55 | def __init__(self, *args, **kwargs): # noqa: E501 56 | """AllUsersFilter - a model defined in Swagger""" # noqa: E501 57 | self.discriminator = None 58 | UsersFilter.__init__(self, *args, **kwargs) 59 | 60 | def to_dict(self): 61 | """Returns the model properties as a dict""" 62 | result = {} 63 | 64 | for attr, _ in six.iteritems(self.swagger_types): 65 | value = getattr(self, attr) 66 | if isinstance(value, list): 67 | result[attr] = list(map( 68 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 69 | value 70 | )) 71 | elif hasattr(value, "to_dict"): 72 | result[attr] = value.to_dict() 73 | elif isinstance(value, dict): 74 | result[attr] = dict(map( 75 | lambda item: (item[0], item[1].to_dict()) 76 | if hasattr(item[1], "to_dict") else item, 77 | value.items() 78 | )) 79 | else: 80 | result[attr] = value 81 | if issubclass(AllUsersFilter, dict): 82 | for key, value in self.items(): 83 | result[key] = value 84 | 85 | return result 86 | 87 | def to_str(self): 88 | """Returns the string representation of the model""" 89 | return pprint.pformat(self.to_dict()) 90 | 91 | def __repr__(self): 92 | """For `print` and `pprint`""" 93 | return self.to_str() 94 | 95 | def __eq__(self, other): 96 | """Returns true if both objects are equal""" 97 | if not isinstance(other, AllUsersFilter): 98 | return False 99 | 100 | return self.__dict__ == other.__dict__ 101 | 102 | def __ne__(self, other): 103 | """Returns true if both objects are not equal""" 104 | return not self == other 105 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/any_time_schedule.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | from tb_rest_client.models.models_ce.alarm_schedule import AlarmSchedule # noqa: F401,E501 32 | 33 | class AnyTimeSchedule(AlarmSchedule): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | if hasattr(AlarmSchedule, "swagger_types"): 48 | swagger_types.update(AlarmSchedule.swagger_types) 49 | 50 | attribute_map = { 51 | } 52 | if hasattr(AlarmSchedule, "attribute_map"): 53 | attribute_map.update(AlarmSchedule.attribute_map) 54 | 55 | def __init__(self, *args, **kwargs): # noqa: E501 56 | """AnyTimeSchedule - a model defined in Swagger""" # noqa: E501 57 | self.discriminator = None 58 | AlarmSchedule.__init__(self, *args, **kwargs) 59 | 60 | def to_dict(self): 61 | """Returns the model properties as a dict""" 62 | result = {} 63 | 64 | for attr, _ in six.iteritems(self.swagger_types): 65 | value = getattr(self, attr) 66 | if isinstance(value, list): 67 | result[attr] = list(map( 68 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 69 | value 70 | )) 71 | elif hasattr(value, "to_dict"): 72 | result[attr] = value.to_dict() 73 | elif isinstance(value, dict): 74 | result[attr] = dict(map( 75 | lambda item: (item[0], item[1].to_dict()) 76 | if hasattr(item[1], "to_dict") else item, 77 | value.items() 78 | )) 79 | else: 80 | result[attr] = value 81 | if issubclass(AnyTimeSchedule, dict): 82 | for key, value in self.items(): 83 | result[key] = value 84 | 85 | return result 86 | 87 | def to_str(self): 88 | """Returns the string representation of the model""" 89 | return pprint.pformat(self.to_dict()) 90 | 91 | def __repr__(self): 92 | """For `print` and `pprint`""" 93 | return self.to_str() 94 | 95 | def __eq__(self, other): 96 | """Returns true if both objects are equal""" 97 | if not isinstance(other, AnyTimeSchedule): 98 | return False 99 | 100 | return self.__dict__ == other.__dict__ 101 | 102 | def __ne__(self, other): 103 | """Returns true if both objects are not equal""" 104 | return not self == other 105 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/auto_commit_settings.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class AutoCommitSettings(dict): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | if hasattr(dict, "swagger_types"): 47 | swagger_types.update(dict.swagger_types) 48 | 49 | attribute_map = { 50 | } 51 | if hasattr(dict, "attribute_map"): 52 | attribute_map.update(dict.attribute_map) 53 | 54 | def __init__(self, *args, **kwargs): # noqa: E501 55 | """AutoCommitSettings - a model defined in Swagger""" # noqa: E501 56 | self.discriminator = None 57 | dict.__init__(self, *args, **kwargs) 58 | 59 | def to_dict(self): 60 | """Returns the model properties as a dict""" 61 | result = {} 62 | 63 | for attr, _ in six.iteritems(self.swagger_types): 64 | value = getattr(self, attr) 65 | if isinstance(value, list): 66 | result[attr] = list(map( 67 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 68 | value 69 | )) 70 | elif hasattr(value, "to_dict"): 71 | result[attr] = value.to_dict() 72 | elif isinstance(value, dict): 73 | result[attr] = dict(map( 74 | lambda item: (item[0], item[1].to_dict()) 75 | if hasattr(item[1], "to_dict") else item, 76 | value.items() 77 | )) 78 | else: 79 | result[attr] = value 80 | if issubclass(AutoCommitSettings, dict): 81 | for key, value in self.items(): 82 | result[key] = value 83 | 84 | return result 85 | 86 | def to_str(self): 87 | """Returns the string representation of the model""" 88 | return pprint.pformat(self.to_dict()) 89 | 90 | def __repr__(self): 91 | """For `print` and `pprint`""" 92 | return self.to_str() 93 | 94 | def __eq__(self, other): 95 | """Returns true if both objects are equal""" 96 | if not isinstance(other, AutoCommitSettings): 97 | return False 98 | 99 | return self.__dict__ == other.__dict__ 100 | 101 | def __ne__(self, other): 102 | """Returns true if both objects are not equal""" 103 | return not self == other 104 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/calculated_field_debug_event_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class CalculatedFieldDebugEventFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """CalculatedFieldDebugEventFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(CalculatedFieldDebugEventFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, CalculatedFieldDebugEventFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/config_submit_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class ConfigSubmitBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """ConfigSubmitBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(ConfigSubmitBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, ConfigSubmitBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/custom_mobile_page.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class CustomMobilePage(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """CustomMobilePage - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(CustomMobilePage, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, CustomMobilePage): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/dashboard_page.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class DashboardPage(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """DashboardPage - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(DashboardPage, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, DashboardPage): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/default_mobile_page.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class DefaultMobilePage(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """DefaultMobilePage - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(DefaultMobilePage, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, DefaultMobilePage): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/edqs_sync_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class EdqsSyncRequest(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """EdqsSyncRequest - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(EdqsSyncRequest, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, EdqsSyncRequest): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/entity_id_clearstart_timeend_time_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class EntityIdClearstartTimeendTimeBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """EntityIdClearstartTimeendTimeBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(EntityIdClearstartTimeendTimeBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, EntityIdClearstartTimeendTimeBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/entity_type_entity_idtenant_idpage_sizepagetext_searchsort_propertysort_orderstart_timeend_time_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class EntityTypeEntityIdtenantIdpageSizepagetextSearchsortPropertysortOrderstartTimeendTimeBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """EntityTypeEntityIdtenantIdpageSizepagetextSearchsortPropertysortOrderstartTimeendTimeBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(EntityTypeEntityIdtenantIdpageSizepagetextSearchsortPropertysortOrderstartTimeendTimeBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, EntityTypeEntityIdtenantIdpageSizepagetextSearchsortPropertysortOrderstartTimeendTimeBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/inline_response200.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | 33 | class InlineResponse200(object): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | 48 | attribute_map = { 49 | } 50 | 51 | def __init__(self): # noqa: E501 52 | """InlineResponse200 - a model defined in Swagger""" # noqa: E501 53 | self.discriminator = None 54 | 55 | def to_dict(self): 56 | """Returns the model properties as a dict""" 57 | result = {} 58 | 59 | for attr, _ in six.iteritems(self.swagger_types): 60 | value = getattr(self, attr) 61 | if isinstance(value, list): 62 | result[attr] = list(map( 63 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 64 | value 65 | )) 66 | elif hasattr(value, "to_dict"): 67 | result[attr] = value.to_dict() 68 | elif isinstance(value, dict): 69 | result[attr] = dict(map( 70 | lambda item: (item[0], item[1].to_dict()) 71 | if hasattr(item[1], "to_dict") else item, 72 | value.items() 73 | )) 74 | else: 75 | result[attr] = value 76 | if issubclass(InlineResponse200, dict): 77 | for key, value in self.items(): 78 | result[key] = value 79 | 80 | return result 81 | 82 | def to_str(self): 83 | """Returns the string representation of the model""" 84 | return pprint.pformat(self.to_dict()) 85 | 86 | def __repr__(self): 87 | """For `print` and `pprint`""" 88 | return self.to_str() 89 | 90 | def __eq__(self, other): 91 | """Returns true if both objects are equal""" 92 | if not isinstance(other, InlineResponse200): 93 | return False 94 | 95 | return self.__dict__ == other.__dict__ 96 | 97 | def __ne__(self, other): 98 | """Returns true if both objects are not equal""" 99 | return not self == other 100 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/input_stream.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class InputStream(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """InputStream - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(InputStream, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, InputStream): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/json_node.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class JsonNode(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """JsonNode - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(JsonNode, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, JsonNode): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/object_node.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 3.6.4.7PAAS 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class ObjectNode(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """ObjectNode - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(ObjectNode, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, ObjectNode): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_alarm_condition_filter_predicate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfAlarmConditionFilterPredicate(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfAlarmConditionFilterPredicate - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfAlarmConditionFilterPredicate, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfAlarmConditionFilterPredicate): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_alarm_condition_spec.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfAlarmConditionSpec(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfAlarmConditionSpec - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfAlarmConditionSpec, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfAlarmConditionSpec): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_alarm_count_query_entity_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfAlarmCountQueryEntityFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfAlarmCountQueryEntityFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfAlarmCountQueryEntityFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfAlarmCountQueryEntityFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_alarm_data_query_entity_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfAlarmDataQueryEntityFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfAlarmDataQueryEntityFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfAlarmDataQueryEntityFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfAlarmDataQueryEntityFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_alarm_rule_schedule.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfAlarmRuleSchedule(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfAlarmRuleSchedule - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfAlarmRuleSchedule, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfAlarmRuleSchedule): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_device_data_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfDeviceDataConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfDeviceDataConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfDeviceDataConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfDeviceDataConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_device_data_transport_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfDeviceDataTransportConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfDeviceDataTransportConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfDeviceDataTransportConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfDeviceDataTransportConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_device_profile_data_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfDeviceProfileDataConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfDeviceProfileDataConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfDeviceProfileDataConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfDeviceProfileDataConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_device_profile_data_provision_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfDeviceProfileDataProvisionConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfDeviceProfileDataProvisionConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfDeviceProfileDataProvisionConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfDeviceProfileDataProvisionConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_device_profile_data_transport_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfDeviceProfileDataTransportConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfDeviceProfileDataTransportConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfDeviceProfileDataTransportConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfDeviceProfileDataTransportConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_entity_count_query_entity_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfEntityCountQueryEntityFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfEntityCountQueryEntityFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfEntityCountQueryEntityFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfEntityCountQueryEntityFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_entity_data_diff_current_version.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfEntityDataDiffCurrentVersion(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfEntityDataDiffCurrentVersion - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfEntityDataDiffCurrentVersion, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfEntityDataDiffCurrentVersion): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_entity_data_diff_other_version.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfEntityDataDiffOtherVersion(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfEntityDataDiffOtherVersion - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfEntityDataDiffOtherVersion, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfEntityDataDiffOtherVersion): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_entity_data_query_entity_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfEntityDataQueryEntityFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfEntityDataQueryEntityFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfEntityDataQueryEntityFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfEntityDataQueryEntityFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_key_filter_predicate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfKeyFilterPredicate(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfKeyFilterPredicate - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfKeyFilterPredicate, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfKeyFilterPredicate): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_notification_rule_info_recipients_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfNotificationRuleInfoRecipientsConfig(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfNotificationRuleInfoRecipientsConfig - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfNotificationRuleInfoRecipientsConfig, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfNotificationRuleInfoRecipientsConfig): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_notification_rule_info_trigger_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfNotificationRuleInfoTriggerConfig(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfNotificationRuleInfoTriggerConfig - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfNotificationRuleInfoTriggerConfig, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfNotificationRuleInfoTriggerConfig): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_notification_rule_recipients_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfNotificationRuleRecipientsConfig(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfNotificationRuleRecipientsConfig - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfNotificationRuleRecipientsConfig, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfNotificationRuleRecipientsConfig): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_notification_rule_trigger_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfNotificationRuleTriggerConfig(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfNotificationRuleTriggerConfig - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfNotificationRuleTriggerConfig, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfNotificationRuleTriggerConfig): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_notification_target_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfNotificationTargetConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfNotificationTargetConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfNotificationTargetConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfNotificationTargetConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_platform_two_fa_settings_providers_items.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfPlatformTwoFaSettingsProvidersItems(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfPlatformTwoFaSettingsProvidersItems - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfPlatformTwoFaSettingsProvidersItems, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfPlatformTwoFaSettingsProvidersItems): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_tenant_profile_data_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfTenantProfileDataConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfTenantProfileDataConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfTenantProfileDataConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfTenantProfileDataConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/one_of_test_sms_request_provider_configuration.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class OneOfTestSmsRequestProviderConfiguration(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """OneOfTestSmsRequestProviderConfiguration - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(OneOfTestSmsRequestProviderConfiguration, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, OneOfTestSmsRequestProviderConfiguration): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/vc_entity_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class VcEntityBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """VcEntityBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(VcEntityBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, VcEntityBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/vc_version_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class VcVersionBody(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """VcVersionBody - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(VcVersionBody, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, VcVersionBody): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/version.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class Version(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """Version - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(Version, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, Version): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_ce/web_view_page.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard open-source IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class WebViewPage(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """WebViewPage - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(WebViewPage, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, WebViewPage): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/all_users_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | from tb_rest_client.models.models_pe.users_filter import UsersFilter # noqa: F401,E501 32 | 33 | class AllUsersFilter(UsersFilter): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | if hasattr(UsersFilter, "swagger_types"): 48 | swagger_types.update(UsersFilter.swagger_types) 49 | 50 | attribute_map = { 51 | } 52 | if hasattr(UsersFilter, "attribute_map"): 53 | attribute_map.update(UsersFilter.attribute_map) 54 | 55 | def __init__(self, *args, **kwargs): # noqa: E501 56 | """AllUsersFilter - a model defined in Swagger""" # noqa: E501 57 | self.discriminator = None 58 | UsersFilter.__init__(self, *args, **kwargs) 59 | 60 | def to_dict(self): 61 | """Returns the model properties as a dict""" 62 | result = {} 63 | 64 | for attr, _ in six.iteritems(self.swagger_types): 65 | value = getattr(self, attr) 66 | if isinstance(value, list): 67 | result[attr] = list(map( 68 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 69 | value 70 | )) 71 | elif hasattr(value, "to_dict"): 72 | result[attr] = value.to_dict() 73 | elif isinstance(value, dict): 74 | result[attr] = dict(map( 75 | lambda item: (item[0], item[1].to_dict()) 76 | if hasattr(item[1], "to_dict") else item, 77 | value.items() 78 | )) 79 | else: 80 | result[attr] = value 81 | if issubclass(AllUsersFilter, dict): 82 | for key, value in self.items(): 83 | result[key] = value 84 | 85 | return result 86 | 87 | def to_str(self): 88 | """Returns the string representation of the model""" 89 | return pprint.pformat(self.to_dict()) 90 | 91 | def __repr__(self): 92 | """For `print` and `pprint`""" 93 | return self.to_str() 94 | 95 | def __eq__(self, other): 96 | """Returns true if both objects are equal""" 97 | if not isinstance(other, AllUsersFilter): 98 | return False 99 | 100 | return self.__dict__ == other.__dict__ 101 | 102 | def __ne__(self, other): 103 | """Returns true if both objects are not equal""" 104 | return not self == other 105 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/array_node.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class ArrayNode(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """ArrayNode - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(ArrayNode, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, ArrayNode): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/calculated_field_debug_event_filter.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class CalculatedFieldDebugEventFilter(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """CalculatedFieldDebugEventFilter - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(CalculatedFieldDebugEventFilter, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, CalculatedFieldDebugEventFilter): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/custom_menu_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class CustomMenuConfig(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'items': 'list[OneOfCustomMenuConfigItemsItems]' 32 | } 33 | 34 | attribute_map = { 35 | 'items': 'items' 36 | } 37 | 38 | def __init__(self, items=None): # noqa: E501 39 | """CustomMenuConfig - a model defined in Swagger""" # noqa: E501 40 | self._items = None 41 | self.discriminator = None 42 | self.items = items 43 | 44 | @property 45 | def items(self): 46 | """Gets the items of this CustomMenuConfig. # noqa: E501 47 | 48 | List of custom menu items # noqa: E501 49 | 50 | :return: The items of this CustomMenuConfig. # noqa: E501 51 | :rtype: list[OneOfCustomMenuConfigItemsItems] 52 | """ 53 | return self._items 54 | 55 | @items.setter 56 | def items(self, items): 57 | """Sets the items of this CustomMenuConfig. 58 | 59 | List of custom menu items # noqa: E501 60 | 61 | :param items: The items of this CustomMenuConfig. # noqa: E501 62 | :type: list[OneOfCustomMenuConfigItemsItems] 63 | """ 64 | if items is None: 65 | raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 66 | 67 | self._items = items 68 | 69 | def to_dict(self): 70 | """Returns the model properties as a dict""" 71 | result = {} 72 | 73 | for attr, _ in six.iteritems(self.swagger_types): 74 | value = getattr(self, attr) 75 | if isinstance(value, list): 76 | result[attr] = list(map( 77 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 78 | value 79 | )) 80 | elif hasattr(value, "to_dict"): 81 | result[attr] = value.to_dict() 82 | elif isinstance(value, dict): 83 | result[attr] = dict(map( 84 | lambda item: (item[0], item[1].to_dict()) 85 | if hasattr(item[1], "to_dict") else item, 86 | value.items() 87 | )) 88 | else: 89 | result[attr] = value 90 | if issubclass(CustomMenuConfig, dict): 91 | for key, value in self.items(): 92 | result[key] = value 93 | 94 | return result 95 | 96 | def to_str(self): 97 | """Returns the string representation of the model""" 98 | return pprint.pformat(self.to_dict()) 99 | 100 | def __repr__(self): 101 | """For `print` and `pprint`""" 102 | return self.to_str() 103 | 104 | def __eq__(self, other): 105 | """Returns true if both objects are equal""" 106 | if not isinstance(other, CustomMenuConfig): 107 | return False 108 | 109 | return self.__dict__ == other.__dict__ 110 | 111 | def __ne__(self, other): 112 | """Returns true if both objects are not equal""" 113 | return not self == other 114 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/custom_menu_id.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class CustomMenuId(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'id': 'str' 32 | } 33 | 34 | attribute_map = { 35 | 'id': 'id' 36 | } 37 | 38 | def __init__(self, id=None): # noqa: E501 39 | """CustomMenuId - a model defined in Swagger""" # noqa: E501 40 | self._id = None 41 | self.discriminator = None 42 | self.id = id 43 | 44 | @property 45 | def id(self): 46 | """Gets the id of this CustomMenuId. # noqa: E501 47 | 48 | string # noqa: E501 49 | 50 | :return: The id of this CustomMenuId. # noqa: E501 51 | :rtype: str 52 | """ 53 | return self._id 54 | 55 | @id.setter 56 | def id(self, id): 57 | """Sets the id of this CustomMenuId. 58 | 59 | string # noqa: E501 60 | 61 | :param id: The id of this CustomMenuId. # noqa: E501 62 | :type: str 63 | """ 64 | if id is None: 65 | raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 66 | 67 | self._id = id 68 | 69 | def to_dict(self): 70 | """Returns the model properties as a dict""" 71 | result = {} 72 | 73 | for attr, _ in six.iteritems(self.swagger_types): 74 | value = getattr(self, attr) 75 | if isinstance(value, list): 76 | result[attr] = list(map( 77 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 78 | value 79 | )) 80 | elif hasattr(value, "to_dict"): 81 | result[attr] = value.to_dict() 82 | elif isinstance(value, dict): 83 | result[attr] = dict(map( 84 | lambda item: (item[0], item[1].to_dict()) 85 | if hasattr(item[1], "to_dict") else item, 86 | value.items() 87 | )) 88 | else: 89 | result[attr] = value 90 | if issubclass(CustomMenuId, dict): 91 | for key, value in self.items(): 92 | result[key] = value 93 | 94 | return result 95 | 96 | def to_str(self): 97 | """Returns the string representation of the model""" 98 | return pprint.pformat(self.to_dict()) 99 | 100 | def __repr__(self): 101 | """For `print` and `pprint`""" 102 | return self.to_str() 103 | 104 | def __eq__(self, other): 105 | """Returns true if both objects are equal""" 106 | if not isinstance(other, CustomMenuId): 107 | return False 108 | 109 | return self.__dict__ == other.__dict__ 110 | 111 | def __ne__(self, other): 112 | """Returns true if both objects are not equal""" 113 | return not self == other 114 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/edqs_sync_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | 28 | import pprint 29 | import re # noqa: F401 30 | 31 | import six 32 | 33 | class EdqsSyncRequest(object): 34 | """NOTE: This class is auto generated by the swagger code generator program. 35 | 36 | Do not edit the class manually. 37 | """ 38 | """ 39 | Attributes: 40 | swagger_types (dict): The key is attribute name 41 | and the value is attribute type. 42 | attribute_map (dict): The key is attribute name 43 | and the value is json key in definition. 44 | """ 45 | swagger_types = { 46 | } 47 | 48 | attribute_map = { 49 | } 50 | 51 | def __init__(self): # noqa: E501 52 | """EdqsSyncRequest - a model defined in Swagger""" # noqa: E501 53 | self.discriminator = None 54 | 55 | def to_dict(self): 56 | """Returns the model properties as a dict""" 57 | result = {} 58 | 59 | for attr, _ in six.iteritems(self.swagger_types): 60 | value = getattr(self, attr) 61 | if isinstance(value, list): 62 | result[attr] = list(map( 63 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 64 | value 65 | )) 66 | elif hasattr(value, "to_dict"): 67 | result[attr] = value.to_dict() 68 | elif isinstance(value, dict): 69 | result[attr] = dict(map( 70 | lambda item: (item[0], item[1].to_dict()) 71 | if hasattr(item[1], "to_dict") else item, 72 | value.items() 73 | )) 74 | else: 75 | result[attr] = value 76 | if issubclass(EdqsSyncRequest, dict): 77 | for key, value in self.items(): 78 | result[key] = value 79 | 80 | return result 81 | 82 | def to_str(self): 83 | """Returns the string representation of the model""" 84 | return pprint.pformat(self.to_dict()) 85 | 86 | def __repr__(self): 87 | """For `print` and `pprint`""" 88 | return self.to_str() 89 | 90 | def __eq__(self, other): 91 | """Returns true if both objects are equal""" 92 | if not isinstance(other, EdqsSyncRequest): 93 | return False 94 | 95 | return self.__dict__ == other.__dict__ 96 | 97 | def __ne__(self, other): 98 | """Returns true if both objects are not equal""" 99 | return not self == other 100 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/enterprise_captcha_params.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class EnterpriseCaptchaParams(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """EnterpriseCaptchaParams - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(EnterpriseCaptchaParams, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, EnterpriseCaptchaParams): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/input_stream.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class InputStream(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """InputStream - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(InputStream, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, InputStream): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/json_node.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class JsonNode(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """JsonNode - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(JsonNode, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, JsonNode): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/mobile_app_settings_id.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class MobileAppSettingsId(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'id': 'str' 32 | } 33 | 34 | attribute_map = { 35 | 'id': 'id' 36 | } 37 | 38 | def __init__(self, id=None): # noqa: E501 39 | """MobileAppSettingsId - a model defined in Swagger""" # noqa: E501 40 | self._id = None 41 | self.discriminator = None 42 | self.id = id 43 | 44 | @property 45 | def id(self): 46 | """Gets the id of this MobileAppSettingsId. # noqa: E501 47 | 48 | string # noqa: E501 49 | 50 | :return: The id of this MobileAppSettingsId. # noqa: E501 51 | :rtype: str 52 | """ 53 | return self._id 54 | 55 | @id.setter 56 | def id(self, id): 57 | """Sets the id of this MobileAppSettingsId. 58 | 59 | string # noqa: E501 60 | 61 | :param id: The id of this MobileAppSettingsId. # noqa: E501 62 | :type: str 63 | """ 64 | if id is None: 65 | raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 66 | 67 | self._id = id 68 | 69 | def to_dict(self): 70 | """Returns the model properties as a dict""" 71 | result = {} 72 | 73 | for attr, _ in six.iteritems(self.swagger_types): 74 | value = getattr(self, attr) 75 | if isinstance(value, list): 76 | result[attr] = list(map( 77 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 78 | value 79 | )) 80 | elif hasattr(value, "to_dict"): 81 | result[attr] = value.to_dict() 82 | elif isinstance(value, dict): 83 | result[attr] = dict(map( 84 | lambda item: (item[0], item[1].to_dict()) 85 | if hasattr(item[1], "to_dict") else item, 86 | value.items() 87 | )) 88 | else: 89 | result[attr] = value 90 | if issubclass(MobileAppSettingsId, dict): 91 | for key, value in self.items(): 92 | result[key] = value 93 | 94 | return result 95 | 96 | def to_str(self): 97 | """Returns the string representation of the model""" 98 | return pprint.pformat(self.to_dict()) 99 | 100 | def __repr__(self): 101 | """For `print` and `pprint`""" 102 | return self.to_str() 103 | 104 | def __eq__(self, other): 105 | """Returns true if both objects are equal""" 106 | if not isinstance(other, MobileAppSettingsId): 107 | return False 108 | 109 | return self.__dict__ == other.__dict__ 110 | 111 | def __ne__(self, other): 112 | """Returns true if both objects are not equal""" 113 | return not self == other 114 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/mobile_self_registration_params.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class MobileSelfRegistrationParams(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """MobileSelfRegistrationParams - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(MobileSelfRegistrationParams, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, MobileSelfRegistrationParams): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/object_node.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class ObjectNode(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """ObjectNode - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(ObjectNode, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, ObjectNode): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/task_processing_failure_notification_rule_trigger_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class TaskProcessingFailureNotificationRuleTriggerConfig(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """TaskProcessingFailureNotificationRuleTriggerConfig - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(TaskProcessingFailureNotificationRuleTriggerConfig, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, TaskProcessingFailureNotificationRuleTriggerConfig): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/v2_captcha_params.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class V2CaptchaParams(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """V2CaptchaParams - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(V2CaptchaParams, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, V2CaptchaParams): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/v3_captcha_params.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class V3CaptchaParams(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """V3CaptchaParams - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(V3CaptchaParams, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, V3CaptchaParams): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /tb_rest_client/models/models_pe/web_self_registration_params.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | ThingsBoard REST API 5 | 6 | ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 7 | 8 | OpenAPI spec version: 4.1.0PE 9 | Contact: info@thingsboard.io 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | # Copyright 2025. ThingsBoard 14 | # 15 | # Licensed under the Apache License, Version 2.0 (the "License"); 16 | # you may not use this file except in compliance with the License. 17 | # You may obtain a copy of the License at 18 | # 19 | # http://www.apache.org/licenses/LICENSE-2.0 20 | # 21 | # Unless required by applicable law or agreed to in writing, software 22 | # distributed under the License is distributed on an "AS IS" BASIS, 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 | # See the License for the specific language governing permissions and 25 | # limitations under the License. 26 | 27 | import pprint 28 | import re # noqa: F401 29 | 30 | import six 31 | 32 | class WebSelfRegistrationParams(object): 33 | """NOTE: This class is auto generated by the swagger code generator program. 34 | 35 | Do not edit the class manually. 36 | """ 37 | """ 38 | Attributes: 39 | swagger_types (dict): The key is attribute name 40 | and the value is attribute type. 41 | attribute_map (dict): The key is attribute name 42 | and the value is json key in definition. 43 | """ 44 | swagger_types = { 45 | } 46 | 47 | attribute_map = { 48 | } 49 | 50 | def __init__(self): # noqa: E501 51 | """WebSelfRegistrationParams - a model defined in Swagger""" # noqa: E501 52 | self.discriminator = None 53 | 54 | def to_dict(self): 55 | """Returns the model properties as a dict""" 56 | result = {} 57 | 58 | for attr, _ in six.iteritems(self.swagger_types): 59 | value = getattr(self, attr) 60 | if isinstance(value, list): 61 | result[attr] = list(map( 62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 63 | value 64 | )) 65 | elif hasattr(value, "to_dict"): 66 | result[attr] = value.to_dict() 67 | elif isinstance(value, dict): 68 | result[attr] = dict(map( 69 | lambda item: (item[0], item[1].to_dict()) 70 | if hasattr(item[1], "to_dict") else item, 71 | value.items() 72 | )) 73 | else: 74 | result[attr] = value 75 | if issubclass(WebSelfRegistrationParams, dict): 76 | for key, value in self.items(): 77 | result[key] = value 78 | 79 | return result 80 | 81 | def to_str(self): 82 | """Returns the string representation of the model""" 83 | return pprint.pformat(self.to_dict()) 84 | 85 | def __repr__(self): 86 | """For `print` and `pprint`""" 87 | return self.to_str() 88 | 89 | def __eq__(self, other): 90 | """Returns true if both objects are equal""" 91 | if not isinstance(other, WebSelfRegistrationParams): 92 | return False 93 | 94 | return self.__dict__ == other.__dict__ 95 | 96 | def __ne__(self, other): 97 | """Returns true if both objects are not equal""" 98 | return not self == other 99 | -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | -------------------------------------------------------------------------------- /test/data/images/task_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thingsboard/thingsboard-python-rest-client/11cfa9f6bdc69b41159898b8cc211b2f3b49f369/test/data/images/task_done.png -------------------------------------------------------------------------------- /test/tests.py: -------------------------------------------------------------------------------- 1 | # Copyright 2025. ThingsBoard 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | import unittest 16 | 17 | 18 | if __name__ == '__main__': 19 | unittest.main(module='tests_pe') 20 | unittest.main(module='tests_ce') 21 | --------------------------------------------------------------------------------