huaweicloudsdkiotanalytics 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkiotanalytics/__init__.py +0 -0
- huaweicloudsdkiotanalytics/v1/__init__.py +269 -0
- huaweicloudsdkiotanalytics/v1/iotanalytics_async_client.py +4553 -0
- huaweicloudsdkiotanalytics/v1/iotanalytics_client.py +4550 -0
- huaweicloudsdkiotanalytics/v1/model/__init__.py +266 -0
- huaweicloudsdkiotanalytics/v1/model/add_dev_data_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/add_dev_data_response.py +112 -0
- huaweicloudsdkiotanalytics/v1/model/add_pipeline_job_request.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/add_pipeline_job_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/aggregate_metric.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/aggregate_metrics.py +253 -0
- huaweicloudsdkiotanalytics/v1/model/aggregate_metrics_request.py +283 -0
- huaweicloudsdkiotanalytics/v1/model/aggregate_model.py +220 -0
- huaweicloudsdkiotanalytics/v1/model/aggregate_response.py +219 -0
- huaweicloudsdkiotanalytics/v1/model/analysis_model_request.py +246 -0
- huaweicloudsdkiotanalytics/v1/model/analysis_model_response.py +275 -0
- huaweicloudsdkiotanalytics/v1/model/analysis_request.py +189 -0
- huaweicloudsdkiotanalytics/v1/model/analysis_response.py +277 -0
- huaweicloudsdkiotanalytics/v1/model/api_content_req.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/api_content_rsp.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/asset_add_request.py +258 -0
- huaweicloudsdkiotanalytics/v1/model/asset_mod_request.py +231 -0
- huaweicloudsdkiotanalytics/v1/model/asset_model_add_request.py +201 -0
- huaweicloudsdkiotanalytics/v1/model/asset_model_mod_request.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/asset_model_response.py +289 -0
- huaweicloudsdkiotanalytics/v1/model/asset_property_last_value.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/asset_response.py +521 -0
- huaweicloudsdkiotanalytics/v1/model/column.py +200 -0
- huaweicloudsdkiotanalytics/v1/model/computing_resource.py +347 -0
- huaweicloudsdkiotanalytics/v1/model/content_detail_req.py +361 -0
- huaweicloudsdkiotanalytics/v1/model/content_detail_rsp.py +361 -0
- huaweicloudsdkiotanalytics/v1/model/create_asset_model_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_asset_model_response.py +290 -0
- huaweicloudsdkiotanalytics/v1/model/create_asset_new_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_asset_new_response.py +522 -0
- huaweicloudsdkiotanalytics/v1/model/create_batch_job_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_batch_job_response.py +369 -0
- huaweicloudsdkiotanalytics/v1/model/create_computing_resource_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_computing_resource_request_body.py +229 -0
- huaweicloudsdkiotanalytics/v1/model/create_computing_resource_response.py +290 -0
- huaweicloudsdkiotanalytics/v1/model/create_datasource_req_dto.py +166 -0
- huaweicloudsdkiotanalytics/v1/model/create_datasource_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_datasource_response.py +257 -0
- huaweicloudsdkiotanalytics/v1/model/create_group_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_group_response.py +406 -0
- huaweicloudsdkiotanalytics/v1/model/create_run_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/create_run_request_body.py +143 -0
- huaweicloudsdkiotanalytics/v1/model/create_run_response.py +228 -0
- huaweicloudsdkiotanalytics/v1/model/create_streaming_job_request.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/create_streaming_job_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/create_table_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/create_table_request_body.py +489 -0
- huaweicloudsdkiotanalytics/v1/model/create_table_response.py +464 -0
- huaweicloudsdkiotanalytics/v1/model/data_schema.py +230 -0
- huaweicloudsdkiotanalytics/v1/model/data_store_dto.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/datasource_rest_dto.py +256 -0
- huaweicloudsdkiotanalytics/v1/model/dcs_content_req.py +226 -0
- huaweicloudsdkiotanalytics/v1/model/dcs_content_rsp.py +260 -0
- huaweicloudsdkiotanalytics/v1/model/delete_asset_model_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_asset_model_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/delete_asset_new_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_asset_new_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/delete_batch_job_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_batch_job_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/delete_computing_resource_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_computing_resource_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/delete_data_store_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_data_store_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/delete_datasource_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_datasource_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/delete_group_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_group_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/delete_pipeline_job_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_pipeline_job_response.py +112 -0
- huaweicloudsdkiotanalytics/v1/model/delete_run_request.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/delete_run_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/delete_streaming_job_by_id_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_streaming_job_by_id_response.py +112 -0
- huaweicloudsdkiotanalytics/v1/model/delete_table_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/delete_table_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/dis_content_req.py +198 -0
- huaweicloudsdkiotanalytics/v1/model/dis_content_rsp.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/dt_aggregate_metrics.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/dt_aggregate_request.py +140 -0
- huaweicloudsdkiotanalytics/v1/model/dt_schedule.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/dt_stream_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/dt_transform_metrics.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/dt_transform_request.py +140 -0
- huaweicloudsdkiotanalytics/v1/model/edge_content_req.py +143 -0
- huaweicloudsdkiotanalytics/v1/model/edge_content_rsp.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/edge_content_rule_req.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/edge_content_rule_rsp.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/export_dataset_request.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/export_dataset_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/expression.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/formula.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/function_graph_content_req.py +282 -0
- huaweicloudsdkiotanalytics/v1/model/function_graph_content_rsp.py +289 -0
- huaweicloudsdkiotanalytics/v1/model/get_data_store.py +318 -0
- huaweicloudsdkiotanalytics/v1/model/get_group.py +405 -0
- huaweicloudsdkiotanalytics/v1/model/get_history_request.py +195 -0
- huaweicloudsdkiotanalytics/v1/model/get_metrics_request.py +164 -0
- huaweicloudsdkiotanalytics/v1/model/get_metrics_value.py +164 -0
- huaweicloudsdkiotanalytics/v1/model/get_property_request.py +143 -0
- huaweicloudsdkiotanalytics/v1/model/history_values.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/import_data_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/import_data_request_body.py +401 -0
- huaweicloudsdkiotanalytics/v1/model/import_data_response.py +174 -0
- huaweicloudsdkiotanalytics/v1/model/input_model.py +138 -0
- huaweicloudsdkiotanalytics/v1/model/input_param.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/input_request.py +138 -0
- huaweicloudsdkiotanalytics/v1/model/input_response.py +140 -0
- huaweicloudsdkiotanalytics/v1/model/iotda_content_req.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/iotda_content_rsp.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/iotda_content_rule_req.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/iotda_content_rule_rsp.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/iotda_rule_action.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/job.py +366 -0
- huaweicloudsdkiotanalytics/v1/model/kafka_auth_info.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/kafka_broker_info.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/kafka_content_req.py +226 -0
- huaweicloudsdkiotanalytics/v1/model/kafka_content_rsp.py +227 -0
- huaweicloudsdkiotanalytics/v1/model/key_value.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/last_asset_property_value_request.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/list_asset_models_request.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/list_asset_models_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_assets_new_request.py +201 -0
- huaweicloudsdkiotanalytics/v1/model/list_assets_new_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_batch_jobs_request.py +289 -0
- huaweicloudsdkiotanalytics/v1/model/list_batch_jobs_response.py +141 -0
- huaweicloudsdkiotanalytics/v1/model/list_computing_resources_request.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/list_computing_resources_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_data_stores_request.py +231 -0
- huaweicloudsdkiotanalytics/v1/model/list_data_stores_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_groups_request.py +260 -0
- huaweicloudsdkiotanalytics/v1/model/list_groups_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_history_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/list_history_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_metrics_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/list_metrics_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_pipeline_jobs_request.py +318 -0
- huaweicloudsdkiotanalytics/v1/model/list_pipeline_jobs_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_runs_request.py +405 -0
- huaweicloudsdkiotanalytics/v1/model/list_runs_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_tables_request.py +260 -0
- huaweicloudsdkiotanalytics/v1/model/list_tables_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/list_tag_values_request.py +229 -0
- huaweicloudsdkiotanalytics/v1/model/list_tag_values_response.py +174 -0
- huaweicloudsdkiotanalytics/v1/model/metric.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/metric_input.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/metric_list.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/metric_value.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/model_arts_content_req.py +254 -0
- huaweicloudsdkiotanalytics/v1/model/model_arts_content_rsp.py +260 -0
- huaweicloudsdkiotanalytics/v1/model/model_property.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/named_formula.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/node_content_req.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/node_content_rsp.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/obs_content_req.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/obs_content_rsp.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/output_request.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/output_response.py +230 -0
- huaweicloudsdkiotanalytics/v1/model/output_with_model.py +200 -0
- huaweicloudsdkiotanalytics/v1/model/pipeline_job_info_dto.py +463 -0
- huaweicloudsdkiotanalytics/v1/model/property_filter.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/property_model_request.py +282 -0
- huaweicloudsdkiotanalytics/v1/model/property_model_response.py +311 -0
- huaweicloudsdkiotanalytics/v1/model/property_reference_model.py +200 -0
- huaweicloudsdkiotanalytics/v1/model/property_reference_req.py +115 -0
- huaweicloudsdkiotanalytics/v1/model/property_reference_response.py +229 -0
- huaweicloudsdkiotanalytics/v1/model/property_request.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/property_response.py +340 -0
- huaweicloudsdkiotanalytics/v1/model/property_value.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/publish_root_asset_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/publish_root_asset_response.py +85 -0
- huaweicloudsdkiotanalytics/v1/model/raw_request.py +226 -0
- huaweicloudsdkiotanalytics/v1/model/raw_value.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/run.py +366 -0
- huaweicloudsdkiotanalytics/v1/model/run_detail.py +168 -0
- huaweicloudsdkiotanalytics/v1/model/sasl_plain_auth_info.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/schedule.py +342 -0
- huaweicloudsdkiotanalytics/v1/model/show_all_data_source_request.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/show_all_data_source_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/show_asset_model_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_asset_model_response.py +290 -0
- huaweicloudsdkiotanalytics/v1/model/show_asset_new_request.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/show_asset_new_response.py +522 -0
- huaweicloudsdkiotanalytics/v1/model/show_batch_job_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_batch_job_response.py +369 -0
- huaweicloudsdkiotanalytics/v1/model/show_data_source_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_data_source_response.py +257 -0
- huaweicloudsdkiotanalytics/v1/model/show_dataset_request.py +200 -0
- huaweicloudsdkiotanalytics/v1/model/show_dataset_response.py +199 -0
- huaweicloudsdkiotanalytics/v1/model/show_job_by_id_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_job_by_id_response.py +141 -0
- huaweicloudsdkiotanalytics/v1/model/show_jobs_request.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/show_jobs_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/show_last_property_value_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/show_last_property_value_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/show_metric_value_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/show_metric_value_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/show_pipeline_job_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_pipeline_job_response.py +141 -0
- huaweicloudsdkiotanalytics/v1/model/show_property_raw_value_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/show_property_raw_value_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/show_property_values_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/show_property_values_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/show_run_request.py +171 -0
- huaweicloudsdkiotanalytics/v1/model/show_run_response.py +290 -0
- huaweicloudsdkiotanalytics/v1/model/show_table_preview_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_table_preview_response.py +145 -0
- huaweicloudsdkiotanalytics/v1/model/show_table_schema_request.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/show_table_schema_response.py +373 -0
- huaweicloudsdkiotanalytics/v1/model/smn_content_req.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/smn_content_rsp.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/sql_job.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/sql_job_query_dataset.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/sql_job_run.py +114 -0
- huaweicloudsdkiotanalytics/v1/model/sql_job_run_detail.py +434 -0
- huaweicloudsdkiotanalytics/v1/model/sql_job_run_response_body.py +201 -0
- huaweicloudsdkiotanalytics/v1/model/start_job_request.py +201 -0
- huaweicloudsdkiotanalytics/v1/model/start_job_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/start_pipeline_job_request.py +201 -0
- huaweicloudsdkiotanalytics/v1/model/start_pipeline_job_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/stop_job_request.py +143 -0
- huaweicloudsdkiotanalytics/v1/model/stop_job_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/stop_pipeline_job_request.py +143 -0
- huaweicloudsdkiotanalytics/v1/model/stop_pipeline_job_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/storage_group.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/stream_model.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/stream_output.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/stream_response.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/streaming_job_info_dto.py +405 -0
- huaweicloudsdkiotanalytics/v1/model/table.py +463 -0
- huaweicloudsdkiotanalytics/v1/model/tag.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/tag_info_dto.py +173 -0
- huaweicloudsdkiotanalytics/v1/model/time_span.py +142 -0
- huaweicloudsdkiotanalytics/v1/model/time_span_dt.py +144 -0
- huaweicloudsdkiotanalytics/v1/model/transform_metric.py +170 -0
- huaweicloudsdkiotanalytics/v1/model/transform_metrics.py +195 -0
- huaweicloudsdkiotanalytics/v1/model/transform_metrics_request.py +226 -0
- huaweicloudsdkiotanalytics/v1/model/transform_model.py +196 -0
- huaweicloudsdkiotanalytics/v1/model/transform_response.py +194 -0
- huaweicloudsdkiotanalytics/v1/model/update_asset_model_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_asset_model_response.py +290 -0
- huaweicloudsdkiotanalytics/v1/model/update_asset_new_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_asset_new_response.py +522 -0
- huaweicloudsdkiotanalytics/v1/model/update_batch_job_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_batch_job_response.py +369 -0
- huaweicloudsdkiotanalytics/v1/model/update_data_source_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_data_source_response.py +257 -0
- huaweicloudsdkiotanalytics/v1/model/update_data_store.py +202 -0
- huaweicloudsdkiotanalytics/v1/model/update_data_store_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_data_store_response.py +319 -0
- huaweicloudsdkiotanalytics/v1/model/update_datasource_req_dto.py +167 -0
- huaweicloudsdkiotanalytics/v1/model/update_group_request.py +139 -0
- huaweicloudsdkiotanalytics/v1/model/update_group_response.py +406 -0
- huaweicloudsdkiotanalytics/v1/model/update_pipeline_job_request.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/update_pipeline_job_response.py +203 -0
- huaweicloudsdkiotanalytics/v1/model/update_streaming_job_request.py +172 -0
- huaweicloudsdkiotanalytics/v1/model/update_streaming_job_response.py +203 -0
- huaweicloudsdkiotanalytics/v1/model/validate_sql_request.py +111 -0
- huaweicloudsdkiotanalytics/v1/model/validate_sql_request_body.py +115 -0
- huaweicloudsdkiotanalytics/v1/model/validate_sql_response.py +116 -0
- huaweicloudsdkiotanalytics/v1/model/vpcep_info.py +198 -0
- huaweicloudsdkiotanalytics/v1/model/vpcep_info_rsp.py +227 -0
- huaweicloudsdkiotanalytics/v1/region/__init__.py +0 -0
- huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py +31 -0
- huaweicloudsdkiotanalytics-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkiotanalytics-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkiotanalytics-3.1.160.dist-info/RECORD +273 -0
- huaweicloudsdkiotanalytics-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkiotanalytics-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AssetModelModRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'display_name': 'str',
|
21
|
+
'properties': 'list[PropertyModelRequest]',
|
22
|
+
'analyses': 'list[AnalysisModelRequest]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'display_name': 'display_name',
|
27
|
+
'properties': 'properties',
|
28
|
+
'analyses': 'analyses'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, display_name=None, properties=None, analyses=None):
|
32
|
+
r"""AssetModelModRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param display_name: 模型显示名称,正则:\"^[\\\\u4E00-\\\\u9FA5A-Za-z0-9_@#.-]{1,64}$\"
|
37
|
+
:type display_name: str
|
38
|
+
:param properties: 属性集,最多200个
|
39
|
+
:type properties: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelRequest`]
|
40
|
+
:param analyses: 分析任务集,最多50个
|
41
|
+
:type analyses: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelRequest`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._display_name = None
|
47
|
+
self._properties = None
|
48
|
+
self._analyses = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if display_name is not None:
|
52
|
+
self.display_name = display_name
|
53
|
+
if properties is not None:
|
54
|
+
self.properties = properties
|
55
|
+
if analyses is not None:
|
56
|
+
self.analyses = analyses
|
57
|
+
|
58
|
+
@property
|
59
|
+
def display_name(self):
|
60
|
+
r"""Gets the display_name of this AssetModelModRequest.
|
61
|
+
|
62
|
+
模型显示名称,正则:\"^[\\\\u4E00-\\\\u9FA5A-Za-z0-9_@#.-]{1,64}$\"
|
63
|
+
|
64
|
+
:return: The display_name of this AssetModelModRequest.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._display_name
|
68
|
+
|
69
|
+
@display_name.setter
|
70
|
+
def display_name(self, display_name):
|
71
|
+
r"""Sets the display_name of this AssetModelModRequest.
|
72
|
+
|
73
|
+
模型显示名称,正则:\"^[\\\\u4E00-\\\\u9FA5A-Za-z0-9_@#.-]{1,64}$\"
|
74
|
+
|
75
|
+
:param display_name: The display_name of this AssetModelModRequest.
|
76
|
+
:type display_name: str
|
77
|
+
"""
|
78
|
+
self._display_name = display_name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def properties(self):
|
82
|
+
r"""Gets the properties of this AssetModelModRequest.
|
83
|
+
|
84
|
+
属性集,最多200个
|
85
|
+
|
86
|
+
:return: The properties of this AssetModelModRequest.
|
87
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelRequest`]
|
88
|
+
"""
|
89
|
+
return self._properties
|
90
|
+
|
91
|
+
@properties.setter
|
92
|
+
def properties(self, properties):
|
93
|
+
r"""Sets the properties of this AssetModelModRequest.
|
94
|
+
|
95
|
+
属性集,最多200个
|
96
|
+
|
97
|
+
:param properties: The properties of this AssetModelModRequest.
|
98
|
+
:type properties: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelRequest`]
|
99
|
+
"""
|
100
|
+
self._properties = properties
|
101
|
+
|
102
|
+
@property
|
103
|
+
def analyses(self):
|
104
|
+
r"""Gets the analyses of this AssetModelModRequest.
|
105
|
+
|
106
|
+
分析任务集,最多50个
|
107
|
+
|
108
|
+
:return: The analyses of this AssetModelModRequest.
|
109
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelRequest`]
|
110
|
+
"""
|
111
|
+
return self._analyses
|
112
|
+
|
113
|
+
@analyses.setter
|
114
|
+
def analyses(self, analyses):
|
115
|
+
r"""Sets the analyses of this AssetModelModRequest.
|
116
|
+
|
117
|
+
分析任务集,最多50个
|
118
|
+
|
119
|
+
:param analyses: The analyses of this AssetModelModRequest.
|
120
|
+
:type analyses: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelRequest`]
|
121
|
+
"""
|
122
|
+
self._analyses = analyses
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, AssetModelModRequest):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AssetModelResponse:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'asset_model_id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'display_name': 'str',
|
23
|
+
'properties': 'list[PropertyModelResponse]',
|
24
|
+
'analyses': 'list[AnalysisModelResponse]',
|
25
|
+
'created_time': 'str',
|
26
|
+
'modified_time': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'asset_model_id': 'asset_model_id',
|
31
|
+
'name': 'name',
|
32
|
+
'display_name': 'display_name',
|
33
|
+
'properties': 'properties',
|
34
|
+
'analyses': 'analyses',
|
35
|
+
'created_time': 'created_time',
|
36
|
+
'modified_time': 'modified_time'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, asset_model_id=None, name=None, display_name=None, properties=None, analyses=None, created_time=None, modified_time=None):
|
40
|
+
r"""AssetModelResponse
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param asset_model_id: 模型ID
|
45
|
+
:type asset_model_id: str
|
46
|
+
:param name: 模型名称
|
47
|
+
:type name: str
|
48
|
+
:param display_name: 模型显示名称
|
49
|
+
:type display_name: str
|
50
|
+
:param properties: 属性集
|
51
|
+
:type properties: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelResponse`]
|
52
|
+
:param analyses: 分析任务集
|
53
|
+
:type analyses: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelResponse`]
|
54
|
+
:param created_time: 创建时间
|
55
|
+
:type created_time: str
|
56
|
+
:param modified_time: 修改时间
|
57
|
+
:type modified_time: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._asset_model_id = None
|
63
|
+
self._name = None
|
64
|
+
self._display_name = None
|
65
|
+
self._properties = None
|
66
|
+
self._analyses = None
|
67
|
+
self._created_time = None
|
68
|
+
self._modified_time = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if asset_model_id is not None:
|
72
|
+
self.asset_model_id = asset_model_id
|
73
|
+
if name is not None:
|
74
|
+
self.name = name
|
75
|
+
if display_name is not None:
|
76
|
+
self.display_name = display_name
|
77
|
+
if properties is not None:
|
78
|
+
self.properties = properties
|
79
|
+
if analyses is not None:
|
80
|
+
self.analyses = analyses
|
81
|
+
if created_time is not None:
|
82
|
+
self.created_time = created_time
|
83
|
+
if modified_time is not None:
|
84
|
+
self.modified_time = modified_time
|
85
|
+
|
86
|
+
@property
|
87
|
+
def asset_model_id(self):
|
88
|
+
r"""Gets the asset_model_id of this AssetModelResponse.
|
89
|
+
|
90
|
+
模型ID
|
91
|
+
|
92
|
+
:return: The asset_model_id of this AssetModelResponse.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._asset_model_id
|
96
|
+
|
97
|
+
@asset_model_id.setter
|
98
|
+
def asset_model_id(self, asset_model_id):
|
99
|
+
r"""Sets the asset_model_id of this AssetModelResponse.
|
100
|
+
|
101
|
+
模型ID
|
102
|
+
|
103
|
+
:param asset_model_id: The asset_model_id of this AssetModelResponse.
|
104
|
+
:type asset_model_id: str
|
105
|
+
"""
|
106
|
+
self._asset_model_id = asset_model_id
|
107
|
+
|
108
|
+
@property
|
109
|
+
def name(self):
|
110
|
+
r"""Gets the name of this AssetModelResponse.
|
111
|
+
|
112
|
+
模型名称
|
113
|
+
|
114
|
+
:return: The name of this AssetModelResponse.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._name
|
118
|
+
|
119
|
+
@name.setter
|
120
|
+
def name(self, name):
|
121
|
+
r"""Sets the name of this AssetModelResponse.
|
122
|
+
|
123
|
+
模型名称
|
124
|
+
|
125
|
+
:param name: The name of this AssetModelResponse.
|
126
|
+
:type name: str
|
127
|
+
"""
|
128
|
+
self._name = name
|
129
|
+
|
130
|
+
@property
|
131
|
+
def display_name(self):
|
132
|
+
r"""Gets the display_name of this AssetModelResponse.
|
133
|
+
|
134
|
+
模型显示名称
|
135
|
+
|
136
|
+
:return: The display_name of this AssetModelResponse.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._display_name
|
140
|
+
|
141
|
+
@display_name.setter
|
142
|
+
def display_name(self, display_name):
|
143
|
+
r"""Sets the display_name of this AssetModelResponse.
|
144
|
+
|
145
|
+
模型显示名称
|
146
|
+
|
147
|
+
:param display_name: The display_name of this AssetModelResponse.
|
148
|
+
:type display_name: str
|
149
|
+
"""
|
150
|
+
self._display_name = display_name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def properties(self):
|
154
|
+
r"""Gets the properties of this AssetModelResponse.
|
155
|
+
|
156
|
+
属性集
|
157
|
+
|
158
|
+
:return: The properties of this AssetModelResponse.
|
159
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelResponse`]
|
160
|
+
"""
|
161
|
+
return self._properties
|
162
|
+
|
163
|
+
@properties.setter
|
164
|
+
def properties(self, properties):
|
165
|
+
r"""Sets the properties of this AssetModelResponse.
|
166
|
+
|
167
|
+
属性集
|
168
|
+
|
169
|
+
:param properties: The properties of this AssetModelResponse.
|
170
|
+
:type properties: list[:class:`huaweicloudsdkiotanalytics.v1.PropertyModelResponse`]
|
171
|
+
"""
|
172
|
+
self._properties = properties
|
173
|
+
|
174
|
+
@property
|
175
|
+
def analyses(self):
|
176
|
+
r"""Gets the analyses of this AssetModelResponse.
|
177
|
+
|
178
|
+
分析任务集
|
179
|
+
|
180
|
+
:return: The analyses of this AssetModelResponse.
|
181
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelResponse`]
|
182
|
+
"""
|
183
|
+
return self._analyses
|
184
|
+
|
185
|
+
@analyses.setter
|
186
|
+
def analyses(self, analyses):
|
187
|
+
r"""Sets the analyses of this AssetModelResponse.
|
188
|
+
|
189
|
+
分析任务集
|
190
|
+
|
191
|
+
:param analyses: The analyses of this AssetModelResponse.
|
192
|
+
:type analyses: list[:class:`huaweicloudsdkiotanalytics.v1.AnalysisModelResponse`]
|
193
|
+
"""
|
194
|
+
self._analyses = analyses
|
195
|
+
|
196
|
+
@property
|
197
|
+
def created_time(self):
|
198
|
+
r"""Gets the created_time of this AssetModelResponse.
|
199
|
+
|
200
|
+
创建时间
|
201
|
+
|
202
|
+
:return: The created_time of this AssetModelResponse.
|
203
|
+
:rtype: str
|
204
|
+
"""
|
205
|
+
return self._created_time
|
206
|
+
|
207
|
+
@created_time.setter
|
208
|
+
def created_time(self, created_time):
|
209
|
+
r"""Sets the created_time of this AssetModelResponse.
|
210
|
+
|
211
|
+
创建时间
|
212
|
+
|
213
|
+
:param created_time: The created_time of this AssetModelResponse.
|
214
|
+
:type created_time: str
|
215
|
+
"""
|
216
|
+
self._created_time = created_time
|
217
|
+
|
218
|
+
@property
|
219
|
+
def modified_time(self):
|
220
|
+
r"""Gets the modified_time of this AssetModelResponse.
|
221
|
+
|
222
|
+
修改时间
|
223
|
+
|
224
|
+
:return: The modified_time of this AssetModelResponse.
|
225
|
+
:rtype: str
|
226
|
+
"""
|
227
|
+
return self._modified_time
|
228
|
+
|
229
|
+
@modified_time.setter
|
230
|
+
def modified_time(self, modified_time):
|
231
|
+
r"""Sets the modified_time of this AssetModelResponse.
|
232
|
+
|
233
|
+
修改时间
|
234
|
+
|
235
|
+
:param modified_time: The modified_time of this AssetModelResponse.
|
236
|
+
:type modified_time: str
|
237
|
+
"""
|
238
|
+
self._modified_time = modified_time
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, AssetModelResponse):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AssetPropertyLastValue:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'property_name': 'str',
|
21
|
+
'value': 'object',
|
22
|
+
'timestamp': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'property_name': 'property_name',
|
27
|
+
'value': 'value',
|
28
|
+
'timestamp': 'timestamp'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, property_name=None, value=None, timestamp=None):
|
32
|
+
r"""AssetPropertyLastValue
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param property_name: 资产属性名称
|
37
|
+
:type property_name: str
|
38
|
+
:param value: 资产属性值
|
39
|
+
:type value: object
|
40
|
+
:param timestamp: 资产属性值最后更新时间
|
41
|
+
:type timestamp: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._property_name = None
|
47
|
+
self._value = None
|
48
|
+
self._timestamp = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if property_name is not None:
|
52
|
+
self.property_name = property_name
|
53
|
+
if value is not None:
|
54
|
+
self.value = value
|
55
|
+
if timestamp is not None:
|
56
|
+
self.timestamp = timestamp
|
57
|
+
|
58
|
+
@property
|
59
|
+
def property_name(self):
|
60
|
+
r"""Gets the property_name of this AssetPropertyLastValue.
|
61
|
+
|
62
|
+
资产属性名称
|
63
|
+
|
64
|
+
:return: The property_name of this AssetPropertyLastValue.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._property_name
|
68
|
+
|
69
|
+
@property_name.setter
|
70
|
+
def property_name(self, property_name):
|
71
|
+
r"""Sets the property_name of this AssetPropertyLastValue.
|
72
|
+
|
73
|
+
资产属性名称
|
74
|
+
|
75
|
+
:param property_name: The property_name of this AssetPropertyLastValue.
|
76
|
+
:type property_name: str
|
77
|
+
"""
|
78
|
+
self._property_name = property_name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def value(self):
|
82
|
+
r"""Gets the value of this AssetPropertyLastValue.
|
83
|
+
|
84
|
+
资产属性值
|
85
|
+
|
86
|
+
:return: The value of this AssetPropertyLastValue.
|
87
|
+
:rtype: object
|
88
|
+
"""
|
89
|
+
return self._value
|
90
|
+
|
91
|
+
@value.setter
|
92
|
+
def value(self, value):
|
93
|
+
r"""Sets the value of this AssetPropertyLastValue.
|
94
|
+
|
95
|
+
资产属性值
|
96
|
+
|
97
|
+
:param value: The value of this AssetPropertyLastValue.
|
98
|
+
:type value: object
|
99
|
+
"""
|
100
|
+
self._value = value
|
101
|
+
|
102
|
+
@property
|
103
|
+
def timestamp(self):
|
104
|
+
r"""Gets the timestamp of this AssetPropertyLastValue.
|
105
|
+
|
106
|
+
资产属性值最后更新时间
|
107
|
+
|
108
|
+
:return: The timestamp of this AssetPropertyLastValue.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._timestamp
|
112
|
+
|
113
|
+
@timestamp.setter
|
114
|
+
def timestamp(self, timestamp):
|
115
|
+
r"""Sets the timestamp of this AssetPropertyLastValue.
|
116
|
+
|
117
|
+
资产属性值最后更新时间
|
118
|
+
|
119
|
+
:param timestamp: The timestamp of this AssetPropertyLastValue.
|
120
|
+
:type timestamp: str
|
121
|
+
"""
|
122
|
+
self._timestamp = timestamp
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, AssetPropertyLastValue):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|