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,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowTablePreviewResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'schema': 'list[object]',
|
22
|
+
'rows': 'list[object]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'schema': 'schema',
|
27
|
+
'rows': 'rows'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, schema=None, rows=None):
|
31
|
+
r"""ShowTablePreviewResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param schema: 表的列名称和类型。
|
36
|
+
:type schema: list[object]
|
37
|
+
:param rows: 预览的表内容。
|
38
|
+
:type rows: list[object]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowTablePreviewResponse, self).__init__()
|
42
|
+
|
43
|
+
self._schema = None
|
44
|
+
self._rows = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if schema is not None:
|
48
|
+
self.schema = schema
|
49
|
+
if rows is not None:
|
50
|
+
self.rows = rows
|
51
|
+
|
52
|
+
@property
|
53
|
+
def schema(self):
|
54
|
+
r"""Gets the schema of this ShowTablePreviewResponse.
|
55
|
+
|
56
|
+
表的列名称和类型。
|
57
|
+
|
58
|
+
:return: The schema of this ShowTablePreviewResponse.
|
59
|
+
:rtype: list[object]
|
60
|
+
"""
|
61
|
+
return self._schema
|
62
|
+
|
63
|
+
@schema.setter
|
64
|
+
def schema(self, schema):
|
65
|
+
r"""Sets the schema of this ShowTablePreviewResponse.
|
66
|
+
|
67
|
+
表的列名称和类型。
|
68
|
+
|
69
|
+
:param schema: The schema of this ShowTablePreviewResponse.
|
70
|
+
:type schema: list[object]
|
71
|
+
"""
|
72
|
+
self._schema = schema
|
73
|
+
|
74
|
+
@property
|
75
|
+
def rows(self):
|
76
|
+
r"""Gets the rows of this ShowTablePreviewResponse.
|
77
|
+
|
78
|
+
预览的表内容。
|
79
|
+
|
80
|
+
:return: The rows of this ShowTablePreviewResponse.
|
81
|
+
:rtype: list[object]
|
82
|
+
"""
|
83
|
+
return self._rows
|
84
|
+
|
85
|
+
@rows.setter
|
86
|
+
def rows(self, rows):
|
87
|
+
r"""Sets the rows of this ShowTablePreviewResponse.
|
88
|
+
|
89
|
+
预览的表内容。
|
90
|
+
|
91
|
+
:param rows: The rows of this ShowTablePreviewResponse.
|
92
|
+
:type rows: list[object]
|
93
|
+
"""
|
94
|
+
self._rows = rows
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowTablePreviewResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowTableSchemaRequest:
|
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
|
+
'table_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'table_id': 'table_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, table_id=None):
|
28
|
+
r"""ShowTableSchemaRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param table_id: 表ID。
|
33
|
+
:type table_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._table_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.table_id = table_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def table_id(self):
|
45
|
+
r"""Gets the table_id of this ShowTableSchemaRequest.
|
46
|
+
|
47
|
+
表ID。
|
48
|
+
|
49
|
+
:return: The table_id of this ShowTableSchemaRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._table_id
|
53
|
+
|
54
|
+
@table_id.setter
|
55
|
+
def table_id(self, table_id):
|
56
|
+
r"""Sets the table_id of this ShowTableSchemaRequest.
|
57
|
+
|
58
|
+
表ID。
|
59
|
+
|
60
|
+
:param table_id: The table_id of this ShowTableSchemaRequest.
|
61
|
+
:type table_id: str
|
62
|
+
"""
|
63
|
+
self._table_id = table_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ShowTableSchemaRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,373 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowTableSchemaResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'table_id': 'str',
|
22
|
+
'table_name': 'str',
|
23
|
+
'table_alias': 'str',
|
24
|
+
'tags': 'str',
|
25
|
+
'column_count': 'int',
|
26
|
+
'columns': 'list[Column]',
|
27
|
+
'table_type': 'str',
|
28
|
+
'data_type': 'str',
|
29
|
+
'data_location': 'str',
|
30
|
+
'storage_properties': 'list[KeyValue]'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'table_id': 'table_id',
|
35
|
+
'table_name': 'table_name',
|
36
|
+
'table_alias': 'table_alias',
|
37
|
+
'tags': 'tags',
|
38
|
+
'column_count': 'column_count',
|
39
|
+
'columns': 'columns',
|
40
|
+
'table_type': 'table_type',
|
41
|
+
'data_type': 'data_type',
|
42
|
+
'data_location': 'data_location',
|
43
|
+
'storage_properties': 'storage_properties'
|
44
|
+
}
|
45
|
+
|
46
|
+
def __init__(self, table_id=None, table_name=None, table_alias=None, tags=None, column_count=None, columns=None, table_type=None, data_type=None, data_location=None, storage_properties=None):
|
47
|
+
r"""ShowTableSchemaResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param table_id: 表ID。
|
52
|
+
:type table_id: str
|
53
|
+
:param table_name: 表名。
|
54
|
+
:type table_name: str
|
55
|
+
:param table_alias: 表别名。
|
56
|
+
:type table_alias: str
|
57
|
+
:param tags: 标签。
|
58
|
+
:type tags: str
|
59
|
+
:param column_count: 表的总列数。
|
60
|
+
:type column_count: int
|
61
|
+
:param columns: 表的列信息,包含列名称、类型和描述信息。
|
62
|
+
:type columns: list[:class:`huaweicloudsdkiotanalytics.v1.Column`]
|
63
|
+
:param table_type: 表类型,包括“MANAGED”,“EXTERNAL”和“VIEW”。
|
64
|
+
:type table_type: str
|
65
|
+
:param data_type: 数据类型,包括“csv”,“parquet”。
|
66
|
+
:type data_type: str
|
67
|
+
:param data_location: 数据存储的路径,以“s3a”开头。
|
68
|
+
:type data_location: str
|
69
|
+
:param storage_properties:
|
70
|
+
:type storage_properties: list[:class:`huaweicloudsdkiotanalytics.v1.KeyValue`]
|
71
|
+
"""
|
72
|
+
|
73
|
+
super(ShowTableSchemaResponse, self).__init__()
|
74
|
+
|
75
|
+
self._table_id = None
|
76
|
+
self._table_name = None
|
77
|
+
self._table_alias = None
|
78
|
+
self._tags = None
|
79
|
+
self._column_count = None
|
80
|
+
self._columns = None
|
81
|
+
self._table_type = None
|
82
|
+
self._data_type = None
|
83
|
+
self._data_location = None
|
84
|
+
self._storage_properties = None
|
85
|
+
self.discriminator = None
|
86
|
+
|
87
|
+
if table_id is not None:
|
88
|
+
self.table_id = table_id
|
89
|
+
if table_name is not None:
|
90
|
+
self.table_name = table_name
|
91
|
+
if table_alias is not None:
|
92
|
+
self.table_alias = table_alias
|
93
|
+
if tags is not None:
|
94
|
+
self.tags = tags
|
95
|
+
if column_count is not None:
|
96
|
+
self.column_count = column_count
|
97
|
+
if columns is not None:
|
98
|
+
self.columns = columns
|
99
|
+
if table_type is not None:
|
100
|
+
self.table_type = table_type
|
101
|
+
if data_type is not None:
|
102
|
+
self.data_type = data_type
|
103
|
+
if data_location is not None:
|
104
|
+
self.data_location = data_location
|
105
|
+
if storage_properties is not None:
|
106
|
+
self.storage_properties = storage_properties
|
107
|
+
|
108
|
+
@property
|
109
|
+
def table_id(self):
|
110
|
+
r"""Gets the table_id of this ShowTableSchemaResponse.
|
111
|
+
|
112
|
+
表ID。
|
113
|
+
|
114
|
+
:return: The table_id of this ShowTableSchemaResponse.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._table_id
|
118
|
+
|
119
|
+
@table_id.setter
|
120
|
+
def table_id(self, table_id):
|
121
|
+
r"""Sets the table_id of this ShowTableSchemaResponse.
|
122
|
+
|
123
|
+
表ID。
|
124
|
+
|
125
|
+
:param table_id: The table_id of this ShowTableSchemaResponse.
|
126
|
+
:type table_id: str
|
127
|
+
"""
|
128
|
+
self._table_id = table_id
|
129
|
+
|
130
|
+
@property
|
131
|
+
def table_name(self):
|
132
|
+
r"""Gets the table_name of this ShowTableSchemaResponse.
|
133
|
+
|
134
|
+
表名。
|
135
|
+
|
136
|
+
:return: The table_name of this ShowTableSchemaResponse.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._table_name
|
140
|
+
|
141
|
+
@table_name.setter
|
142
|
+
def table_name(self, table_name):
|
143
|
+
r"""Sets the table_name of this ShowTableSchemaResponse.
|
144
|
+
|
145
|
+
表名。
|
146
|
+
|
147
|
+
:param table_name: The table_name of this ShowTableSchemaResponse.
|
148
|
+
:type table_name: str
|
149
|
+
"""
|
150
|
+
self._table_name = table_name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def table_alias(self):
|
154
|
+
r"""Gets the table_alias of this ShowTableSchemaResponse.
|
155
|
+
|
156
|
+
表别名。
|
157
|
+
|
158
|
+
:return: The table_alias of this ShowTableSchemaResponse.
|
159
|
+
:rtype: str
|
160
|
+
"""
|
161
|
+
return self._table_alias
|
162
|
+
|
163
|
+
@table_alias.setter
|
164
|
+
def table_alias(self, table_alias):
|
165
|
+
r"""Sets the table_alias of this ShowTableSchemaResponse.
|
166
|
+
|
167
|
+
表别名。
|
168
|
+
|
169
|
+
:param table_alias: The table_alias of this ShowTableSchemaResponse.
|
170
|
+
:type table_alias: str
|
171
|
+
"""
|
172
|
+
self._table_alias = table_alias
|
173
|
+
|
174
|
+
@property
|
175
|
+
def tags(self):
|
176
|
+
r"""Gets the tags of this ShowTableSchemaResponse.
|
177
|
+
|
178
|
+
标签。
|
179
|
+
|
180
|
+
:return: The tags of this ShowTableSchemaResponse.
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._tags
|
184
|
+
|
185
|
+
@tags.setter
|
186
|
+
def tags(self, tags):
|
187
|
+
r"""Sets the tags of this ShowTableSchemaResponse.
|
188
|
+
|
189
|
+
标签。
|
190
|
+
|
191
|
+
:param tags: The tags of this ShowTableSchemaResponse.
|
192
|
+
:type tags: str
|
193
|
+
"""
|
194
|
+
self._tags = tags
|
195
|
+
|
196
|
+
@property
|
197
|
+
def column_count(self):
|
198
|
+
r"""Gets the column_count of this ShowTableSchemaResponse.
|
199
|
+
|
200
|
+
表的总列数。
|
201
|
+
|
202
|
+
:return: The column_count of this ShowTableSchemaResponse.
|
203
|
+
:rtype: int
|
204
|
+
"""
|
205
|
+
return self._column_count
|
206
|
+
|
207
|
+
@column_count.setter
|
208
|
+
def column_count(self, column_count):
|
209
|
+
r"""Sets the column_count of this ShowTableSchemaResponse.
|
210
|
+
|
211
|
+
表的总列数。
|
212
|
+
|
213
|
+
:param column_count: The column_count of this ShowTableSchemaResponse.
|
214
|
+
:type column_count: int
|
215
|
+
"""
|
216
|
+
self._column_count = column_count
|
217
|
+
|
218
|
+
@property
|
219
|
+
def columns(self):
|
220
|
+
r"""Gets the columns of this ShowTableSchemaResponse.
|
221
|
+
|
222
|
+
表的列信息,包含列名称、类型和描述信息。
|
223
|
+
|
224
|
+
:return: The columns of this ShowTableSchemaResponse.
|
225
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.Column`]
|
226
|
+
"""
|
227
|
+
return self._columns
|
228
|
+
|
229
|
+
@columns.setter
|
230
|
+
def columns(self, columns):
|
231
|
+
r"""Sets the columns of this ShowTableSchemaResponse.
|
232
|
+
|
233
|
+
表的列信息,包含列名称、类型和描述信息。
|
234
|
+
|
235
|
+
:param columns: The columns of this ShowTableSchemaResponse.
|
236
|
+
:type columns: list[:class:`huaweicloudsdkiotanalytics.v1.Column`]
|
237
|
+
"""
|
238
|
+
self._columns = columns
|
239
|
+
|
240
|
+
@property
|
241
|
+
def table_type(self):
|
242
|
+
r"""Gets the table_type of this ShowTableSchemaResponse.
|
243
|
+
|
244
|
+
表类型,包括“MANAGED”,“EXTERNAL”和“VIEW”。
|
245
|
+
|
246
|
+
:return: The table_type of this ShowTableSchemaResponse.
|
247
|
+
:rtype: str
|
248
|
+
"""
|
249
|
+
return self._table_type
|
250
|
+
|
251
|
+
@table_type.setter
|
252
|
+
def table_type(self, table_type):
|
253
|
+
r"""Sets the table_type of this ShowTableSchemaResponse.
|
254
|
+
|
255
|
+
表类型,包括“MANAGED”,“EXTERNAL”和“VIEW”。
|
256
|
+
|
257
|
+
:param table_type: The table_type of this ShowTableSchemaResponse.
|
258
|
+
:type table_type: str
|
259
|
+
"""
|
260
|
+
self._table_type = table_type
|
261
|
+
|
262
|
+
@property
|
263
|
+
def data_type(self):
|
264
|
+
r"""Gets the data_type of this ShowTableSchemaResponse.
|
265
|
+
|
266
|
+
数据类型,包括“csv”,“parquet”。
|
267
|
+
|
268
|
+
:return: The data_type of this ShowTableSchemaResponse.
|
269
|
+
:rtype: str
|
270
|
+
"""
|
271
|
+
return self._data_type
|
272
|
+
|
273
|
+
@data_type.setter
|
274
|
+
def data_type(self, data_type):
|
275
|
+
r"""Sets the data_type of this ShowTableSchemaResponse.
|
276
|
+
|
277
|
+
数据类型,包括“csv”,“parquet”。
|
278
|
+
|
279
|
+
:param data_type: The data_type of this ShowTableSchemaResponse.
|
280
|
+
:type data_type: str
|
281
|
+
"""
|
282
|
+
self._data_type = data_type
|
283
|
+
|
284
|
+
@property
|
285
|
+
def data_location(self):
|
286
|
+
r"""Gets the data_location of this ShowTableSchemaResponse.
|
287
|
+
|
288
|
+
数据存储的路径,以“s3a”开头。
|
289
|
+
|
290
|
+
:return: The data_location of this ShowTableSchemaResponse.
|
291
|
+
:rtype: str
|
292
|
+
"""
|
293
|
+
return self._data_location
|
294
|
+
|
295
|
+
@data_location.setter
|
296
|
+
def data_location(self, data_location):
|
297
|
+
r"""Sets the data_location of this ShowTableSchemaResponse.
|
298
|
+
|
299
|
+
数据存储的路径,以“s3a”开头。
|
300
|
+
|
301
|
+
:param data_location: The data_location of this ShowTableSchemaResponse.
|
302
|
+
:type data_location: str
|
303
|
+
"""
|
304
|
+
self._data_location = data_location
|
305
|
+
|
306
|
+
@property
|
307
|
+
def storage_properties(self):
|
308
|
+
r"""Gets the storage_properties of this ShowTableSchemaResponse.
|
309
|
+
|
310
|
+
:return: The storage_properties of this ShowTableSchemaResponse.
|
311
|
+
:rtype: list[:class:`huaweicloudsdkiotanalytics.v1.KeyValue`]
|
312
|
+
"""
|
313
|
+
return self._storage_properties
|
314
|
+
|
315
|
+
@storage_properties.setter
|
316
|
+
def storage_properties(self, storage_properties):
|
317
|
+
r"""Sets the storage_properties of this ShowTableSchemaResponse.
|
318
|
+
|
319
|
+
:param storage_properties: The storage_properties of this ShowTableSchemaResponse.
|
320
|
+
:type storage_properties: list[:class:`huaweicloudsdkiotanalytics.v1.KeyValue`]
|
321
|
+
"""
|
322
|
+
self._storage_properties = storage_properties
|
323
|
+
|
324
|
+
def to_dict(self):
|
325
|
+
"""Returns the model properties as a dict"""
|
326
|
+
result = {}
|
327
|
+
|
328
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
329
|
+
value = getattr(self, attr)
|
330
|
+
if isinstance(value, list):
|
331
|
+
result[attr] = list(map(
|
332
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
333
|
+
value
|
334
|
+
))
|
335
|
+
elif hasattr(value, "to_dict"):
|
336
|
+
result[attr] = value.to_dict()
|
337
|
+
elif isinstance(value, dict):
|
338
|
+
result[attr] = dict(map(
|
339
|
+
lambda item: (item[0], item[1].to_dict())
|
340
|
+
if hasattr(item[1], "to_dict") else item,
|
341
|
+
value.items()
|
342
|
+
))
|
343
|
+
else:
|
344
|
+
if attr in self.sensitive_list:
|
345
|
+
result[attr] = "****"
|
346
|
+
else:
|
347
|
+
result[attr] = value
|
348
|
+
|
349
|
+
return result
|
350
|
+
|
351
|
+
def to_str(self):
|
352
|
+
"""Returns the string representation of the model"""
|
353
|
+
import simplejson as json
|
354
|
+
if six.PY2:
|
355
|
+
import sys
|
356
|
+
reload(sys)
|
357
|
+
sys.setdefaultencoding("utf-8")
|
358
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
359
|
+
|
360
|
+
def __repr__(self):
|
361
|
+
"""For `print`"""
|
362
|
+
return self.to_str()
|
363
|
+
|
364
|
+
def __eq__(self, other):
|
365
|
+
"""Returns true if both objects are equal"""
|
366
|
+
if not isinstance(other, ShowTableSchemaResponse):
|
367
|
+
return False
|
368
|
+
|
369
|
+
return self.__dict__ == other.__dict__
|
370
|
+
|
371
|
+
def __ne__(self, other):
|
372
|
+
"""Returns true if both objects are not equal"""
|
373
|
+
return not self == other
|