From efb682270055046d3ebbd3af96dceae6afc0634e Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Mon, 19 Dec 2022 18:04:38 +0800 Subject: [PATCH] release 3.1.17 source code for python --- CHANGELOG.md | 325 ++ CHANGELOG_CN.md | 325 ++ huaweicloud-sdk-all/requirements.txt | 263 +- huaweicloud-sdk-all/setup.py | 265 +- huaweicloud-sdk-antiddos/requirements.txt | 2 +- huaweicloud-sdk-antiddos/setup.py | 4 +- huaweicloud-sdk-aom/requirements.txt | 2 +- huaweicloud-sdk-aom/setup.py | 4 +- huaweicloud-sdk-aos/requirements.txt | 2 +- huaweicloud-sdk-aos/setup.py | 4 +- .../v2/region/apig_region.py | 21 + huaweicloud-sdk-apig/requirements.txt | 2 +- huaweicloud-sdk-apig/setup.py | 4 +- huaweicloud-sdk-apm/requirements.txt | 2 +- huaweicloud-sdk-apm/setup.py | 4 +- huaweicloud-sdk-as/requirements.txt | 2 +- huaweicloud-sdk-as/setup.py | 4 +- huaweicloud-sdk-bcs/requirements.txt | 2 +- huaweicloud-sdk-bcs/setup.py | 4 +- huaweicloud-sdk-bms/requirements.txt | 2 +- huaweicloud-sdk-bms/setup.py | 4 +- huaweicloud-sdk-bss/requirements.txt | 2 +- huaweicloud-sdk-bss/setup.py | 4 +- huaweicloud-sdk-bssintl/requirements.txt | 2 +- huaweicloud-sdk-bssintl/setup.py | 4 +- huaweicloud-sdk-cae/requirements.txt | 2 +- huaweicloud-sdk-cae/setup.py | 4 +- huaweicloud-sdk-campusgo/requirements.txt | 2 +- huaweicloud-sdk-campusgo/setup.py | 4 +- .../huaweicloudsdkcbh/v1/__init__.py | 2 + .../huaweicloudsdkcbh/v1/cbh_async_client.py | 63 + .../huaweicloudsdkcbh/v1/cbh_client.py | 62 + .../huaweicloudsdkcbh/v1/model/__init__.py | 2 + .../v1/model/change_instance_order_request.py | 145 + .../model/change_instance_order_response.py | 118 + huaweicloud-sdk-cbh/requirements.txt | 2 +- huaweicloud-sdk-cbh/setup.py | 4 +- huaweicloud-sdk-cbr/requirements.txt | 2 +- huaweicloud-sdk-cbr/setup.py | 4 +- huaweicloud-sdk-cbs/requirements.txt | 2 +- huaweicloud-sdk-cbs/setup.py | 4 +- huaweicloud-sdk-cc/requirements.txt | 2 +- huaweicloud-sdk-cc/setup.py | 4 +- .../huaweicloudsdkcce/v3/__init__.py | 22 + .../huaweicloudsdkcce/v3/cce_async_client.py | 319 ++ .../huaweicloudsdkcce/v3/cce_client.py | 314 ++ .../huaweicloudsdkcce/v3/model/__init__.py | 22 + .../v3/model/add_node_request.py | 6 +- .../v3/model/awake_cluster_request.py | 6 +- .../v3/model/cluster_upgrade_action.py | 228 + .../continue_upgrade_cluster_task_request.py | 117 + .../continue_upgrade_cluster_task_response.py | 87 + .../create_kubernetes_cluster_cert_request.py | 6 +- .../v3/model/create_node_pool_request.py | 6 +- .../v3/model/create_node_request.py | 6 +- .../v3/model/delete_cluster_request.py | 6 +- .../v3/model/delete_node_pool_request.py | 6 +- .../v3/model/delete_node_request.py | 6 +- .../v3/model/hibernate_cluster_request.py | 6 +- .../v3/model/in_place_rolling_update.py | 118 + .../v3/model/list_node_pools_request.py | 6 +- .../v3/model/list_nodes_request.py | 6 +- .../v3/model/migrate_node_request.py | 6 +- .../v3/model/node_priority.py | 141 + .../v3/model/node_selector.py | 174 + .../pause_upgrade_cluster_task_request.py | 117 + .../pause_upgrade_cluster_task_response.py | 87 + .../v3/model/remove_node_request.py | 6 +- .../v3/model/reset_node_request.py | 6 +- .../retry_upgrade_cluster_task_request.py | 117 + .../retry_upgrade_cluster_task_response.py | 87 + .../model/show_cluster_endpoints_request.py | 6 +- .../v3/model/show_cluster_request.py | 6 +- .../v3/model/show_node_pool_request.py | 6 +- .../v3/model/show_node_request.py | 6 +- .../show_upgrade_cluster_task_request.py | 145 + .../show_upgrade_cluster_task_response.py | 222 + .../v3/model/update_cluster_eip_request.py | 6 +- .../v3/model/update_cluster_request.py | 6 +- .../v3/model/update_node_pool_request.py | 6 +- .../v3/model/update_node_request.py | 6 +- .../v3/model/upgrade_addon_config.py | 202 + .../v3/model/upgrade_cluster_request.py | 142 + .../v3/model/upgrade_cluster_request_body.py | 137 + .../model/upgrade_cluster_request_metadata.py | 145 + .../v3/model/upgrade_cluster_response.py | 118 + .../v3/model/upgrade_spec.py | 114 + .../v3/model/upgrade_strategy.py | 142 + .../v3/model/upgrade_task_metadata.py | 176 + .../v3/model/upgrade_task_spec.py | 176 + .../v3/model/upgrade_task_status.py | 176 + huaweicloud-sdk-cce/requirements.txt | 2 +- huaweicloud-sdk-cce/setup.py | 4 +- huaweicloud-sdk-ccm/requirements.txt | 2 +- huaweicloud-sdk-ccm/setup.py | 4 +- huaweicloud-sdk-cdm/requirements.txt | 2 +- huaweicloud-sdk-cdm/setup.py | 4 +- huaweicloud-sdk-cdn/requirements.txt | 2 +- huaweicloud-sdk-cdn/setup.py | 4 +- huaweicloud-sdk-ces/requirements.txt | 2 +- huaweicloud-sdk-ces/setup.py | 4 +- huaweicloud-sdk-cfw/requirements.txt | 2 +- huaweicloud-sdk-cfw/setup.py | 4 +- huaweicloud-sdk-cgs/requirements.txt | 2 +- huaweicloud-sdk-cgs/setup.py | 4 +- huaweicloud-sdk-classroom/requirements.txt | 2 +- huaweicloud-sdk-classroom/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-cloudartifact/setup.py | 4 +- huaweicloud-sdk-cloudbuild/requirements.txt | 2 +- huaweicloud-sdk-cloudbuild/setup.py | 4 +- huaweicloud-sdk-clouddeploy/requirements.txt | 2 +- huaweicloud-sdk-clouddeploy/setup.py | 4 +- huaweicloud-sdk-cloudide/requirements.txt | 2 +- huaweicloud-sdk-cloudide/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-cloudpipeline/setup.py | 4 +- huaweicloud-sdk-cloudrtc/requirements.txt | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 4 +- huaweicloud-sdk-cloudtable/requirements.txt | 2 +- huaweicloud-sdk-cloudtable/setup.py | 4 +- huaweicloud-sdk-cloudtest/requirements.txt | 2 +- huaweicloud-sdk-cloudtest/setup.py | 4 +- .../huaweicloudsdkcodecheck/v2/__init__.py | 14 + .../v2/codecheck_async_client.py | 266 ++ .../v2/codecheck_client.py | 262 ++ .../v2/model/__init__.py | 14 + .../v2/model/ignore_path_setting_item.py | 145 + .../v2/model/show_task_path_tree_request.py | 232 + .../v2/model/show_task_path_tree_response.py | 147 + .../v2/model/show_task_settings_request.py | 203 + .../v2/model/show_task_settings_response.py | 147 + .../v2/model/task_advanced_settings.py | 205 + .../v2/model/task_advanced_settings_item.py | 145 + .../v2/model/tree_node.py | 205 + .../v2/model/update_ignore_path_request.py | 170 + .../model/update_ignore_path_request_body.py | 117 + .../v2/model/update_ignore_path_response.py | 87 + .../v2/model/update_task_settings_request.py | 170 + .../update_task_settings_request_body.py | 117 + .../v2/model/update_task_settings_response.py | 87 + .../v2/region/codecheck_region.py | 3 + huaweicloud-sdk-codecheck/requirements.txt | 2 +- huaweicloud-sdk-codecheck/setup.py | 4 +- huaweicloud-sdk-codecraft/requirements.txt | 2 +- huaweicloud-sdk-codecraft/setup.py | 4 +- huaweicloud-sdk-codehub/requirements.txt | 2 +- huaweicloud-sdk-codehub/setup.py | 4 +- huaweicloud-sdk-core/setup.py | 2 +- huaweicloud-sdk-cph/requirements.txt | 2 +- huaweicloud-sdk-cph/setup.py | 4 +- huaweicloud-sdk-cpts/requirements.txt | 2 +- huaweicloud-sdk-cpts/setup.py | 4 +- huaweicloud-sdk-cse/requirements.txt | 2 +- huaweicloud-sdk-cse/setup.py | 4 +- huaweicloud-sdk-csms/requirements.txt | 2 +- huaweicloud-sdk-csms/setup.py | 4 +- huaweicloud-sdk-css/requirements.txt | 2 +- huaweicloud-sdk-css/setup.py | 4 +- huaweicloud-sdk-cts/requirements.txt | 2 +- huaweicloud-sdk-cts/setup.py | 4 +- .../v3/model/slow_sql_template.py | 30 +- huaweicloud-sdk-das/requirements.txt | 2 +- huaweicloud-sdk-das/setup.py | 4 +- huaweicloud-sdk-dbss/requirements.txt | 2 +- huaweicloud-sdk-dbss/setup.py | 4 +- huaweicloud-sdk-dc/requirements.txt | 2 +- huaweicloud-sdk-dc/setup.py | 4 +- huaweicloud-sdk-dcs/requirements.txt | 2 +- huaweicloud-sdk-dcs/setup.py | 4 +- huaweicloud-sdk-ddm/requirements.txt | 2 +- huaweicloud-sdk-ddm/setup.py | 4 +- huaweicloud-sdk-dds/requirements.txt | 2 +- huaweicloud-sdk-dds/setup.py | 4 +- huaweicloud-sdk-deh/requirements.txt | 2 +- huaweicloud-sdk-deh/setup.py | 4 +- huaweicloud-sdk-devsecurity/requirements.txt | 2 +- huaweicloud-sdk-devsecurity/setup.py | 4 +- huaweicloud-sdk-devstar/requirements.txt | 2 +- huaweicloud-sdk-devstar/setup.py | 4 +- huaweicloud-sdk-dgc/requirements.txt | 2 +- huaweicloud-sdk-dgc/setup.py | 4 +- huaweicloud-sdk-dlf/requirements.txt | 2 +- huaweicloud-sdk-dlf/setup.py | 4 +- huaweicloud-sdk-dli/requirements.txt | 2 +- huaweicloud-sdk-dli/setup.py | 4 +- huaweicloud-sdk-dms/requirements.txt | 2 +- huaweicloud-sdk-dms/setup.py | 4 +- huaweicloud-sdk-dns/requirements.txt | 2 +- huaweicloud-sdk-dns/setup.py | 4 +- huaweicloud-sdk-dris/LICENSE | 13 + huaweicloud-sdk-dris/README_PYPI.md | 1 + .../huaweicloudsdkdris/__init__.py | 0 .../huaweicloudsdkdris/v1/__init__.py | 200 + .../v1/dris_async_client.py | 3846 ++++++++++++++++ .../huaweicloudsdkdris/v1/dris_client.py | 3787 +++++++++++++++ .../huaweicloudsdkdris/v1/model/__init__.py | 196 + .../add_forwarding_config_request_dto.py | 141 + .../model/add_forwarding_configs_request.py | 143 + .../model/add_forwarding_configs_response.py | 168 + .../v1/model/add_rsu_dto.py | 347 ++ .../v1/model/add_rsu_model.py | 175 + .../v1/model/add_traffic_controller_dto.py | 434 ++ .../v1/model/add_traffic_event_dto.py | 511 +++ .../v1/model/add_v2_x_edge_app_dto.py | 145 + .../model/add_v2_x_edge_data_channel_dto.py | 142 + .../v1/model/add_v2_x_edge_dto.py | 456 ++ .../v1/model/add_vehicle_dto.py | 493 ++ .../batch_show_edge_app_versions_request.py | 262 ++ .../batch_show_edge_app_versions_response.py | 147 + .../v1/model/batch_show_edge_apps_request.py | 205 + .../v1/model/batch_show_edge_apps_response.py | 147 + .../v1/model/batch_show_ipcs_request.py | 234 + .../v1/model/batch_show_ipcs_response.py | 147 + .../v1/model/batch_show_rsus_request.py | 292 ++ .../v1/model/batch_show_rsus_response.py | 147 + .../batch_show_traffic_controllers_request.py | 263 ++ ...batch_show_traffic_controllers_response.py | 147 + .../batch_show_traffic_events_request.py | 466 ++ .../batch_show_traffic_events_response.py | 147 + .../v1/model/batch_show_vehicles_request.py | 234 + .../v1/model/batch_show_vehicles_response.py | 147 + .../huaweicloudsdkdris/v1/model/channel.py | 147 + .../v1/model/congestion_info.py | 226 + .../v1/model/congestion_lanes_info.py | 226 + .../v1/model/container_configs_dto.py | 204 + .../v1/model/container_port_dto.py | 176 + .../v1/model/container_settings_dto.py | 254 + .../v1/model/create_data_channel_request.py | 171 + .../v1/model/create_data_channel_response.py | 172 + .../v1/model/create_edge_app_request.py | 143 + .../v1/model/create_edge_app_response.py | 234 + .../create_edge_application_request_dto.py | 146 + .../create_edge_application_version_dto.py | 228 + ...create_edge_application_version_request.py | 171 + ...reate_edge_application_version_response.py | 404 ++ .../v1/model/create_rsu_model_request.py | 143 + .../v1/model/create_rsu_model_response.py | 263 ++ .../v1/model/create_rsu_request.py | 143 + .../v1/model/create_rsu_response.py | 520 +++ .../create_traffic_controller_request.py | 143 + .../create_traffic_controller_response.py | 524 +++ .../v1/model/create_traffic_event_request.py | 143 + .../v1/model/create_traffic_event_response.py | 636 +++ .../v1/model/create_v2x_edge_app_request.py | 171 + .../v1/model/create_v2x_edge_app_response.py | 205 + .../v1/model/create_v2x_edge_request.py | 143 + .../v1/model/create_v2x_edge_response.py | 603 +++ .../v1/model/create_vehicle_request.py | 143 + .../v1/model/create_vehicle_response.py | 582 +++ .../v1/model/delete_data_channel_request.py | 146 + .../v1/model/delete_data_channel_response.py | 114 + .../v1/model/delete_edge_app_request.py | 146 + .../v1/model/delete_edge_app_response.py | 114 + ...delete_edge_application_version_request.py | 174 + ...elete_edge_application_version_response.py | 114 + .../model/delete_forwarding_config_request.py | 174 + .../delete_forwarding_config_response.py | 114 + .../v1/model/delete_rsu_model_request.py | 146 + .../v1/model/delete_rsu_model_response.py | 114 + .../v1/model/delete_rsu_request.py | 146 + .../v1/model/delete_rsu_response.py | 114 + .../delete_traffic_controller_request.py | 146 + .../delete_traffic_controller_response.py | 114 + .../v1/model/delete_traffic_event_request.py | 146 + .../v1/model/delete_traffic_event_response.py | 114 + ...te_v2_x_edge_app_by_edge_app_id_request.py | 174 + ...e_v2_x_edge_app_by_edge_app_id_response.py | 114 + ...delete_v2_x_edge_by_v2x_edge_id_request.py | 146 + ...elete_v2_x_edge_by_v2x_edge_id_response.py | 114 + .../v1/model/delete_vehicle_request.py | 146 + .../v1/model/delete_vehicle_response.py | 114 + .../v1/model/edge_general_config.py | 408 ++ .../model/edge_general_config_in_response.py | 350 ++ .../v1/model/event_ex_info.py | 143 + .../v1/model/event_location.py | 147 + .../v1/model/event_participant.py | 321 ++ .../v1/model/event_reference_path.py | 147 + .../huaweicloudsdkdris/v1/model/ext_device.py | 174 + .../v1/model/forwarding_config.py | 168 + .../v1/model/forwarding_config_request_dto.py | 139 + .../v1/model/history_traffic_event_dto.py | 690 +++ .../v1/model/id_and_status.py | 147 + .../v1/model/immediate_event_dto.py | 399 ++ .../v1/model/immediate_event_position3_d.py | 174 + .../model/immediate_event_reference_path.py | 146 + .../v1/model/immediate_event_response_dto.py | 404 ++ .../v1/model/ipc_response_dto.py | 495 ++ .../v1/model/kafka_config_request_dto.py | 233 + .../v1/model/kafka_config_response_dto.py | 321 ++ .../v1/model/lane_occupancy.py | 176 + .../v1/model/list_edge_flows_request.py | 263 ++ .../v1/model/list_edge_flows_response.py | 147 + .../v1/model/list_rsu_models_request.py | 205 + .../v1/model/list_rsu_models_response.py | 147 + .../v1/model/list_v2x_edge_app_request.py | 204 + .../v1/model/list_v2x_edge_app_response.py | 147 + .../v1/model/list_v2x_edges_request.py | 205 + .../v1/model/list_v2x_edges_response.py | 147 + .../huaweicloudsdkdris/v1/model/location.py | 147 + .../huaweicloudsdkdris/v1/model/model_flow.py | 176 + .../v1/model/modify_rsu_request_dto.py | 263 ++ .../modify_traffic_controller_request_dto.py | 350 ++ .../v1/model/modify_v2_x_edge_app_dto.py | 117 + .../v1/model/modify_v2_x_edge_dto.py | 429 ++ .../v1/model/modify_vehicle_request_dto.py | 350 ++ .../v1/model/mrs_kafka_config_request_dto.py | 262 ++ .../v1/model/mrs_kafka_config_response_dto.py | 321 ++ .../v1/model/open_v2_x_statistics_body.py | 433 ++ .../v1/model/platform_para.py | 176 + .../v1/model/position3_d.py | 174 + .../query_application_brief_response_dto.py | 234 + ...ery_edge_app_version_brief_response_dto.py | 321 ++ .../v1/model/reference_path.py | 147 + .../v1/model/resource_config_dto.py | 205 + .../v1/model/resource_dto.py | 139 + .../huaweicloudsdkdris/v1/model/rsu_dto.py | 520 +++ .../v1/model/rsu_location.py | 147 + .../v1/model/rsu_model_summary.py | 263 ++ .../v1/model/send_config.py | 138 + .../v1/model/send_config_response.py | 139 + .../v1/model/send_immediate_event_request.py | 143 + .../v1/model/send_immediate_event_response.py | 168 + .../v1/model/send_immediate_events_dto.py | 137 + .../v1/model/show_data_channel_request.py | 146 + .../v1/model/show_data_channel_response.py | 172 + .../v1/model/show_deployment_code_request.py | 146 + .../v1/model/show_deployment_code_response.py | 118 + .../show_edge_application_version_request.py | 174 + .../show_edge_application_version_response.py | 404 ++ .../model/show_forwarding_config_request.py | 174 + .../model/show_forwarding_config_response.py | 379 ++ .../model/show_forwarding_configs_request.py | 204 + .../model/show_forwarding_configs_response.py | 147 + .../show_history_traffic_events_request.py | 350 ++ .../show_history_traffic_events_response.py | 147 + .../v1/model/show_ipc_request.py | 146 + .../v1/model/show_ipc_response.py | 495 ++ .../v1/model/show_rsu_model_request.py | 146 + .../v1/model/show_rsu_model_response.py | 263 ++ .../v1/model/show_traffic_event_request.py | 146 + .../v1/model/show_traffic_event_response.py | 636 +++ ..._edge_app_detail_by_edge_app_id_request.py | 174 + ...edge_app_detail_by_edge_app_id_response.py | 205 + .../v1/model/show_v2x_edge_detail_request.py | 146 + .../v1/model/show_v2x_edge_detail_response.py | 632 +++ .../v1/model/statistics_source_dto.py | 147 + .../v1/model/target_list.py | 147 + .../huaweicloudsdkdris/v1/model/target_pos.py | 205 + .../v1/model/target_rect.py | 201 + .../v1/model/traffic_controller_dto.py | 524 +++ .../v1/model/traffic_event_dto.py | 636 +++ .../v1/model/update_data_channel_request.py | 171 + .../v1/model/update_data_channel_response.py | 172 + .../v1/model/update_edge_app_request.py | 171 + .../v1/model/update_edge_app_response.py | 234 + .../v1/model/update_edge_app_version_dto.py | 200 + .../update_edge_app_version_state_dto.py | 118 + .../update_edge_application_request_dto.py | 118 + ...update_edge_application_version_request.py | 199 + ...pdate_edge_application_version_response.py | 404 ++ ..._edge_application_version_state_request.py | 199 + ...edge_application_version_state_response.py | 321 ++ .../model/update_forwarding_config_request.py | 199 + .../update_forwarding_config_request_dto.py | 139 + .../update_forwarding_config_response.py | 168 + .../model/update_kafka_config_request_dto.py | 234 + .../update_mrs_kafka_config_request_dto.py | 263 ++ .../v1/model/update_rsu_model.py | 147 + .../v1/model/update_rsu_model_request.py | 171 + .../v1/model/update_rsu_model_response.py | 263 ++ .../v1/model/update_rsu_request.py | 171 + .../v1/model/update_rsu_response.py | 520 +++ .../update_traffic_controller_request.py | 171 + .../update_traffic_controller_response.py | 524 +++ .../v1/model/update_traffic_event_dto.py | 520 +++ .../v1/model/update_traffic_event_request.py | 171 + .../v1/model/update_traffic_event_response.py | 636 +++ .../v1/model/update_v2x_edge_app_request.py | 199 + .../v1/model/update_v2x_edge_app_response.py | 205 + .../v1/model/update_v2x_edge_request.py | 171 + .../v1/model/update_v2x_edge_response.py | 603 +++ .../v1/model/update_vehicle_request.py | 171 + .../v1/model/update_vehicle_response.py | 582 +++ .../v1/model/v2_x_edge_app_response_dto.py | 205 + .../v1/model/v2_x_edge_list_response_dto.py | 317 ++ .../v1/model/vehicle_dto.py | 582 +++ .../huaweicloudsdkdris/v1/model/volume_dto.py | 231 + .../huaweicloudsdkdris/v1/region/__init__.py | 0 .../v1/region/dris_region.py | 35 + huaweicloud-sdk-dris/requirements.txt | 1 + huaweicloud-sdk-dris/setup.py | 55 + huaweicloud-sdk-dris/test-requirements.txt | 5 + huaweicloud-sdk-drs/requirements.txt | 2 +- huaweicloud-sdk-drs/setup.py | 4 +- huaweicloud-sdk-dsc/requirements.txt | 2 +- huaweicloud-sdk-dsc/setup.py | 4 +- huaweicloud-sdk-dwr/requirements.txt | 2 +- huaweicloud-sdk-dwr/setup.py | 4 +- huaweicloud-sdk-dws/requirements.txt | 2 +- huaweicloud-sdk-dws/setup.py | 4 +- huaweicloud-sdk-ecs/requirements.txt | 2 +- huaweicloud-sdk-ecs/setup.py | 4 +- huaweicloud-sdk-eg/requirements.txt | 2 +- huaweicloud-sdk-eg/setup.py | 4 +- huaweicloud-sdk-eihealth/requirements.txt | 2 +- huaweicloud-sdk-eihealth/setup.py | 4 +- huaweicloud-sdk-eip/requirements.txt | 2 +- huaweicloud-sdk-eip/setup.py | 4 +- .../v2/model/create_healthmonitor_req.py | 6 +- .../v2/model/create_loadbalancer_req.py | 6 +- .../v2/model/create_member_req.py | 6 +- .../v2/model/healthmonitor_resp.py | 6 +- .../v2/model/loadbalancer_resp.py | 6 +- .../huaweicloudsdkelb/v2/model/member_resp.py | 6 +- .../v2/model/update_healthmonitor_req.py | 6 +- .../v2/model/update_member_req.py | 6 +- huaweicloud-sdk-elb/requirements.txt | 2 +- huaweicloud-sdk-elb/setup.py | 4 +- huaweicloud-sdk-eps/requirements.txt | 2 +- huaweicloud-sdk-eps/setup.py | 4 +- huaweicloud-sdk-er/requirements.txt | 2 +- huaweicloud-sdk-er/setup.py | 4 +- huaweicloud-sdk-evs/requirements.txt | 2 +- huaweicloud-sdk-evs/setup.py | 4 +- huaweicloud-sdk-frs/requirements.txt | 2 +- huaweicloud-sdk-frs/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-functiongraph/setup.py | 4 +- huaweicloud-sdk-ga/requirements.txt | 2 +- huaweicloud-sdk-ga/setup.py | 4 +- huaweicloud-sdk-gaussdb/requirements.txt | 2 +- huaweicloud-sdk-gaussdb/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 4 +- huaweicloud-sdk-ges/requirements.txt | 2 +- huaweicloud-sdk-ges/setup.py | 4 +- huaweicloud-sdk-gsl/requirements.txt | 2 +- huaweicloud-sdk-gsl/setup.py | 4 +- huaweicloud-sdk-hilens/requirements.txt | 2 +- huaweicloud-sdk-hilens/setup.py | 4 +- huaweicloud-sdk-hss/requirements.txt | 2 +- huaweicloud-sdk-hss/setup.py | 4 +- huaweicloud-sdk-iam/requirements.txt | 2 +- huaweicloud-sdk-iam/setup.py | 4 +- huaweicloud-sdk-iec/requirements.txt | 2 +- huaweicloud-sdk-iec/setup.py | 4 +- huaweicloud-sdk-ief/requirements.txt | 2 +- huaweicloud-sdk-ief/setup.py | 4 +- huaweicloud-sdk-ies/requirements.txt | 2 +- huaweicloud-sdk-ies/setup.py | 4 +- huaweicloud-sdk-image/requirements.txt | 2 +- huaweicloud-sdk-image/setup.py | 4 +- huaweicloud-sdk-imagesearch/requirements.txt | 2 +- huaweicloud-sdk-imagesearch/setup.py | 4 +- huaweicloud-sdk-ims/requirements.txt | 2 +- huaweicloud-sdk-ims/setup.py | 4 +- huaweicloud-sdk-iotanalytics/requirements.txt | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 4 +- huaweicloud-sdk-iotda/requirements.txt | 2 +- huaweicloud-sdk-iotda/setup.py | 4 +- huaweicloud-sdk-iotedge/requirements.txt | 2 +- huaweicloud-sdk-iotedge/setup.py | 4 +- huaweicloud-sdk-ivs/requirements.txt | 2 +- huaweicloud-sdk-ivs/setup.py | 4 +- huaweicloud-sdk-kafka/requirements.txt | 2 +- huaweicloud-sdk-kafka/setup.py | 4 +- huaweicloud-sdk-kms/requirements.txt | 2 +- huaweicloud-sdk-kms/setup.py | 4 +- huaweicloud-sdk-kps/requirements.txt | 2 +- huaweicloud-sdk-kps/setup.py | 4 +- huaweicloud-sdk-live/requirements.txt | 2 +- huaweicloud-sdk-live/setup.py | 4 +- huaweicloud-sdk-lts/requirements.txt | 2 +- huaweicloud-sdk-lts/setup.py | 4 +- huaweicloud-sdk-mapds/requirements.txt | 2 +- huaweicloud-sdk-mapds/setup.py | 4 +- huaweicloud-sdk-mas/requirements.txt | 2 +- huaweicloud-sdk-mas/setup.py | 4 +- huaweicloud-sdk-meeting/requirements.txt | 2 +- huaweicloud-sdk-meeting/setup.py | 4 +- huaweicloud-sdk-moderation/requirements.txt | 2 +- huaweicloud-sdk-moderation/setup.py | 4 +- huaweicloud-sdk-mpc/requirements.txt | 2 +- huaweicloud-sdk-mpc/setup.py | 4 +- huaweicloud-sdk-mrs/requirements.txt | 2 +- huaweicloud-sdk-mrs/setup.py | 4 +- huaweicloud-sdk-nat/requirements.txt | 2 +- huaweicloud-sdk-nat/setup.py | 4 +- huaweicloud-sdk-nlp/requirements.txt | 2 +- huaweicloud-sdk-nlp/setup.py | 4 +- huaweicloud-sdk-ocr/requirements.txt | 2 +- huaweicloud-sdk-ocr/setup.py | 4 +- huaweicloud-sdk-oms/requirements.txt | 2 +- huaweicloud-sdk-oms/setup.py | 4 +- huaweicloud-sdk-osm/requirements.txt | 2 +- huaweicloud-sdk-osm/setup.py | 4 +- huaweicloud-sdk-projectman/requirements.txt | 2 +- huaweicloud-sdk-projectman/setup.py | 4 +- huaweicloud-sdk-rabbitmq/requirements.txt | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 4 +- huaweicloud-sdk-rds/requirements.txt | 2 +- huaweicloud-sdk-rds/setup.py | 4 +- huaweicloud-sdk-res/requirements.txt | 2 +- huaweicloud-sdk-res/setup.py | 4 +- huaweicloud-sdk-rms/requirements.txt | 2 +- huaweicloud-sdk-rms/setup.py | 4 +- huaweicloud-sdk-rocketmq/requirements.txt | 2 +- huaweicloud-sdk-rocketmq/setup.py | 4 +- huaweicloud-sdk-roma/requirements.txt | 2 +- huaweicloud-sdk-roma/setup.py | 4 +- .../huaweicloudsdksa/v1/region/sa_region.py | 3 + .../huaweicloudsdksa/v1/sa_async_client.py | 4 +- .../huaweicloudsdksa/v1/sa_client.py | 4 +- .../huaweicloudsdksa/v2/__init__.py | 221 + .../huaweicloudsdksa/v2/model/__init__.py | 217 + .../huaweicloudsdksa/v2/model/action_info.py | 350 ++ .../v2/model/action_instance_info.py | 139 + .../huaweicloudsdksa/v2/model/alert.py | 1233 +++++ .../huaweicloudsdksa/v2/model/alert_detail.py | 371 ++ .../huaweicloudsdksa/v2/model/alert_rule.py | 597 +++ .../v2/model/alert_rule_metric.py | 145 + .../v2/model/alert_rule_template.py | 427 ++ .../v2/model/alert_rule_trigger.py | 233 + .../v2/model/approve_opinion_detail.py | 147 + .../v2/model/approve_playbook_info.py | 147 + .../v2/model/audit_log_info.py | 466 ++ .../v2/model/batch_order_alert_result.py | 147 + .../v2/model/change_alert_request.py | 198 + .../v2/model/change_alert_request_body.py | 114 + .../v2/model/change_alert_response.py | 197 + .../v2/model/change_incident_request.py | 198 + .../v2/model/change_incident_request_body.py | 114 + .../v2/model/change_incident_response.py | 197 + .../model/change_playbook_instance_request.py | 198 + .../change_playbook_instance_response.py | 392 ++ .../v2/model/condition_info.py | 292 ++ .../v2/model/condition_item.py | 176 + .../v2/model/conditon_info.py | 147 + .../v2/model/copy_playbook_info.py | 118 + .../v2/model/copy_playbook_version_request.py | 198 + .../model/copy_playbook_version_response.py | 197 + .../huaweicloudsdksa/v2/model/create_alert.py | 1262 +++++ .../v2/model/create_alert_data_source.py | 263 ++ .../v2/model/create_alert_request.py | 170 + .../v2/model/create_alert_request_body.py | 114 + .../v2/model/create_alert_response.py | 197 + .../v2/model/create_alert_rule_request.py | 170 + .../model/create_alert_rule_request_body.py | 515 +++ .../v2/model/create_alert_rule_response.py | 632 +++ .../create_alert_rule_simulation_request.py | 170 + ...eate_alert_rule_simulation_request_body.py | 287 ++ .../create_alert_rule_simulation_response.py | 172 + .../create_batch_order_alerts_request.py | 170 + .../create_batch_order_alerts_response.py | 197 + .../create_dataobject_relation_request.py | 254 + .../create_dataobject_relation_response.py | 342 ++ .../v2/model/create_incident.py | 1287 ++++++ .../v2/model/create_incident_incident_type.py | 205 + .../v2/model/create_incident_malware.py | 147 + .../v2/model/create_incident_network_list.py | 379 ++ .../v2/model/create_incident_process.py | 234 + .../v2/model/create_incident_request.py | 170 + .../v2/model/create_incident_request_body.py | 114 + .../v2/model/create_incident_resource_list.py | 350 ++ .../v2/model/create_incident_response.py | 197 + .../v2/model/create_incident_user_info.py | 147 + .../v2/model/create_indicator_detail.py | 735 +++ .../create_indicator_detail_indicator_type.py | 205 + .../v2/model/create_indicator_request.py | 170 + .../v2/model/create_indicator_response.py | 197 + .../model/create_playbook_action_request.py | 202 + .../model/create_playbook_action_response.py | 201 + .../model/create_playbook_approve_request.py | 198 + .../model/create_playbook_approve_response.py | 197 + .../v2/model/create_playbook_info.py | 321 ++ .../v2/model/create_playbook_request.py | 170 + .../v2/model/create_playbook_response.py | 197 + .../v2/model/create_playbook_rule_request.py | 198 + .../v2/model/create_playbook_rule_response.py | 197 + .../v2/model/create_playbook_version_info.py | 437 ++ .../model/create_playbook_version_request.py | 198 + .../model/create_playbook_version_response.py | 197 + .../v2/model/create_relation.py | 118 + .../v2/model/create_rule_info.py | 114 + .../v2/model/data_class_ref_pojo.py | 146 + .../v2/model/data_class_type_detail_info.py | 495 ++ .../v2/model/data_response.py | 146 + .../v2/model/dataclass_info_ref.py | 147 + .../v2/model/dataobject_info.py | 321 ++ .../v2/model/dataobject_search.py | 288 ++ .../v2/model/dataobject_search_condition.py | 147 + .../huaweicloudsdksa/v2/model/delete_alert.py | 118 + .../v2/model/delete_alert_request.py | 170 + .../v2/model/delete_alert_response.py | 197 + .../v2/model/delete_alert_rule_request.py | 170 + .../v2/model/delete_alert_rule_response.py | 172 + .../delete_dataobject_relation_request.py | 254 + .../delete_dataobject_relation_response.py | 342 ++ .../v2/model/delete_incident.py | 118 + .../v2/model/delete_incident_request.py | 170 + .../v2/model/delete_incident_response.py | 197 + .../v2/model/delete_indicator_request.py | 170 + .../v2/model/delete_indicator_request_body.py | 118 + .../v2/model/delete_indicator_response.py | 197 + .../model/delete_playbook_action_request.py | 201 + .../model/delete_playbook_action_response.py | 172 + .../v2/model/delete_playbook_request.py | 173 + .../v2/model/delete_playbook_response.py | 197 + .../v2/model/delete_playbook_rule_request.py | 201 + .../v2/model/delete_playbook_rule_response.py | 172 + .../model/delete_playbook_version_request.py | 173 + .../model/delete_playbook_version_response.py | 172 + .../v2/model/disable_alert_rule_request.py | 170 + .../v2/model/disable_alert_rule_response.py | 172 + .../v2/model/enable_alert_rule_request.py | 170 + .../v2/model/enable_alert_rule_response.py | 172 + .../huaweicloudsdksa/v2/model/incident.py | 1233 +++++ .../v2/model/incident_datasource.py | 205 + .../v2/model/incident_detail.py | 371 ++ .../v2/model/incident_environment.py | 205 + .../model/indicator_batch_operate_response.py | 146 + .../v2/model/indicator_create_request.py | 230 + .../v2/model/indicator_data_object_detail.py | 143 + .../v2/model/indicator_detail.py | 399 ++ .../v2/model/indicator_list_search_request.py | 321 ++ .../v2/model/list_alert_detail.py | 371 ++ .../v2/model/list_alert_rsp.py | 1233 +++++ .../model/list_alert_rule_metrics_request.py | 145 + .../model/list_alert_rule_metrics_response.py | 143 + .../list_alert_rule_templates_request.py | 288 ++ .../list_alert_rule_templates_response.py | 172 + .../v2/model/list_alert_rules_request.py | 404 ++ .../v2/model/list_alert_rules_response.py | 172 + .../v2/model/list_alerts_request.py | 170 + .../v2/model/list_alerts_response.py | 317 ++ .../model/list_dataobject_relation_request.py | 254 + .../list_dataobject_relation_response.py | 288 ++ .../v2/model/list_incident_detail.py | 371 ++ .../v2/model/list_incident_types_request.py | 406 ++ .../v2/model/list_incident_types_response.py | 288 ++ .../v2/model/list_incidents_request.py | 170 + .../v2/model/list_incidents_response.py | 317 ++ .../v2/model/list_indicators_request.py | 257 ++ .../v2/model/list_indicators_response.py | 230 + .../v2/model/list_playbook_actions_request.py | 231 + .../model/list_playbook_actions_response.py | 288 ++ .../model/list_playbook_approves_request.py | 203 + .../model/list_playbook_approves_response.py | 197 + .../model/list_playbook_audit_logs_request.py | 284 ++ .../list_playbook_audit_logs_response.py | 172 + .../model/list_playbook_instances_request.py | 464 ++ .../model/list_playbook_instances_response.py | 172 + .../model/list_playbook_versions_request.py | 347 ++ .../model/list_playbook_versions_response.py | 288 ++ .../v2/model/list_playbooks_request.py | 377 ++ .../v2/model/list_playbooks_response.py | 288 ++ .../v2/model/modify_action_info.py | 234 + .../v2/model/modify_playbook_info.py | 205 + .../v2/model/modify_playbook_version_info.py | 466 ++ .../v2/model/modify_rule_info.py | 114 + .../v2/model/operation_playbook_info.py | 118 + .../huaweicloudsdksa/v2/model/order_alert.py | 226 + .../v2/model/order_alert_event_content.py | 118 + .../v2/model/order_alert_incident_content.py | 288 ++ ...er_alert_incident_content_incident_type.py | 205 + .../v2/model/playbook_info.py | 611 +++ .../v2/model/playbook_info_ref.py | 205 + .../v2/model/playbook_instance_info.py | 367 ++ .../model/playbook_instance_monitor_detail.py | 371 ++ .../model/playbook_instance_run_statistics.py | 147 + .../v2/model/playbook_statistic_detail.py | 176 + .../v2/model/playbook_version_info.py | 839 ++++ .../v2/model/playbook_version_list_entity.py | 785 ++++ .../huaweicloudsdksa/v2/model/rule_info.py | 176 + .../huaweicloudsdksa/v2/model/schedule.py | 259 ++ .../v2/model/show_alert_detail.py | 371 ++ .../model/show_alert_detail_dataclass_ref.py | 147 + .../v2/model/show_alert_request.py | 173 + .../v2/model/show_alert_response.py | 197 + .../v2/model/show_alert_rsp.py | 1233 +++++ .../v2/model/show_alert_rsp_datasource.py | 205 + .../v2/model/show_alert_rsp_environment.py | 205 + .../v2/model/show_alert_rsp_file_info.py | 292 ++ .../v2/model/show_alert_rsp_malware.py | 147 + .../v2/model/show_alert_rsp_network_list.py | 379 ++ .../v2/model/show_alert_rsp_process.py | 234 + .../v2/model/show_alert_rsp_remediation.py | 147 + .../v2/model/show_alert_rsp_resource_list.py | 350 ++ .../v2/model/show_alert_rsp_user_info.py | 147 + .../v2/model/show_alert_rule_request.py | 173 + .../v2/model/show_alert_rule_response.py | 632 +++ .../model/show_alert_rule_template_request.py | 173 + .../show_alert_rule_template_response.py | 458 ++ .../v2/model/show_incident.py | 1233 +++++ .../v2/model/show_incident_detail.py | 371 ++ .../v2/model/show_incident_request.py | 173 + .../v2/model/show_incident_response.py | 172 + .../v2/model/show_indicator_detail_request.py | 173 + .../model/show_indicator_detail_response.py | 197 + .../model/show_playbook_instance_request.py | 173 + .../model/show_playbook_instance_response.py | 392 ++ .../model/show_playbook_monitors_request.py | 257 ++ .../model/show_playbook_monitors_response.py | 197 + .../v2/model/show_playbook_request.py | 173 + .../v2/model/show_playbook_response.py | 197 + .../v2/model/show_playbook_rule_request.py | 201 + .../v2/model/show_playbook_rule_response.py | 197 + .../model/show_playbook_statistics_request.py | 145 + .../show_playbook_statistics_response.py | 197 + .../model/show_playbook_topology_request.py | 173 + .../model/show_playbook_topology_response.py | 172 + .../v2/model/show_playbook_version_request.py | 173 + .../model/show_playbook_version_response.py | 197 + .../v2/model/update_alert_rule_request.py | 198 + .../model/update_alert_rule_request_body.py | 491 ++ .../v2/model/update_alert_rule_response.py | 632 +++ .../v2/model/update_indicator_request.py | 198 + .../v2/model/update_indicator_request_body.py | 143 + .../v2/model/update_indicator_response.py | 197 + .../model/update_playbook_action_request.py | 226 + .../model/update_playbook_action_response.py | 197 + .../v2/model/update_playbook_request.py | 198 + .../v2/model/update_playbook_response.py | 197 + .../v2/model/update_playbook_rule_request.py | 226 + .../v2/model/update_playbook_rule_response.py | 197 + .../model/update_playbook_version_request.py | 198 + .../model/update_playbook_version_response.py | 197 + .../huaweicloudsdksa/v2/region/__init__.py | 0 .../huaweicloudsdksa/v2/region/sa_region.py | 38 + .../huaweicloudsdksa/v2/sa_async_client.py | 4084 +++++++++++++++++ .../huaweicloudsdksa/v2/sa_client.py | 4023 ++++++++++++++++ huaweicloud-sdk-sa/requirements.txt | 2 +- huaweicloud-sdk-sa/setup.py | 4 +- huaweicloud-sdk-scm/requirements.txt | 2 +- huaweicloud-sdk-scm/setup.py | 4 +- huaweicloud-sdk-sdrs/requirements.txt | 2 +- huaweicloud-sdk-sdrs/setup.py | 4 +- huaweicloud-sdk-servicestage/requirements.txt | 2 +- huaweicloud-sdk-servicestage/setup.py | 4 +- huaweicloud-sdk-sfsturbo/requirements.txt | 2 +- huaweicloud-sdk-sfsturbo/setup.py | 4 +- huaweicloud-sdk-sis/requirements.txt | 2 +- huaweicloud-sdk-sis/setup.py | 4 +- huaweicloud-sdk-smn/requirements.txt | 2 +- huaweicloud-sdk-smn/setup.py | 4 +- huaweicloud-sdk-sms/requirements.txt | 2 +- huaweicloud-sdk-sms/setup.py | 4 +- huaweicloud-sdk-swr/requirements.txt | 2 +- huaweicloud-sdk-swr/setup.py | 4 +- huaweicloud-sdk-tms/requirements.txt | 2 +- huaweicloud-sdk-tms/setup.py | 4 +- huaweicloud-sdk-ugo/requirements.txt | 2 +- huaweicloud-sdk-ugo/setup.py | 4 +- huaweicloud-sdk-vas/requirements.txt | 2 +- huaweicloud-sdk-vas/setup.py | 4 +- huaweicloud-sdk-vcm/requirements.txt | 2 +- huaweicloud-sdk-vcm/setup.py | 4 +- huaweicloud-sdk-vod/requirements.txt | 2 +- huaweicloud-sdk-vod/setup.py | 4 +- huaweicloud-sdk-vpc/requirements.txt | 2 +- huaweicloud-sdk-vpc/setup.py | 4 +- huaweicloud-sdk-vpcep/requirements.txt | 2 +- huaweicloud-sdk-vpcep/setup.py | 4 +- huaweicloud-sdk-vss/requirements.txt | 2 +- huaweicloud-sdk-vss/setup.py | 4 +- huaweicloud-sdk-waf/requirements.txt | 2 +- huaweicloud-sdk-waf/setup.py | 4 +- huaweicloud-sdk-workspace/requirements.txt | 2 +- huaweicloud-sdk-workspace/setup.py | 4 +- 772 files changed, 129876 insertions(+), 749 deletions(-) create mode 100755 huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_request.py create mode 100755 huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_upgrade_action.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_request.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/in_place_rolling_update.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_priority.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_selector.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_request.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_request.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_request.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_addon_config.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_body.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_metadata.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_response.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_spec.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_strategy.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_metadata.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_spec.py create mode 100755 huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_status.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/ignore_path_setting_item.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_request.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_response.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_request.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_response.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings_item.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/tree_node.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request_body.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_response.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request_body.py create mode 100755 huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_response.py create mode 100755 huaweicloud-sdk-dris/LICENSE create mode 100755 huaweicloud-sdk-dris/README_PYPI.md create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/__init__.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/__init__.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_async_client.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_client.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/__init__.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_model.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_controller_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_event_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_app_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_data_channel_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_vehicle_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/channel.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_info.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_lanes_info.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_configs_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_port_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_settings_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config_in_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_ex_info.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_location.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_participant.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_reference_path.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ext_device.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/id_and_status.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_position3_d.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_reference_path.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ipc_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/lane_occupancy.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/location.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/model_flow.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_rsu_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_traffic_controller_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_app_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_vehicle_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/open_v2_x_statistics_body.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/platform_para.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/position3_d.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_application_brief_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_edge_app_version_brief_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/reference_path.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_config_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_location.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_model_summary.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_events_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/statistics_source_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_list.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_pos.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_rect.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_controller_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_event_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_state_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_kafka_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_mrs_kafka_config_request_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_request.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_response.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_app_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_list_response_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/vehicle_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/volume_dto.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/__init__.py create mode 100755 huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py create mode 100755 huaweicloud-sdk-dris/requirements.txt create mode 100755 huaweicloud-sdk-dris/setup.py create mode 100755 huaweicloud-sdk-dris/test-requirements.txt create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/__init__.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/__init__.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_instance_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_metric.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_template.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_trigger.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_opinion_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/audit_log_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/batch_order_alert_result.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_item.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/conditon_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_data_source.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_incident_type.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_malware.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_network_list.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_process.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_resource_list.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_user_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail_indicator_type.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_relation.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_rule_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_ref_pojo.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_type_detail_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataclass_info_ref.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search_condition.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_datasource.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_environment.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_batch_operate_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_create_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_data_object_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_list_search_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rsp.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_action_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_version_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_rule_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/operation_playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_event_content.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content_incident_type.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info_ref.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_monitor_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_run_statistics.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_statistic_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_list_entity.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/rule_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/schedule.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail_dataclass_ref.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_datasource.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_environment.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_file_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_malware.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_network_list.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_process.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_remediation.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_resource_list.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_user_info.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_detail.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request_body.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_request.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_response.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/__init__.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_async_client.py create mode 100755 huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_client.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 18dba1ad87..e1d0dd7226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,328 @@ +# 3.1.17 2022-12-19 + +### HuaweiCloud SDK APM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - The response parameter `function` changed to required of the interface `ShowMonitorItemViewConfig` + - The request parameter `view_type`, `collector_name`, `metric_set`, `function`, `env_id`, `start_time`, `end_time` changed to required of the interface `ShowTrend` + - The request parameter `view_type`, `collector_name`, `metric_set`, `function`, `page`, `page_size`, `env_id`, `start_time`, `end_time` changed to required of the interface `ShowSumTable` + - Changes of the interface `ShowRawTable`: + - Add the request parameter `last_row_id` + - Remove the request parameter `lastRowId` + - The request parameter `function` changed to required + - Changes of the interface `SearchAgent`: + - Add the request parameter `order_by_status` + - Remove the request parameter `orderByStatus` + +### HuaweiCloud SDK BCS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the response parameters `order_fade_enabled`, `is_support_tc3`, `order_fade_cache`, `deploy_status`, `block_info`, `cluster_platform_type`, `status`, `status_detail`, `order_fade_enabled` to the interface `ShowBlockchainDetail` + - Add the response parameter `result` to the interface `DeleteMemberInvite` + - Add the response parameter `result` to the interface `HandleNotification` + - Changes of the interface `CreateNewBlockchain`: + - Modify the type `string` -> `int64` of the request parameter `node_flavor` + - Modify the type `string` -> `int64` of the request parameter `cce_flavor` + - Modify the type `string` -> `int64` of the request parameter `init_node_pwd` + - Modify the type `string` -> `int64` of the request parameter `az` + - Modify the type `string` -> `int64` of the request parameter `cluster_platform_type` + - Add the response parameter `result` to the interface `DownloadBlockchainCert` + - Add the response parameter `result` to the interface `DownloadBlockchainSdkConfig` + - Add the response parameter `filesystemUsage` to the interface `ListEntityMetric` + - Add the response parameter `result` to the interface `CreateBlockchainCertByUserName` + +### HuaweiCloud SDK CBH + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - The request parameter `available_zone_id` changed to not required of the interface `CreateInstanceOrder` + +### HuaweiCloud SDK CBR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `CreateVault`: + - Add the enum values `workspace` to the request parameter `object_type` + - Add the enum values `workspace` to the response parameter `object_type` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `ListVault` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `ShowVault` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `UpdateVault` + - Add the enum values `OS::Workspace::DesktopV2` to the response parameter `resource_type` to the interface `ShowBackup` + - Changes of the interface `ListBackups`: + - Add the enum values `OS::Workspace::DesktopV2` to the request parameter `resource_type` + - Add the enum values `OS::Workspace::DesktopV2` to the response parameter `resource_type` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `ListProtectable` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `ShowProtectable` + - Add the enum values `workspace` to the response parameter `object_type` to the interface `ShowVaultResourceInstances` + +### HuaweiCloud SDK CC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `interflow_mode` to the interface `CreateBandwidthPackage` + - Changes of the interface `ListInterRegionBandwidths`: + - Add the response parameter `inter_region_bandwidths` + - Remove the response parameter `inter_region_bandwidth` + +### HuaweiCloud SDK CSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `CreateCluster`: + - Add the request parameter `vpcPermissions` + - Add the response parameter `orderId` + - Remove the request parameter `vpcPermisssions` + - Remove the response parameter `ordeId` + +### HuaweiCloud SDK ECS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `server_id` to the interface `ListServersDetails` + +### HuaweiCloud SDK EIP + +- _Features_ + - Support the interfaces `ShowResourcesJobDetail`, `ChangeBandwidthToPeriod`, `ChangePublicipToPeriod` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK FunctionGraph + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `CreateFunction`: + - Add the request parameters `depend_version_list`, `func_vpc` + - Add the response parameter `depend_version_list` + - Changes of the interface `UpdateFunctionCode`: + - Add the request parameter `depend_version_list` + - Add the response parameter `depend_version_list` + - Add the response parameter `depend_version_list` to the interface `ShowFunctionCode` + - Add the response parameter `depend_version_list` to the interface `ShowFunctionConfig` + - Changes of the interface `ListReservedInstanceConfigs`: + - Add the request parameters `marker`, `limit` + - Add the response parameter `reserved_instances` + - Remove the response parameter `reservedinstances` + - Add the response parameter `depend_version_list` to the interface `ImportFunction` + - Changes of the interface `ListFunctionReservedInstances`: + - Add the request parameter `limit` + - Remove the request parameter `maxitems` + - Changes of the interface `ShowWorkflowExecutionForPage`: + - Add the request parameters `offset`, `limit`, `start_time`, `end_time` + - Remove the request parameter `CreateWorkflowRequestBody` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the request parameters `id`, `weight` from the interface `SetGaussMySqlProxyWeight` + - Add the enum values `Pending` to the response parameter `status` to the interface `ShowGaussMySqlJobInfo` + - Changes of the interface `ListScheduleJobs`: + - Add the response parameter `job_status` + - Remove the response parameter `task_status` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `ListConfigurationDatastores`: + - Add the response parameter `datastore_name` + - Remove the response parameter `datastore_type` + - Remove the request parameters `instance`, `vcpus`, `ram` from the interface `ModifyEpsQuotas` + - Remove the response parameters `instance`, `vcpus`, `ram`, `instance`, `vcpus`, `ram` from the interface `ListEpsQuotas` + +### HuaweiCloud SDK HSS + +- _Features_ + - Support the following interfaces: + - `ShowAssetStatistic` + - `ListUserStatistics` + - `ListPortStatistics` + - `ListProcessStatistics` + - `ListAppStatistics` + - `ListAutoLaunchStatistics` + - `ListPorts` + - `ListApps` + - `ListAutoLaunchs` + - `ListAppChangeHistories` + - `ListAutoLaunchChangeHistories` + - `ListProtectionServer` + - `ListProtectionPolicy` + - `UpdateProtectionPolicy` + - `StartProtection` + - `StopProtection` + - `ShowBackupPolicyInfo` + - `UpdateBackupPolicyInfo` + - `ChangeEvent` + - `ListAlarmWhiteList` + - `ListHostGroups` + - `ChangeHostsGroup` + - `AddHostsGroup` + - `DeleteHostsGroup` + - `ListPolicyGroup` + - `AssociatePolicyGroup` + - `ListVulHosts` + - `ChangeVulStatus` + - `ListWtpProtectHost` + - `SetWtpProtectionStatusInfo` + - `SetRaspSwitch` + - `ListHostProtectHistoryInfo` + - `ListHostRaspProtectHistoryInfo` +- _Bug Fix_ + - None +- _Change_ + - Add the response parameters `fix_status`, `enable_auto_fix`, `rule_params` to the interface `ListRiskConfigCheckRules` + - Add the response parameter `extend_info` to the interface `ListSecurityEvents` + - Changes of the interface `ListHostStatus`: + - Add the response parameters `enterprise_project_id`, `agent_create_time`, `agent_update_time`, `agent_version`, `upgrade_status`, `upgrade_result_code`, `upgradable` + - The request parameter `region` changed to required + - The request parameter `vul_id` changed to required of the interface `ListVulnerabilities` + +### HuaweiCloud SDK IEF + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - The response parameter `key`, `value` changed to not required of the interface `ListTags` + - The request parameter `key`, `value` changed to not required of the interface `CreateTag` + - The response parameter `key`, `value` changed to not required of the interface `ListEdgeNodes` + - The response parameter `key`, `value` changed to not required of the interface `ShowEdgeNodeDetail` + - The response parameter `key`, `value` changed to not required of the interface `UpdateEdgeNode` + - Add the request parameter `device_ids` to the interface `CreateEdgeGroup` + - Changes of the interface `ListEdgeGroupCerts`: + - Add the response parameter `groupcerts` + - Remove the response parameter `edge_groups` + - The response parameter `type` changed to not required of the interface `ListDevices` + - The request parameter `type` changed to not required of the interface `CreateDevice` + - The response parameter `type` changed to not required of the interface `ShowDevice` + - The response parameter `type` changed to not required of the interface `UpdateDevice` + - The response parameter `type` changed to not required of the interface `ShowDeviceTwin` + - Changes of the interface `UpdateDeviceTwin`: + - The request parameter `twin`, `property_visitors` changed to not required + - The response parameter `type` changed to not required + - The response parameter `key`, `value` changed to not required of the interface `ListDeviceTemplates` + - The request parameter `key`, `value` changed to not required of the interface `CreateDeviceTemplate` + - The response parameter `key`, `value` changed to not required of the interface `ShowDeviceTemplate` + - The response parameter `key`, `value` changed to not required of the interface `UpdateDeviceTemplateById` + - The response parameter `key`, `value` changed to not required of the interface `ListResourceByTags` + - The request parameter `key`, `value` changed to not required of the interface `BatchAddDeleteTags` + - The response parameter `read_only` changed to not required of the interface `ListApps` + - The response parameter `read_only` changed to not required of the interface `ShowAppDetail` + - The response parameter `read_only` changed to not required of the interface `UpdateApp` + - The response parameter `read_only` changed to not required of the interface `ListAppVersions` + - The request parameter `read_only` changed to not required of the interface `CreateAppVersions` + - The response parameter `read_only` changed to not required of the interface `ShowAppVersionDetail` + - Changes of the interface `UpdateAppVersion`: + - The request parameter `read_only` changed to not required + - The response parameter `read_only` changed to not required + - The response parameter `host_network`, `read_only` changed to not required of the interface `ListDeployments` + - The request parameter `host_network`, `read_only` changed to not required of the interface `CreateDeployments` + - The response parameter `host_network`, `read_only` changed to not required of the interface `ShowDeployment` + - Changes of the interface `UpdateDeployment`: + - The request parameter `replicas`, `host_network`, `read_only` changed to not required + - The response parameter `host_network`, `read_only` changed to not required + - The response parameter `host_network`, `read_only`changed to not required of the interface `ListPods` + - The request parameter `description` changed to not required of the interface `CreateEncryptdatas` + - The request parameter `description` changed to not required of the interface `UpdateEncryptdatas` + - Changes of the interface `ListBatchJob`: + - Add the response parameters `task_total_count`, `task_success_count`, `task_failed_count`, `status_last_updated_at`, `description` + - Remove the response parameters `task_count`, `success_count`, `failed_count`, `updated_at` + - Changes of the interface `ShowBatchJob`: + - Add the response parameter `status_last_updated_at` + - Remove the response parameter `updated_at` + +### HuaweiCloud SDK Live + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `key` to the interface `CreateRecordCallbackConfig` + - Changes of the interface `UpdateRecordCallbackConfig`: + - Add the request parameter `key` + - Add the response parameters `id`, `publish_domain`, `app`, `notify_callback_url`, `notify_event_subscription`, `sign_type`, `create_time`, `update_time` + +### HuaweiCloud SDK LTS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `UpdateSqlAlarmRule` + - Add the request parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `CreateSqlAlarmRule` + - Add the response parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `ListSqlAlarmRules` + - Add the request parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `UpdateKeywordsAlarmRule` + - Add the request parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `CreateKeywordsAlarmRule` + - Add the response parameters `trigger_condition_count`, `trigger_condition_frequency`, `whether_recovery_policy`, `recovery_policy` to the interface `ListKeywordsAlarmRules` + - The request parameter `host_id_list` changed to not required of the interface `ListHost` + - The request parameter `is_analysis`, `is_analysis` changed to not required of the interface `UpdateStructConfig` + - The request parameter `is_analysis`, `is_analysis` changed to not required of the interface `CreateStructConfig` + +### HuaweiCloud SDK OSM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the response parameter `resource_type_id` to the interface `ListAuthorizations` + +### HuaweiCloud SDK RDS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - The request parameter `restart` changed to required of the interface `StartInstanceRestartAction` + +### HuaweiCloud SDK Workspace + +- _Features_ + - Support the interface `ShowQuotas` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.16 2022-12-15 ### HuaweiCloud SDK APM diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 0f102dcb4d..026b215f89 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,328 @@ +# 3.1.17 2022-12-19 + +### HuaweiCloud SDK APM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowMonitorItemViewConfig`响应参数`function`改为必填 + - 接口`ShowTrend`请求参数`view_type`、`collector_name`、`metric_set`、`function`、`env_id`、`start_time`、`end_time`改为必填 + - 接口`ShowSumTable`请求参数`view_type`、`collector_name`、`metric_set`、`function`、`page`、`page_size`、`env_id`、`start_time`、`end_time`改为必填 + - 接口`ShowRawTable`: + - 新增请求参数 `last_row_id` + - 移除请求参数 `lastRowId` + - 请求参数`function`改为必填 + - 接口`SearchAgent`: + - 新增请求参数 `order_by_status` + - 移除请求参数 `orderByStatus` + +### HuaweiCloud SDK BCS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowBlockchainDetail`新增响应参数 `order_fade_enabled`、`is_support_tc3`、`order_fade_cache`、`deploy_status`、`block_info`、`cluster_platform_type`、`status`、`status_detail`、`order_fade_enabled` + - 接口`DeleteMemberInvite`新增响应参数 `result` + - 接口`HandleNotification`新增响应参数 `result` + - 接口`CreateNewBlockchain`: + - 请求参数`node_flavor`类型调整 `string` -> `int64` + - 请求参数`cce_flavor`类型调整 `string` -> `int64` + - 请求参数`init_node_pwd`类型调整 `string` -> `int64` + - 请求参数`az`类型调整 `string` -> `int64` + - 请求参数`cluster_platform_type`类型调整 `string` -> `int64` + - 接口`DownloadBlockchainCert`新增响应参数 `result` + - 接口`DownloadBlockchainSdkConfig`新增响应参数 `result` + - 接口`ListEntityMetric`新增响应参数 `filesystemUsage` + - 接口`CreateBlockchainCertByUserName`新增响应参数 `result` + +### HuaweiCloud SDK CBH + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateInstanceOrder`请求参数`available_zone_id`改为非必填 + +### HuaweiCloud SDK CBR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateVault`: + - 请求参数`object_type`新增枚举值`workspace` + - 响应参数`object_type`新增枚举值`workspace` + - 接口`ListVault`响应参数`object_type`新增枚举值`workspace` + - 接口`ShowVault`响应参数`object_type`新增枚举值`workspace` + - 接口`UpdateVault`响应参数`object_type`新增枚举值`workspace` + - 接口`ShowBackup`响应参数`resource_type`新增枚举值`OS::Workspace::DesktopV2` + - 接口`ListBackups`: + - 请求参数`resource_type`新增枚举值`OS::Workspace::DesktopV2` + - 响应参数`resource_type`新增枚举值`OS::Workspace::DesktopV2` + - 接口`ListProtectable`响应参数`object_type`新增枚举值`workspace` + - 接口`ShowProtectable`响应参数`object_type`新增枚举值`workspace` + - 接口`ShowVaultResourceInstances`响应参数`object_type`新增枚举值`workspace` + +### HuaweiCloud SDK CC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateBandwidthPackage`新增请求参数 `interflow_mode` + - 接口`ListInterRegionBandwidths`: + - 新增响应参数 `inter_region_bandwidths` + - 移除响应参数 `inter_region_bandwidth` + +### HuaweiCloud SDK CSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateCluster`: + - 新增请求参数 `vpcPermissions` + - 新增响应参数 `orderId` + - 移除请求参数 `vpcPermisssions` + - 移除响应参数 `ordeId` + +### HuaweiCloud SDK ECS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListServersDetails`新增请求参数 `server_id` + +### HuaweiCloud SDK EIP + +- _新增特性_ + - 支持接口`ShowResourcesJobDetail`、`ChangeBandwidthToPeriod`、`ChangePublicipToPeriod` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK FunctionGraph + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateFunction`: + - 新增请求参数 `depend_version_list`、`func_vpc` + - 新增响应参数 `depend_version_list` + - 接口`UpdateFunctionCode`: + - 新增请求参数 `depend_version_list` + - 新增响应参数 `depend_version_list` + - 接口`ShowFunctionCode`新增响应参数 `depend_version_list` + - 接口`ShowFunctionConfig`新增响应参数 `depend_version_list` + - 接口`ListReservedInstanceConfigs`: + - 新增请求参数 `marker`、`limit` + - 新增响应参数 `reserved_instances` + - 移除响应参数 `reservedinstances` + - 接口`ImportFunction`新增响应参数 `depend_version_list` + - 接口`ListFunctionReservedInstances`: + - 新增请求参数 `limit` + - 移除请求参数 `maxitems` + - 接口`ShowWorkflowExecutionForPage`: + - 新增请求参数 `offset`、`limit`、`start_time`、`end_time` + - 移除请求参数 `CreateWorkflowRequestBody` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`SetGaussMySqlProxyWeight`移除请求参数 `id`、`weight` + - 接口`ShowGaussMySqlJobInfo`响应参数`status`新增枚举值`Pending` + - 接口`ListScheduleJobs`: + - 新增响应参数 `job_status` + - 移除响应参数 `task_status` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListConfigurationDatastores`: + - 新增响应参数 `datastore_name` + - 移除响应参数 `datastore_type` + - 接口`ModifyEpsQuotas`移除请求参数 `instance`、`vcpus`、`ram` + - 接口`ListEpsQuotas`移除响应参数 `instance`、`vcpus`、`ram`、`instance`、`vcpus`、`ram` + +### HuaweiCloud SDK HSS + +- _新增特性_ + - 支持以下接口: + - `ShowAssetStatistic` + - `ListUserStatistics` + - `ListPortStatistics` + - `ListProcessStatistics` + - `ListAppStatistics` + - `ListAutoLaunchStatistics` + - `ListPorts` + - `ListApps` + - `ListAutoLaunchs` + - `ListAppChangeHistories` + - `ListAutoLaunchChangeHistories` + - `ListProtectionServer` + - `ListProtectionPolicy` + - `UpdateProtectionPolicy` + - `StartProtection` + - `StopProtection` + - `ShowBackupPolicyInfo` + - `UpdateBackupPolicyInfo` + - `ChangeEvent` + - `ListAlarmWhiteList` + - `ListHostGroups` + - `ChangeHostsGroup` + - `AddHostsGroup` + - `DeleteHostsGroup` + - `ListPolicyGroup` + - `AssociatePolicyGroup` + - `ListVulHosts` + - `ChangeVulStatus` + - `ListWtpProtectHost` + - `SetWtpProtectionStatusInfo` + - `SetRaspSwitch` + - `ListHostProtectHistoryInfo` + - `ListHostRaspProtectHistoryInfo` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListRiskConfigCheckRules`新增响应参数 `fix_status`、`enable_auto_fix`、`rule_params` + - 接口`ListSecurityEvents`新增响应参数 `extend_info` + - 接口`ListHostStatus`: + - 新增响应参数 `enterprise_project_id`、`agent_create_time`、`agent_update_time`、`agent_version`、`upgrade_status`、`upgrade_result_code`、`upgradable` + - 请求参数`region`改为必填 + - 接口`ListVulnerabilities`请求参数`vul_id`改为必填 + +### HuaweiCloud SDK IEF + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListTags`响应参数`key`、`value`改为非必填 + - 接口`CreateTag`请求参数`key`、`value`改为非必填 + - 接口`ListEdgeNodes`响应参数`key`、`value`改为非必填 + - 接口`ShowEdgeNodeDetail`响应参数`key`、`value`改为非必填 + - 接口`UpdateEdgeNode`响应参数`key`、`value`改为非必填 + - 接口`CreateEdgeGroup`新增请求参数 `device_ids` + - 接口`ListEdgeGroupCerts`: + - 新增响应参数 `groupcerts` + - 移除响应参数 `edge_groups` + - 接口`ListDevices`响应参数`type`改为非必填 + - 接口`CreateDevice`请求参数`type`改为非必填 + - 接口`ShowDevice`响应参数`type`改为非必填 + - 接口`UpdateDevice`响应参数`type`改为非必填 + - 接口`ShowDeviceTwin`响应参数`type`改为非必填 + - 接口`UpdateDeviceTwin`: + - 请求参数`twin`、`property_visitors`改为非必填 + - 响应参数`type`改为非必填 + - 接口`ListDeviceTemplates`响应参数`key`、`value`改为非必填 + - 接口`CreateDeviceTemplate`请求参数`key`、`value`改为非必填 + - 接口`ShowDeviceTemplate`响应参数`key`、`value`改为非必填 + - 接口`UpdateDeviceTemplateById`响应参数`key`、`value`改为非必填 + - 接口`ListResourceByTags`响应参数`key`、`value`改为非必填 + - 接口`BatchAddDeleteTags`请求参数`key`、`value`改为非必填 + - 接口`ListApps`响应参数`read_only`改为非必填 + - 接口`ShowAppDetail`响应参数`read_only`改为非必填 + - 接口`UpdateApp`响应参数`read_only`改为非必填 + - 接口`ListAppVersions`响应参数`read_only`改为非必填 + - 接口`CreateAppVersions`请求参数`read_only`改为非必填 + - 接口`ShowAppVersionDetail`响应参数`read_only`改为非必填 + - 接口`UpdateAppVersion`: + - 请求参数`read_only`改为非必填 + - 响应参数`read_only`改为非必填 + - 接口`ListDeployments`响应参数`host_network`、`read_only`改为非必填 + - 接口`CreateDeployments`请求参数`host_network`、`read_only`改为非必填 + - 接口`ShowDeployment`响应参数`host_network`、`read_only`改为非必填 + - 接口`UpdateDeployment`: + - 请求参数`replicas`、`host_network`、`read_only`改为非必填 + - 响应参数`host_network`、`read_only`改为非必填 + - 接口`ListPods`响应参数`host_network`、`read_only`改为非必填 + - 接口`CreateEncryptdatas`请求参数`description`改为非必填 + - 接口`UpdateEncryptdatas`请求参数`description`改为非必填 + - 接口`ListBatchJob`: + - 新增响应参数 `task_total_count`、`task_success_count`、`task_failed_count`、`status_last_updated_at`、`description` + - 移除响应参数 `task_count`、`success_count`、`failed_count`、`updated_at` + - 接口`ShowBatchJob`: + - 新增响应参数 `status_last_updated_at` + - 移除响应参数 `updated_at` + +### HuaweiCloud SDK Live + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateRecordCallbackConfig`新增请求参数 `key` + - 接口`UpdateRecordCallbackConfig`: + - 新增请求参数 `key` + - 新增响应参数 `id`、`publish_domain`、`app`、`notify_callback_url`、`notify_event_subscription`、`sign_type`、`create_time`、`update_time` + +### HuaweiCloud SDK LTS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`UpdateSqlAlarmRule`新增请求参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`CreateSqlAlarmRule`新增请求参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`ListSqlAlarmRules`新增响应参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`UpdateKeywordsAlarmRule`新增请求参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`CreateKeywordsAlarmRule`新增请求参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`ListKeywordsAlarmRules`新增响应参数 `trigger_condition_count`、`trigger_condition_frequency`、`whether_recovery_policy`、`recovery_policy` + - 接口`ListHost`请求参数`host_id_list`改为非必填 + - 接口`UpdateStructConfig`请求参数`is_analysis`、`is_analysis`改为非必填 + - 接口`CreateStructConfig`请求参数`is_analysis`、`is_analysis`改为非必填 + +### HuaweiCloud SDK OSM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListAuthorizations`新增响应参数 `resource_type_id` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`StartInstanceRestartAction`请求参数`restart`改为必填 + +### HuaweiCloud SDK Workspace + +- _新增特性_ + - 支持接口`ShowQuotas` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.16 2022-12-15 ### HuaweiCloud SDK APM diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 2dec7b590d..cad6ec3e54 100755 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,131 +1,132 @@ -huaweicloudsdkcore == 3.1.16 -huaweicloudsdkantiddos == 3.1.16 -huaweicloudsdkaom == 3.1.16 -huaweicloudsdkaos == 3.1.16 -huaweicloudsdkapig == 3.1.16 -huaweicloudsdkapm == 3.1.16 -huaweicloudsdkas == 3.1.16 -huaweicloudsdkbcs == 3.1.16 -huaweicloudsdkbms == 3.1.16 -huaweicloudsdkbss == 3.1.16 -huaweicloudsdkbssintl == 3.1.16 -huaweicloudsdkcae == 3.1.16 -huaweicloudsdkcampusgo == 3.1.16 -huaweicloudsdkcbh == 3.1.16 -huaweicloudsdkcbr == 3.1.16 -huaweicloudsdkcbs == 3.1.16 -huaweicloudsdkcc == 3.1.16 -huaweicloudsdkcce == 3.1.16 -huaweicloudsdkccm == 3.1.16 -huaweicloudsdkcdm == 3.1.16 -huaweicloudsdkcdn == 3.1.16 -huaweicloudsdkces == 3.1.16 -huaweicloudsdkcfw == 3.1.16 -huaweicloudsdkcgs == 3.1.16 -huaweicloudsdkclassroom == 3.1.16 -huaweicloudsdkcloudartifact == 3.1.16 -huaweicloudsdkcloudbuild == 3.1.16 -huaweicloudsdkclouddeploy == 3.1.16 -huaweicloudsdkcloudide == 3.1.16 -huaweicloudsdkcloudpipeline == 3.1.16 -huaweicloudsdkcloudrtc == 3.1.16 -huaweicloudsdkcloudtable == 3.1.16 -huaweicloudsdkcloudtest == 3.1.16 -huaweicloudsdkcodecheck == 3.1.16 -huaweicloudsdkcodecraft == 3.1.16 -huaweicloudsdkcodehub == 3.1.16 -huaweicloudsdkcph == 3.1.16 -huaweicloudsdkcpts == 3.1.16 -huaweicloudsdkcse == 3.1.16 -huaweicloudsdkcsms == 3.1.16 -huaweicloudsdkcss == 3.1.16 -huaweicloudsdkcts == 3.1.16 -huaweicloudsdkdas == 3.1.16 -huaweicloudsdkdbss == 3.1.16 -huaweicloudsdkdc == 3.1.16 -huaweicloudsdkdcs == 3.1.16 -huaweicloudsdkddm == 3.1.16 -huaweicloudsdkdds == 3.1.16 -huaweicloudsdkdeh == 3.1.16 -huaweicloudsdkdevsecurity == 3.1.16 -huaweicloudsdkdevstar == 3.1.16 -huaweicloudsdkdgc == 3.1.16 -huaweicloudsdkdlf == 3.1.16 -huaweicloudsdkdli == 3.1.16 -huaweicloudsdkdms == 3.1.16 -huaweicloudsdkdns == 3.1.16 -huaweicloudsdkdrs == 3.1.16 -huaweicloudsdkdsc == 3.1.16 -huaweicloudsdkdwr == 3.1.16 -huaweicloudsdkdws == 3.1.16 -huaweicloudsdkecs == 3.1.16 -huaweicloudsdkeg == 3.1.16 -huaweicloudsdkeihealth == 3.1.16 -huaweicloudsdkeip == 3.1.16 -huaweicloudsdkelb == 3.1.16 -huaweicloudsdkeps == 3.1.16 -huaweicloudsdker == 3.1.16 -huaweicloudsdkevs == 3.1.16 -huaweicloudsdkfrs == 3.1.16 -huaweicloudsdkfunctiongraph == 3.1.16 -huaweicloudsdkga == 3.1.16 -huaweicloudsdkgaussdb == 3.1.16 -huaweicloudsdkgaussdbfornosql == 3.1.16 -huaweicloudsdkgaussdbforopengauss == 3.1.16 -huaweicloudsdkges == 3.1.16 -huaweicloudsdkgsl == 3.1.16 -huaweicloudsdkhilens == 3.1.16 -huaweicloudsdkhss == 3.1.16 -huaweicloudsdkiam == 3.1.16 -huaweicloudsdkiec == 3.1.16 -huaweicloudsdkief == 3.1.16 -huaweicloudsdkies == 3.1.16 -huaweicloudsdkimage == 3.1.16 -huaweicloudsdkimagesearch == 3.1.16 -huaweicloudsdkims == 3.1.16 -huaweicloudsdkiotanalytics == 3.1.16 -huaweicloudsdkiotda == 3.1.16 -huaweicloudsdkiotedge == 3.1.16 -huaweicloudsdkivs == 3.1.16 -huaweicloudsdkkafka == 3.1.16 -huaweicloudsdkkms == 3.1.16 -huaweicloudsdkkps == 3.1.16 -huaweicloudsdklive == 3.1.16 -huaweicloudsdklts == 3.1.16 -huaweicloudsdkmapds == 3.1.16 -huaweicloudsdkmas == 3.1.16 -huaweicloudsdkmeeting == 3.1.16 -huaweicloudsdkmoderation == 3.1.16 -huaweicloudsdkmpc == 3.1.16 -huaweicloudsdkmrs == 3.1.16 -huaweicloudsdknat == 3.1.16 -huaweicloudsdknlp == 3.1.16 -huaweicloudsdkocr == 3.1.16 -huaweicloudsdkoms == 3.1.16 -huaweicloudsdkosm == 3.1.16 -huaweicloudsdkprojectman == 3.1.16 -huaweicloudsdkrabbitmq == 3.1.16 -huaweicloudsdkrds == 3.1.16 -huaweicloudsdkres == 3.1.16 -huaweicloudsdkrms == 3.1.16 -huaweicloudsdkrocketmq == 3.1.16 -huaweicloudsdkroma == 3.1.16 -huaweicloudsdksa == 3.1.16 -huaweicloudsdkscm == 3.1.16 -huaweicloudsdksdrs == 3.1.16 -huaweicloudsdkservicestage == 3.1.16 -huaweicloudsdksfsturbo == 3.1.16 -huaweicloudsdksis == 3.1.16 -huaweicloudsdksmn == 3.1.16 -huaweicloudsdksms == 3.1.16 -huaweicloudsdkswr == 3.1.16 -huaweicloudsdktms == 3.1.16 -huaweicloudsdkugo == 3.1.16 -huaweicloudsdkvas == 3.1.16 -huaweicloudsdkvcm == 3.1.16 -huaweicloudsdkvod == 3.1.16 -huaweicloudsdkvpc == 3.1.16 -huaweicloudsdkvpcep == 3.1.16 -huaweicloudsdkvss == 3.1.16 -huaweicloudsdkwaf == 3.1.16 -huaweicloudsdkworkspace == 3.1.16 +huaweicloudsdkcore == 3.1.17 +huaweicloudsdkantiddos == 3.1.17 +huaweicloudsdkaom == 3.1.17 +huaweicloudsdkaos == 3.1.17 +huaweicloudsdkapig == 3.1.17 +huaweicloudsdkapm == 3.1.17 +huaweicloudsdkas == 3.1.17 +huaweicloudsdkbcs == 3.1.17 +huaweicloudsdkbms == 3.1.17 +huaweicloudsdkbss == 3.1.17 +huaweicloudsdkbssintl == 3.1.17 +huaweicloudsdkcae == 3.1.17 +huaweicloudsdkcampusgo == 3.1.17 +huaweicloudsdkcbh == 3.1.17 +huaweicloudsdkcbr == 3.1.17 +huaweicloudsdkcbs == 3.1.17 +huaweicloudsdkcc == 3.1.17 +huaweicloudsdkcce == 3.1.17 +huaweicloudsdkccm == 3.1.17 +huaweicloudsdkcdm == 3.1.17 +huaweicloudsdkcdn == 3.1.17 +huaweicloudsdkces == 3.1.17 +huaweicloudsdkcfw == 3.1.17 +huaweicloudsdkcgs == 3.1.17 +huaweicloudsdkclassroom == 3.1.17 +huaweicloudsdkcloudartifact == 3.1.17 +huaweicloudsdkcloudbuild == 3.1.17 +huaweicloudsdkclouddeploy == 3.1.17 +huaweicloudsdkcloudide == 3.1.17 +huaweicloudsdkcloudpipeline == 3.1.17 +huaweicloudsdkcloudrtc == 3.1.17 +huaweicloudsdkcloudtable == 3.1.17 +huaweicloudsdkcloudtest == 3.1.17 +huaweicloudsdkcodecheck == 3.1.17 +huaweicloudsdkcodecraft == 3.1.17 +huaweicloudsdkcodehub == 3.1.17 +huaweicloudsdkcph == 3.1.17 +huaweicloudsdkcpts == 3.1.17 +huaweicloudsdkcse == 3.1.17 +huaweicloudsdkcsms == 3.1.17 +huaweicloudsdkcss == 3.1.17 +huaweicloudsdkcts == 3.1.17 +huaweicloudsdkdas == 3.1.17 +huaweicloudsdkdbss == 3.1.17 +huaweicloudsdkdc == 3.1.17 +huaweicloudsdkdcs == 3.1.17 +huaweicloudsdkddm == 3.1.17 +huaweicloudsdkdds == 3.1.17 +huaweicloudsdkdeh == 3.1.17 +huaweicloudsdkdevsecurity == 3.1.17 +huaweicloudsdkdevstar == 3.1.17 +huaweicloudsdkdgc == 3.1.17 +huaweicloudsdkdlf == 3.1.17 +huaweicloudsdkdli == 3.1.17 +huaweicloudsdkdms == 3.1.17 +huaweicloudsdkdns == 3.1.17 +huaweicloudsdkdris == 3.1.17 +huaweicloudsdkdrs == 3.1.17 +huaweicloudsdkdsc == 3.1.17 +huaweicloudsdkdwr == 3.1.17 +huaweicloudsdkdws == 3.1.17 +huaweicloudsdkecs == 3.1.17 +huaweicloudsdkeg == 3.1.17 +huaweicloudsdkeihealth == 3.1.17 +huaweicloudsdkeip == 3.1.17 +huaweicloudsdkelb == 3.1.17 +huaweicloudsdkeps == 3.1.17 +huaweicloudsdker == 3.1.17 +huaweicloudsdkevs == 3.1.17 +huaweicloudsdkfrs == 3.1.17 +huaweicloudsdkfunctiongraph == 3.1.17 +huaweicloudsdkga == 3.1.17 +huaweicloudsdkgaussdb == 3.1.17 +huaweicloudsdkgaussdbfornosql == 3.1.17 +huaweicloudsdkgaussdbforopengauss == 3.1.17 +huaweicloudsdkges == 3.1.17 +huaweicloudsdkgsl == 3.1.17 +huaweicloudsdkhilens == 3.1.17 +huaweicloudsdkhss == 3.1.17 +huaweicloudsdkiam == 3.1.17 +huaweicloudsdkiec == 3.1.17 +huaweicloudsdkief == 3.1.17 +huaweicloudsdkies == 3.1.17 +huaweicloudsdkimage == 3.1.17 +huaweicloudsdkimagesearch == 3.1.17 +huaweicloudsdkims == 3.1.17 +huaweicloudsdkiotanalytics == 3.1.17 +huaweicloudsdkiotda == 3.1.17 +huaweicloudsdkiotedge == 3.1.17 +huaweicloudsdkivs == 3.1.17 +huaweicloudsdkkafka == 3.1.17 +huaweicloudsdkkms == 3.1.17 +huaweicloudsdkkps == 3.1.17 +huaweicloudsdklive == 3.1.17 +huaweicloudsdklts == 3.1.17 +huaweicloudsdkmapds == 3.1.17 +huaweicloudsdkmas == 3.1.17 +huaweicloudsdkmeeting == 3.1.17 +huaweicloudsdkmoderation == 3.1.17 +huaweicloudsdkmpc == 3.1.17 +huaweicloudsdkmrs == 3.1.17 +huaweicloudsdknat == 3.1.17 +huaweicloudsdknlp == 3.1.17 +huaweicloudsdkocr == 3.1.17 +huaweicloudsdkoms == 3.1.17 +huaweicloudsdkosm == 3.1.17 +huaweicloudsdkprojectman == 3.1.17 +huaweicloudsdkrabbitmq == 3.1.17 +huaweicloudsdkrds == 3.1.17 +huaweicloudsdkres == 3.1.17 +huaweicloudsdkrms == 3.1.17 +huaweicloudsdkrocketmq == 3.1.17 +huaweicloudsdkroma == 3.1.17 +huaweicloudsdksa == 3.1.17 +huaweicloudsdkscm == 3.1.17 +huaweicloudsdksdrs == 3.1.17 +huaweicloudsdkservicestage == 3.1.17 +huaweicloudsdksfsturbo == 3.1.17 +huaweicloudsdksis == 3.1.17 +huaweicloudsdksmn == 3.1.17 +huaweicloudsdksms == 3.1.17 +huaweicloudsdkswr == 3.1.17 +huaweicloudsdktms == 3.1.17 +huaweicloudsdkugo == 3.1.17 +huaweicloudsdkvas == 3.1.17 +huaweicloudsdkvcm == 3.1.17 +huaweicloudsdkvod == 3.1.17 +huaweicloudsdkvpc == 3.1.17 +huaweicloudsdkvpcep == 3.1.17 +huaweicloudsdkvss == 3.1.17 +huaweicloudsdkwaf == 3.1.17 +huaweicloudsdkworkspace == 3.1.17 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 45ba2ca694..0ea059b425 100755 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,137 +34,138 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.16', - 'huaweicloudsdkantiddos==3.1.16', - 'huaweicloudsdkaom==3.1.16', - 'huaweicloudsdkaos==3.1.16', - 'huaweicloudsdkapig==3.1.16', - 'huaweicloudsdkapm==3.1.16', - 'huaweicloudsdkas==3.1.16', - 'huaweicloudsdkbcs==3.1.16', - 'huaweicloudsdkbms==3.1.16', - 'huaweicloudsdkbss==3.1.16', - 'huaweicloudsdkbssintl==3.1.16', - 'huaweicloudsdkcae==3.1.16', - 'huaweicloudsdkcampusgo==3.1.16', - 'huaweicloudsdkcbh==3.1.16', - 'huaweicloudsdkcbr==3.1.16', - 'huaweicloudsdkcbs==3.1.16', - 'huaweicloudsdkcc==3.1.16', - 'huaweicloudsdkcce==3.1.16', - 'huaweicloudsdkccm==3.1.16', - 'huaweicloudsdkcdm==3.1.16', - 'huaweicloudsdkcdn==3.1.16', - 'huaweicloudsdkces==3.1.16', - 'huaweicloudsdkcfw==3.1.16', - 'huaweicloudsdkcgs==3.1.16', - 'huaweicloudsdkclassroom==3.1.16', - 'huaweicloudsdkcloudartifact==3.1.16', - 'huaweicloudsdkcloudbuild==3.1.16', - 'huaweicloudsdkclouddeploy==3.1.16', - 'huaweicloudsdkcloudide==3.1.16', - 'huaweicloudsdkcloudpipeline==3.1.16', - 'huaweicloudsdkcloudrtc==3.1.16', - 'huaweicloudsdkcloudtable==3.1.16', - 'huaweicloudsdkcloudtest==3.1.16', - 'huaweicloudsdkcodecheck==3.1.16', - 'huaweicloudsdkcodecraft==3.1.16', - 'huaweicloudsdkcodehub==3.1.16', - 'huaweicloudsdkcph==3.1.16', - 'huaweicloudsdkcpts==3.1.16', - 'huaweicloudsdkcse==3.1.16', - 'huaweicloudsdkcsms==3.1.16', - 'huaweicloudsdkcss==3.1.16', - 'huaweicloudsdkcts==3.1.16', - 'huaweicloudsdkdas==3.1.16', - 'huaweicloudsdkdbss==3.1.16', - 'huaweicloudsdkdc==3.1.16', - 'huaweicloudsdkdcs==3.1.16', - 'huaweicloudsdkddm==3.1.16', - 'huaweicloudsdkdds==3.1.16', - 'huaweicloudsdkdeh==3.1.16', - 'huaweicloudsdkdevsecurity==3.1.16', - 'huaweicloudsdkdevstar==3.1.16', - 'huaweicloudsdkdgc==3.1.16', - 'huaweicloudsdkdlf==3.1.16', - 'huaweicloudsdkdli==3.1.16', - 'huaweicloudsdkdms==3.1.16', - 'huaweicloudsdkdns==3.1.16', - 'huaweicloudsdkdrs==3.1.16', - 'huaweicloudsdkdsc==3.1.16', - 'huaweicloudsdkdwr==3.1.16', - 'huaweicloudsdkdws==3.1.16', - 'huaweicloudsdkecs==3.1.16', - 'huaweicloudsdkeg==3.1.16', - 'huaweicloudsdkeihealth==3.1.16', - 'huaweicloudsdkeip==3.1.16', - 'huaweicloudsdkelb==3.1.16', - 'huaweicloudsdkeps==3.1.16', - 'huaweicloudsdker==3.1.16', - 'huaweicloudsdkevs==3.1.16', - 'huaweicloudsdkfrs==3.1.16', - 'huaweicloudsdkfunctiongraph==3.1.16', - 'huaweicloudsdkga==3.1.16', - 'huaweicloudsdkgaussdb==3.1.16', - 'huaweicloudsdkgaussdbfornosql==3.1.16', - 'huaweicloudsdkgaussdbforopengauss==3.1.16', - 'huaweicloudsdkges==3.1.16', - 'huaweicloudsdkgsl==3.1.16', - 'huaweicloudsdkhilens==3.1.16', - 'huaweicloudsdkhss==3.1.16', - 'huaweicloudsdkiam==3.1.16', - 'huaweicloudsdkiec==3.1.16', - 'huaweicloudsdkief==3.1.16', - 'huaweicloudsdkies==3.1.16', - 'huaweicloudsdkimage==3.1.16', - 'huaweicloudsdkimagesearch==3.1.16', - 'huaweicloudsdkims==3.1.16', - 'huaweicloudsdkiotanalytics==3.1.16', - 'huaweicloudsdkiotda==3.1.16', - 'huaweicloudsdkiotedge==3.1.16', - 'huaweicloudsdkivs==3.1.16', - 'huaweicloudsdkkafka==3.1.16', - 'huaweicloudsdkkms==3.1.16', - 'huaweicloudsdkkps==3.1.16', - 'huaweicloudsdklive==3.1.16', - 'huaweicloudsdklts==3.1.16', - 'huaweicloudsdkmapds==3.1.16', - 'huaweicloudsdkmas==3.1.16', - 'huaweicloudsdkmeeting==3.1.16', - 'huaweicloudsdkmoderation==3.1.16', - 'huaweicloudsdkmpc==3.1.16', - 'huaweicloudsdkmrs==3.1.16', - 'huaweicloudsdknat==3.1.16', - 'huaweicloudsdknlp==3.1.16', - 'huaweicloudsdkocr==3.1.16', - 'huaweicloudsdkoms==3.1.16', - 'huaweicloudsdkosm==3.1.16', - 'huaweicloudsdkprojectman==3.1.16', - 'huaweicloudsdkrabbitmq==3.1.16', - 'huaweicloudsdkrds==3.1.16', - 'huaweicloudsdkres==3.1.16', - 'huaweicloudsdkrms==3.1.16', - 'huaweicloudsdkrocketmq==3.1.16', - 'huaweicloudsdkroma==3.1.16', - 'huaweicloudsdksa==3.1.16', - 'huaweicloudsdkscm==3.1.16', - 'huaweicloudsdksdrs==3.1.16', - 'huaweicloudsdkservicestage==3.1.16', - 'huaweicloudsdksfsturbo==3.1.16', - 'huaweicloudsdksis==3.1.16', - 'huaweicloudsdksmn==3.1.16', - 'huaweicloudsdksms==3.1.16', - 'huaweicloudsdkswr==3.1.16', - 'huaweicloudsdktms==3.1.16', - 'huaweicloudsdkugo==3.1.16', - 'huaweicloudsdkvas==3.1.16', - 'huaweicloudsdkvcm==3.1.16', - 'huaweicloudsdkvod==3.1.16', - 'huaweicloudsdkvpc==3.1.16', - 'huaweicloudsdkvpcep==3.1.16', - 'huaweicloudsdkvss==3.1.16', - 'huaweicloudsdkwaf==3.1.16', - 'huaweicloudsdkworkspace==3.1.16', + 'huaweicloudsdkcore==3.1.17', + 'huaweicloudsdkantiddos==3.1.17', + 'huaweicloudsdkaom==3.1.17', + 'huaweicloudsdkaos==3.1.17', + 'huaweicloudsdkapig==3.1.17', + 'huaweicloudsdkapm==3.1.17', + 'huaweicloudsdkas==3.1.17', + 'huaweicloudsdkbcs==3.1.17', + 'huaweicloudsdkbms==3.1.17', + 'huaweicloudsdkbss==3.1.17', + 'huaweicloudsdkbssintl==3.1.17', + 'huaweicloudsdkcae==3.1.17', + 'huaweicloudsdkcampusgo==3.1.17', + 'huaweicloudsdkcbh==3.1.17', + 'huaweicloudsdkcbr==3.1.17', + 'huaweicloudsdkcbs==3.1.17', + 'huaweicloudsdkcc==3.1.17', + 'huaweicloudsdkcce==3.1.17', + 'huaweicloudsdkccm==3.1.17', + 'huaweicloudsdkcdm==3.1.17', + 'huaweicloudsdkcdn==3.1.17', + 'huaweicloudsdkces==3.1.17', + 'huaweicloudsdkcfw==3.1.17', + 'huaweicloudsdkcgs==3.1.17', + 'huaweicloudsdkclassroom==3.1.17', + 'huaweicloudsdkcloudartifact==3.1.17', + 'huaweicloudsdkcloudbuild==3.1.17', + 'huaweicloudsdkclouddeploy==3.1.17', + 'huaweicloudsdkcloudide==3.1.17', + 'huaweicloudsdkcloudpipeline==3.1.17', + 'huaweicloudsdkcloudrtc==3.1.17', + 'huaweicloudsdkcloudtable==3.1.17', + 'huaweicloudsdkcloudtest==3.1.17', + 'huaweicloudsdkcodecheck==3.1.17', + 'huaweicloudsdkcodecraft==3.1.17', + 'huaweicloudsdkcodehub==3.1.17', + 'huaweicloudsdkcph==3.1.17', + 'huaweicloudsdkcpts==3.1.17', + 'huaweicloudsdkcse==3.1.17', + 'huaweicloudsdkcsms==3.1.17', + 'huaweicloudsdkcss==3.1.17', + 'huaweicloudsdkcts==3.1.17', + 'huaweicloudsdkdas==3.1.17', + 'huaweicloudsdkdbss==3.1.17', + 'huaweicloudsdkdc==3.1.17', + 'huaweicloudsdkdcs==3.1.17', + 'huaweicloudsdkddm==3.1.17', + 'huaweicloudsdkdds==3.1.17', + 'huaweicloudsdkdeh==3.1.17', + 'huaweicloudsdkdevsecurity==3.1.17', + 'huaweicloudsdkdevstar==3.1.17', + 'huaweicloudsdkdgc==3.1.17', + 'huaweicloudsdkdlf==3.1.17', + 'huaweicloudsdkdli==3.1.17', + 'huaweicloudsdkdms==3.1.17', + 'huaweicloudsdkdns==3.1.17', + 'huaweicloudsdkdris==3.1.17', + 'huaweicloudsdkdrs==3.1.17', + 'huaweicloudsdkdsc==3.1.17', + 'huaweicloudsdkdwr==3.1.17', + 'huaweicloudsdkdws==3.1.17', + 'huaweicloudsdkecs==3.1.17', + 'huaweicloudsdkeg==3.1.17', + 'huaweicloudsdkeihealth==3.1.17', + 'huaweicloudsdkeip==3.1.17', + 'huaweicloudsdkelb==3.1.17', + 'huaweicloudsdkeps==3.1.17', + 'huaweicloudsdker==3.1.17', + 'huaweicloudsdkevs==3.1.17', + 'huaweicloudsdkfrs==3.1.17', + 'huaweicloudsdkfunctiongraph==3.1.17', + 'huaweicloudsdkga==3.1.17', + 'huaweicloudsdkgaussdb==3.1.17', + 'huaweicloudsdkgaussdbfornosql==3.1.17', + 'huaweicloudsdkgaussdbforopengauss==3.1.17', + 'huaweicloudsdkges==3.1.17', + 'huaweicloudsdkgsl==3.1.17', + 'huaweicloudsdkhilens==3.1.17', + 'huaweicloudsdkhss==3.1.17', + 'huaweicloudsdkiam==3.1.17', + 'huaweicloudsdkiec==3.1.17', + 'huaweicloudsdkief==3.1.17', + 'huaweicloudsdkies==3.1.17', + 'huaweicloudsdkimage==3.1.17', + 'huaweicloudsdkimagesearch==3.1.17', + 'huaweicloudsdkims==3.1.17', + 'huaweicloudsdkiotanalytics==3.1.17', + 'huaweicloudsdkiotda==3.1.17', + 'huaweicloudsdkiotedge==3.1.17', + 'huaweicloudsdkivs==3.1.17', + 'huaweicloudsdkkafka==3.1.17', + 'huaweicloudsdkkms==3.1.17', + 'huaweicloudsdkkps==3.1.17', + 'huaweicloudsdklive==3.1.17', + 'huaweicloudsdklts==3.1.17', + 'huaweicloudsdkmapds==3.1.17', + 'huaweicloudsdkmas==3.1.17', + 'huaweicloudsdkmeeting==3.1.17', + 'huaweicloudsdkmoderation==3.1.17', + 'huaweicloudsdkmpc==3.1.17', + 'huaweicloudsdkmrs==3.1.17', + 'huaweicloudsdknat==3.1.17', + 'huaweicloudsdknlp==3.1.17', + 'huaweicloudsdkocr==3.1.17', + 'huaweicloudsdkoms==3.1.17', + 'huaweicloudsdkosm==3.1.17', + 'huaweicloudsdkprojectman==3.1.17', + 'huaweicloudsdkrabbitmq==3.1.17', + 'huaweicloudsdkrds==3.1.17', + 'huaweicloudsdkres==3.1.17', + 'huaweicloudsdkrms==3.1.17', + 'huaweicloudsdkrocketmq==3.1.17', + 'huaweicloudsdkroma==3.1.17', + 'huaweicloudsdksa==3.1.17', + 'huaweicloudsdkscm==3.1.17', + 'huaweicloudsdksdrs==3.1.17', + 'huaweicloudsdkservicestage==3.1.17', + 'huaweicloudsdksfsturbo==3.1.17', + 'huaweicloudsdksis==3.1.17', + 'huaweicloudsdksmn==3.1.17', + 'huaweicloudsdksms==3.1.17', + 'huaweicloudsdkswr==3.1.17', + 'huaweicloudsdktms==3.1.17', + 'huaweicloudsdkugo==3.1.17', + 'huaweicloudsdkvas==3.1.17', + 'huaweicloudsdkvcm==3.1.17', + 'huaweicloudsdkvod==3.1.17', + 'huaweicloudsdkvpc==3.1.17', + 'huaweicloudsdkvpcep==3.1.17', + 'huaweicloudsdkvss==3.1.17', + 'huaweicloudsdkwaf==3.1.17', + 'huaweicloudsdkworkspace==3.1.17', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 234ddf9b63..60abb983b9 100755 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index ef21a5ab6c..fce0fe79db 100755 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 1944dc9c50..208f36f6fe 100755 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py index 1dcebc9420..d742a90d26 100755 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py @@ -28,6 +28,20 @@ class ApigRegion: RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://apig.ru-northwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://apig.sa-brazil-1.myhuaweicloud.com") + + LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://apig.la-south-2.myhuaweicloud.com") + + LA_NORTH_2 = Region(id="la-north-2", endpoint="https://apig.la-north-2.myhuaweicloud.com") + + NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://apig.na-mexico-1.myhuaweicloud.com") + + AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://apig.af-south-1.myhuaweicloud.com") + + CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://apig.cn-north-9.myhuaweicloud.com") + + CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://apig.cn-southwest-2.myhuaweicloud.com") + static_fields = { "cn-north-4": CN_NORTH_4, "cn-north-1": CN_NORTH_1, @@ -38,6 +52,13 @@ class ApigRegion: "ap-southeast-1": AP_SOUTHEAST_1, "ap-southeast-3": AP_SOUTHEAST_3, "ru-northwest-2": RU_NORTHWEST_2, + "sa-brazil-1": SA_BRAZIL_1, + "la-south-2": LA_SOUTH_2, + "la-north-2": LA_NORTH_2, + "na-mexico-1": NA_MEXICO_1, + "af-south-1": AF_SOUTH_1, + "cn-north-9": CN_NORTH_9, + "cn-southwest-2": CN_SOUTHWEST_2, } @classmethod diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 738b03ce0c..9b3c585c79 100755 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 1eeaf602ef..ce47b67427 100755 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index ab1bb5de3a..03f71b8fe3 100755 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 924e9329fd..00069f9a7a 100755 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 5a742fb07c..e1234475ab 100755 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index e9c288558d..133e4612c1 100755 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 82044097e1..0c4a3aac44 100755 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 36f4d39e9a..6504e99222 100755 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 7800dc8028..9ac5a2da95 100755 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/__init__.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/__init__.py index 58ec7e875a..5b958f504c 100755 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/__init__.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/__init__.py @@ -12,6 +12,8 @@ from huaweicloudsdkcbh.v1.model.change_instance_network import ChangeInstanceNetwork from huaweicloudsdkcbh.v1.model.change_instance_network_request import ChangeInstanceNetworkRequest from huaweicloudsdkcbh.v1.model.change_instance_network_response import ChangeInstanceNetworkResponse +from huaweicloudsdkcbh.v1.model.change_instance_order_request import ChangeInstanceOrderRequest +from huaweicloudsdkcbh.v1.model.change_instance_order_response import ChangeInstanceOrderResponse from huaweicloudsdkcbh.v1.model.create_instance_body import CreateInstanceBody from huaweicloudsdkcbh.v1.model.create_instance_order import CreateInstanceOrder from huaweicloudsdkcbh.v1.model.create_instance_order_request import CreateInstanceOrderRequest diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_async_client.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_async_client.py index a4ae891949..af9e503a0d 100755 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_async_client.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_async_client.py @@ -648,6 +648,69 @@ def upgrade_cbh_instance_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def change_instance_order_async(self, request): + """创建变更CBH订单 + + 创建变更CBH订单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeInstanceOrder + :type request: :class:`huaweicloudsdkcbh.v1.ChangeInstanceOrderRequest` + :rtype: :class:`huaweicloudsdkcbh.v1.ChangeInstanceOrderResponse` + """ + return self.change_instance_order_with_http_info(request) + + def change_instance_order_with_http_info(self, request): + all_params = ['server_id', 'instance_key'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + if 'instance_key' in local_var_params: + path_params['instance_key'] = local_var_params['instance_key'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/cbs/{server_id}/alter/{instance_key}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeInstanceOrderResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def stop_cbh_instance_async(self, request): """关闭CBH实例 diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_client.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_client.py index 19610a3731..09fcd6929c 100755 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_client.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/cbh_client.py @@ -638,6 +638,68 @@ def upgrade_cbh_instance_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def change_instance_order(self, request): + """创建变更CBH订单 + + 创建变更CBH订单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeInstanceOrder + :type request: :class:`huaweicloudsdkcbh.v1.ChangeInstanceOrderRequest` + :rtype: :class:`huaweicloudsdkcbh.v1.ChangeInstanceOrderResponse` + """ + return self.change_instance_order_with_http_info(request) + + def change_instance_order_with_http_info(self, request): + all_params = ['server_id', 'instance_key'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + if 'instance_key' in local_var_params: + path_params['instance_key'] = local_var_params['instance_key'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/cbs/{server_id}/alter/{instance_key}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeInstanceOrderResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def stop_cbh_instance(self, request): """关闭CBH实例 diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/__init__.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/__init__.py index dc7f33b602..187d516ea3 100755 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/__init__.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/__init__.py @@ -9,6 +9,8 @@ from huaweicloudsdkcbh.v1.model.change_instance_network import ChangeInstanceNetwork from huaweicloudsdkcbh.v1.model.change_instance_network_request import ChangeInstanceNetworkRequest from huaweicloudsdkcbh.v1.model.change_instance_network_response import ChangeInstanceNetworkResponse +from huaweicloudsdkcbh.v1.model.change_instance_order_request import ChangeInstanceOrderRequest +from huaweicloudsdkcbh.v1.model.change_instance_order_response import ChangeInstanceOrderResponse from huaweicloudsdkcbh.v1.model.create_instance_body import CreateInstanceBody from huaweicloudsdkcbh.v1.model.create_instance_order import CreateInstanceOrder from huaweicloudsdkcbh.v1.model.create_instance_order_request import CreateInstanceOrderRequest diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_request.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_request.py new file mode 100755 index 0000000000..778d340d4b --- /dev/null +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeInstanceOrderRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str', + 'instance_key': 'str' + } + + attribute_map = { + 'server_id': 'server_id', + 'instance_key': 'instance_key' + } + + def __init__(self, server_id=None, instance_key=None): + """ChangeInstanceOrderRequest + + The model defined in huaweicloud sdk + + :param server_id: 实例ID + :type server_id: str + :param instance_key: 实例的Instance_id + :type instance_key: str + """ + + + + self._server_id = None + self._instance_key = None + self.discriminator = None + + self.server_id = server_id + self.instance_key = instance_key + + @property + def server_id(self): + """Gets the server_id of this ChangeInstanceOrderRequest. + + 实例ID + + :return: The server_id of this ChangeInstanceOrderRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ChangeInstanceOrderRequest. + + 实例ID + + :param server_id: The server_id of this ChangeInstanceOrderRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def instance_key(self): + """Gets the instance_key of this ChangeInstanceOrderRequest. + + 实例的Instance_id + + :return: The instance_key of this ChangeInstanceOrderRequest. + :rtype: str + """ + return self._instance_key + + @instance_key.setter + def instance_key(self, instance_key): + """Sets the instance_key of this ChangeInstanceOrderRequest. + + 实例的Instance_id + + :param instance_key: The instance_key of this ChangeInstanceOrderRequest. + :type instance_key: str + """ + self._instance_key = instance_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeInstanceOrderRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_response.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_response.py new file mode 100755 index 0000000000..c1b6a52580 --- /dev/null +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/model/change_instance_order_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeInstanceOrderResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """ChangeInstanceOrderResponse + + The model defined in huaweicloud sdk + + :param order_id: 订单ID + :type order_id: str + """ + + super(ChangeInstanceOrderResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this ChangeInstanceOrderResponse. + + 订单ID + + :return: The order_id of this ChangeInstanceOrderResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ChangeInstanceOrderResponse. + + 订单ID + + :param order_id: The order_id of this ChangeInstanceOrderResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeInstanceOrderResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 0973c20b86..e086faf9ad 100755 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 69e4160aed..c47b7b9c0f 100755 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index f59b2d2dcc..37009264a3 100755 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index a1d5f03cac..807317b605 100755 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py index dbab36b7d0..e9b6939434 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py @@ -32,6 +32,7 @@ from huaweicloudsdkcce.v3.model.cluster_node_information_metadata import ClusterNodeInformationMetadata from huaweicloudsdkcce.v3.model.cluster_spec import ClusterSpec from huaweicloudsdkcce.v3.model.cluster_status import ClusterStatus +from huaweicloudsdkcce.v3.model.cluster_upgrade_action import ClusterUpgradeAction from huaweicloudsdkcce.v3.model.clusters import Clusters from huaweicloudsdkcce.v3.model.configuration_item import ConfigurationItem from huaweicloudsdkcce.v3.model.container_cidr import ContainerCIDR @@ -39,6 +40,8 @@ from huaweicloudsdkcce.v3.model.container_network_update import ContainerNetworkUpdate from huaweicloudsdkcce.v3.model.context import Context from huaweicloudsdkcce.v3.model.contexts import Contexts +from huaweicloudsdkcce.v3.model.continue_upgrade_cluster_task_request import ContinueUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.continue_upgrade_cluster_task_response import ContinueUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.create_addon_instance_request import CreateAddonInstanceRequest from huaweicloudsdkcce.v3.model.create_addon_instance_response import CreateAddonInstanceResponse from huaweicloudsdkcce.v3.model.create_cloud_persistent_volume_claims_request import CreateCloudPersistentVolumeClaimsRequest @@ -69,6 +72,7 @@ from huaweicloudsdkcce.v3.model.hibernate_cluster_request import HibernateClusterRequest from huaweicloudsdkcce.v3.model.hibernate_cluster_response import HibernateClusterResponse from huaweicloudsdkcce.v3.model.host_network import HostNetwork +from huaweicloudsdkcce.v3.model.in_place_rolling_update import InPlaceRollingUpdate from huaweicloudsdkcce.v3.model.instance_request import InstanceRequest from huaweicloudsdkcce.v3.model.instance_request_spec import InstanceRequestSpec from huaweicloudsdkcce.v3.model.instance_spec import InstanceSpec @@ -122,13 +126,17 @@ from huaweicloudsdkcce.v3.model.node_pool_spec_update import NodePoolSpecUpdate from huaweicloudsdkcce.v3.model.node_pool_status import NodePoolStatus from huaweicloudsdkcce.v3.model.node_pool_update import NodePoolUpdate +from huaweicloudsdkcce.v3.model.node_priority import NodePriority from huaweicloudsdkcce.v3.model.node_public_ip import NodePublicIP +from huaweicloudsdkcce.v3.model.node_selector import NodeSelector from huaweicloudsdkcce.v3.model.node_spec import NodeSpec from huaweicloudsdkcce.v3.model.node_spec_update import NodeSpecUpdate from huaweicloudsdkcce.v3.model.node_status import NodeStatus from huaweicloudsdkcce.v3.model.open_api_response_spec import OpenAPIResponseSpec from huaweicloudsdkcce.v3.model.open_api_response_spec_spec import OpenAPIResponseSpecSpec from huaweicloudsdkcce.v3.model.package_configuration import PackageConfiguration +from huaweicloudsdkcce.v3.model.pause_upgrade_cluster_task_request import PauseUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.pause_upgrade_cluster_task_response import PauseUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.persistent_volume_claim import PersistentVolumeClaim from huaweicloudsdkcce.v3.model.persistent_volume_claim_metadata import PersistentVolumeClaimMetadata from huaweicloudsdkcce.v3.model.persistent_volume_claim_spec import PersistentVolumeClaimSpec @@ -151,6 +159,8 @@ from huaweicloudsdkcce.v3.model.reset_node_response import ResetNodeResponse from huaweicloudsdkcce.v3.model.resource_requirements import ResourceRequirements from huaweicloudsdkcce.v3.model.resource_tag import ResourceTag +from huaweicloudsdkcce.v3.model.retry_upgrade_cluster_task_request import RetryUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.retry_upgrade_cluster_task_response import RetryUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.runtime import Runtime from huaweicloudsdkcce.v3.model.runtime_config import RuntimeConfig from huaweicloudsdkcce.v3.model.security_id import SecurityID @@ -168,6 +178,8 @@ from huaweicloudsdkcce.v3.model.show_node_response import ShowNodeResponse from huaweicloudsdkcce.v3.model.show_quotas_request import ShowQuotasRequest from huaweicloudsdkcce.v3.model.show_quotas_response import ShowQuotasResponse +from huaweicloudsdkcce.v3.model.show_upgrade_cluster_task_request import ShowUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.show_upgrade_cluster_task_response import ShowUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.show_version_request import ShowVersionRequest from huaweicloudsdkcce.v3.model.show_version_response import ShowVersionResponse from huaweicloudsdkcce.v3.model.storage import Storage @@ -188,6 +200,16 @@ from huaweicloudsdkcce.v3.model.update_node_pool_response import UpdateNodePoolResponse from huaweicloudsdkcce.v3.model.update_node_request import UpdateNodeRequest from huaweicloudsdkcce.v3.model.update_node_response import UpdateNodeResponse +from huaweicloudsdkcce.v3.model.upgrade_addon_config import UpgradeAddonConfig +from huaweicloudsdkcce.v3.model.upgrade_cluster_request import UpgradeClusterRequest +from huaweicloudsdkcce.v3.model.upgrade_cluster_request_body import UpgradeClusterRequestBody +from huaweicloudsdkcce.v3.model.upgrade_cluster_request_metadata import UpgradeClusterRequestMetadata +from huaweicloudsdkcce.v3.model.upgrade_cluster_response import UpgradeClusterResponse +from huaweicloudsdkcce.v3.model.upgrade_spec import UpgradeSpec +from huaweicloudsdkcce.v3.model.upgrade_strategy import UpgradeStrategy +from huaweicloudsdkcce.v3.model.upgrade_task_metadata import UpgradeTaskMetadata +from huaweicloudsdkcce.v3.model.upgrade_task_spec import UpgradeTaskSpec +from huaweicloudsdkcce.v3.model.upgrade_task_status import UpgradeTaskStatus from huaweicloudsdkcce.v3.model.user import User from huaweicloudsdkcce.v3.model.user_password import UserPassword from huaweicloudsdkcce.v3.model.user_tag import UserTag diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py index e9dc8c9340..e93358e1c4 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_async_client.py @@ -167,6 +167,69 @@ def awake_cluster_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def continue_upgrade_cluster_task_async(self, request): + """继续执行集群升级任务 + + 继续执行被暂停的集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ContinueUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.ContinueUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.ContinueUpgradeClusterTaskResponse` + """ + return self.continue_upgrade_cluster_task_with_http_info(request) + + def continue_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/continue', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ContinueUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_addon_instance_async(self, request): """创建AddonInstance @@ -1347,6 +1410,69 @@ def migrate_node_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def pause_upgrade_cluster_task_async(self, request): + """暂停集群升级任务 + + 暂停集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for PauseUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.PauseUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.PauseUpgradeClusterTaskResponse` + """ + return self.pause_upgrade_cluster_task_with_http_info(request) + + def pause_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/pause', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='PauseUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def remove_node_async(self, request): """节点移除 @@ -1475,6 +1601,69 @@ def reset_node_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def retry_upgrade_cluster_task_async(self, request): + """重试集群升级任务 + + 重新执行失败的集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RetryUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.RetryUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.RetryUpgradeClusterTaskResponse` + """ + return self.retry_upgrade_cluster_task_with_http_info(request) + + def retry_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/retry', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RetryUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_addon_instance_async(self, request): """获取AddonInstance详情 @@ -1916,6 +2105,71 @@ def show_quotas_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_upgrade_cluster_task_async(self, request): + """获取集群升级任务详情 + + 获取集群升级任务详情,任务ID由调用集群升级API后从响应体中uid字段获取。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.ShowUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.ShowUpgradeClusterTaskResponse` + """ + return self.show_upgrade_cluster_task_with_http_info(request) + + def show_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id', 'task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks/{task_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def update_addon_instance_async(self, request): """更新AddonInstance @@ -2244,6 +2498,71 @@ def update_node_pool_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def upgrade_cluster_async(self, request): + """集群升级 + + 集群升级。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpgradeCluster + :type request: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequest` + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeClusterResponse` + """ + return self.upgrade_cluster_with_http_info(request) + + def upgrade_cluster_with_http_info(self, request): + all_params = ['cluster_id', 'upgrade_cluster_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpgradeClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_version_async(self, request): """查询API版本信息列表。 diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py index 44dcf350af..8ccdcc1126 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/cce_client.py @@ -165,6 +165,68 @@ def awake_cluster_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def continue_upgrade_cluster_task(self, request): + """继续执行集群升级任务 + + 继续执行被暂停的集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ContinueUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.ContinueUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.ContinueUpgradeClusterTaskResponse` + """ + return self.continue_upgrade_cluster_task_with_http_info(request) + + def continue_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/continue', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ContinueUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_addon_instance(self, request): """创建AddonInstance @@ -1327,6 +1389,68 @@ def migrate_node_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def pause_upgrade_cluster_task(self, request): + """暂停集群升级任务 + + 暂停集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for PauseUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.PauseUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.PauseUpgradeClusterTaskResponse` + """ + return self.pause_upgrade_cluster_task_with_http_info(request) + + def pause_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/pause', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='PauseUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def remove_node(self, request): """节点移除 @@ -1453,6 +1577,68 @@ def reset_node_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def retry_upgrade_cluster_task(self, request): + """重试集群升级任务 + + 重新执行失败的集群升级任务。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RetryUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.RetryUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.RetryUpgradeClusterTaskResponse` + """ + return self.retry_upgrade_cluster_task_with_http_info(request) + + def retry_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/retry', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RetryUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_addon_instance(self, request): """获取AddonInstance详情 @@ -1887,6 +2073,70 @@ def show_quotas_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_upgrade_cluster_task(self, request): + """获取集群升级任务详情 + + 获取集群升级任务详情,任务ID由调用集群升级API后从响应体中uid字段获取。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowUpgradeClusterTask + :type request: :class:`huaweicloudsdkcce.v3.ShowUpgradeClusterTaskRequest` + :rtype: :class:`huaweicloudsdkcce.v3.ShowUpgradeClusterTaskResponse` + """ + return self.show_upgrade_cluster_task_with_http_info(request) + + def show_upgrade_cluster_task_with_http_info(self, request): + all_params = ['cluster_id', 'task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade/tasks/{task_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowUpgradeClusterTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def update_addon_instance(self, request): """更新AddonInstance @@ -2210,6 +2460,70 @@ def update_node_pool_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def upgrade_cluster(self, request): + """集群升级 + + 集群升级。 + > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; + > - 当前集群升级相关接口受限开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpgradeCluster + :type request: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequest` + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeClusterResponse` + """ + return self.upgrade_cluster_with_http_info(request) + + def upgrade_cluster_with_http_info(self, request): + all_params = ['cluster_id', 'upgrade_cluster_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/api/v3/projects/{project_id}/clusters/{cluster_id}/operation/upgrade', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpgradeClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_version(self, request): """查询API版本信息列表。 diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py index 034ff4646b..f3ab9b7dac 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py @@ -29,6 +29,7 @@ from huaweicloudsdkcce.v3.model.cluster_node_information_metadata import ClusterNodeInformationMetadata from huaweicloudsdkcce.v3.model.cluster_spec import ClusterSpec from huaweicloudsdkcce.v3.model.cluster_status import ClusterStatus +from huaweicloudsdkcce.v3.model.cluster_upgrade_action import ClusterUpgradeAction from huaweicloudsdkcce.v3.model.clusters import Clusters from huaweicloudsdkcce.v3.model.configuration_item import ConfigurationItem from huaweicloudsdkcce.v3.model.container_cidr import ContainerCIDR @@ -36,6 +37,8 @@ from huaweicloudsdkcce.v3.model.container_network_update import ContainerNetworkUpdate from huaweicloudsdkcce.v3.model.context import Context from huaweicloudsdkcce.v3.model.contexts import Contexts +from huaweicloudsdkcce.v3.model.continue_upgrade_cluster_task_request import ContinueUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.continue_upgrade_cluster_task_response import ContinueUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.create_addon_instance_request import CreateAddonInstanceRequest from huaweicloudsdkcce.v3.model.create_addon_instance_response import CreateAddonInstanceResponse from huaweicloudsdkcce.v3.model.create_cloud_persistent_volume_claims_request import CreateCloudPersistentVolumeClaimsRequest @@ -66,6 +69,7 @@ from huaweicloudsdkcce.v3.model.hibernate_cluster_request import HibernateClusterRequest from huaweicloudsdkcce.v3.model.hibernate_cluster_response import HibernateClusterResponse from huaweicloudsdkcce.v3.model.host_network import HostNetwork +from huaweicloudsdkcce.v3.model.in_place_rolling_update import InPlaceRollingUpdate from huaweicloudsdkcce.v3.model.instance_request import InstanceRequest from huaweicloudsdkcce.v3.model.instance_request_spec import InstanceRequestSpec from huaweicloudsdkcce.v3.model.instance_spec import InstanceSpec @@ -119,13 +123,17 @@ from huaweicloudsdkcce.v3.model.node_pool_spec_update import NodePoolSpecUpdate from huaweicloudsdkcce.v3.model.node_pool_status import NodePoolStatus from huaweicloudsdkcce.v3.model.node_pool_update import NodePoolUpdate +from huaweicloudsdkcce.v3.model.node_priority import NodePriority from huaweicloudsdkcce.v3.model.node_public_ip import NodePublicIP +from huaweicloudsdkcce.v3.model.node_selector import NodeSelector from huaweicloudsdkcce.v3.model.node_spec import NodeSpec from huaweicloudsdkcce.v3.model.node_spec_update import NodeSpecUpdate from huaweicloudsdkcce.v3.model.node_status import NodeStatus from huaweicloudsdkcce.v3.model.open_api_response_spec import OpenAPIResponseSpec from huaweicloudsdkcce.v3.model.open_api_response_spec_spec import OpenAPIResponseSpecSpec from huaweicloudsdkcce.v3.model.package_configuration import PackageConfiguration +from huaweicloudsdkcce.v3.model.pause_upgrade_cluster_task_request import PauseUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.pause_upgrade_cluster_task_response import PauseUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.persistent_volume_claim import PersistentVolumeClaim from huaweicloudsdkcce.v3.model.persistent_volume_claim_metadata import PersistentVolumeClaimMetadata from huaweicloudsdkcce.v3.model.persistent_volume_claim_spec import PersistentVolumeClaimSpec @@ -148,6 +156,8 @@ from huaweicloudsdkcce.v3.model.reset_node_response import ResetNodeResponse from huaweicloudsdkcce.v3.model.resource_requirements import ResourceRequirements from huaweicloudsdkcce.v3.model.resource_tag import ResourceTag +from huaweicloudsdkcce.v3.model.retry_upgrade_cluster_task_request import RetryUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.retry_upgrade_cluster_task_response import RetryUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.runtime import Runtime from huaweicloudsdkcce.v3.model.runtime_config import RuntimeConfig from huaweicloudsdkcce.v3.model.security_id import SecurityID @@ -165,6 +175,8 @@ from huaweicloudsdkcce.v3.model.show_node_response import ShowNodeResponse from huaweicloudsdkcce.v3.model.show_quotas_request import ShowQuotasRequest from huaweicloudsdkcce.v3.model.show_quotas_response import ShowQuotasResponse +from huaweicloudsdkcce.v3.model.show_upgrade_cluster_task_request import ShowUpgradeClusterTaskRequest +from huaweicloudsdkcce.v3.model.show_upgrade_cluster_task_response import ShowUpgradeClusterTaskResponse from huaweicloudsdkcce.v3.model.show_version_request import ShowVersionRequest from huaweicloudsdkcce.v3.model.show_version_response import ShowVersionResponse from huaweicloudsdkcce.v3.model.storage import Storage @@ -185,6 +197,16 @@ from huaweicloudsdkcce.v3.model.update_node_pool_response import UpdateNodePoolResponse from huaweicloudsdkcce.v3.model.update_node_request import UpdateNodeRequest from huaweicloudsdkcce.v3.model.update_node_response import UpdateNodeResponse +from huaweicloudsdkcce.v3.model.upgrade_addon_config import UpgradeAddonConfig +from huaweicloudsdkcce.v3.model.upgrade_cluster_request import UpgradeClusterRequest +from huaweicloudsdkcce.v3.model.upgrade_cluster_request_body import UpgradeClusterRequestBody +from huaweicloudsdkcce.v3.model.upgrade_cluster_request_metadata import UpgradeClusterRequestMetadata +from huaweicloudsdkcce.v3.model.upgrade_cluster_response import UpgradeClusterResponse +from huaweicloudsdkcce.v3.model.upgrade_spec import UpgradeSpec +from huaweicloudsdkcce.v3.model.upgrade_strategy import UpgradeStrategy +from huaweicloudsdkcce.v3.model.upgrade_task_metadata import UpgradeTaskMetadata +from huaweicloudsdkcce.v3.model.upgrade_task_spec import UpgradeTaskSpec +from huaweicloudsdkcce.v3.model.upgrade_task_status import UpgradeTaskStatus from huaweicloudsdkcce.v3.model.user import User from huaweicloudsdkcce.v3.model.user_password import UserPassword from huaweicloudsdkcce.v3.model.user_tag import UserTag diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/add_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/add_node_request.py index 23d497b34d..7059e46b15 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/add_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/add_node_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the AddNodeRequest :type body: :class:`huaweicloudsdkcce.v3.AddNodeList` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this AddNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this AddNodeRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this AddNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this AddNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/awake_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/awake_cluster_request.py index 5d21fd3aff..f394a9beb0 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/awake_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/awake_cluster_request.py @@ -32,7 +32,7 @@ def __init__(self, cluster_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str """ @@ -47,7 +47,7 @@ def __init__(self, cluster_id=None): def cluster_id(self): """Gets the cluster_id of this AwakeClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this AwakeClusterRequest. :rtype: str @@ -58,7 +58,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this AwakeClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this AwakeClusterRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_upgrade_action.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_upgrade_action.py new file mode 100755 index 0000000000..020c1aaaca --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_upgrade_action.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterUpgradeAction: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'addons': 'list[UpgradeAddonConfig]', + 'node_order': 'dict(str, list[NodePriority])', + 'node_pool_order': 'dict(str, int)', + 'strategy': 'UpgradeStrategy', + 'target_version': 'str' + } + + attribute_map = { + 'addons': 'addons', + 'node_order': 'nodeOrder', + 'node_pool_order': 'nodePoolOrder', + 'strategy': 'strategy', + 'target_version': 'targetVersion' + } + + def __init__(self, addons=None, node_order=None, node_pool_order=None, strategy=None, target_version=None): + """ClusterUpgradeAction + + The model defined in huaweicloud sdk + + :param addons: 插件配置列表 + :type addons: list[:class:`huaweicloudsdkcce.v3.UpgradeAddonConfig`] + :param node_order: 节点池内节点升级顺序配置。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" + :type node_order: dict(str, list[NodePriority]) + :param node_pool_order: 节点池升级顺序配置,key/value对格式。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" > value表示对应节点池的优先级,默认值为0,优先级最低,数值越大优先级越高 + :type node_pool_order: dict(str, int) + :param strategy: + :type strategy: :class:`huaweicloudsdkcce.v3.UpgradeStrategy` + :param target_version: 目标集群版本,例如\"v1.23\" + :type target_version: str + """ + + + + self._addons = None + self._node_order = None + self._node_pool_order = None + self._strategy = None + self._target_version = None + self.discriminator = None + + if addons is not None: + self.addons = addons + if node_order is not None: + self.node_order = node_order + if node_pool_order is not None: + self.node_pool_order = node_pool_order + self.strategy = strategy + self.target_version = target_version + + @property + def addons(self): + """Gets the addons of this ClusterUpgradeAction. + + 插件配置列表 + + :return: The addons of this ClusterUpgradeAction. + :rtype: list[:class:`huaweicloudsdkcce.v3.UpgradeAddonConfig`] + """ + return self._addons + + @addons.setter + def addons(self, addons): + """Sets the addons of this ClusterUpgradeAction. + + 插件配置列表 + + :param addons: The addons of this ClusterUpgradeAction. + :type addons: list[:class:`huaweicloudsdkcce.v3.UpgradeAddonConfig`] + """ + self._addons = addons + + @property + def node_order(self): + """Gets the node_order of this ClusterUpgradeAction. + + 节点池内节点升级顺序配置。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" + + :return: The node_order of this ClusterUpgradeAction. + :rtype: dict(str, list[NodePriority]) + """ + return self._node_order + + @node_order.setter + def node_order(self, node_order): + """Sets the node_order of this ClusterUpgradeAction. + + 节点池内节点升级顺序配置。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" + + :param node_order: The node_order of this ClusterUpgradeAction. + :type node_order: dict(str, list[NodePriority]) + """ + self._node_order = node_order + + @property + def node_pool_order(self): + """Gets the node_pool_order of this ClusterUpgradeAction. + + 节点池升级顺序配置,key/value对格式。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" > value表示对应节点池的优先级,默认值为0,优先级最低,数值越大优先级越高 + + :return: The node_pool_order of this ClusterUpgradeAction. + :rtype: dict(str, int) + """ + return self._node_pool_order + + @node_pool_order.setter + def node_pool_order(self, node_pool_order): + """Sets the node_pool_order of this ClusterUpgradeAction. + + 节点池升级顺序配置,key/value对格式。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" > value表示对应节点池的优先级,默认值为0,优先级最低,数值越大优先级越高 + + :param node_pool_order: The node_pool_order of this ClusterUpgradeAction. + :type node_pool_order: dict(str, int) + """ + self._node_pool_order = node_pool_order + + @property + def strategy(self): + """Gets the strategy of this ClusterUpgradeAction. + + :return: The strategy of this ClusterUpgradeAction. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeStrategy` + """ + return self._strategy + + @strategy.setter + def strategy(self, strategy): + """Sets the strategy of this ClusterUpgradeAction. + + :param strategy: The strategy of this ClusterUpgradeAction. + :type strategy: :class:`huaweicloudsdkcce.v3.UpgradeStrategy` + """ + self._strategy = strategy + + @property + def target_version(self): + """Gets the target_version of this ClusterUpgradeAction. + + 目标集群版本,例如\"v1.23\" + + :return: The target_version of this ClusterUpgradeAction. + :rtype: str + """ + return self._target_version + + @target_version.setter + def target_version(self, target_version): + """Sets the target_version of this ClusterUpgradeAction. + + 目标集群版本,例如\"v1.23\" + + :param target_version: The target_version of this ClusterUpgradeAction. + :type target_version: str + """ + self._target_version = target_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterUpgradeAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_request.py new file mode 100755 index 0000000000..74a9f6f668 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContinueUpgradeClusterTaskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ContinueUpgradeClusterTaskRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ContinueUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :return: The cluster_id of this ContinueUpgradeClusterTaskRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ContinueUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :param cluster_id: The cluster_id of this ContinueUpgradeClusterTaskRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContinueUpgradeClusterTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_response.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_response.py new file mode 100755 index 0000000000..9093bb0c91 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/continue_upgrade_cluster_task_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContinueUpgradeClusterTaskResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """ContinueUpgradeClusterTaskResponse + + The model defined in huaweicloud sdk + + """ + + super(ContinueUpgradeClusterTaskResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContinueUpgradeClusterTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_kubernetes_cluster_cert_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_kubernetes_cluster_cert_request.py index dd2602f88e..9591a30581 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_kubernetes_cluster_cert_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_kubernetes_cluster_cert_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the CreateKubernetesClusterCertRequest :type body: :class:`huaweicloudsdkcce.v3.CertDuration` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this CreateKubernetesClusterCertRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this CreateKubernetesClusterCertRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this CreateKubernetesClusterCertRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this CreateKubernetesClusterCertRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_request.py index 4e11063777..c009ba96d9 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the CreateNodePoolRequest :type body: :class:`huaweicloudsdkcce.v3.NodePool` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this CreateNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this CreateNodePoolRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this CreateNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this CreateNodePoolRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_request.py index 9ff6217184..dd60892127 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_request.py @@ -36,7 +36,7 @@ def __init__(self, cluster_id=None, nodepool_scale_up=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param nodepool_scale_up: 标明是否为nodepool下发的请求。若不为“NodepoolScaleUp”将自动更新对应节点池的实例数 :type nodepool_scale_up: str @@ -61,7 +61,7 @@ def __init__(self, cluster_id=None, nodepool_scale_up=None, body=None): def cluster_id(self): """Gets the cluster_id of this CreateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this CreateNodeRequest. :rtype: str @@ -72,7 +72,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this CreateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this CreateNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py index 167da263a8..a2417cbf40 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_cluster_request.py @@ -48,7 +48,7 @@ def __init__(self, cluster_id=None, delete_efs=None, delete_eni=None, delete_evs The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param delete_efs: 是否删除SFS Turbo(极速文件存储卷), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项) :type delete_efs: str @@ -103,7 +103,7 @@ def __init__(self, cluster_id=None, delete_efs=None, delete_eni=None, delete_evs def cluster_id(self): """Gets the cluster_id of this DeleteClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this DeleteClusterRequest. :rtype: str @@ -114,7 +114,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this DeleteClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this DeleteClusterRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py index df2ef6310f..0bfa0a5ea8 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, nodepool_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param nodepool_id: 节点池ID :type nodepool_id: str @@ -53,7 +53,7 @@ def __init__(self, cluster_id=None, nodepool_id=None): def cluster_id(self): """Gets the cluster_id of this DeleteNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this DeleteNodePoolRequest. :rtype: str @@ -64,7 +64,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this DeleteNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this DeleteNodePoolRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py index 8460763c57..94ff55886e 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_request.py @@ -36,7 +36,7 @@ def __init__(self, cluster_id=None, node_id=None, nodepool_scale_down=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param node_id: 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type node_id: str @@ -60,7 +60,7 @@ def __init__(self, cluster_id=None, node_id=None, nodepool_scale_down=None): def cluster_id(self): """Gets the cluster_id of this DeleteNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this DeleteNodeRequest. :rtype: str @@ -71,7 +71,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this DeleteNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this DeleteNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_request.py index 8dd8159477..7d01acbf8c 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_request.py @@ -32,7 +32,7 @@ def __init__(self, cluster_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str """ @@ -47,7 +47,7 @@ def __init__(self, cluster_id=None): def cluster_id(self): """Gets the cluster_id of this HibernateClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this HibernateClusterRequest. :rtype: str @@ -58,7 +58,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this HibernateClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this HibernateClusterRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/in_place_rolling_update.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/in_place_rolling_update.py new file mode 100755 index 0000000000..094d122e62 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/in_place_rolling_update.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InPlaceRollingUpdate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'user_defined_step': 'int' + } + + attribute_map = { + 'user_defined_step': 'userDefinedStep' + } + + def __init__(self, user_defined_step=None): + """InPlaceRollingUpdate + + The model defined in huaweicloud sdk + + :param user_defined_step: 节点升级步长,取值范围为[1, 40],建议取值20 + :type user_defined_step: int + """ + + + + self._user_defined_step = None + self.discriminator = None + + if user_defined_step is not None: + self.user_defined_step = user_defined_step + + @property + def user_defined_step(self): + """Gets the user_defined_step of this InPlaceRollingUpdate. + + 节点升级步长,取值范围为[1, 40],建议取值20 + + :return: The user_defined_step of this InPlaceRollingUpdate. + :rtype: int + """ + return self._user_defined_step + + @user_defined_step.setter + def user_defined_step(self, user_defined_step): + """Sets the user_defined_step of this InPlaceRollingUpdate. + + 节点升级步长,取值范围为[1, 40],建议取值20 + + :param user_defined_step: The user_defined_step of this InPlaceRollingUpdate. + :type user_defined_step: int + """ + self._user_defined_step = user_defined_step + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InPlaceRollingUpdate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py index abe834cb24..7efd403c7e 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_node_pools_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, show_default_node_pool=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param show_default_node_pool: 是否展示默认节点池。默认不展示,指定为“true”时展示默认节点池。 :type show_default_node_pool: str @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, show_default_node_pool=None): def cluster_id(self): """Gets the cluster_id of this ListNodePoolsRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ListNodePoolsRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ListNodePoolsRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ListNodePoolsRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py index 90c670fe23..08bdbddb4b 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/list_nodes_request.py @@ -32,7 +32,7 @@ def __init__(self, cluster_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str """ @@ -47,7 +47,7 @@ def __init__(self, cluster_id=None): def cluster_id(self): """Gets the cluster_id of this ListNodesRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ListNodesRequest. :rtype: str @@ -58,7 +58,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ListNodesRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ListNodesRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_request.py index 4df0845732..f32fc9a29a 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_request.py @@ -36,7 +36,7 @@ def __init__(self, cluster_id=None, target_cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param target_cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type target_cluster_id: str @@ -60,7 +60,7 @@ def __init__(self, cluster_id=None, target_cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this MigrateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this MigrateNodeRequest. :rtype: str @@ -71,7 +71,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this MigrateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this MigrateNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_priority.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_priority.py new file mode 100755 index 0000000000..bc18da5057 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_priority.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NodePriority: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'node_selector': 'NodeSelector', + 'priority': 'int' + } + + attribute_map = { + 'node_selector': 'nodeSelector', + 'priority': 'priority' + } + + def __init__(self, node_selector=None, priority=None): + """NodePriority + + The model defined in huaweicloud sdk + + :param node_selector: + :type node_selector: :class:`huaweicloudsdkcce.v3.NodeSelector` + :param priority: 该批次节点的优先级,默认值为0,优先级最低,数值越大优先级越高 + :type priority: int + """ + + + + self._node_selector = None + self._priority = None + self.discriminator = None + + self.node_selector = node_selector + self.priority = priority + + @property + def node_selector(self): + """Gets the node_selector of this NodePriority. + + :return: The node_selector of this NodePriority. + :rtype: :class:`huaweicloudsdkcce.v3.NodeSelector` + """ + return self._node_selector + + @node_selector.setter + def node_selector(self, node_selector): + """Sets the node_selector of this NodePriority. + + :param node_selector: The node_selector of this NodePriority. + :type node_selector: :class:`huaweicloudsdkcce.v3.NodeSelector` + """ + self._node_selector = node_selector + + @property + def priority(self): + """Gets the priority of this NodePriority. + + 该批次节点的优先级,默认值为0,优先级最低,数值越大优先级越高 + + :return: The priority of this NodePriority. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this NodePriority. + + 该批次节点的优先级,默认值为0,优先级最低,数值越大优先级越高 + + :param priority: The priority of this NodePriority. + :type priority: int + """ + self._priority = priority + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NodePriority): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_selector.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_selector.py new file mode 100755 index 0000000000..85d959a849 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_selector.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NodeSelector: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'list[str]', + 'operator': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value', + 'operator': 'operator' + } + + def __init__(self, key=None, value=None, operator=None): + """NodeSelector + + The model defined in huaweicloud sdk + + :param key: 标签键 + :type key: str + :param value: 标签值列表 + :type value: list[str] + :param operator: 标签逻辑运算符 + :type operator: str + """ + + + + self._key = None + self._value = None + self._operator = None + self.discriminator = None + + self.key = key + if value is not None: + self.value = value + self.operator = operator + + @property + def key(self): + """Gets the key of this NodeSelector. + + 标签键 + + :return: The key of this NodeSelector. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this NodeSelector. + + 标签键 + + :param key: The key of this NodeSelector. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this NodeSelector. + + 标签值列表 + + :return: The value of this NodeSelector. + :rtype: list[str] + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this NodeSelector. + + 标签值列表 + + :param value: The value of this NodeSelector. + :type value: list[str] + """ + self._value = value + + @property + def operator(self): + """Gets the operator of this NodeSelector. + + 标签逻辑运算符 + + :return: The operator of this NodeSelector. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this NodeSelector. + + 标签逻辑运算符 + + :param operator: The operator of this NodeSelector. + :type operator: str + """ + self._operator = operator + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NodeSelector): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_request.py new file mode 100755 index 0000000000..b08aace59e --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PauseUpgradeClusterTaskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """PauseUpgradeClusterTaskRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this PauseUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :return: The cluster_id of this PauseUpgradeClusterTaskRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this PauseUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :param cluster_id: The cluster_id of this PauseUpgradeClusterTaskRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PauseUpgradeClusterTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_response.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_response.py new file mode 100755 index 0000000000..ba9f32fc0a --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/pause_upgrade_cluster_task_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PauseUpgradeClusterTaskResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """PauseUpgradeClusterTaskResponse + + The model defined in huaweicloud sdk + + """ + + super(PauseUpgradeClusterTaskResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PauseUpgradeClusterTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_node_request.py index 09170f6d76..8487b9e301 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_node_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the RemoveNodeRequest :type body: :class:`huaweicloudsdkcce.v3.RemoveNodesTask` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this RemoveNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this RemoveNodeRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this RemoveNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this RemoveNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/reset_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/reset_node_request.py index 974cddaf3c..9c60496aaf 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/reset_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/reset_node_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the ResetNodeRequest :type body: :class:`huaweicloudsdkcce.v3.ResetNodeList` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this ResetNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ResetNodeRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ResetNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ResetNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_request.py new file mode 100755 index 0000000000..c373f94d99 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryUpgradeClusterTaskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """RetryUpgradeClusterTaskRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :type cluster_id: str + """ + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this RetryUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :return: The cluster_id of this RetryUpgradeClusterTaskRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RetryUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :param cluster_id: The cluster_id of this RetryUpgradeClusterTaskRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryUpgradeClusterTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_response.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_response.py new file mode 100755 index 0000000000..d212a2613e --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/retry_upgrade_cluster_task_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RetryUpgradeClusterTaskResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """RetryUpgradeClusterTaskResponse + + The model defined in huaweicloud sdk + + """ + + super(RetryUpgradeClusterTaskResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RetryUpgradeClusterTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_endpoints_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_endpoints_request.py index 715f994f35..efecc63f9d 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_endpoints_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_endpoints_request.py @@ -32,7 +32,7 @@ def __init__(self, cluster_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str """ @@ -47,7 +47,7 @@ def __init__(self, cluster_id=None): def cluster_id(self): """Gets the cluster_id of this ShowClusterEndpointsRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ShowClusterEndpointsRequest. :rtype: str @@ -58,7 +58,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ShowClusterEndpointsRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ShowClusterEndpointsRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py index f4193bf799..0c79153fd4 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_cluster_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, detail=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param detail: 查询集群详细信息。 若设置为true,获取集群下节点总数(totalNodesNumber)、正常节点数(activeNodesNumber)、CPU总量(totalNodesCPU)、内存总量(totalNodesMemory)和已安装插件列表(installedAddonInstances),已安装插件列表中包含名称(addonTemplateName)、版本号(version)、插件的状态信息(status),放入到annotation中。 :type detail: str @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, detail=None): def cluster_id(self): """Gets the cluster_id of this ShowClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ShowClusterRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ShowClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ShowClusterRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py index 429c2653f8..7534ce90e1 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_pool_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, nodepool_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param nodepool_id: 节点池ID :type nodepool_id: str @@ -53,7 +53,7 @@ def __init__(self, cluster_id=None, nodepool_id=None): def cluster_id(self): """Gets the cluster_id of this ShowNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ShowNodePoolRequest. :rtype: str @@ -64,7 +64,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ShowNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ShowNodePoolRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py index d7f7158e8a..8250c235c0 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_node_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, node_id=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param node_id: 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type node_id: str @@ -53,7 +53,7 @@ def __init__(self, cluster_id=None, node_id=None): def cluster_id(self): """Gets the cluster_id of this ShowNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this ShowNodeRequest. :rtype: str @@ -64,7 +64,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this ShowNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this ShowNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_request.py new file mode 100755 index 0000000000..1e704fb786 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowUpgradeClusterTaskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'task_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'task_id': 'task_id' + } + + def __init__(self, cluster_id=None, task_id=None): + """ShowUpgradeClusterTaskRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :type cluster_id: str + :param task_id: 升级任务ID,调用集群升级API后从响应体中uid字段获取。 + :type task_id: str + """ + + + + self._cluster_id = None + self._task_id = None + self.discriminator = None + + self.cluster_id = cluster_id + self.task_id = task_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :return: The cluster_id of this ShowUpgradeClusterTaskRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowUpgradeClusterTaskRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :param cluster_id: The cluster_id of this ShowUpgradeClusterTaskRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def task_id(self): + """Gets the task_id of this ShowUpgradeClusterTaskRequest. + + 升级任务ID,调用集群升级API后从响应体中uid字段获取。 + + :return: The task_id of this ShowUpgradeClusterTaskRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowUpgradeClusterTaskRequest. + + 升级任务ID,调用集群升级API后从响应体中uid字段获取。 + + :param task_id: The task_id of this ShowUpgradeClusterTaskRequest. + :type task_id: str + """ + self._task_id = task_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowUpgradeClusterTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_response.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_response.py new file mode 100755 index 0000000000..663de72d0c --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/show_upgrade_cluster_task_response.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowUpgradeClusterTaskResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'UpgradeTaskMetadata', + 'spec': 'UpgradeTaskSpec', + 'status': 'UpgradeTaskStatus' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec', + 'status': 'status' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): + """ShowUpgradeClusterTaskResponse + + The model defined in huaweicloud sdk + + :param api_version: api版本,默认为v3 + :type api_version: str + :param kind: 资源类型,默认为UpgradeTask + :type kind: str + :param metadata: + :type metadata: :class:`huaweicloudsdkcce.v3.UpgradeTaskMetadata` + :param spec: + :type spec: :class:`huaweicloudsdkcce.v3.UpgradeTaskSpec` + :param status: + :type status: :class:`huaweicloudsdkcce.v3.UpgradeTaskStatus` + """ + + super(ShowUpgradeClusterTaskResponse, self).__init__() + + self._api_version = None + self._kind = None + self._metadata = None + self._spec = None + self._status = None + self.discriminator = None + + if api_version is not None: + self.api_version = api_version + if kind is not None: + self.kind = kind + if metadata is not None: + self.metadata = metadata + if spec is not None: + self.spec = spec + if status is not None: + self.status = status + + @property + def api_version(self): + """Gets the api_version of this ShowUpgradeClusterTaskResponse. + + api版本,默认为v3 + + :return: The api_version of this ShowUpgradeClusterTaskResponse. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this ShowUpgradeClusterTaskResponse. + + api版本,默认为v3 + + :param api_version: The api_version of this ShowUpgradeClusterTaskResponse. + :type api_version: str + """ + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this ShowUpgradeClusterTaskResponse. + + 资源类型,默认为UpgradeTask + + :return: The kind of this ShowUpgradeClusterTaskResponse. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ShowUpgradeClusterTaskResponse. + + 资源类型,默认为UpgradeTask + + :param kind: The kind of this ShowUpgradeClusterTaskResponse. + :type kind: str + """ + self._kind = kind + + @property + def metadata(self): + """Gets the metadata of this ShowUpgradeClusterTaskResponse. + + :return: The metadata of this ShowUpgradeClusterTaskResponse. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeTaskMetadata` + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this ShowUpgradeClusterTaskResponse. + + :param metadata: The metadata of this ShowUpgradeClusterTaskResponse. + :type metadata: :class:`huaweicloudsdkcce.v3.UpgradeTaskMetadata` + """ + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this ShowUpgradeClusterTaskResponse. + + :return: The spec of this ShowUpgradeClusterTaskResponse. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeTaskSpec` + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this ShowUpgradeClusterTaskResponse. + + :param spec: The spec of this ShowUpgradeClusterTaskResponse. + :type spec: :class:`huaweicloudsdkcce.v3.UpgradeTaskSpec` + """ + self._spec = spec + + @property + def status(self): + """Gets the status of this ShowUpgradeClusterTaskResponse. + + :return: The status of this ShowUpgradeClusterTaskResponse. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeTaskStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowUpgradeClusterTaskResponse. + + :param status: The status of this ShowUpgradeClusterTaskResponse. + :type status: :class:`huaweicloudsdkcce.v3.UpgradeTaskStatus` + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowUpgradeClusterTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_eip_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_eip_request.py index 4bb80c5534..6864e93b88 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_eip_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_eip_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the UpdateClusterEipRequest :type body: :class:`huaweicloudsdkcce.v3.MasterEIPRequest` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this UpdateClusterEipRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this UpdateClusterEipRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this UpdateClusterEipRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this UpdateClusterEipRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py index 89b1f5cf7d..b95344b7ab 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_cluster_request.py @@ -34,7 +34,7 @@ def __init__(self, cluster_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param body: Body of the UpdateClusterRequest :type body: :class:`huaweicloudsdkcce.v3.ClusterInformation` @@ -54,7 +54,7 @@ def __init__(self, cluster_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this UpdateClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this UpdateClusterRequest. :rtype: str @@ -65,7 +65,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this UpdateClusterRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this UpdateClusterRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py index 51f98b1642..ea9740bfdd 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_request.py @@ -36,7 +36,7 @@ def __init__(self, cluster_id=None, nodepool_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param nodepool_id: 节点池ID :type nodepool_id: str @@ -60,7 +60,7 @@ def __init__(self, cluster_id=None, nodepool_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this UpdateNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this UpdateNodePoolRequest. :rtype: str @@ -71,7 +71,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this UpdateNodePoolRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this UpdateNodePoolRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py index 89d4a41d62..da52007685 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_request.py @@ -36,7 +36,7 @@ def __init__(self, cluster_id=None, node_id=None, body=None): The model defined in huaweicloud sdk - :param cluster_id: 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type cluster_id: str :param node_id: 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :type node_id: str @@ -60,7 +60,7 @@ def __init__(self, cluster_id=None, node_id=None, body=None): def cluster_id(self): """Gets the cluster_id of this UpdateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :return: The cluster_id of this UpdateNodeRequest. :rtype: str @@ -71,7 +71,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this UpdateNodeRequest. - 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 :param cluster_id: The cluster_id of this UpdateNodeRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_addon_config.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_addon_config.py new file mode 100755 index 0000000000..3ca36b0629 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_addon_config.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeAddonConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'addon_template_name': 'str', + 'operation': 'str', + 'version': 'str', + 'values': 'object' + } + + attribute_map = { + 'addon_template_name': 'addonTemplateName', + 'operation': 'operation', + 'version': 'version', + 'values': 'values' + } + + def __init__(self, addon_template_name=None, operation=None, version=None, values=None): + """UpgradeAddonConfig + + The model defined in huaweicloud sdk + + :param addon_template_name: 插件名称 + :type addon_template_name: str + :param operation: 执行动作,当前升级场景支持操作为\"patch\" + :type operation: str + :param version: 目标插件版本号 + :type version: str + :param values: 插件参数列表,Key:Value格式 + :type values: object + """ + + + + self._addon_template_name = None + self._operation = None + self._version = None + self._values = None + self.discriminator = None + + self.addon_template_name = addon_template_name + self.operation = operation + self.version = version + if values is not None: + self.values = values + + @property + def addon_template_name(self): + """Gets the addon_template_name of this UpgradeAddonConfig. + + 插件名称 + + :return: The addon_template_name of this UpgradeAddonConfig. + :rtype: str + """ + return self._addon_template_name + + @addon_template_name.setter + def addon_template_name(self, addon_template_name): + """Sets the addon_template_name of this UpgradeAddonConfig. + + 插件名称 + + :param addon_template_name: The addon_template_name of this UpgradeAddonConfig. + :type addon_template_name: str + """ + self._addon_template_name = addon_template_name + + @property + def operation(self): + """Gets the operation of this UpgradeAddonConfig. + + 执行动作,当前升级场景支持操作为\"patch\" + + :return: The operation of this UpgradeAddonConfig. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """Sets the operation of this UpgradeAddonConfig. + + 执行动作,当前升级场景支持操作为\"patch\" + + :param operation: The operation of this UpgradeAddonConfig. + :type operation: str + """ + self._operation = operation + + @property + def version(self): + """Gets the version of this UpgradeAddonConfig. + + 目标插件版本号 + + :return: The version of this UpgradeAddonConfig. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpgradeAddonConfig. + + 目标插件版本号 + + :param version: The version of this UpgradeAddonConfig. + :type version: str + """ + self._version = version + + @property + def values(self): + """Gets the values of this UpgradeAddonConfig. + + 插件参数列表,Key:Value格式 + + :return: The values of this UpgradeAddonConfig. + :rtype: object + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this UpgradeAddonConfig. + + 插件参数列表,Key:Value格式 + + :param values: The values of this UpgradeAddonConfig. + :type values: object + """ + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeAddonConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request.py new file mode 100755 index 0000000000..7baef8ae21 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeClusterRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpgradeClusterRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpgradeClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + :type cluster_id: str + :param body: Body of the UpgradeClusterRequest + :type body: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpgradeClusterRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :return: The cluster_id of this UpgradeClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpgradeClusterRequest. + + 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。 + + :param cluster_id: The cluster_id of this UpgradeClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpgradeClusterRequest. + + :return: The body of this UpgradeClusterRequest. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpgradeClusterRequest. + + :param body: The body of this UpgradeClusterRequest. + :type body: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_body.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_body.py new file mode 100755 index 0000000000..a4b42e0dcc --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_body.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeClusterRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'metadata': 'UpgradeClusterRequestMetadata', + 'spec': 'UpgradeSpec' + } + + attribute_map = { + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, metadata=None, spec=None): + """UpgradeClusterRequestBody + + The model defined in huaweicloud sdk + + :param metadata: + :type metadata: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestMetadata` + :param spec: + :type spec: :class:`huaweicloudsdkcce.v3.UpgradeSpec` + """ + + + + self._metadata = None + self._spec = None + self.discriminator = None + + self.metadata = metadata + self.spec = spec + + @property + def metadata(self): + """Gets the metadata of this UpgradeClusterRequestBody. + + :return: The metadata of this UpgradeClusterRequestBody. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestMetadata` + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this UpgradeClusterRequestBody. + + :param metadata: The metadata of this UpgradeClusterRequestBody. + :type metadata: :class:`huaweicloudsdkcce.v3.UpgradeClusterRequestMetadata` + """ + self._metadata = metadata + + @property + def spec(self): + """Gets the spec of this UpgradeClusterRequestBody. + + :return: The spec of this UpgradeClusterRequestBody. + :rtype: :class:`huaweicloudsdkcce.v3.UpgradeSpec` + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this UpgradeClusterRequestBody. + + :param spec: The spec of this UpgradeClusterRequestBody. + :type spec: :class:`huaweicloudsdkcce.v3.UpgradeSpec` + """ + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeClusterRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_metadata.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_metadata.py new file mode 100755 index 0000000000..0b7386229e --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_request_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeClusterRequestMetadata: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'api_version': 'str', + 'kind': 'str' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind' + } + + def __init__(self, api_version=None, kind=None): + """UpgradeClusterRequestMetadata + + The model defined in huaweicloud sdk + + :param api_version: api版本,默认为v3 + :type api_version: str + :param kind: 资源类型,默认为UpgradeTask + :type kind: str + """ + + + + self._api_version = None + self._kind = None + self.discriminator = None + + self.api_version = api_version + self.kind = kind + + @property + def api_version(self): + """Gets the api_version of this UpgradeClusterRequestMetadata. + + api版本,默认为v3 + + :return: The api_version of this UpgradeClusterRequestMetadata. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """Sets the api_version of this UpgradeClusterRequestMetadata. + + api版本,默认为v3 + + :param api_version: The api_version of this UpgradeClusterRequestMetadata. + :type api_version: str + """ + self._api_version = api_version + + @property + def kind(self): + """Gets the kind of this UpgradeClusterRequestMetadata. + + 资源类型,默认为UpgradeTask + + :return: The kind of this UpgradeClusterRequestMetadata. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this UpgradeClusterRequestMetadata. + + 资源类型,默认为UpgradeTask + + :param kind: The kind of this UpgradeClusterRequestMetadata. + :type kind: str + """ + self._kind = kind + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeClusterRequestMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_response.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_response.py new file mode 100755 index 0000000000..710a767941 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_cluster_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeClusterResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'uid': 'str' + } + + attribute_map = { + 'uid': 'uid' + } + + def __init__(self, uid=None): + """UpgradeClusterResponse + + The model defined in huaweicloud sdk + + :param uid: 升级任务ID,可通过调用获取集群升级任务详情API查询进展 + :type uid: str + """ + + super(UpgradeClusterResponse, self).__init__() + + self._uid = None + self.discriminator = None + + if uid is not None: + self.uid = uid + + @property + def uid(self): + """Gets the uid of this UpgradeClusterResponse. + + 升级任务ID,可通过调用获取集群升级任务详情API查询进展 + + :return: The uid of this UpgradeClusterResponse. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this UpgradeClusterResponse. + + 升级任务ID,可通过调用获取集群升级任务详情API查询进展 + + :param uid: The uid of this UpgradeClusterResponse. + :type uid: str + """ + self._uid = uid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_spec.py new file mode 100755 index 0000000000..2490329994 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_spec.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeSpec: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_upgrade_action': 'ClusterUpgradeAction' + } + + attribute_map = { + 'cluster_upgrade_action': 'clusterUpgradeAction' + } + + def __init__(self, cluster_upgrade_action=None): + """UpgradeSpec + + The model defined in huaweicloud sdk + + :param cluster_upgrade_action: + :type cluster_upgrade_action: :class:`huaweicloudsdkcce.v3.ClusterUpgradeAction` + """ + + + + self._cluster_upgrade_action = None + self.discriminator = None + + if cluster_upgrade_action is not None: + self.cluster_upgrade_action = cluster_upgrade_action + + @property + def cluster_upgrade_action(self): + """Gets the cluster_upgrade_action of this UpgradeSpec. + + :return: The cluster_upgrade_action of this UpgradeSpec. + :rtype: :class:`huaweicloudsdkcce.v3.ClusterUpgradeAction` + """ + return self._cluster_upgrade_action + + @cluster_upgrade_action.setter + def cluster_upgrade_action(self, cluster_upgrade_action): + """Sets the cluster_upgrade_action of this UpgradeSpec. + + :param cluster_upgrade_action: The cluster_upgrade_action of this UpgradeSpec. + :type cluster_upgrade_action: :class:`huaweicloudsdkcce.v3.ClusterUpgradeAction` + """ + self._cluster_upgrade_action = cluster_upgrade_action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_strategy.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_strategy.py new file mode 100755 index 0000000000..c015cb2c74 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_strategy.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeStrategy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'in_place_rolling_update': 'InPlaceRollingUpdate' + } + + attribute_map = { + 'type': 'type', + 'in_place_rolling_update': 'inPlaceRollingUpdate' + } + + def __init__(self, type=None, in_place_rolling_update=None): + """UpgradeStrategy + + The model defined in huaweicloud sdk + + :param type: 升级策略类型,当前仅支持原地升级类型\"inPlaceRollingUpdate\" + :type type: str + :param in_place_rolling_update: + :type in_place_rolling_update: :class:`huaweicloudsdkcce.v3.InPlaceRollingUpdate` + """ + + + + self._type = None + self._in_place_rolling_update = None + self.discriminator = None + + self.type = type + if in_place_rolling_update is not None: + self.in_place_rolling_update = in_place_rolling_update + + @property + def type(self): + """Gets the type of this UpgradeStrategy. + + 升级策略类型,当前仅支持原地升级类型\"inPlaceRollingUpdate\" + + :return: The type of this UpgradeStrategy. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this UpgradeStrategy. + + 升级策略类型,当前仅支持原地升级类型\"inPlaceRollingUpdate\" + + :param type: The type of this UpgradeStrategy. + :type type: str + """ + self._type = type + + @property + def in_place_rolling_update(self): + """Gets the in_place_rolling_update of this UpgradeStrategy. + + :return: The in_place_rolling_update of this UpgradeStrategy. + :rtype: :class:`huaweicloudsdkcce.v3.InPlaceRollingUpdate` + """ + return self._in_place_rolling_update + + @in_place_rolling_update.setter + def in_place_rolling_update(self, in_place_rolling_update): + """Sets the in_place_rolling_update of this UpgradeStrategy. + + :param in_place_rolling_update: The in_place_rolling_update of this UpgradeStrategy. + :type in_place_rolling_update: :class:`huaweicloudsdkcce.v3.InPlaceRollingUpdate` + """ + self._in_place_rolling_update = in_place_rolling_update + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_metadata.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_metadata.py new file mode 100755 index 0000000000..cc3bbeb807 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_metadata.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeTaskMetadata: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'uid': 'str', + 'creation_timestamp': 'str', + 'update_timestamp': 'str' + } + + attribute_map = { + 'uid': 'uid', + 'creation_timestamp': 'creationTimestamp', + 'update_timestamp': 'updateTimestamp' + } + + def __init__(self, uid=None, creation_timestamp=None, update_timestamp=None): + """UpgradeTaskMetadata + + The model defined in huaweicloud sdk + + :param uid: 升级任务ID + :type uid: str + :param creation_timestamp: 任务创建时间 + :type creation_timestamp: str + :param update_timestamp: 任务更新时间 + :type update_timestamp: str + """ + + + + self._uid = None + self._creation_timestamp = None + self._update_timestamp = None + self.discriminator = None + + if uid is not None: + self.uid = uid + if creation_timestamp is not None: + self.creation_timestamp = creation_timestamp + if update_timestamp is not None: + self.update_timestamp = update_timestamp + + @property + def uid(self): + """Gets the uid of this UpgradeTaskMetadata. + + 升级任务ID + + :return: The uid of this UpgradeTaskMetadata. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this UpgradeTaskMetadata. + + 升级任务ID + + :param uid: The uid of this UpgradeTaskMetadata. + :type uid: str + """ + self._uid = uid + + @property + def creation_timestamp(self): + """Gets the creation_timestamp of this UpgradeTaskMetadata. + + 任务创建时间 + + :return: The creation_timestamp of this UpgradeTaskMetadata. + :rtype: str + """ + return self._creation_timestamp + + @creation_timestamp.setter + def creation_timestamp(self, creation_timestamp): + """Sets the creation_timestamp of this UpgradeTaskMetadata. + + 任务创建时间 + + :param creation_timestamp: The creation_timestamp of this UpgradeTaskMetadata. + :type creation_timestamp: str + """ + self._creation_timestamp = creation_timestamp + + @property + def update_timestamp(self): + """Gets the update_timestamp of this UpgradeTaskMetadata. + + 任务更新时间 + + :return: The update_timestamp of this UpgradeTaskMetadata. + :rtype: str + """ + return self._update_timestamp + + @update_timestamp.setter + def update_timestamp(self, update_timestamp): + """Sets the update_timestamp of this UpgradeTaskMetadata. + + 任务更新时间 + + :param update_timestamp: The update_timestamp of this UpgradeTaskMetadata. + :type update_timestamp: str + """ + self._update_timestamp = update_timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeTaskMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_spec.py new file mode 100755 index 0000000000..b2cd847fcd --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_spec.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeTaskSpec: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'target_version': 'str', + 'items': 'object' + } + + attribute_map = { + 'version': 'version', + 'target_version': 'targetVersion', + 'items': 'items' + } + + def __init__(self, version=None, target_version=None, items=None): + """UpgradeTaskSpec + + The model defined in huaweicloud sdk + + :param version: 升级前集群版本 + :type version: str + :param target_version: 升级的目标集群版本 + :type target_version: str + :param items: 升级任务附属信息 + :type items: object + """ + + + + self._version = None + self._target_version = None + self._items = None + self.discriminator = None + + if version is not None: + self.version = version + if target_version is not None: + self.target_version = target_version + if items is not None: + self.items = items + + @property + def version(self): + """Gets the version of this UpgradeTaskSpec. + + 升级前集群版本 + + :return: The version of this UpgradeTaskSpec. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpgradeTaskSpec. + + 升级前集群版本 + + :param version: The version of this UpgradeTaskSpec. + :type version: str + """ + self._version = version + + @property + def target_version(self): + """Gets the target_version of this UpgradeTaskSpec. + + 升级的目标集群版本 + + :return: The target_version of this UpgradeTaskSpec. + :rtype: str + """ + return self._target_version + + @target_version.setter + def target_version(self, target_version): + """Sets the target_version of this UpgradeTaskSpec. + + 升级的目标集群版本 + + :param target_version: The target_version of this UpgradeTaskSpec. + :type target_version: str + """ + self._target_version = target_version + + @property + def items(self): + """Gets the items of this UpgradeTaskSpec. + + 升级任务附属信息 + + :return: The items of this UpgradeTaskSpec. + :rtype: object + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this UpgradeTaskSpec. + + 升级任务附属信息 + + :param items: The items of this UpgradeTaskSpec. + :type items: object + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeTaskSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_status.py new file mode 100755 index 0000000000..be7f9a74cc --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/upgrade_task_status.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpgradeTaskStatus: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'phase': 'str', + 'progress': 'str', + 'completion_time': 'str' + } + + attribute_map = { + 'phase': 'phase', + 'progress': 'progress', + 'completion_time': 'completionTime' + } + + def __init__(self, phase=None, progress=None, completion_time=None): + """UpgradeTaskStatus + + The model defined in huaweicloud sdk + + :param phase: 升级任务状态. > Init:初始化 > Queuing:等待 > Running:运行中 > Pause:暂停 > Success:成功 > Failed:失败 + :type phase: str + :param progress: 升级任务进度 + :type progress: str + :param completion_time: 升级任务结束时间 + :type completion_time: str + """ + + + + self._phase = None + self._progress = None + self._completion_time = None + self.discriminator = None + + if phase is not None: + self.phase = phase + if progress is not None: + self.progress = progress + if completion_time is not None: + self.completion_time = completion_time + + @property + def phase(self): + """Gets the phase of this UpgradeTaskStatus. + + 升级任务状态. > Init:初始化 > Queuing:等待 > Running:运行中 > Pause:暂停 > Success:成功 > Failed:失败 + + :return: The phase of this UpgradeTaskStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this UpgradeTaskStatus. + + 升级任务状态. > Init:初始化 > Queuing:等待 > Running:运行中 > Pause:暂停 > Success:成功 > Failed:失败 + + :param phase: The phase of this UpgradeTaskStatus. + :type phase: str + """ + self._phase = phase + + @property + def progress(self): + """Gets the progress of this UpgradeTaskStatus. + + 升级任务进度 + + :return: The progress of this UpgradeTaskStatus. + :rtype: str + """ + return self._progress + + @progress.setter + def progress(self, progress): + """Sets the progress of this UpgradeTaskStatus. + + 升级任务进度 + + :param progress: The progress of this UpgradeTaskStatus. + :type progress: str + """ + self._progress = progress + + @property + def completion_time(self): + """Gets the completion_time of this UpgradeTaskStatus. + + 升级任务结束时间 + + :return: The completion_time of this UpgradeTaskStatus. + :rtype: str + """ + return self._completion_time + + @completion_time.setter + def completion_time(self, completion_time): + """Sets the completion_time of this UpgradeTaskStatus. + + 升级任务结束时间 + + :param completion_time: The completion_time of this UpgradeTaskStatus. + :type completion_time: str + """ + self._completion_time = completion_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeTaskStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index cc1ac4677e..ba9a9d5e73 100755 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index c6d8fa12df..d2d5750d7e 100755 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 5dca4543ca..82baaa3cf8 100755 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 36669e96c9..29beb1f962 100755 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 852854d7ca..24b9d37592 100755 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index ff01648a79..a27475c1e0 100755 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index b61beb9a21..19d6fe562b 100755 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index f93db90649..21761118b1 100755 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudartifact/requirements.txt b/huaweicloud-sdk-cloudartifact/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudartifact/requirements.txt +++ b/huaweicloud-sdk-cloudartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudartifact/setup.py b/huaweicloud-sdk-cloudartifact/setup.py index 0ca5b9e249..f1b90b972c 100755 --- a/huaweicloud-sdk-cloudartifact/setup.py +++ b/huaweicloud-sdk-cloudartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudartifact" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudbuild/requirements.txt b/huaweicloud-sdk-cloudbuild/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudbuild/requirements.txt +++ b/huaweicloud-sdk-cloudbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudbuild/setup.py b/huaweicloud-sdk-cloudbuild/setup.py index 0b1ba1d6a0..ec4875bf89 100755 --- a/huaweicloud-sdk-cloudbuild/setup.py +++ b/huaweicloud-sdk-cloudbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudbuild" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-clouddeploy/requirements.txt b/huaweicloud-sdk-clouddeploy/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-clouddeploy/requirements.txt +++ b/huaweicloud-sdk-clouddeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-clouddeploy/setup.py b/huaweicloud-sdk-clouddeploy/setup.py index afdedb7081..cfbe2cfc88 100755 --- a/huaweicloud-sdk-clouddeploy/setup.py +++ b/huaweicloud-sdk-clouddeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclouddeploy" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index c0a96eb706..a5c07f29f8 100755 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpipeline/requirements.txt b/huaweicloud-sdk-cloudpipeline/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudpipeline/requirements.txt +++ b/huaweicloud-sdk-cloudpipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index 376719968e..9d97d64ff7 100755 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index b627bf59e0..f2630876c0 100755 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 3f56970ec5..bac0e9675e 100755 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 00d050185a..e73994d08a 100755 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/__init__.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/__init__.py index 877c64106f..825a2f365a 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/__init__.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/__init__.py @@ -30,6 +30,7 @@ from huaweicloudsdkcodecheck.v2.model.delete_ruleset_response import DeleteRulesetResponse from huaweicloudsdkcodecheck.v2.model.delete_task_request import DeleteTaskRequest from huaweicloudsdkcodecheck.v2.model.delete_task_response import DeleteTaskResponse +from huaweicloudsdkcodecheck.v2.model.ignore_path_setting_item import IgnorePathSettingItem from huaweicloudsdkcodecheck.v2.model.inc_config_v2 import IncConfigV2 from huaweicloudsdkcodecheck.v2.model.list_rules_request import ListRulesRequest from huaweicloudsdkcodecheck.v2.model.list_rules_response import ListRulesResponse @@ -68,6 +69,10 @@ from huaweicloudsdkcodecheck.v2.model.show_task_detail_response import ShowTaskDetailResponse from huaweicloudsdkcodecheck.v2.model.show_task_list_by_project_id_request import ShowTaskListByProjectIdRequest from huaweicloudsdkcodecheck.v2.model.show_task_list_by_project_id_response import ShowTaskListByProjectIdResponse +from huaweicloudsdkcodecheck.v2.model.show_task_path_tree_request import ShowTaskPathTreeRequest +from huaweicloudsdkcodecheck.v2.model.show_task_path_tree_response import ShowTaskPathTreeResponse +from huaweicloudsdkcodecheck.v2.model.show_task_settings_request import ShowTaskSettingsRequest +from huaweicloudsdkcodecheck.v2.model.show_task_settings_response import ShowTaskSettingsResponse from huaweicloudsdkcodecheck.v2.model.show_tasklog_request import ShowTasklogRequest from huaweicloudsdkcodecheck.v2.model.show_tasklog_response import ShowTasklogResponse from huaweicloudsdkcodecheck.v2.model.show_tasks_rulesets_request import ShowTasksRulesetsRequest @@ -77,13 +82,22 @@ from huaweicloudsdkcodecheck.v2.model.statistic_status_v2 import StatisticStatusV2 from huaweicloudsdkcodecheck.v2.model.stop_task_by_id_request import StopTaskByIdRequest from huaweicloudsdkcodecheck.v2.model.stop_task_by_id_response import StopTaskByIdResponse +from huaweicloudsdkcodecheck.v2.model.task_advanced_settings import TaskAdvancedSettings +from huaweicloudsdkcodecheck.v2.model.task_advanced_settings_item import TaskAdvancedSettingsItem from huaweicloudsdkcodecheck.v2.model.task_check_paramters import TaskCheckParamters from huaweicloudsdkcodecheck.v2.model.task_check_settings_item import TaskCheckSettingsItem from huaweicloudsdkcodecheck.v2.model.task_ruleset_info import TaskRulesetInfo +from huaweicloudsdkcodecheck.v2.model.tree_node import TreeNode from huaweicloudsdkcodecheck.v2.model.update_defect_request_body import UpdateDefectRequestBody from huaweicloudsdkcodecheck.v2.model.update_defect_status_request import UpdateDefectStatusRequest from huaweicloudsdkcodecheck.v2.model.update_defect_status_response import UpdateDefectStatusResponse +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_request import UpdateIgnorePathRequest +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_request_body import UpdateIgnorePathRequestBody +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_response import UpdateIgnorePathResponse from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_item import UpdateTaskRulesetItem from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_request import UpdateTaskRulesetRequest from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_response import UpdateTaskRulesetResponse +from huaweicloudsdkcodecheck.v2.model.update_task_settings_request import UpdateTaskSettingsRequest +from huaweicloudsdkcodecheck.v2.model.update_task_settings_request_body import UpdateTaskSettingsRequestBody +from huaweicloudsdkcodecheck.v2.model.update_task_settings_response import UpdateTaskSettingsResponse diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_async_client.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_async_client.py index 9785593732..617bdace39 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_async_client.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_async_client.py @@ -1342,6 +1342,142 @@ def show_task_list_by_project_id_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_task_path_tree_async(self, request): + """获取任务的目录树 + + 获取任务的目录树 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTaskPathTree + :type request: :class:`huaweicloudsdkcodecheck.v2.ShowTaskPathTreeRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.ShowTaskPathTreeResponse` + """ + return self.show_task_path_tree_with_http_info(request) + + def show_task_path_tree_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'current_path', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'current_path' in local_var_params: + query_params.append(('current_path', local_var_params['current_path'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/listpathtree', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTaskPathTreeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_task_settings_async(self, request): + """查询任务的高级选项 + + 查询任务的高级选项 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTaskSettings + :type request: :class:`huaweicloudsdkcodecheck.v2.ShowTaskSettingsRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.ShowTaskSettingsResponse` + """ + return self.show_task_settings_with_http_info(request) + + def show_task_settings_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/settings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTaskSettingsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_tasklog_async(self, request): """查询任务检查失败日志 @@ -1598,6 +1734,71 @@ def update_defect_status_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def update_ignore_path_async(self, request): + """任务配置屏蔽目录 + + 任务配置屏蔽目录 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateIgnorePath + :type request: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathResponse` + """ + return self.update_ignore_path_with_http_info(request) + + def update_ignore_path_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'update_ignore_path_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/config-ignorepath', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateIgnorePathResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def update_task_ruleset_async(self, request): """修改任务规则集 @@ -1661,6 +1862,71 @@ def update_task_ruleset_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def update_task_settings_async(self, request): + """任务配置高级选项 + + 任务配置高级选项,如自定义镜像 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateTaskSettings + :type request: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsResponse` + """ + return self.update_task_settings_with_http_info(request) + + def update_task_settings_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'update_task_settings_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/settings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTaskSettingsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, collection_formats=None, request_type=None): diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_client.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_client.py index 943752dfbe..7e3423901c 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_client.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/codecheck_client.py @@ -1322,6 +1322,140 @@ def show_task_list_by_project_id_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_task_path_tree(self, request): + """获取任务的目录树 + + 获取任务的目录树 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTaskPathTree + :type request: :class:`huaweicloudsdkcodecheck.v2.ShowTaskPathTreeRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.ShowTaskPathTreeResponse` + """ + return self.show_task_path_tree_with_http_info(request) + + def show_task_path_tree_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'current_path', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'current_path' in local_var_params: + query_params.append(('current_path', local_var_params['current_path'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/listpathtree', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTaskPathTreeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_task_settings(self, request): + """查询任务的高级选项 + + 查询任务的高级选项 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTaskSettings + :type request: :class:`huaweicloudsdkcodecheck.v2.ShowTaskSettingsRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.ShowTaskSettingsResponse` + """ + return self.show_task_settings_with_http_info(request) + + def show_task_settings_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/settings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTaskSettingsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_tasklog(self, request): """查询任务检查失败日志 @@ -1574,6 +1708,70 @@ def update_defect_status_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def update_ignore_path(self, request): + """任务配置屏蔽目录 + + 任务配置屏蔽目录 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateIgnorePath + :type request: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathResponse` + """ + return self.update_ignore_path_with_http_info(request) + + def update_ignore_path_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'update_ignore_path_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/config-ignorepath', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateIgnorePathResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def update_task_ruleset(self, request): """修改任务规则集 @@ -1636,6 +1834,70 @@ def update_task_ruleset_with_http_info(self, request): collection_formats=collection_formats, request_type=request.__class__.__name__) + def update_task_settings(self, request): + """任务配置高级选项 + + 任务配置高级选项,如自定义镜像 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateTaskSettings + :type request: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsRequest` + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsResponse` + """ + return self.update_task_settings_with_http_info(request) + + def update_task_settings_with_http_info(self, request): + all_params = ['project_id', 'task_id', 'update_task_settings_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/tasks/{task_id}/settings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTaskSettingsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, collection_formats=None, request_type=None): diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/__init__.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/__init__.py index 1b004b8645..a65412a5b6 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/__init__.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/__init__.py @@ -27,6 +27,7 @@ from huaweicloudsdkcodecheck.v2.model.delete_ruleset_response import DeleteRulesetResponse from huaweicloudsdkcodecheck.v2.model.delete_task_request import DeleteTaskRequest from huaweicloudsdkcodecheck.v2.model.delete_task_response import DeleteTaskResponse +from huaweicloudsdkcodecheck.v2.model.ignore_path_setting_item import IgnorePathSettingItem from huaweicloudsdkcodecheck.v2.model.inc_config_v2 import IncConfigV2 from huaweicloudsdkcodecheck.v2.model.list_rules_request import ListRulesRequest from huaweicloudsdkcodecheck.v2.model.list_rules_response import ListRulesResponse @@ -65,6 +66,10 @@ from huaweicloudsdkcodecheck.v2.model.show_task_detail_response import ShowTaskDetailResponse from huaweicloudsdkcodecheck.v2.model.show_task_list_by_project_id_request import ShowTaskListByProjectIdRequest from huaweicloudsdkcodecheck.v2.model.show_task_list_by_project_id_response import ShowTaskListByProjectIdResponse +from huaweicloudsdkcodecheck.v2.model.show_task_path_tree_request import ShowTaskPathTreeRequest +from huaweicloudsdkcodecheck.v2.model.show_task_path_tree_response import ShowTaskPathTreeResponse +from huaweicloudsdkcodecheck.v2.model.show_task_settings_request import ShowTaskSettingsRequest +from huaweicloudsdkcodecheck.v2.model.show_task_settings_response import ShowTaskSettingsResponse from huaweicloudsdkcodecheck.v2.model.show_tasklog_request import ShowTasklogRequest from huaweicloudsdkcodecheck.v2.model.show_tasklog_response import ShowTasklogResponse from huaweicloudsdkcodecheck.v2.model.show_tasks_rulesets_request import ShowTasksRulesetsRequest @@ -74,12 +79,21 @@ from huaweicloudsdkcodecheck.v2.model.statistic_status_v2 import StatisticStatusV2 from huaweicloudsdkcodecheck.v2.model.stop_task_by_id_request import StopTaskByIdRequest from huaweicloudsdkcodecheck.v2.model.stop_task_by_id_response import StopTaskByIdResponse +from huaweicloudsdkcodecheck.v2.model.task_advanced_settings import TaskAdvancedSettings +from huaweicloudsdkcodecheck.v2.model.task_advanced_settings_item import TaskAdvancedSettingsItem from huaweicloudsdkcodecheck.v2.model.task_check_paramters import TaskCheckParamters from huaweicloudsdkcodecheck.v2.model.task_check_settings_item import TaskCheckSettingsItem from huaweicloudsdkcodecheck.v2.model.task_ruleset_info import TaskRulesetInfo +from huaweicloudsdkcodecheck.v2.model.tree_node import TreeNode from huaweicloudsdkcodecheck.v2.model.update_defect_request_body import UpdateDefectRequestBody from huaweicloudsdkcodecheck.v2.model.update_defect_status_request import UpdateDefectStatusRequest from huaweicloudsdkcodecheck.v2.model.update_defect_status_response import UpdateDefectStatusResponse +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_request import UpdateIgnorePathRequest +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_request_body import UpdateIgnorePathRequestBody +from huaweicloudsdkcodecheck.v2.model.update_ignore_path_response import UpdateIgnorePathResponse from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_item import UpdateTaskRulesetItem from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_request import UpdateTaskRulesetRequest from huaweicloudsdkcodecheck.v2.model.update_task_ruleset_response import UpdateTaskRulesetResponse +from huaweicloudsdkcodecheck.v2.model.update_task_settings_request import UpdateTaskSettingsRequest +from huaweicloudsdkcodecheck.v2.model.update_task_settings_request_body import UpdateTaskSettingsRequestBody +from huaweicloudsdkcodecheck.v2.model.update_task_settings_response import UpdateTaskSettingsResponse diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/ignore_path_setting_item.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/ignore_path_setting_item.py new file mode 100755 index 0000000000..562c645190 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/ignore_path_setting_item.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IgnorePathSettingItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_path': 'str', + 'checkbox_status': 'str' + } + + attribute_map = { + 'file_path': 'file_path', + 'checkbox_status': 'checkbox_status' + } + + def __init__(self, file_path=None, checkbox_status=None): + """IgnorePathSettingItem + + The model defined in huaweicloud sdk + + :param file_path: 目录或文件路径 + :type file_path: str + :param checkbox_status: 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + :type checkbox_status: str + """ + + + + self._file_path = None + self._checkbox_status = None + self.discriminator = None + + self.file_path = file_path + self.checkbox_status = checkbox_status + + @property + def file_path(self): + """Gets the file_path of this IgnorePathSettingItem. + + 目录或文件路径 + + :return: The file_path of this IgnorePathSettingItem. + :rtype: str + """ + return self._file_path + + @file_path.setter + def file_path(self, file_path): + """Sets the file_path of this IgnorePathSettingItem. + + 目录或文件路径 + + :param file_path: The file_path of this IgnorePathSettingItem. + :type file_path: str + """ + self._file_path = file_path + + @property + def checkbox_status(self): + """Gets the checkbox_status of this IgnorePathSettingItem. + + 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + + :return: The checkbox_status of this IgnorePathSettingItem. + :rtype: str + """ + return self._checkbox_status + + @checkbox_status.setter + def checkbox_status(self, checkbox_status): + """Sets the checkbox_status of this IgnorePathSettingItem. + + 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + + :param checkbox_status: The checkbox_status of this IgnorePathSettingItem. + :type checkbox_status: str + """ + self._checkbox_status = checkbox_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IgnorePathSettingItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_request.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_request.py new file mode 100755 index 0000000000..0b71a673c9 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_request.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTaskPathTreeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'task_id': 'str', + 'current_path': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'project_id': 'project_id', + 'task_id': 'task_id', + 'current_path': 'current_path', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, project_id=None, task_id=None, current_path=None, offset=None, limit=None): + """ShowTaskPathTreeRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目id + :type project_id: str + :param task_id: 任务id + :type task_id: str + :param current_path: 目录或文件的路径 + :type current_path: str + :param offset: 分页索引,偏移量 + :type offset: int + :param limit: 每页显示的数量,每页最多显示1000条 + :type limit: int + """ + + + + self._project_id = None + self._task_id = None + self._current_path = None + self._offset = None + self._limit = None + self.discriminator = None + + self.project_id = project_id + self.task_id = task_id + if current_path is not None: + self.current_path = current_path + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def project_id(self): + """Gets the project_id of this ShowTaskPathTreeRequest. + + 项目id + + :return: The project_id of this ShowTaskPathTreeRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowTaskPathTreeRequest. + + 项目id + + :param project_id: The project_id of this ShowTaskPathTreeRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def task_id(self): + """Gets the task_id of this ShowTaskPathTreeRequest. + + 任务id + + :return: The task_id of this ShowTaskPathTreeRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowTaskPathTreeRequest. + + 任务id + + :param task_id: The task_id of this ShowTaskPathTreeRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def current_path(self): + """Gets the current_path of this ShowTaskPathTreeRequest. + + 目录或文件的路径 + + :return: The current_path of this ShowTaskPathTreeRequest. + :rtype: str + """ + return self._current_path + + @current_path.setter + def current_path(self, current_path): + """Sets the current_path of this ShowTaskPathTreeRequest. + + 目录或文件的路径 + + :param current_path: The current_path of this ShowTaskPathTreeRequest. + :type current_path: str + """ + self._current_path = current_path + + @property + def offset(self): + """Gets the offset of this ShowTaskPathTreeRequest. + + 分页索引,偏移量 + + :return: The offset of this ShowTaskPathTreeRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowTaskPathTreeRequest. + + 分页索引,偏移量 + + :param offset: The offset of this ShowTaskPathTreeRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowTaskPathTreeRequest. + + 每页显示的数量,每页最多显示1000条 + + :return: The limit of this ShowTaskPathTreeRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowTaskPathTreeRequest. + + 每页显示的数量,每页最多显示1000条 + + :param limit: The limit of this ShowTaskPathTreeRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTaskPathTreeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_response.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_response.py new file mode 100755 index 0000000000..f569c20beb --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_path_tree_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTaskPathTreeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'info': 'list[TreeNode]', + 'total': 'int' + } + + attribute_map = { + 'info': 'info', + 'total': 'total' + } + + def __init__(self, info=None, total=None): + """ShowTaskPathTreeResponse + + The model defined in huaweicloud sdk + + :param info: 任务的目录树信息 + :type info: list[:class:`huaweicloudsdkcodecheck.v2.TreeNode`] + :param total: 数目 + :type total: int + """ + + super(ShowTaskPathTreeResponse, self).__init__() + + self._info = None + self._total = None + self.discriminator = None + + if info is not None: + self.info = info + if total is not None: + self.total = total + + @property + def info(self): + """Gets the info of this ShowTaskPathTreeResponse. + + 任务的目录树信息 + + :return: The info of this ShowTaskPathTreeResponse. + :rtype: list[:class:`huaweicloudsdkcodecheck.v2.TreeNode`] + """ + return self._info + + @info.setter + def info(self, info): + """Sets the info of this ShowTaskPathTreeResponse. + + 任务的目录树信息 + + :param info: The info of this ShowTaskPathTreeResponse. + :type info: list[:class:`huaweicloudsdkcodecheck.v2.TreeNode`] + """ + self._info = info + + @property + def total(self): + """Gets the total of this ShowTaskPathTreeResponse. + + 数目 + + :return: The total of this ShowTaskPathTreeResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowTaskPathTreeResponse. + + 数目 + + :param total: The total of this ShowTaskPathTreeResponse. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTaskPathTreeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_request.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_request.py new file mode 100755 index 0000000000..172e9b1907 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_request.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTaskSettingsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'task_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'project_id': 'project_id', + 'task_id': 'task_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, project_id=None, task_id=None, offset=None, limit=None): + """ShowTaskSettingsRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目ID + :type project_id: str + :param task_id: 任务ID + :type task_id: str + :param offset: 分页索引,偏移量,非必填 + :type offset: int + :param limit: 每页显示的数量,非必填 + :type limit: int + """ + + + + self._project_id = None + self._task_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.project_id = project_id + self.task_id = task_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def project_id(self): + """Gets the project_id of this ShowTaskSettingsRequest. + + 项目ID + + :return: The project_id of this ShowTaskSettingsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowTaskSettingsRequest. + + 项目ID + + :param project_id: The project_id of this ShowTaskSettingsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def task_id(self): + """Gets the task_id of this ShowTaskSettingsRequest. + + 任务ID + + :return: The task_id of this ShowTaskSettingsRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowTaskSettingsRequest. + + 任务ID + + :param task_id: The task_id of this ShowTaskSettingsRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def offset(self): + """Gets the offset of this ShowTaskSettingsRequest. + + 分页索引,偏移量,非必填 + + :return: The offset of this ShowTaskSettingsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowTaskSettingsRequest. + + 分页索引,偏移量,非必填 + + :param offset: The offset of this ShowTaskSettingsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowTaskSettingsRequest. + + 每页显示的数量,非必填 + + :return: The limit of this ShowTaskSettingsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowTaskSettingsRequest. + + 每页显示的数量,非必填 + + :param limit: The limit of this ShowTaskSettingsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTaskSettingsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_response.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_response.py new file mode 100755 index 0000000000..af46d07e69 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/show_task_settings_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTaskSettingsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'info': 'list[TaskAdvancedSettings]', + 'total': 'int' + } + + attribute_map = { + 'info': 'info', + 'total': 'total' + } + + def __init__(self, info=None, total=None): + """ShowTaskSettingsResponse + + The model defined in huaweicloud sdk + + :param info: 高级选项的相关信息 + :type info: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettings`] + :param total: 总数 + :type total: int + """ + + super(ShowTaskSettingsResponse, self).__init__() + + self._info = None + self._total = None + self.discriminator = None + + if info is not None: + self.info = info + if total is not None: + self.total = total + + @property + def info(self): + """Gets the info of this ShowTaskSettingsResponse. + + 高级选项的相关信息 + + :return: The info of this ShowTaskSettingsResponse. + :rtype: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettings`] + """ + return self._info + + @info.setter + def info(self, info): + """Sets the info of this ShowTaskSettingsResponse. + + 高级选项的相关信息 + + :param info: The info of this ShowTaskSettingsResponse. + :type info: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettings`] + """ + self._info = info + + @property + def total(self): + """Gets the total of this ShowTaskSettingsResponse. + + 总数 + + :return: The total of this ShowTaskSettingsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowTaskSettingsResponse. + + 总数 + + :param total: The total of this ShowTaskSettingsResponse. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTaskSettingsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings.py new file mode 100755 index 0000000000..c495a876b6 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TaskAdvancedSettings: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str', + 'option_value': 'str', + 'description': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value', + 'option_value': 'option_value', + 'description': 'description' + } + + def __init__(self, key=None, value=None, option_value=None, description=None): + """TaskAdvancedSettings + + The model defined in huaweicloud sdk + + :param key: 高级选项对应的名称 + :type key: str + :param value: 高级选项对应的取值 + :type value: str + :param option_value: 高级选项对应的可选项 + :type option_value: str + :param description: 高级选项对应的中文描述 + :type description: str + """ + + + + self._key = None + self._value = None + self._option_value = None + self._description = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + if option_value is not None: + self.option_value = option_value + if description is not None: + self.description = description + + @property + def key(self): + """Gets the key of this TaskAdvancedSettings. + + 高级选项对应的名称 + + :return: The key of this TaskAdvancedSettings. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this TaskAdvancedSettings. + + 高级选项对应的名称 + + :param key: The key of this TaskAdvancedSettings. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this TaskAdvancedSettings. + + 高级选项对应的取值 + + :return: The value of this TaskAdvancedSettings. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TaskAdvancedSettings. + + 高级选项对应的取值 + + :param value: The value of this TaskAdvancedSettings. + :type value: str + """ + self._value = value + + @property + def option_value(self): + """Gets the option_value of this TaskAdvancedSettings. + + 高级选项对应的可选项 + + :return: The option_value of this TaskAdvancedSettings. + :rtype: str + """ + return self._option_value + + @option_value.setter + def option_value(self, option_value): + """Sets the option_value of this TaskAdvancedSettings. + + 高级选项对应的可选项 + + :param option_value: The option_value of this TaskAdvancedSettings. + :type option_value: str + """ + self._option_value = option_value + + @property + def description(self): + """Gets the description of this TaskAdvancedSettings. + + 高级选项对应的中文描述 + + :return: The description of this TaskAdvancedSettings. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TaskAdvancedSettings. + + 高级选项对应的中文描述 + + :param description: The description of this TaskAdvancedSettings. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskAdvancedSettings): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings_item.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings_item.py new file mode 100755 index 0000000000..a748c519f4 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/task_advanced_settings_item.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TaskAdvancedSettingsItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """TaskAdvancedSettingsItem + + The model defined in huaweicloud sdk + + :param key: 高级选项对应的名称 + :type key: str + :param value: 高级选项对应的取值 + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this TaskAdvancedSettingsItem. + + 高级选项对应的名称 + + :return: The key of this TaskAdvancedSettingsItem. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this TaskAdvancedSettingsItem. + + 高级选项对应的名称 + + :param key: The key of this TaskAdvancedSettingsItem. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this TaskAdvancedSettingsItem. + + 高级选项对应的取值 + + :return: The value of this TaskAdvancedSettingsItem. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TaskAdvancedSettingsItem. + + 高级选项对应的取值 + + :param value: The value of this TaskAdvancedSettingsItem. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskAdvancedSettingsItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/tree_node.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/tree_node.py new file mode 100755 index 0000000000..3d2510150e --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/tree_node.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TreeNode: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_name': 'str', + 'file_path': 'str', + 'is_leaf': 'bool', + 'checkbox_status': 'str' + } + + attribute_map = { + 'file_name': 'file_name', + 'file_path': 'file_path', + 'is_leaf': 'is_leaf', + 'checkbox_status': 'checkbox_status' + } + + def __init__(self, file_name=None, file_path=None, is_leaf=None, checkbox_status=None): + """TreeNode + + The model defined in huaweicloud sdk + + :param file_name: 目录或文件名 + :type file_name: str + :param file_path: 目录或文件路径 + :type file_path: str + :param is_leaf: 是否为叶子节点,true是,false不是 + :type is_leaf: bool + :param checkbox_status: 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + :type checkbox_status: str + """ + + + + self._file_name = None + self._file_path = None + self._is_leaf = None + self._checkbox_status = None + self.discriminator = None + + if file_name is not None: + self.file_name = file_name + if file_path is not None: + self.file_path = file_path + if is_leaf is not None: + self.is_leaf = is_leaf + if checkbox_status is not None: + self.checkbox_status = checkbox_status + + @property + def file_name(self): + """Gets the file_name of this TreeNode. + + 目录或文件名 + + :return: The file_name of this TreeNode. + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this TreeNode. + + 目录或文件名 + + :param file_name: The file_name of this TreeNode. + :type file_name: str + """ + self._file_name = file_name + + @property + def file_path(self): + """Gets the file_path of this TreeNode. + + 目录或文件路径 + + :return: The file_path of this TreeNode. + :rtype: str + """ + return self._file_path + + @file_path.setter + def file_path(self, file_path): + """Sets the file_path of this TreeNode. + + 目录或文件路径 + + :param file_path: The file_path of this TreeNode. + :type file_path: str + """ + self._file_path = file_path + + @property + def is_leaf(self): + """Gets the is_leaf of this TreeNode. + + 是否为叶子节点,true是,false不是 + + :return: The is_leaf of this TreeNode. + :rtype: bool + """ + return self._is_leaf + + @is_leaf.setter + def is_leaf(self, is_leaf): + """Sets the is_leaf of this TreeNode. + + 是否为叶子节点,true是,false不是 + + :param is_leaf: The is_leaf of this TreeNode. + :type is_leaf: bool + """ + self._is_leaf = is_leaf + + @property + def checkbox_status(self): + """Gets the checkbox_status of this TreeNode. + + 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + + :return: The checkbox_status of this TreeNode. + :rtype: str + """ + return self._checkbox_status + + @checkbox_status.setter + def checkbox_status(self, checkbox_status): + """Sets the checkbox_status of this TreeNode. + + 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽) + + :param checkbox_status: The checkbox_status of this TreeNode. + :type checkbox_status: str + """ + self._checkbox_status = checkbox_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TreeNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request.py new file mode 100755 index 0000000000..f93a52758a --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIgnorePathRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'task_id': 'str', + 'body': 'UpdateIgnorePathRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'task_id': 'task_id', + 'body': 'body' + } + + def __init__(self, project_id=None, task_id=None, body=None): + """UpdateIgnorePathRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目ID + :type project_id: str + :param task_id: 任务ID + :type task_id: str + :param body: Body of the UpdateIgnorePathRequest + :type body: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathRequestBody` + """ + + + + self._project_id = None + self._task_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.task_id = task_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdateIgnorePathRequest. + + 项目ID + + :return: The project_id of this UpdateIgnorePathRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdateIgnorePathRequest. + + 项目ID + + :param project_id: The project_id of this UpdateIgnorePathRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def task_id(self): + """Gets the task_id of this UpdateIgnorePathRequest. + + 任务ID + + :return: The task_id of this UpdateIgnorePathRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this UpdateIgnorePathRequest. + + 任务ID + + :param task_id: The task_id of this UpdateIgnorePathRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def body(self): + """Gets the body of this UpdateIgnorePathRequest. + + :return: The body of this UpdateIgnorePathRequest. + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateIgnorePathRequest. + + :param body: The body of this UpdateIgnorePathRequest. + :type body: :class:`huaweicloudsdkcodecheck.v2.UpdateIgnorePathRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIgnorePathRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request_body.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request_body.py new file mode 100755 index 0000000000..104ce68f52 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_request_body.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIgnorePathRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ignore_path_settings': 'list[IgnorePathSettingItem]' + } + + attribute_map = { + 'ignore_path_settings': 'ignore_path_settings' + } + + def __init__(self, ignore_path_settings=None): + """UpdateIgnorePathRequestBody + + The model defined in huaweicloud sdk + + :param ignore_path_settings: 屏蔽目录的节点信息列表 + :type ignore_path_settings: list[:class:`huaweicloudsdkcodecheck.v2.IgnorePathSettingItem`] + """ + + + + self._ignore_path_settings = None + self.discriminator = None + + self.ignore_path_settings = ignore_path_settings + + @property + def ignore_path_settings(self): + """Gets the ignore_path_settings of this UpdateIgnorePathRequestBody. + + 屏蔽目录的节点信息列表 + + :return: The ignore_path_settings of this UpdateIgnorePathRequestBody. + :rtype: list[:class:`huaweicloudsdkcodecheck.v2.IgnorePathSettingItem`] + """ + return self._ignore_path_settings + + @ignore_path_settings.setter + def ignore_path_settings(self, ignore_path_settings): + """Sets the ignore_path_settings of this UpdateIgnorePathRequestBody. + + 屏蔽目录的节点信息列表 + + :param ignore_path_settings: The ignore_path_settings of this UpdateIgnorePathRequestBody. + :type ignore_path_settings: list[:class:`huaweicloudsdkcodecheck.v2.IgnorePathSettingItem`] + """ + self._ignore_path_settings = ignore_path_settings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIgnorePathRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_response.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_response.py new file mode 100755 index 0000000000..b4ae31ceab --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_ignore_path_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIgnorePathResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """UpdateIgnorePathResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateIgnorePathResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIgnorePathResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request.py new file mode 100755 index 0000000000..7d61dd9845 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTaskSettingsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'task_id': 'str', + 'body': 'UpdateTaskSettingsRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'task_id': 'task_id', + 'body': 'body' + } + + def __init__(self, project_id=None, task_id=None, body=None): + """UpdateTaskSettingsRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目ID + :type project_id: str + :param task_id: 任务ID + :type task_id: str + :param body: Body of the UpdateTaskSettingsRequest + :type body: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsRequestBody` + """ + + + + self._project_id = None + self._task_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.task_id = task_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdateTaskSettingsRequest. + + 项目ID + + :return: The project_id of this UpdateTaskSettingsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdateTaskSettingsRequest. + + 项目ID + + :param project_id: The project_id of this UpdateTaskSettingsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def task_id(self): + """Gets the task_id of this UpdateTaskSettingsRequest. + + 任务ID + + :return: The task_id of this UpdateTaskSettingsRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this UpdateTaskSettingsRequest. + + 任务ID + + :param task_id: The task_id of this UpdateTaskSettingsRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def body(self): + """Gets the body of this UpdateTaskSettingsRequest. + + :return: The body of this UpdateTaskSettingsRequest. + :rtype: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateTaskSettingsRequest. + + :param body: The body of this UpdateTaskSettingsRequest. + :type body: :class:`huaweicloudsdkcodecheck.v2.UpdateTaskSettingsRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTaskSettingsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request_body.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request_body.py new file mode 100755 index 0000000000..e70d866880 --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_request_body.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTaskSettingsRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'task_advanced_settings': 'list[TaskAdvancedSettingsItem]' + } + + attribute_map = { + 'task_advanced_settings': 'task_advanced_settings' + } + + def __init__(self, task_advanced_settings=None): + """UpdateTaskSettingsRequestBody + + The model defined in huaweicloud sdk + + :param task_advanced_settings: 高级选项参数的相关信息 + :type task_advanced_settings: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettingsItem`] + """ + + + + self._task_advanced_settings = None + self.discriminator = None + + self.task_advanced_settings = task_advanced_settings + + @property + def task_advanced_settings(self): + """Gets the task_advanced_settings of this UpdateTaskSettingsRequestBody. + + 高级选项参数的相关信息 + + :return: The task_advanced_settings of this UpdateTaskSettingsRequestBody. + :rtype: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettingsItem`] + """ + return self._task_advanced_settings + + @task_advanced_settings.setter + def task_advanced_settings(self, task_advanced_settings): + """Sets the task_advanced_settings of this UpdateTaskSettingsRequestBody. + + 高级选项参数的相关信息 + + :param task_advanced_settings: The task_advanced_settings of this UpdateTaskSettingsRequestBody. + :type task_advanced_settings: list[:class:`huaweicloudsdkcodecheck.v2.TaskAdvancedSettingsItem`] + """ + self._task_advanced_settings = task_advanced_settings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTaskSettingsRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_response.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_response.py new file mode 100755 index 0000000000..1a6017eaec --- /dev/null +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/model/update_task_settings_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTaskSettingsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """UpdateTaskSettingsResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateTaskSettingsResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTaskSettingsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py index 946800e87c..94ae6a9fb6 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py @@ -24,6 +24,8 @@ class CodeCheckRegion: SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://codecheck-ext.sa-brazil-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://codecheck-ext.ap-southeast-3.myhuaweicloud.com") + static_fields = { "cn-north-4": CN_NORTH_4, "cn-north-1": CN_NORTH_1, @@ -32,6 +34,7 @@ class CodeCheckRegion: "cn-east-3": CN_EAST_3, "la-north-2": LA_NORTH_2, "sa-brazil-1": SA_BRAZIL_1, + "ap-southeast-3": AP_SOUTHEAST_3, } @classmethod diff --git a/huaweicloud-sdk-codecheck/requirements.txt b/huaweicloud-sdk-codecheck/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-codecheck/requirements.txt +++ b/huaweicloud-sdk-codecheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-codecheck/setup.py b/huaweicloud-sdk-codecheck/setup.py index bfc0e27ae6..da43364284 100755 --- a/huaweicloud-sdk-codecheck/setup.py +++ b/huaweicloud-sdk-codecheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecheck" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index ddb83b1271..330e62433c 100755 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index c0d902be14..655c5363ee 100755 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index c918bbfc64..8b90eb25d1 100755 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 085c5bc5cf..5c380cba23 100755 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 4bc9948ff6..32972b9feb 100755 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index ae8c58bb99..a9975d08cb 100755 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index e050d0f9b3..3291661bb7 100755 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 90f1acfe4b..dd305894cb 100755 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index b88863ca2b..f9d6b3eb5b 100755 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/slow_sql_template.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/slow_sql_template.py index 31086bebb9..b68861db01 100755 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/slow_sql_template.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/slow_sql_template.py @@ -21,6 +21,7 @@ class SlowSqlTemplate: openapi_types = { 'sql_template': 'str', + 'sql_sample': 'str', 'db_names': 'list[str]', 'execute_count': 'int', 'avg_execute_time': 'float', @@ -35,6 +36,7 @@ class SlowSqlTemplate: attribute_map = { 'sql_template': 'sql_template', + 'sql_sample': 'sql_sample', 'db_names': 'db_names', 'execute_count': 'execute_count', 'avg_execute_time': 'avg_execute_time', @@ -47,13 +49,15 @@ class SlowSqlTemplate: 'max_rows_sent': 'max_rows_sent' } - def __init__(self, sql_template=None, db_names=None, execute_count=None, avg_execute_time=None, max_execute_time=None, avg_lock_wait_time=None, max_lock_wait_time=None, avg_rows_examined=None, max_rows_examined=None, avg_rows_sent=None, max_rows_sent=None): + def __init__(self, sql_template=None, sql_sample=None, db_names=None, execute_count=None, avg_execute_time=None, max_execute_time=None, avg_lock_wait_time=None, max_lock_wait_time=None, avg_rows_examined=None, max_rows_examined=None, avg_rows_sent=None, max_rows_sent=None): """SlowSqlTemplate The model defined in huaweicloud sdk :param sql_template: SQL模板。 :type sql_template: str + :param sql_sample: SQL样本。 + :type sql_sample: str :param db_names: 库名。 :type db_names: list[str] :param execute_count: 执行次数。 @@ -79,6 +83,7 @@ def __init__(self, sql_template=None, db_names=None, execute_count=None, avg_exe self._sql_template = None + self._sql_sample = None self._db_names = None self._execute_count = None self._avg_execute_time = None @@ -92,6 +97,7 @@ def __init__(self, sql_template=None, db_names=None, execute_count=None, avg_exe self.discriminator = None self.sql_template = sql_template + self.sql_sample = sql_sample self.db_names = db_names self.execute_count = execute_count self.avg_execute_time = avg_execute_time @@ -125,6 +131,28 @@ def sql_template(self, sql_template): """ self._sql_template = sql_template + @property + def sql_sample(self): + """Gets the sql_sample of this SlowSqlTemplate. + + SQL样本。 + + :return: The sql_sample of this SlowSqlTemplate. + :rtype: str + """ + return self._sql_sample + + @sql_sample.setter + def sql_sample(self, sql_sample): + """Sets the sql_sample of this SlowSqlTemplate. + + SQL样本。 + + :param sql_sample: The sql_sample of this SlowSqlTemplate. + :type sql_sample: str + """ + self._sql_sample = sql_sample + @property def db_names(self): """Gets the db_names of this SlowSqlTemplate. diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index c91d21b969..3ee82495ca 100755 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 6d14582847..f06a8befc0 100755 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 495f6ff73c..c48f8e1029 100755 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 7fc0259544..3abc71a10a 100755 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 615031c202..558dd8e2c9 100755 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 850b92afb6..59197bfb0b 100755 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 0fd2f94585..095170e6b0 100755 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index 7a476ba1ae..abd853e70d 100755 --- a/huaweicloud-sdk-devsecurity/setup.py +++ b/huaweicloud-sdk-devsecurity/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevsecurity" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 7c1c9be3ee..91408c2d6a 100755 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index bde6d03ab2..647316efec 100755 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 5beb894fc3..fe8331a2c3 100755 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index c0aa45ffee..2a00a68a8a 100755 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dms/requirements.txt b/huaweicloud-sdk-dms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dms/requirements.txt +++ b/huaweicloud-sdk-dms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 53c6d59164..ec6cd60509 100755 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 73d8519c45..173aaff3c9 100755 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/LICENSE b/huaweicloud-sdk-dris/LICENSE new file mode 100755 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-dris/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-dris/README_PYPI.md b/huaweicloud-sdk-dris/README_PYPI.md new file mode 100755 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-dris/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/__init__.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/__init__.py new file mode 100755 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/__init__.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/__init__.py new file mode 100755 index 0000000000..df6722ee4e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/__init__.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import DrisClient +from huaweicloudsdkdris.v1.dris_client import DrisClient +from huaweicloudsdkdris.v1.dris_async_client import DrisAsyncClient +# import models into sdk package +from huaweicloudsdkdris.v1.model.add_forwarding_config_request_dto import AddForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.add_forwarding_configs_request import AddForwardingConfigsRequest +from huaweicloudsdkdris.v1.model.add_forwarding_configs_response import AddForwardingConfigsResponse +from huaweicloudsdkdris.v1.model.add_rsu_dto import AddRsuDTO +from huaweicloudsdkdris.v1.model.add_rsu_model import AddRsuModel +from huaweicloudsdkdris.v1.model.add_traffic_controller_dto import AddTrafficControllerDTO +from huaweicloudsdkdris.v1.model.add_traffic_event_dto import AddTrafficEventDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_app_dto import AddV2XEdgeAppDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_dto import AddV2XEdgeDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_data_channel_dto import AddV2XEdgeDataChannelDTO +from huaweicloudsdkdris.v1.model.add_vehicle_dto import AddVehicleDTO +from huaweicloudsdkdris.v1.model.batch_show_edge_app_versions_request import BatchShowEdgeAppVersionsRequest +from huaweicloudsdkdris.v1.model.batch_show_edge_app_versions_response import BatchShowEdgeAppVersionsResponse +from huaweicloudsdkdris.v1.model.batch_show_edge_apps_request import BatchShowEdgeAppsRequest +from huaweicloudsdkdris.v1.model.batch_show_edge_apps_response import BatchShowEdgeAppsResponse +from huaweicloudsdkdris.v1.model.batch_show_ipcs_request import BatchShowIpcsRequest +from huaweicloudsdkdris.v1.model.batch_show_ipcs_response import BatchShowIpcsResponse +from huaweicloudsdkdris.v1.model.batch_show_rsus_request import BatchShowRsusRequest +from huaweicloudsdkdris.v1.model.batch_show_rsus_response import BatchShowRsusResponse +from huaweicloudsdkdris.v1.model.batch_show_traffic_controllers_request import BatchShowTrafficControllersRequest +from huaweicloudsdkdris.v1.model.batch_show_traffic_controllers_response import BatchShowTrafficControllersResponse +from huaweicloudsdkdris.v1.model.batch_show_traffic_events_request import BatchShowTrafficEventsRequest +from huaweicloudsdkdris.v1.model.batch_show_traffic_events_response import BatchShowTrafficEventsResponse +from huaweicloudsdkdris.v1.model.batch_show_vehicles_request import BatchShowVehiclesRequest +from huaweicloudsdkdris.v1.model.batch_show_vehicles_response import BatchShowVehiclesResponse +from huaweicloudsdkdris.v1.model.channel import Channel +from huaweicloudsdkdris.v1.model.congestion_info import CongestionInfo +from huaweicloudsdkdris.v1.model.congestion_lanes_info import CongestionLanesInfo +from huaweicloudsdkdris.v1.model.container_configs_dto import ContainerConfigsDTO +from huaweicloudsdkdris.v1.model.container_port_dto import ContainerPortDTO +from huaweicloudsdkdris.v1.model.container_settings_dto import ContainerSettingsDTO +from huaweicloudsdkdris.v1.model.create_data_channel_request import CreateDataChannelRequest +from huaweicloudsdkdris.v1.model.create_data_channel_response import CreateDataChannelResponse +from huaweicloudsdkdris.v1.model.create_edge_app_request import CreateEdgeAppRequest +from huaweicloudsdkdris.v1.model.create_edge_app_response import CreateEdgeAppResponse +from huaweicloudsdkdris.v1.model.create_edge_application_request_dto import CreateEdgeApplicationRequestDTO +from huaweicloudsdkdris.v1.model.create_edge_application_version_dto import CreateEdgeApplicationVersionDTO +from huaweicloudsdkdris.v1.model.create_edge_application_version_request import CreateEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.create_edge_application_version_response import CreateEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.create_rsu_model_request import CreateRsuModelRequest +from huaweicloudsdkdris.v1.model.create_rsu_model_response import CreateRsuModelResponse +from huaweicloudsdkdris.v1.model.create_rsu_request import CreateRsuRequest +from huaweicloudsdkdris.v1.model.create_rsu_response import CreateRsuResponse +from huaweicloudsdkdris.v1.model.create_traffic_controller_request import CreateTrafficControllerRequest +from huaweicloudsdkdris.v1.model.create_traffic_controller_response import CreateTrafficControllerResponse +from huaweicloudsdkdris.v1.model.create_traffic_event_request import CreateTrafficEventRequest +from huaweicloudsdkdris.v1.model.create_traffic_event_response import CreateTrafficEventResponse +from huaweicloudsdkdris.v1.model.create_v2x_edge_app_request import CreateV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.create_v2x_edge_app_response import CreateV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.create_v2x_edge_request import CreateV2xEdgeRequest +from huaweicloudsdkdris.v1.model.create_v2x_edge_response import CreateV2xEdgeResponse +from huaweicloudsdkdris.v1.model.create_vehicle_request import CreateVehicleRequest +from huaweicloudsdkdris.v1.model.create_vehicle_response import CreateVehicleResponse +from huaweicloudsdkdris.v1.model.delete_data_channel_request import DeleteDataChannelRequest +from huaweicloudsdkdris.v1.model.delete_data_channel_response import DeleteDataChannelResponse +from huaweicloudsdkdris.v1.model.delete_edge_app_request import DeleteEdgeAppRequest +from huaweicloudsdkdris.v1.model.delete_edge_app_response import DeleteEdgeAppResponse +from huaweicloudsdkdris.v1.model.delete_edge_application_version_request import DeleteEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.delete_edge_application_version_response import DeleteEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.delete_forwarding_config_request import DeleteForwardingConfigRequest +from huaweicloudsdkdris.v1.model.delete_forwarding_config_response import DeleteForwardingConfigResponse +from huaweicloudsdkdris.v1.model.delete_rsu_model_request import DeleteRsuModelRequest +from huaweicloudsdkdris.v1.model.delete_rsu_model_response import DeleteRsuModelResponse +from huaweicloudsdkdris.v1.model.delete_rsu_request import DeleteRsuRequest +from huaweicloudsdkdris.v1.model.delete_rsu_response import DeleteRsuResponse +from huaweicloudsdkdris.v1.model.delete_traffic_controller_request import DeleteTrafficControllerRequest +from huaweicloudsdkdris.v1.model.delete_traffic_controller_response import DeleteTrafficControllerResponse +from huaweicloudsdkdris.v1.model.delete_traffic_event_request import DeleteTrafficEventRequest +from huaweicloudsdkdris.v1.model.delete_traffic_event_response import DeleteTrafficEventResponse +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_app_by_edge_app_id_request import DeleteV2XEdgeAppByEdgeAppIdRequest +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_app_by_edge_app_id_response import DeleteV2XEdgeAppByEdgeAppIdResponse +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_by_v2x_edge_id_request import DeleteV2XEdgeByV2xEdgeIdRequest +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_by_v2x_edge_id_response import DeleteV2XEdgeByV2xEdgeIdResponse +from huaweicloudsdkdris.v1.model.delete_vehicle_request import DeleteVehicleRequest +from huaweicloudsdkdris.v1.model.delete_vehicle_response import DeleteVehicleResponse +from huaweicloudsdkdris.v1.model.edge_general_config import EdgeGeneralConfig +from huaweicloudsdkdris.v1.model.edge_general_config_in_response import EdgeGeneralConfigInResponse +from huaweicloudsdkdris.v1.model.event_ex_info import EventExInfo +from huaweicloudsdkdris.v1.model.event_location import EventLocation +from huaweicloudsdkdris.v1.model.event_participant import EventParticipant +from huaweicloudsdkdris.v1.model.event_reference_path import EventReferencePath +from huaweicloudsdkdris.v1.model.ext_device import ExtDevice +from huaweicloudsdkdris.v1.model.forwarding_config import ForwardingConfig +from huaweicloudsdkdris.v1.model.forwarding_config_request_dto import ForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.history_traffic_event_dto import HistoryTrafficEventDTO +from huaweicloudsdkdris.v1.model.id_and_status import IdAndStatus +from huaweicloudsdkdris.v1.model.immediate_event_dto import ImmediateEventDTO +from huaweicloudsdkdris.v1.model.immediate_event_position3_d import ImmediateEventPosition3D +from huaweicloudsdkdris.v1.model.immediate_event_reference_path import ImmediateEventReferencePath +from huaweicloudsdkdris.v1.model.immediate_event_response_dto import ImmediateEventResponseDTO +from huaweicloudsdkdris.v1.model.ipc_response_dto import IpcResponseDTO +from huaweicloudsdkdris.v1.model.kafka_config_request_dto import KafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.kafka_config_response_dto import KafkaConfigResponseDTO +from huaweicloudsdkdris.v1.model.lane_occupancy import LaneOccupancy +from huaweicloudsdkdris.v1.model.list_edge_flows_request import ListEdgeFlowsRequest +from huaweicloudsdkdris.v1.model.list_edge_flows_response import ListEdgeFlowsResponse +from huaweicloudsdkdris.v1.model.list_rsu_models_request import ListRsuModelsRequest +from huaweicloudsdkdris.v1.model.list_rsu_models_response import ListRsuModelsResponse +from huaweicloudsdkdris.v1.model.list_v2x_edge_app_request import ListV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.list_v2x_edge_app_response import ListV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.list_v2x_edges_request import ListV2xEdgesRequest +from huaweicloudsdkdris.v1.model.list_v2x_edges_response import ListV2xEdgesResponse +from huaweicloudsdkdris.v1.model.location import Location +from huaweicloudsdkdris.v1.model.model_flow import ModelFlow +from huaweicloudsdkdris.v1.model.modify_rsu_request_dto import ModifyRsuRequestDTO +from huaweicloudsdkdris.v1.model.modify_traffic_controller_request_dto import ModifyTrafficControllerRequestDTO +from huaweicloudsdkdris.v1.model.modify_v2_x_edge_app_dto import ModifyV2XEdgeAppDTO +from huaweicloudsdkdris.v1.model.modify_v2_x_edge_dto import ModifyV2XEdgeDTO +from huaweicloudsdkdris.v1.model.modify_vehicle_request_dto import ModifyVehicleRequestDTO +from huaweicloudsdkdris.v1.model.mrs_kafka_config_request_dto import MrsKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.mrs_kafka_config_response_dto import MrsKafkaConfigResponseDTO +from huaweicloudsdkdris.v1.model.open_v2_x_statistics_body import OpenV2XStatisticsBody +from huaweicloudsdkdris.v1.model.platform_para import PlatformPara +from huaweicloudsdkdris.v1.model.position3_d import Position3D +from huaweicloudsdkdris.v1.model.query_application_brief_response_dto import QueryApplicationBriefResponseDTO +from huaweicloudsdkdris.v1.model.query_edge_app_version_brief_response_dto import QueryEdgeAppVersionBriefResponseDTO +from huaweicloudsdkdris.v1.model.reference_path import ReferencePath +from huaweicloudsdkdris.v1.model.resource_config_dto import ResourceConfigDTO +from huaweicloudsdkdris.v1.model.resource_dto import ResourceDTO +from huaweicloudsdkdris.v1.model.rsu_dto import RsuDTO +from huaweicloudsdkdris.v1.model.rsu_location import RsuLocation +from huaweicloudsdkdris.v1.model.rsu_model_summary import RsuModelSummary +from huaweicloudsdkdris.v1.model.send_config import SendConfig +from huaweicloudsdkdris.v1.model.send_config_response import SendConfigResponse +from huaweicloudsdkdris.v1.model.send_immediate_event_request import SendImmediateEventRequest +from huaweicloudsdkdris.v1.model.send_immediate_event_response import SendImmediateEventResponse +from huaweicloudsdkdris.v1.model.send_immediate_events_dto import SendImmediateEventsDTO +from huaweicloudsdkdris.v1.model.show_data_channel_request import ShowDataChannelRequest +from huaweicloudsdkdris.v1.model.show_data_channel_response import ShowDataChannelResponse +from huaweicloudsdkdris.v1.model.show_deployment_code_request import ShowDeploymentCodeRequest +from huaweicloudsdkdris.v1.model.show_deployment_code_response import ShowDeploymentCodeResponse +from huaweicloudsdkdris.v1.model.show_edge_application_version_request import ShowEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.show_edge_application_version_response import ShowEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.show_forwarding_config_request import ShowForwardingConfigRequest +from huaweicloudsdkdris.v1.model.show_forwarding_config_response import ShowForwardingConfigResponse +from huaweicloudsdkdris.v1.model.show_forwarding_configs_request import ShowForwardingConfigsRequest +from huaweicloudsdkdris.v1.model.show_forwarding_configs_response import ShowForwardingConfigsResponse +from huaweicloudsdkdris.v1.model.show_history_traffic_events_request import ShowHistoryTrafficEventsRequest +from huaweicloudsdkdris.v1.model.show_history_traffic_events_response import ShowHistoryTrafficEventsResponse +from huaweicloudsdkdris.v1.model.show_ipc_request import ShowIpcRequest +from huaweicloudsdkdris.v1.model.show_ipc_response import ShowIpcResponse +from huaweicloudsdkdris.v1.model.show_rsu_model_request import ShowRsuModelRequest +from huaweicloudsdkdris.v1.model.show_rsu_model_response import ShowRsuModelResponse +from huaweicloudsdkdris.v1.model.show_traffic_event_request import ShowTrafficEventRequest +from huaweicloudsdkdris.v1.model.show_traffic_event_response import ShowTrafficEventResponse +from huaweicloudsdkdris.v1.model.show_v2_x_edge_app_detail_by_edge_app_id_request import ShowV2XEdgeAppDetailByEdgeAppIdRequest +from huaweicloudsdkdris.v1.model.show_v2_x_edge_app_detail_by_edge_app_id_response import ShowV2XEdgeAppDetailByEdgeAppIdResponse +from huaweicloudsdkdris.v1.model.show_v2x_edge_detail_request import ShowV2xEdgeDetailRequest +from huaweicloudsdkdris.v1.model.show_v2x_edge_detail_response import ShowV2xEdgeDetailResponse +from huaweicloudsdkdris.v1.model.statistics_source_dto import StatisticsSourceDTO +from huaweicloudsdkdris.v1.model.target_list import TargetList +from huaweicloudsdkdris.v1.model.target_pos import TargetPos +from huaweicloudsdkdris.v1.model.target_rect import TargetRect +from huaweicloudsdkdris.v1.model.traffic_controller_dto import TrafficControllerDTO +from huaweicloudsdkdris.v1.model.traffic_event_dto import TrafficEventDTO +from huaweicloudsdkdris.v1.model.update_data_channel_request import UpdateDataChannelRequest +from huaweicloudsdkdris.v1.model.update_data_channel_response import UpdateDataChannelResponse +from huaweicloudsdkdris.v1.model.update_edge_app_request import UpdateEdgeAppRequest +from huaweicloudsdkdris.v1.model.update_edge_app_response import UpdateEdgeAppResponse +from huaweicloudsdkdris.v1.model.update_edge_app_version_dto import UpdateEdgeAppVersionDTO +from huaweicloudsdkdris.v1.model.update_edge_app_version_state_dto import UpdateEdgeAppVersionStateDTO +from huaweicloudsdkdris.v1.model.update_edge_application_request_dto import UpdateEdgeApplicationRequestDTO +from huaweicloudsdkdris.v1.model.update_edge_application_version_request import UpdateEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.update_edge_application_version_response import UpdateEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.update_edge_application_version_state_request import UpdateEdgeApplicationVersionStateRequest +from huaweicloudsdkdris.v1.model.update_edge_application_version_state_response import UpdateEdgeApplicationVersionStateResponse +from huaweicloudsdkdris.v1.model.update_forwarding_config_request import UpdateForwardingConfigRequest +from huaweicloudsdkdris.v1.model.update_forwarding_config_request_dto import UpdateForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_forwarding_config_response import UpdateForwardingConfigResponse +from huaweicloudsdkdris.v1.model.update_kafka_config_request_dto import UpdateKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_mrs_kafka_config_request_dto import UpdateMrsKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_rsu_model import UpdateRsuModel +from huaweicloudsdkdris.v1.model.update_rsu_model_request import UpdateRsuModelRequest +from huaweicloudsdkdris.v1.model.update_rsu_model_response import UpdateRsuModelResponse +from huaweicloudsdkdris.v1.model.update_rsu_request import UpdateRsuRequest +from huaweicloudsdkdris.v1.model.update_rsu_response import UpdateRsuResponse +from huaweicloudsdkdris.v1.model.update_traffic_controller_request import UpdateTrafficControllerRequest +from huaweicloudsdkdris.v1.model.update_traffic_controller_response import UpdateTrafficControllerResponse +from huaweicloudsdkdris.v1.model.update_traffic_event_dto import UpdateTrafficEventDTO +from huaweicloudsdkdris.v1.model.update_traffic_event_request import UpdateTrafficEventRequest +from huaweicloudsdkdris.v1.model.update_traffic_event_response import UpdateTrafficEventResponse +from huaweicloudsdkdris.v1.model.update_v2x_edge_app_request import UpdateV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.update_v2x_edge_app_response import UpdateV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.update_v2x_edge_request import UpdateV2xEdgeRequest +from huaweicloudsdkdris.v1.model.update_v2x_edge_response import UpdateV2xEdgeResponse +from huaweicloudsdkdris.v1.model.update_vehicle_request import UpdateVehicleRequest +from huaweicloudsdkdris.v1.model.update_vehicle_response import UpdateVehicleResponse +from huaweicloudsdkdris.v1.model.v2_x_edge_app_response_dto import V2XEdgeAppResponseDTO +from huaweicloudsdkdris.v1.model.v2_x_edge_list_response_dto import V2XEdgeListResponseDTO +from huaweicloudsdkdris.v1.model.vehicle_dto import VehicleDTO +from huaweicloudsdkdris.v1.model.volume_dto import VolumeDTO + diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_async_client.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_async_client.py new file mode 100755 index 0000000000..bce194fa45 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_async_client.py @@ -0,0 +1,3846 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class DrisAsyncClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(DrisAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkdris.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "DrisClient": + raise TypeError("client type error, support client type is DrisClient") + + return ClientBuilder(clazz) + + def create_data_channel_async(self, request): + """创建业务通道 + + 创建业务通道,用于创建Edge消息上报的数据通道。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDataChannel + :type request: :class:`huaweicloudsdkdris.v1.CreateDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateDataChannelResponse` + """ + return self.create_data_channel_with_http_info(request) + + def create_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'create_data_channel_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_data_channel_async(self, request): + """删除业务通道 + + 删除业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDataChannel + :type request: :class:`huaweicloudsdkdris.v1.DeleteDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteDataChannelResponse` + """ + return self.delete_data_channel_with_http_info(request) + + def delete_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_data_channel_async(self, request): + """查询业务通道 + + 查询业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDataChannel + :type request: :class:`huaweicloudsdkdris.v1.ShowDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowDataChannelResponse` + """ + return self.show_data_channel_with_http_info(request) + + def show_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_data_channel_async(self, request): + """修改业务通道 + + 修改业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateDataChannel + :type request: :class:`huaweicloudsdkdris.v1.UpdateDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateDataChannelResponse` + """ + return self.update_data_channel_with_http_info(request) + + def update_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'update_data_channel_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_v2x_edge_async(self, request): + """创建Edge + + 创建Edge + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateV2xEdge + :type request: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeResponse` + """ + return self.create_v2x_edge_with_http_info(request) + + def create_v2x_edge_with_http_info(self, request): + all_params = ['create_v2x_edge_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateV2xEdgeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_v2_x_edge_by_v2x_edge_id_async(self, request): + """删除Edge + + 删除Edge之前需要删除Edge下的业务通道和关联设备。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteV2XEdgeByV2xEdgeId + :type request: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeByV2xEdgeIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeByV2xEdgeIdResponse` + """ + return self.delete_v2_x_edge_by_v2x_edge_id_with_http_info(request) + + def delete_v2_x_edge_by_v2x_edge_id_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteV2XEdgeByV2xEdgeIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_v2x_edges_async(self, request): + """查询Edge列表 + + 查询Edge列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListV2xEdges + :type request: :class:`huaweicloudsdkdris.v1.ListV2xEdgesRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListV2xEdgesResponse` + """ + return self.list_v2x_edges_with_http_info(request) + + def list_v2x_edges_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListV2xEdgesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_deployment_code_async(self, request): + """生成部署应用安装命令 + + 生成部署应用安装命令,然后在ITS800或者ATLAS500上通过Shell执行 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDeploymentCode + :type request: :class:`huaweicloudsdkdris.v1.ShowDeploymentCodeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowDeploymentCodeResponse` + """ + return self.show_deployment_code_with_http_info(request) + + def show_deployment_code_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/deployment-code', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDeploymentCodeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_v2x_edge_detail_async(self, request): + """查询Edge + + 查询Edge + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowV2xEdgeDetail + :type request: :class:`huaweicloudsdkdris.v1.ShowV2xEdgeDetailRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowV2xEdgeDetailResponse` + """ + return self.show_v2x_edge_detail_with_http_info(request) + + def show_v2x_edge_detail_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowV2xEdgeDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_v2x_edge_async(self, request): + """修改Edge + + 修改Edge + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateV2xEdge + :type request: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeResponse` + """ + return self.update_v2x_edge_with_http_info(request) + + def update_v2x_edge_with_http_info(self, request): + all_params = ['v2x_edge_id', 'update_v2_x_edge_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateV2xEdgeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def add_forwarding_configs_async(self, request): + """创建数据转发配置 + + 创建数据转发配置。当前仅支持数据转发至kafka,数据转发配置成功添加后配置中的Topic消息将会转发至指定的brokers。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AddForwardingConfigs + :type request: :class:`huaweicloudsdkdris.v1.AddForwardingConfigsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.AddForwardingConfigsResponse` + """ + return self.add_forwarding_configs_with_http_info(request) + + def add_forwarding_configs_with_http_info(self, request): + all_params = ['add_forwarding_configs_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='AddForwardingConfigsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_forwarding_config_async(self, request): + """删除数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)删除数据转发配置,删除后配置中订阅的topic消息将不会被转发至brokers。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.DeleteForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteForwardingConfigResponse` + """ + return self.delete_forwarding_config_with_http_info(request) + + def delete_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_forwarding_config_async(self, request): + """查询数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)查询数据转发配置 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigResponse` + """ + return self.show_forwarding_config_with_http_info(request) + + def show_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_forwarding_configs_async(self, request): + """查询数据转发配置列表 + + 查询数据转发配置列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowForwardingConfigs + :type request: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigsResponse` + """ + return self.show_forwarding_configs_with_http_info(request) + + def show_forwarding_configs_with_http_info(self, request): + all_params = ['forwarding_type', 'instance_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowForwardingConfigsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_forwarding_config_async(self, request): + """修改数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)修改数据转发配置,当前支持更新的字段有topicPrefix、userTopics、brokers,需要把该字段新的对应值全量写入。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigResponse` + """ + return self.update_forwarding_config_with_http_info(request) + + def update_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'update_forwarding_config_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_history_traffic_events_async(self, request): + """查询历史交通事件列表 + + 查询历史交通事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowHistoryTrafficEvents + :type request: :class:`huaweicloudsdkdris.v1.ShowHistoryTrafficEventsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowHistoryTrafficEventsResponse` + """ + return self.show_history_traffic_events_with_http_info(request) + + def show_history_traffic_events_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'from_date', 'to_date', 'event_id', 'event_class', 'event_type', 'event_source'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'event_id' in local_var_params: + query_params.append(('event_id', local_var_params['event_id'])) + if 'event_class' in local_var_params: + query_params.append(('event_class', local_var_params['event_class'])) + if 'event_type' in local_var_params: + query_params.append(('event_type', local_var_params['event_type'])) + if 'event_source' in local_var_params: + query_params.append(('event_source', local_var_params['event_source'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-app'] + + return self.call_api( + resource_path='/v1/{project_id}/history-traffic-events', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowHistoryTrafficEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_ipcs_async(self, request): + """查询IPC列表 + + 获取多个IPC资源 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowIpcs + :type request: :class:`huaweicloudsdkdris.v1.BatchShowIpcsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowIpcsResponse` + """ + return self.batch_show_ipcs_with_http_info(request) + + def batch_show_ipcs_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'status', 'v2x_edge_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'v2x_edge_id' in local_var_params: + query_params.append(('v2x_edge_id', local_var_params['v2x_edge_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/cameras', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowIpcsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_ipc_async(self, request): + """查询IPC + + 查询IPC + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowIpc + :type request: :class:`huaweicloudsdkdris.v1.ShowIpcRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowIpcResponse` + """ + return self.show_ipc_with_http_info(request) + + def show_ipc_with_http_info(self, request): + all_params = ['camera_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'camera_id' in local_var_params: + path_params['camera_id'] = local_var_params['camera_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/cameras/{camera_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIpcResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_rsus_async(self, request): + """查询RSU列表 + + 查询RSU列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowRsus + :type request: :class:`huaweicloudsdkdris.v1.BatchShowRsusRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowRsusResponse` + """ + return self.batch_show_rsus_with_http_info(request) + + def batch_show_rsus_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'rsu_id', 'esn', 'status', 'rsu_model_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'rsu_id' in local_var_params: + query_params.append(('rsu_id', local_var_params['rsu_id'])) + if 'esn' in local_var_params: + query_params.append(('esn', local_var_params['esn'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'rsu_model_id' in local_var_params: + query_params.append(('rsu_model_id', local_var_params['rsu_model_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowRsusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_rsu_async(self, request): + """创建RSU + + 创建RSU + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateRsu + :type request: :class:`huaweicloudsdkdris.v1.CreateRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateRsuResponse` + """ + return self.create_rsu_with_http_info(request) + + def create_rsu_with_http_info(self, request): + all_params = ['create_rsu_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_rsu_async(self, request): + """删除RSU + + 删除RSU + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteRsu + :type request: :class:`huaweicloudsdkdris.v1.DeleteRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteRsuResponse` + """ + return self.delete_rsu_with_http_info(request) + + def delete_rsu_with_http_info(self, request): + all_params = ['rsu_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_id' in local_var_params: + path_params['rsu_id'] = local_var_params['rsu_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus/{rsu_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_rsu_async(self, request): + """修改RSU + + 修改RSU + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateRsu + :type request: :class:`huaweicloudsdkdris.v1.UpdateRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateRsuResponse` + """ + return self.update_rsu_with_http_info(request) + + def update_rsu_with_http_info(self, request): + all_params = ['rsu_id', 'update_rsu_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_id' in local_var_params: + path_params['rsu_id'] = local_var_params['rsu_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus/{rsu_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def send_immediate_event_async(self, request): + """创建即时交通事件 + + 创建即时交通事件,平台分发即时交通事件给目标设备的接口。事件一旦创建便会立即下发且只会下发一次。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SendImmediateEvent + :type request: :class:`huaweicloudsdkdris.v1.SendImmediateEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.SendImmediateEventResponse` + """ + return self.send_immediate_event_with_http_info(request) + + def send_immediate_event_with_http_info(self, request): + all_params = ['send_immediate_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/immediate-event', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='SendImmediateEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_traffic_events_async(self, request): + """查询长期交通事件列表 + + 条件查询交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowTrafficEvents + :type request: :class:`huaweicloudsdkdris.v1.BatchShowTrafficEventsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowTrafficEventsResponse` + """ + return self.batch_show_traffic_events_with_http_info(request) + + def batch_show_traffic_events_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'area_code', 'status', 'event_type', 'event_source_type', 'event_class', 'event_id', 'from_time', 'to_time', 'sort_key', 'sort_dir'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'area_code' in local_var_params: + query_params.append(('area_code', local_var_params['area_code'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'event_type' in local_var_params: + query_params.append(('event_type', local_var_params['event_type'])) + if 'event_source_type' in local_var_params: + query_params.append(('event_source_type', local_var_params['event_source_type'])) + collection_formats['event_source_type'] = 'csv' + if 'event_class' in local_var_params: + query_params.append(('event_class', local_var_params['event_class'])) + if 'event_id' in local_var_params: + query_params.append(('event_id', local_var_params['event_id'])) + if 'from_time' in local_var_params: + query_params.append(('from_time', local_var_params['from_time'])) + if 'to_time' in local_var_params: + query_params.append(('to_time', local_var_params['to_time'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowTrafficEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_traffic_event_async(self, request): + """创建长期交通事件 + + 创建长期交通事件时,平台根据事件的起始时间和结束时间确定当前长期交通事件的状态。对于活跃状态的交通事件会立即下发给在事件影响范围内的RSU,对于未来事件则是在事件开始时间点下发到在事件影响范围内的RSU,过期事件不会下发。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.CreateTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateTrafficEventResponse` + """ + return self.create_traffic_event_with_http_info(request) + + def create_traffic_event_with_http_info(self, request): + all_params = ['create_traffic_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_traffic_event_async(self, request): + """删除长期交通事件 + + 刪除长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.DeleteTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteTrafficEventResponse` + """ + return self.delete_traffic_event_with_http_info(request) + + def delete_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_traffic_event_async(self, request): + """查询长期交通事件 + + 查询长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.ShowTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowTrafficEventResponse` + """ + return self.show_traffic_event_with_http_info(request) + + def show_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_traffic_event_async(self, request): + """修改长期交通事件 + + 修改长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventResponse` + """ + return self.update_traffic_event_with_http_info(request) + + def update_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'update_traffic_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_traffic_controllers_async(self, request): + """查询信号机列表 + + 查询信号机列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowTrafficControllers + :type request: :class:`huaweicloudsdkdris.v1.BatchShowTrafficControllersRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowTrafficControllersResponse` + """ + return self.batch_show_traffic_controllers_with_http_info(request) + + def batch_show_traffic_controllers_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'traffic_controller_id', 'esn', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'traffic_controller_id' in local_var_params: + query_params.append(('traffic_controller_id', local_var_params['traffic_controller_id'])) + if 'esn' in local_var_params: + query_params.append(('esn', local_var_params['esn'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowTrafficControllersResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_traffic_controller_async(self, request): + """创建信号机 + + 创建信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateTrafficController + :type request: :class:`huaweicloudsdkdris.v1.CreateTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateTrafficControllerResponse` + """ + return self.create_traffic_controller_with_http_info(request) + + def create_traffic_controller_with_http_info(self, request): + all_params = ['instance_id', 'create_traffic_controller_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_traffic_controller_async(self, request): + """删除信号机 + + 删除信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteTrafficController + :type request: :class:`huaweicloudsdkdris.v1.DeleteTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteTrafficControllerResponse` + """ + return self.delete_traffic_controller_with_http_info(request) + + def delete_traffic_controller_with_http_info(self, request): + all_params = ['traffic_controller_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'traffic_controller_id' in local_var_params: + path_params['traffic_controller_id'] = local_var_params['traffic_controller_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers/{traffic_controller_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_traffic_controller_async(self, request): + """修改信号机 + + 修改信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateTrafficController + :type request: :class:`huaweicloudsdkdris.v1.UpdateTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateTrafficControllerResponse` + """ + return self.update_traffic_controller_with_http_info(request) + + def update_traffic_controller_with_http_info(self, request): + all_params = ['traffic_controller_id', 'update_traffic_controller_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'traffic_controller_id' in local_var_params: + path_params['traffic_controller_id'] = local_var_params['traffic_controller_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers/{traffic_controller_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_v2x_edge_app_async(self, request): + """部署边缘应用 + + **部署边缘应用前需确保**: + + - Edge已创建且处于在线状态。相关方法请参见:[创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html),[查询Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0003.html)。 + + - 待部署的应用已创建且应用版本状态已更新至发布。相关方法请参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0026.html),[创建应用版本](https://support.huaweicloud.com/api-v2x/v2x_04_0038.html),[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html) + + 如部署边缘应用接口调用成功,稍后将会自动安装至边缘设备无需手动操作。自动安装完成后应用将处于运行中的状态。 + + **关于应用在设备侧部署的耗时问题**: + +   从边缘应用部署成功到处于运行中状态的耗时取决于边缘设备所处的网络状况以及应用镜像包的大小,可通过查询边缘应用获取边缘应用部署状态。相关方法请参见:[查询边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0115.html)\" + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeAppResponse` + """ + return self.create_v2x_edge_app_with_http_info(request) + + def create_v2x_edge_app_with_http_info(self, request): + all_params = ['v2x_edge_id', 'create_v2x_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_v2_x_edge_app_by_edge_app_id_async(self, request): + """删除边缘应用 + + 删除系统应用($edgetepa)前应先删除业务通道。如删除边缘应用接口调用成功,稍后边缘设备将会自动删除应用无需手动操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteV2XEdgeAppByEdgeAppId + :type request: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeAppByEdgeAppIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeAppByEdgeAppIdResponse` + """ + return self.delete_v2_x_edge_app_by_edge_app_id_with_http_info(request) + + def delete_v2_x_edge_app_by_edge_app_id_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteV2XEdgeAppByEdgeAppIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_v2x_edge_app_async(self, request): + """查询边缘应用列表 + + 查询边缘应用列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.ListV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListV2xEdgeAppResponse` + """ + return self.list_v2x_edge_app_with_http_info(request) + + def list_v2x_edge_app_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_v2_x_edge_app_detail_by_edge_app_id_async(self, request): + """查询边缘应用 + + 查询边缘应用 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowV2XEdgeAppDetailByEdgeAppId + :type request: :class:`huaweicloudsdkdris.v1.ShowV2XEdgeAppDetailByEdgeAppIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowV2XEdgeAppDetailByEdgeAppIdResponse` + """ + return self.show_v2_x_edge_app_detail_by_edge_app_id_with_http_info(request) + + def show_v2_x_edge_app_detail_by_edge_app_id_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowV2XEdgeAppDetailByEdgeAppIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_v2x_edge_app_async(self, request): + """升级边缘应用 + + **升级边缘应用前需确保**: + + - Edge处于在线状态。相关方法请参见:[查询Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0003.html)。 + + - 待升级的应用版本状态已更新至发布。相关方法请参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html) + + 如升级边缘应用接口调用成功,稍后边缘设备将会自动升级至新版本无需手动操作。自动安装完成后应用将处于运行中的状态。 + + **关于应用在设备侧升级的耗时问题**: + +   从边缘应用升级成功到处于运行中状态的耗时取决于边缘设备所处的网络状况以及应用镜像包的大小,可通过查询边缘应用获取边缘应用部署状态。相关方法请参见:[查询边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0115.html) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeAppResponse` + """ + return self.update_v2x_edge_app_with_http_info(request) + + def update_v2x_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'update_v2_x_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_vehicles_async(self, request): + """查询车辆列表 + + 查询车辆列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowVehicles + :type request: :class:`huaweicloudsdkdris.v1.BatchShowVehiclesRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowVehiclesResponse` + """ + return self.batch_show_vehicles_with_http_info(request) + + def batch_show_vehicles_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'vehicle_id', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'vehicle_id' in local_var_params: + query_params.append(('vehicle_id', local_var_params['vehicle_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowVehiclesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_vehicle_async(self, request): + """创建车辆 + + 创建车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateVehicle + :type request: :class:`huaweicloudsdkdris.v1.CreateVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateVehicleResponse` + """ + return self.create_vehicle_with_http_info(request) + + def create_vehicle_with_http_info(self, request): + all_params = ['instance_id', 'create_vehicle_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_vehicle_async(self, request): + """删除车辆 + + 删除车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteVehicle + :type request: :class:`huaweicloudsdkdris.v1.DeleteVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteVehicleResponse` + """ + return self.delete_vehicle_with_http_info(request) + + def delete_vehicle_with_http_info(self, request): + all_params = ['vehicle_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'vehicle_id' in local_var_params: + path_params['vehicle_id'] = local_var_params['vehicle_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles/{vehicle_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_vehicle_async(self, request): + """修改车辆 + + 修改车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateVehicle + :type request: :class:`huaweicloudsdkdris.v1.UpdateVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateVehicleResponse` + """ + return self.update_vehicle_with_http_info(request) + + def update_vehicle_with_http_info(self, request): + all_params = ['vehicle_id', 'update_vehicle_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'vehicle_id' in local_var_params: + path_params['vehicle_id'] = local_var_params['vehicle_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles/{vehicle_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_edge_apps_async(self, request): + """查询应用列表 + + 查询应用列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowEdgeApps + :type request: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppsResponse` + """ + return self.batch_show_edge_apps_with_http_info(request) + + def batch_show_edge_apps_with_http_info(self, request): + all_params = ['instance_id', 'edge_app_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'edge_app_id' in local_var_params: + query_params.append(('edge_app_id', local_var_params['edge_app_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowEdgeAppsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_edge_app_async(self, request): + """创建应用 + + 创建应用 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.CreateEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeAppResponse` + """ + return self.create_edge_app_with_http_info(request) + + def create_edge_app_with_http_info(self, request): + all_params = ['create_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_edge_app_async(self, request): + """删除应用 + + 删除应用 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.DeleteEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteEdgeAppResponse` + """ + return self.delete_edge_app_with_http_info(request) + + def delete_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_app_async(self, request): + """修改应用 + + 修改应用 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppResponse` + """ + return self.update_edge_app_with_http_info(request) + + def update_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'update_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_edge_app_versions_async(self, request): + """查询应用版本列表 + + 查询应用版本列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchShowEdgeAppVersions + :type request: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppVersionsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppVersionsResponse` + """ + return self.batch_show_edge_app_versions_with_http_info(request) + + def batch_show_edge_app_versions_with_http_info(self, request): + all_params = ['edge_app_id', 'instance_id', 'version', 'offset', 'limit', 'state'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowEdgeAppVersionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_edge_application_version_async(self, request): + """创建应用版本 + + 创建应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionResponse` + """ + return self.create_edge_application_version_with_http_info(request) + + def create_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'create_edge_application_version_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_edge_application_version_async(self, request): + """删除应用版本 + + 删除应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.DeleteEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteEdgeApplicationVersionResponse` + """ + return self.delete_edge_application_version_with_http_info(request) + + def delete_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_edge_application_version_async(self, request): + """查询应用版本 + + 查询应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.ShowEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowEdgeApplicationVersionResponse` + """ + return self.show_edge_application_version_with_http_info(request) + + def show_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_application_version_async(self, request): + """修改应用版本 + + 修改应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionResponse` + """ + return self.update_edge_application_version_with_http_info(request) + + def update_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'update_edge_application_version_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_application_version_state_async(self, request): + """更新应用版本状态 + + 更新应用版本状态。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateEdgeApplicationVersionState + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionStateRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionStateResponse` + """ + return self.update_edge_application_version_state_with_http_info(request) + + def update_edge_application_version_state_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'update_edge_application_version_state_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}/state', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeApplicationVersionStateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_edge_flows_async(self, request): + """查询历史交通统计信息列表 + + 查询历史交通统计信息列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListEdgeFlows + :type request: :class:`huaweicloudsdkdris.v1.ListEdgeFlowsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListEdgeFlowsResponse` + """ + return self.list_edge_flows_with_http_info(request) + + def list_edge_flows_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'from_date', 'to_date', 'edge_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'edge_id' in local_var_params: + query_params.append(('edge_id', local_var_params['edge_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/edge-flow', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListEdgeFlowsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_rsu_model_async(self, request): + """创建RSU型号 + + 调用此接口可创建RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateRsuModel + :type request: :class:`huaweicloudsdkdris.v1.CreateRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateRsuModelResponse` + """ + return self.create_rsu_model_with_http_info(request) + + def create_rsu_model_with_http_info(self, request): + all_params = ['instance_id', 'create_rsu_model_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_rsu_model_async(self, request): + """删除RSU型号 + + 可调用此接口删除已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteRsuModel + :type request: :class:`huaweicloudsdkdris.v1.DeleteRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteRsuModelResponse` + """ + return self.delete_rsu_model_with_http_info(request) + + def delete_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_rsu_models_async(self, request): + """查询RSU型号列表 + + 可调用此接口查询已创建RSU型号列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRsuModels + :type request: :class:`huaweicloudsdkdris.v1.ListRsuModelsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListRsuModelsResponse` + """ + return self.list_rsu_models_with_http_info(request) + + def list_rsu_models_with_http_info(self, request): + all_params = ['instance_id', 'limit', 'manufacturer_name', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'manufacturer_name' in local_var_params: + query_params.append(('manufacturer_name', local_var_params['manufacturer_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListRsuModelsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_rsu_model_async(self, request): + """查询RSU型号 + + 可调用此接口查询已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRsuModel + :type request: :class:`huaweicloudsdkdris.v1.ShowRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowRsuModelResponse` + """ + return self.show_rsu_model_with_http_info(request) + + def show_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_rsu_model_async(self, request): + """修改RSU型号 + + 可调用此接口修改已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateRsuModel + :type request: :class:`huaweicloudsdkdris.v1.UpdateRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateRsuModelResponse` + """ + return self.update_rsu_model_with_http_info(request) + + def update_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'update_rsu_model_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_client.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_client.py new file mode 100755 index 0000000000..1e3c17452d --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/dris_client.py @@ -0,0 +1,3787 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class DrisClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(DrisClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkdris.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "DrisClient": + raise TypeError("client type error, support client type is DrisClient") + + return ClientBuilder(clazz) + + def create_data_channel(self, request): + """创建业务通道 + + 创建业务通道,用于创建Edge消息上报的数据通道。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDataChannel + :type request: :class:`huaweicloudsdkdris.v1.CreateDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateDataChannelResponse` + """ + return self.create_data_channel_with_http_info(request) + + def create_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'create_data_channel_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_data_channel(self, request): + """删除业务通道 + + 删除业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDataChannel + :type request: :class:`huaweicloudsdkdris.v1.DeleteDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteDataChannelResponse` + """ + return self.delete_data_channel_with_http_info(request) + + def delete_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_data_channel(self, request): + """查询业务通道 + + 查询业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDataChannel + :type request: :class:`huaweicloudsdkdris.v1.ShowDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowDataChannelResponse` + """ + return self.show_data_channel_with_http_info(request) + + def show_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_data_channel(self, request): + """修改业务通道 + + 修改业务通道 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateDataChannel + :type request: :class:`huaweicloudsdkdris.v1.UpdateDataChannelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateDataChannelResponse` + """ + return self.update_data_channel_with_http_info(request) + + def update_data_channel_with_http_info(self, request): + all_params = ['v2x_edge_id', 'update_data_channel_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/data-channel', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateDataChannelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_v2x_edge(self, request): + """创建Edge + + 创建Edge + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateV2xEdge + :type request: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeResponse` + """ + return self.create_v2x_edge_with_http_info(request) + + def create_v2x_edge_with_http_info(self, request): + all_params = ['create_v2x_edge_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateV2xEdgeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_v2_x_edge_by_v2x_edge_id(self, request): + """删除Edge + + 删除Edge之前需要删除Edge下的业务通道和关联设备。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteV2XEdgeByV2xEdgeId + :type request: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeByV2xEdgeIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeByV2xEdgeIdResponse` + """ + return self.delete_v2_x_edge_by_v2x_edge_id_with_http_info(request) + + def delete_v2_x_edge_by_v2x_edge_id_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteV2XEdgeByV2xEdgeIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_v2x_edges(self, request): + """查询Edge列表 + + 查询Edge列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListV2xEdges + :type request: :class:`huaweicloudsdkdris.v1.ListV2xEdgesRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListV2xEdgesResponse` + """ + return self.list_v2x_edges_with_http_info(request) + + def list_v2x_edges_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListV2xEdgesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_deployment_code(self, request): + """生成部署应用安装命令 + + 生成部署应用安装命令,然后在ITS800或者ATLAS500上通过Shell执行 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDeploymentCode + :type request: :class:`huaweicloudsdkdris.v1.ShowDeploymentCodeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowDeploymentCodeResponse` + """ + return self.show_deployment_code_with_http_info(request) + + def show_deployment_code_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/deployment-code', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDeploymentCodeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_v2x_edge_detail(self, request): + """查询Edge + + 查询Edge + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowV2xEdgeDetail + :type request: :class:`huaweicloudsdkdris.v1.ShowV2xEdgeDetailRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowV2xEdgeDetailResponse` + """ + return self.show_v2x_edge_detail_with_http_info(request) + + def show_v2x_edge_detail_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowV2xEdgeDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_v2x_edge(self, request): + """修改Edge + + 修改Edge + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateV2xEdge + :type request: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeResponse` + """ + return self.update_v2x_edge_with_http_info(request) + + def update_v2x_edge_with_http_info(self, request): + all_params = ['v2x_edge_id', 'update_v2_x_edge_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateV2xEdgeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def add_forwarding_configs(self, request): + """创建数据转发配置 + + 创建数据转发配置。当前仅支持数据转发至kafka,数据转发配置成功添加后配置中的Topic消息将会转发至指定的brokers。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AddForwardingConfigs + :type request: :class:`huaweicloudsdkdris.v1.AddForwardingConfigsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.AddForwardingConfigsResponse` + """ + return self.add_forwarding_configs_with_http_info(request) + + def add_forwarding_configs_with_http_info(self, request): + all_params = ['add_forwarding_configs_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='AddForwardingConfigsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_forwarding_config(self, request): + """删除数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)删除数据转发配置,删除后配置中订阅的topic消息将不会被转发至brokers。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.DeleteForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteForwardingConfigResponse` + """ + return self.delete_forwarding_config_with_http_info(request) + + def delete_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_forwarding_config(self, request): + """查询数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)查询数据转发配置 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigResponse` + """ + return self.show_forwarding_config_with_http_info(request) + + def show_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_forwarding_configs(self, request): + """查询数据转发配置列表 + + 查询数据转发配置列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowForwardingConfigs + :type request: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowForwardingConfigsResponse` + """ + return self.show_forwarding_configs_with_http_info(request) + + def show_forwarding_configs_with_http_info(self, request): + all_params = ['forwarding_type', 'instance_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowForwardingConfigsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_forwarding_config(self, request): + """修改数据转发配置 + + 根据转发配置的唯一ID(forwarding_config_id)修改数据转发配置,当前支持更新的字段有topicPrefix、userTopics、brokers,需要把该字段新的对应值全量写入。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateForwardingConfig + :type request: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigResponse` + """ + return self.update_forwarding_config_with_http_info(request) + + def update_forwarding_config_with_http_info(self, request): + all_params = ['forwarding_type', 'forwarding_config_id', 'update_forwarding_config_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'forwarding_config_id' in local_var_params: + path_params['forwarding_config_id'] = local_var_params['forwarding_config_id'] + + query_params = [] + if 'forwarding_type' in local_var_params: + query_params.append(('forwarding_type', local_var_params['forwarding_type'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/forwarding-configs/{forwarding_config_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateForwardingConfigResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_history_traffic_events(self, request): + """查询历史交通事件列表 + + 查询历史交通事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowHistoryTrafficEvents + :type request: :class:`huaweicloudsdkdris.v1.ShowHistoryTrafficEventsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowHistoryTrafficEventsResponse` + """ + return self.show_history_traffic_events_with_http_info(request) + + def show_history_traffic_events_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'from_date', 'to_date', 'event_id', 'event_class', 'event_type', 'event_source'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'event_id' in local_var_params: + query_params.append(('event_id', local_var_params['event_id'])) + if 'event_class' in local_var_params: + query_params.append(('event_class', local_var_params['event_class'])) + if 'event_type' in local_var_params: + query_params.append(('event_type', local_var_params['event_type'])) + if 'event_source' in local_var_params: + query_params.append(('event_source', local_var_params['event_source'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-app'] + + return self.call_api( + resource_path='/v1/{project_id}/history-traffic-events', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowHistoryTrafficEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_ipcs(self, request): + """查询IPC列表 + + 获取多个IPC资源 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowIpcs + :type request: :class:`huaweicloudsdkdris.v1.BatchShowIpcsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowIpcsResponse` + """ + return self.batch_show_ipcs_with_http_info(request) + + def batch_show_ipcs_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'status', 'v2x_edge_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'v2x_edge_id' in local_var_params: + query_params.append(('v2x_edge_id', local_var_params['v2x_edge_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/cameras', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowIpcsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_ipc(self, request): + """查询IPC + + 查询IPC + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowIpc + :type request: :class:`huaweicloudsdkdris.v1.ShowIpcRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowIpcResponse` + """ + return self.show_ipc_with_http_info(request) + + def show_ipc_with_http_info(self, request): + all_params = ['camera_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'camera_id' in local_var_params: + path_params['camera_id'] = local_var_params['camera_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/cameras/{camera_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIpcResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_rsus(self, request): + """查询RSU列表 + + 查询RSU列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowRsus + :type request: :class:`huaweicloudsdkdris.v1.BatchShowRsusRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowRsusResponse` + """ + return self.batch_show_rsus_with_http_info(request) + + def batch_show_rsus_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'rsu_id', 'esn', 'status', 'rsu_model_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'rsu_id' in local_var_params: + query_params.append(('rsu_id', local_var_params['rsu_id'])) + if 'esn' in local_var_params: + query_params.append(('esn', local_var_params['esn'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'rsu_model_id' in local_var_params: + query_params.append(('rsu_model_id', local_var_params['rsu_model_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowRsusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_rsu(self, request): + """创建RSU + + 创建RSU + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateRsu + :type request: :class:`huaweicloudsdkdris.v1.CreateRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateRsuResponse` + """ + return self.create_rsu_with_http_info(request) + + def create_rsu_with_http_info(self, request): + all_params = ['create_rsu_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_rsu(self, request): + """删除RSU + + 删除RSU + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteRsu + :type request: :class:`huaweicloudsdkdris.v1.DeleteRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteRsuResponse` + """ + return self.delete_rsu_with_http_info(request) + + def delete_rsu_with_http_info(self, request): + all_params = ['rsu_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_id' in local_var_params: + path_params['rsu_id'] = local_var_params['rsu_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus/{rsu_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_rsu(self, request): + """修改RSU + + 修改RSU + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateRsu + :type request: :class:`huaweicloudsdkdris.v1.UpdateRsuRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateRsuResponse` + """ + return self.update_rsu_with_http_info(request) + + def update_rsu_with_http_info(self, request): + all_params = ['rsu_id', 'update_rsu_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_id' in local_var_params: + path_params['rsu_id'] = local_var_params['rsu_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/rsus/{rsu_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateRsuResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def send_immediate_event(self, request): + """创建即时交通事件 + + 创建即时交通事件,平台分发即时交通事件给目标设备的接口。事件一旦创建便会立即下发且只会下发一次。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SendImmediateEvent + :type request: :class:`huaweicloudsdkdris.v1.SendImmediateEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.SendImmediateEventResponse` + """ + return self.send_immediate_event_with_http_info(request) + + def send_immediate_event_with_http_info(self, request): + all_params = ['send_immediate_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/immediate-event', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='SendImmediateEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_traffic_events(self, request): + """查询长期交通事件列表 + + 条件查询交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowTrafficEvents + :type request: :class:`huaweicloudsdkdris.v1.BatchShowTrafficEventsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowTrafficEventsResponse` + """ + return self.batch_show_traffic_events_with_http_info(request) + + def batch_show_traffic_events_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'area_code', 'status', 'event_type', 'event_source_type', 'event_class', 'event_id', 'from_time', 'to_time', 'sort_key', 'sort_dir'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'area_code' in local_var_params: + query_params.append(('area_code', local_var_params['area_code'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'event_type' in local_var_params: + query_params.append(('event_type', local_var_params['event_type'])) + if 'event_source_type' in local_var_params: + query_params.append(('event_source_type', local_var_params['event_source_type'])) + collection_formats['event_source_type'] = 'csv' + if 'event_class' in local_var_params: + query_params.append(('event_class', local_var_params['event_class'])) + if 'event_id' in local_var_params: + query_params.append(('event_id', local_var_params['event_id'])) + if 'from_time' in local_var_params: + query_params.append(('from_time', local_var_params['from_time'])) + if 'to_time' in local_var_params: + query_params.append(('to_time', local_var_params['to_time'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowTrafficEventsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_traffic_event(self, request): + """创建长期交通事件 + + 创建长期交通事件时,平台根据事件的起始时间和结束时间确定当前长期交通事件的状态。对于活跃状态的交通事件会立即下发给在事件影响范围内的RSU,对于未来事件则是在事件开始时间点下发到在事件影响范围内的RSU,过期事件不会下发。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.CreateTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateTrafficEventResponse` + """ + return self.create_traffic_event_with_http_info(request) + + def create_traffic_event_with_http_info(self, request): + all_params = ['create_traffic_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_traffic_event(self, request): + """删除长期交通事件 + + 刪除长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.DeleteTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteTrafficEventResponse` + """ + return self.delete_traffic_event_with_http_info(request) + + def delete_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_traffic_event(self, request): + """查询长期交通事件 + + 查询长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.ShowTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowTrafficEventResponse` + """ + return self.show_traffic_event_with_http_info(request) + + def show_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_traffic_event(self, request): + """修改长期交通事件 + + 修改长期交通事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateTrafficEvent + :type request: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventResponse` + """ + return self.update_traffic_event_with_http_info(request) + + def update_traffic_event_with_http_info(self, request): + all_params = ['event_id', 'update_traffic_event_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'event_id' in local_var_params: + path_params['event_id'] = local_var_params['event_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-events/{event_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTrafficEventResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_traffic_controllers(self, request): + """查询信号机列表 + + 查询信号机列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowTrafficControllers + :type request: :class:`huaweicloudsdkdris.v1.BatchShowTrafficControllersRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowTrafficControllersResponse` + """ + return self.batch_show_traffic_controllers_with_http_info(request) + + def batch_show_traffic_controllers_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'traffic_controller_id', 'esn', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'traffic_controller_id' in local_var_params: + query_params.append(('traffic_controller_id', local_var_params['traffic_controller_id'])) + if 'esn' in local_var_params: + query_params.append(('esn', local_var_params['esn'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowTrafficControllersResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_traffic_controller(self, request): + """创建信号机 + + 创建信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateTrafficController + :type request: :class:`huaweicloudsdkdris.v1.CreateTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateTrafficControllerResponse` + """ + return self.create_traffic_controller_with_http_info(request) + + def create_traffic_controller_with_http_info(self, request): + all_params = ['instance_id', 'create_traffic_controller_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_traffic_controller(self, request): + """删除信号机 + + 删除信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteTrafficController + :type request: :class:`huaweicloudsdkdris.v1.DeleteTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteTrafficControllerResponse` + """ + return self.delete_traffic_controller_with_http_info(request) + + def delete_traffic_controller_with_http_info(self, request): + all_params = ['traffic_controller_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'traffic_controller_id' in local_var_params: + path_params['traffic_controller_id'] = local_var_params['traffic_controller_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers/{traffic_controller_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_traffic_controller(self, request): + """修改信号机 + + 修改信号机 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateTrafficController + :type request: :class:`huaweicloudsdkdris.v1.UpdateTrafficControllerRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateTrafficControllerResponse` + """ + return self.update_traffic_controller_with_http_info(request) + + def update_traffic_controller_with_http_info(self, request): + all_params = ['traffic_controller_id', 'update_traffic_controller_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'traffic_controller_id' in local_var_params: + path_params['traffic_controller_id'] = local_var_params['traffic_controller_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/traffic-controllers/{traffic_controller_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateTrafficControllerResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_v2x_edge_app(self, request): + """部署边缘应用 + + **部署边缘应用前需确保**: + + - Edge已创建且处于在线状态。相关方法请参见:[创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html),[查询Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0003.html)。 + + - 待部署的应用已创建且应用版本状态已更新至发布。相关方法请参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0026.html),[创建应用版本](https://support.huaweicloud.com/api-v2x/v2x_04_0038.html),[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html) + + 如部署边缘应用接口调用成功,稍后将会自动安装至边缘设备无需手动操作。自动安装完成后应用将处于运行中的状态。 + + **关于应用在设备侧部署的耗时问题**: + +   从边缘应用部署成功到处于运行中状态的耗时取决于边缘设备所处的网络状况以及应用镜像包的大小,可通过查询边缘应用获取边缘应用部署状态。相关方法请参见:[查询边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0115.html)\" + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateV2xEdgeAppResponse` + """ + return self.create_v2x_edge_app_with_http_info(request) + + def create_v2x_edge_app_with_http_info(self, request): + all_params = ['v2x_edge_id', 'create_v2x_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_v2_x_edge_app_by_edge_app_id(self, request): + """删除边缘应用 + + 删除系统应用($edgetepa)前应先删除业务通道。如删除边缘应用接口调用成功,稍后边缘设备将会自动删除应用无需手动操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteV2XEdgeAppByEdgeAppId + :type request: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeAppByEdgeAppIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteV2XEdgeAppByEdgeAppIdResponse` + """ + return self.delete_v2_x_edge_app_by_edge_app_id_with_http_info(request) + + def delete_v2_x_edge_app_by_edge_app_id_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteV2XEdgeAppByEdgeAppIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_v2x_edge_app(self, request): + """查询边缘应用列表 + + 查询边缘应用列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.ListV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListV2xEdgeAppResponse` + """ + return self.list_v2x_edge_app_with_http_info(request) + + def list_v2x_edge_app_with_http_info(self, request): + all_params = ['v2x_edge_id', 'instance_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_v2_x_edge_app_detail_by_edge_app_id(self, request): + """查询边缘应用 + + 查询边缘应用 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowV2XEdgeAppDetailByEdgeAppId + :type request: :class:`huaweicloudsdkdris.v1.ShowV2XEdgeAppDetailByEdgeAppIdRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowV2XEdgeAppDetailByEdgeAppIdResponse` + """ + return self.show_v2_x_edge_app_detail_by_edge_app_id_with_http_info(request) + + def show_v2_x_edge_app_detail_by_edge_app_id_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowV2XEdgeAppDetailByEdgeAppIdResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_v2x_edge_app(self, request): + """升级边缘应用 + + **升级边缘应用前需确保**: + + - Edge处于在线状态。相关方法请参见:[查询Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0003.html)。 + + - 待升级的应用版本状态已更新至发布。相关方法请参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html) + + 如升级边缘应用接口调用成功,稍后边缘设备将会自动升级至新版本无需手动操作。自动安装完成后应用将处于运行中的状态。 + + **关于应用在设备侧升级的耗时问题**: + +   从边缘应用升级成功到处于运行中状态的耗时取决于边缘设备所处的网络状况以及应用镜像包的大小,可通过查询边缘应用获取边缘应用部署状态。相关方法请参见:[查询边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0115.html) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateV2xEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateV2xEdgeAppResponse` + """ + return self.update_v2x_edge_app_with_http_info(request) + + def update_v2x_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'v2x_edge_id', 'update_v2_x_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'v2x_edge_id' in local_var_params: + path_params['v2x_edge_id'] = local_var_params['v2x_edge_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edges/{v2x_edge_id}/apps/{edge_app_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateV2xEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_vehicles(self, request): + """查询车辆列表 + + 查询车辆列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowVehicles + :type request: :class:`huaweicloudsdkdris.v1.BatchShowVehiclesRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowVehiclesResponse` + """ + return self.batch_show_vehicles_with_http_info(request) + + def batch_show_vehicles_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'vehicle_id', 'status'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'vehicle_id' in local_var_params: + query_params.append(('vehicle_id', local_var_params['vehicle_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowVehiclesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_vehicle(self, request): + """创建车辆 + + 创建车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateVehicle + :type request: :class:`huaweicloudsdkdris.v1.CreateVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateVehicleResponse` + """ + return self.create_vehicle_with_http_info(request) + + def create_vehicle_with_http_info(self, request): + all_params = ['instance_id', 'create_vehicle_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_vehicle(self, request): + """删除车辆 + + 删除车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteVehicle + :type request: :class:`huaweicloudsdkdris.v1.DeleteVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteVehicleResponse` + """ + return self.delete_vehicle_with_http_info(request) + + def delete_vehicle_with_http_info(self, request): + all_params = ['vehicle_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'vehicle_id' in local_var_params: + path_params['vehicle_id'] = local_var_params['vehicle_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles/{vehicle_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_vehicle(self, request): + """修改车辆 + + 修改车辆 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateVehicle + :type request: :class:`huaweicloudsdkdris.v1.UpdateVehicleRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateVehicleResponse` + """ + return self.update_vehicle_with_http_info(request) + + def update_vehicle_with_http_info(self, request): + all_params = ['vehicle_id', 'update_vehicle_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'vehicle_id' in local_var_params: + path_params['vehicle_id'] = local_var_params['vehicle_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/vehicles/{vehicle_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateVehicleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_edge_apps(self, request): + """查询应用列表 + + 查询应用列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowEdgeApps + :type request: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppsResponse` + """ + return self.batch_show_edge_apps_with_http_info(request) + + def batch_show_edge_apps_with_http_info(self, request): + all_params = ['instance_id', 'edge_app_id', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'edge_app_id' in local_var_params: + query_params.append(('edge_app_id', local_var_params['edge_app_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowEdgeAppsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_edge_app(self, request): + """创建应用 + + 创建应用 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.CreateEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeAppResponse` + """ + return self.create_edge_app_with_http_info(request) + + def create_edge_app_with_http_info(self, request): + all_params = ['create_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_edge_app(self, request): + """删除应用 + + 删除应用 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.DeleteEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteEdgeAppResponse` + """ + return self.delete_edge_app_with_http_info(request) + + def delete_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_app(self, request): + """修改应用 + + 修改应用 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateEdgeApp + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppResponse` + """ + return self.update_edge_app_with_http_info(request) + + def update_edge_app_with_http_info(self, request): + all_params = ['edge_app_id', 'update_edge_app_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeAppResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def batch_show_edge_app_versions(self, request): + """查询应用版本列表 + + 查询应用版本列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchShowEdgeAppVersions + :type request: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppVersionsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.BatchShowEdgeAppVersionsResponse` + """ + return self.batch_show_edge_app_versions_with_http_info(request) + + def batch_show_edge_app_versions_with_http_info(self, request): + all_params = ['edge_app_id', 'instance_id', 'version', 'offset', 'limit', 'state'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchShowEdgeAppVersionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_edge_application_version(self, request): + """创建应用版本 + + 创建应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionResponse` + """ + return self.create_edge_application_version_with_http_info(request) + + def create_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'create_edge_application_version_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_edge_application_version(self, request): + """删除应用版本 + + 删除应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.DeleteEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteEdgeApplicationVersionResponse` + """ + return self.delete_edge_application_version_with_http_info(request) + + def delete_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_edge_application_version(self, request): + """查询应用版本 + + 查询应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.ShowEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowEdgeApplicationVersionResponse` + """ + return self.show_edge_application_version_with_http_info(request) + + def show_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_application_version(self, request): + """修改应用版本 + + 修改应用版本 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateEdgeApplicationVersion + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionResponse` + """ + return self.update_edge_application_version_with_http_info(request) + + def update_edge_application_version_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'update_edge_application_version_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeApplicationVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_edge_application_version_state(self, request): + """更新应用版本状态 + + 更新应用版本状态。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateEdgeApplicationVersionState + :type request: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionStateRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationVersionStateResponse` + """ + return self.update_edge_application_version_state_with_http_info(request) + + def update_edge_application_version_state_with_http_info(self, request): + all_params = ['edge_app_id', 'version', 'update_edge_application_version_state_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'edge_app_id' in local_var_params: + path_params['edge_app_id'] = local_var_params['edge_app_id'] + if 'version' in local_var_params: + path_params['version'] = local_var_params['version'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/v2x-edge-apps/{edge_app_id}/versions/{version}/state', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateEdgeApplicationVersionStateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_edge_flows(self, request): + """查询历史交通统计信息列表 + + 查询历史交通统计信息列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListEdgeFlows + :type request: :class:`huaweicloudsdkdris.v1.ListEdgeFlowsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListEdgeFlowsResponse` + """ + return self.list_edge_flows_with_http_info(request) + + def list_edge_flows_with_http_info(self, request): + all_params = ['instance_id', 'offset', 'limit', 'from_date', 'to_date', 'edge_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'edge_id' in local_var_params: + query_params.append(('edge_id', local_var_params['edge_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/edge-flow', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListEdgeFlowsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_rsu_model(self, request): + """创建RSU型号 + + 调用此接口可创建RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateRsuModel + :type request: :class:`huaweicloudsdkdris.v1.CreateRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.CreateRsuModelResponse` + """ + return self.create_rsu_model_with_http_info(request) + + def create_rsu_model_with_http_info(self, request): + all_params = ['instance_id', 'create_rsu_model_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_rsu_model(self, request): + """删除RSU型号 + + 可调用此接口删除已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteRsuModel + :type request: :class:`huaweicloudsdkdris.v1.DeleteRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.DeleteRsuModelResponse` + """ + return self.delete_rsu_model_with_http_info(request) + + def delete_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_rsu_models(self, request): + """查询RSU型号列表 + + 可调用此接口查询已创建RSU型号列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRsuModels + :type request: :class:`huaweicloudsdkdris.v1.ListRsuModelsRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ListRsuModelsResponse` + """ + return self.list_rsu_models_with_http_info(request) + + def list_rsu_models_with_http_info(self, request): + all_params = ['instance_id', 'limit', 'manufacturer_name', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'manufacturer_name' in local_var_params: + query_params.append(('manufacturer_name', local_var_params['manufacturer_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListRsuModelsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_rsu_model(self, request): + """查询RSU型号 + + 可调用此接口查询已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRsuModel + :type request: :class:`huaweicloudsdkdris.v1.ShowRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.ShowRsuModelResponse` + """ + return self.show_rsu_model_with_http_info(request) + + def show_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_rsu_model(self, request): + """修改RSU型号 + + 可调用此接口修改已创建的RSU型号。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateRsuModel + :type request: :class:`huaweicloudsdkdris.v1.UpdateRsuModelRequest` + :rtype: :class:`huaweicloudsdkdris.v1.UpdateRsuModelResponse` + """ + return self.update_rsu_model_with_http_info(request) + + def update_rsu_model_with_http_info(self, request): + all_params = ['rsu_model_id', 'update_rsu_model_request_body', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'rsu_model_id' in local_var_params: + path_params['rsu_model_id'] = local_var_params['rsu_model_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/rsu-models/{rsu_model_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateRsuModelResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/__init__.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/__init__.py new file mode 100755 index 0000000000..113302f3ee --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/__init__.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkdris.v1.model.add_forwarding_config_request_dto import AddForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.add_forwarding_configs_request import AddForwardingConfigsRequest +from huaweicloudsdkdris.v1.model.add_forwarding_configs_response import AddForwardingConfigsResponse +from huaweicloudsdkdris.v1.model.add_rsu_dto import AddRsuDTO +from huaweicloudsdkdris.v1.model.add_rsu_model import AddRsuModel +from huaweicloudsdkdris.v1.model.add_traffic_controller_dto import AddTrafficControllerDTO +from huaweicloudsdkdris.v1.model.add_traffic_event_dto import AddTrafficEventDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_app_dto import AddV2XEdgeAppDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_dto import AddV2XEdgeDTO +from huaweicloudsdkdris.v1.model.add_v2_x_edge_data_channel_dto import AddV2XEdgeDataChannelDTO +from huaweicloudsdkdris.v1.model.add_vehicle_dto import AddVehicleDTO +from huaweicloudsdkdris.v1.model.batch_show_edge_app_versions_request import BatchShowEdgeAppVersionsRequest +from huaweicloudsdkdris.v1.model.batch_show_edge_app_versions_response import BatchShowEdgeAppVersionsResponse +from huaweicloudsdkdris.v1.model.batch_show_edge_apps_request import BatchShowEdgeAppsRequest +from huaweicloudsdkdris.v1.model.batch_show_edge_apps_response import BatchShowEdgeAppsResponse +from huaweicloudsdkdris.v1.model.batch_show_ipcs_request import BatchShowIpcsRequest +from huaweicloudsdkdris.v1.model.batch_show_ipcs_response import BatchShowIpcsResponse +from huaweicloudsdkdris.v1.model.batch_show_rsus_request import BatchShowRsusRequest +from huaweicloudsdkdris.v1.model.batch_show_rsus_response import BatchShowRsusResponse +from huaweicloudsdkdris.v1.model.batch_show_traffic_controllers_request import BatchShowTrafficControllersRequest +from huaweicloudsdkdris.v1.model.batch_show_traffic_controllers_response import BatchShowTrafficControllersResponse +from huaweicloudsdkdris.v1.model.batch_show_traffic_events_request import BatchShowTrafficEventsRequest +from huaweicloudsdkdris.v1.model.batch_show_traffic_events_response import BatchShowTrafficEventsResponse +from huaweicloudsdkdris.v1.model.batch_show_vehicles_request import BatchShowVehiclesRequest +from huaweicloudsdkdris.v1.model.batch_show_vehicles_response import BatchShowVehiclesResponse +from huaweicloudsdkdris.v1.model.channel import Channel +from huaweicloudsdkdris.v1.model.congestion_info import CongestionInfo +from huaweicloudsdkdris.v1.model.congestion_lanes_info import CongestionLanesInfo +from huaweicloudsdkdris.v1.model.container_configs_dto import ContainerConfigsDTO +from huaweicloudsdkdris.v1.model.container_port_dto import ContainerPortDTO +from huaweicloudsdkdris.v1.model.container_settings_dto import ContainerSettingsDTO +from huaweicloudsdkdris.v1.model.create_data_channel_request import CreateDataChannelRequest +from huaweicloudsdkdris.v1.model.create_data_channel_response import CreateDataChannelResponse +from huaweicloudsdkdris.v1.model.create_edge_app_request import CreateEdgeAppRequest +from huaweicloudsdkdris.v1.model.create_edge_app_response import CreateEdgeAppResponse +from huaweicloudsdkdris.v1.model.create_edge_application_request_dto import CreateEdgeApplicationRequestDTO +from huaweicloudsdkdris.v1.model.create_edge_application_version_dto import CreateEdgeApplicationVersionDTO +from huaweicloudsdkdris.v1.model.create_edge_application_version_request import CreateEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.create_edge_application_version_response import CreateEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.create_rsu_model_request import CreateRsuModelRequest +from huaweicloudsdkdris.v1.model.create_rsu_model_response import CreateRsuModelResponse +from huaweicloudsdkdris.v1.model.create_rsu_request import CreateRsuRequest +from huaweicloudsdkdris.v1.model.create_rsu_response import CreateRsuResponse +from huaweicloudsdkdris.v1.model.create_traffic_controller_request import CreateTrafficControllerRequest +from huaweicloudsdkdris.v1.model.create_traffic_controller_response import CreateTrafficControllerResponse +from huaweicloudsdkdris.v1.model.create_traffic_event_request import CreateTrafficEventRequest +from huaweicloudsdkdris.v1.model.create_traffic_event_response import CreateTrafficEventResponse +from huaweicloudsdkdris.v1.model.create_v2x_edge_app_request import CreateV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.create_v2x_edge_app_response import CreateV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.create_v2x_edge_request import CreateV2xEdgeRequest +from huaweicloudsdkdris.v1.model.create_v2x_edge_response import CreateV2xEdgeResponse +from huaweicloudsdkdris.v1.model.create_vehicle_request import CreateVehicleRequest +from huaweicloudsdkdris.v1.model.create_vehicle_response import CreateVehicleResponse +from huaweicloudsdkdris.v1.model.delete_data_channel_request import DeleteDataChannelRequest +from huaweicloudsdkdris.v1.model.delete_data_channel_response import DeleteDataChannelResponse +from huaweicloudsdkdris.v1.model.delete_edge_app_request import DeleteEdgeAppRequest +from huaweicloudsdkdris.v1.model.delete_edge_app_response import DeleteEdgeAppResponse +from huaweicloudsdkdris.v1.model.delete_edge_application_version_request import DeleteEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.delete_edge_application_version_response import DeleteEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.delete_forwarding_config_request import DeleteForwardingConfigRequest +from huaweicloudsdkdris.v1.model.delete_forwarding_config_response import DeleteForwardingConfigResponse +from huaweicloudsdkdris.v1.model.delete_rsu_model_request import DeleteRsuModelRequest +from huaweicloudsdkdris.v1.model.delete_rsu_model_response import DeleteRsuModelResponse +from huaweicloudsdkdris.v1.model.delete_rsu_request import DeleteRsuRequest +from huaweicloudsdkdris.v1.model.delete_rsu_response import DeleteRsuResponse +from huaweicloudsdkdris.v1.model.delete_traffic_controller_request import DeleteTrafficControllerRequest +from huaweicloudsdkdris.v1.model.delete_traffic_controller_response import DeleteTrafficControllerResponse +from huaweicloudsdkdris.v1.model.delete_traffic_event_request import DeleteTrafficEventRequest +from huaweicloudsdkdris.v1.model.delete_traffic_event_response import DeleteTrafficEventResponse +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_app_by_edge_app_id_request import DeleteV2XEdgeAppByEdgeAppIdRequest +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_app_by_edge_app_id_response import DeleteV2XEdgeAppByEdgeAppIdResponse +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_by_v2x_edge_id_request import DeleteV2XEdgeByV2xEdgeIdRequest +from huaweicloudsdkdris.v1.model.delete_v2_x_edge_by_v2x_edge_id_response import DeleteV2XEdgeByV2xEdgeIdResponse +from huaweicloudsdkdris.v1.model.delete_vehicle_request import DeleteVehicleRequest +from huaweicloudsdkdris.v1.model.delete_vehicle_response import DeleteVehicleResponse +from huaweicloudsdkdris.v1.model.edge_general_config import EdgeGeneralConfig +from huaweicloudsdkdris.v1.model.edge_general_config_in_response import EdgeGeneralConfigInResponse +from huaweicloudsdkdris.v1.model.event_ex_info import EventExInfo +from huaweicloudsdkdris.v1.model.event_location import EventLocation +from huaweicloudsdkdris.v1.model.event_participant import EventParticipant +from huaweicloudsdkdris.v1.model.event_reference_path import EventReferencePath +from huaweicloudsdkdris.v1.model.ext_device import ExtDevice +from huaweicloudsdkdris.v1.model.forwarding_config import ForwardingConfig +from huaweicloudsdkdris.v1.model.forwarding_config_request_dto import ForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.history_traffic_event_dto import HistoryTrafficEventDTO +from huaweicloudsdkdris.v1.model.id_and_status import IdAndStatus +from huaweicloudsdkdris.v1.model.immediate_event_dto import ImmediateEventDTO +from huaweicloudsdkdris.v1.model.immediate_event_position3_d import ImmediateEventPosition3D +from huaweicloudsdkdris.v1.model.immediate_event_reference_path import ImmediateEventReferencePath +from huaweicloudsdkdris.v1.model.immediate_event_response_dto import ImmediateEventResponseDTO +from huaweicloudsdkdris.v1.model.ipc_response_dto import IpcResponseDTO +from huaweicloudsdkdris.v1.model.kafka_config_request_dto import KafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.kafka_config_response_dto import KafkaConfigResponseDTO +from huaweicloudsdkdris.v1.model.lane_occupancy import LaneOccupancy +from huaweicloudsdkdris.v1.model.list_edge_flows_request import ListEdgeFlowsRequest +from huaweicloudsdkdris.v1.model.list_edge_flows_response import ListEdgeFlowsResponse +from huaweicloudsdkdris.v1.model.list_rsu_models_request import ListRsuModelsRequest +from huaweicloudsdkdris.v1.model.list_rsu_models_response import ListRsuModelsResponse +from huaweicloudsdkdris.v1.model.list_v2x_edge_app_request import ListV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.list_v2x_edge_app_response import ListV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.list_v2x_edges_request import ListV2xEdgesRequest +from huaweicloudsdkdris.v1.model.list_v2x_edges_response import ListV2xEdgesResponse +from huaweicloudsdkdris.v1.model.location import Location +from huaweicloudsdkdris.v1.model.model_flow import ModelFlow +from huaweicloudsdkdris.v1.model.modify_rsu_request_dto import ModifyRsuRequestDTO +from huaweicloudsdkdris.v1.model.modify_traffic_controller_request_dto import ModifyTrafficControllerRequestDTO +from huaweicloudsdkdris.v1.model.modify_v2_x_edge_app_dto import ModifyV2XEdgeAppDTO +from huaweicloudsdkdris.v1.model.modify_v2_x_edge_dto import ModifyV2XEdgeDTO +from huaweicloudsdkdris.v1.model.modify_vehicle_request_dto import ModifyVehicleRequestDTO +from huaweicloudsdkdris.v1.model.mrs_kafka_config_request_dto import MrsKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.mrs_kafka_config_response_dto import MrsKafkaConfigResponseDTO +from huaweicloudsdkdris.v1.model.open_v2_x_statistics_body import OpenV2XStatisticsBody +from huaweicloudsdkdris.v1.model.platform_para import PlatformPara +from huaweicloudsdkdris.v1.model.position3_d import Position3D +from huaweicloudsdkdris.v1.model.query_application_brief_response_dto import QueryApplicationBriefResponseDTO +from huaweicloudsdkdris.v1.model.query_edge_app_version_brief_response_dto import QueryEdgeAppVersionBriefResponseDTO +from huaweicloudsdkdris.v1.model.reference_path import ReferencePath +from huaweicloudsdkdris.v1.model.resource_config_dto import ResourceConfigDTO +from huaweicloudsdkdris.v1.model.resource_dto import ResourceDTO +from huaweicloudsdkdris.v1.model.rsu_dto import RsuDTO +from huaweicloudsdkdris.v1.model.rsu_location import RsuLocation +from huaweicloudsdkdris.v1.model.rsu_model_summary import RsuModelSummary +from huaweicloudsdkdris.v1.model.send_config import SendConfig +from huaweicloudsdkdris.v1.model.send_config_response import SendConfigResponse +from huaweicloudsdkdris.v1.model.send_immediate_event_request import SendImmediateEventRequest +from huaweicloudsdkdris.v1.model.send_immediate_event_response import SendImmediateEventResponse +from huaweicloudsdkdris.v1.model.send_immediate_events_dto import SendImmediateEventsDTO +from huaweicloudsdkdris.v1.model.show_data_channel_request import ShowDataChannelRequest +from huaweicloudsdkdris.v1.model.show_data_channel_response import ShowDataChannelResponse +from huaweicloudsdkdris.v1.model.show_deployment_code_request import ShowDeploymentCodeRequest +from huaweicloudsdkdris.v1.model.show_deployment_code_response import ShowDeploymentCodeResponse +from huaweicloudsdkdris.v1.model.show_edge_application_version_request import ShowEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.show_edge_application_version_response import ShowEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.show_forwarding_config_request import ShowForwardingConfigRequest +from huaweicloudsdkdris.v1.model.show_forwarding_config_response import ShowForwardingConfigResponse +from huaweicloudsdkdris.v1.model.show_forwarding_configs_request import ShowForwardingConfigsRequest +from huaweicloudsdkdris.v1.model.show_forwarding_configs_response import ShowForwardingConfigsResponse +from huaweicloudsdkdris.v1.model.show_history_traffic_events_request import ShowHistoryTrafficEventsRequest +from huaweicloudsdkdris.v1.model.show_history_traffic_events_response import ShowHistoryTrafficEventsResponse +from huaweicloudsdkdris.v1.model.show_ipc_request import ShowIpcRequest +from huaweicloudsdkdris.v1.model.show_ipc_response import ShowIpcResponse +from huaweicloudsdkdris.v1.model.show_rsu_model_request import ShowRsuModelRequest +from huaweicloudsdkdris.v1.model.show_rsu_model_response import ShowRsuModelResponse +from huaweicloudsdkdris.v1.model.show_traffic_event_request import ShowTrafficEventRequest +from huaweicloudsdkdris.v1.model.show_traffic_event_response import ShowTrafficEventResponse +from huaweicloudsdkdris.v1.model.show_v2_x_edge_app_detail_by_edge_app_id_request import ShowV2XEdgeAppDetailByEdgeAppIdRequest +from huaweicloudsdkdris.v1.model.show_v2_x_edge_app_detail_by_edge_app_id_response import ShowV2XEdgeAppDetailByEdgeAppIdResponse +from huaweicloudsdkdris.v1.model.show_v2x_edge_detail_request import ShowV2xEdgeDetailRequest +from huaweicloudsdkdris.v1.model.show_v2x_edge_detail_response import ShowV2xEdgeDetailResponse +from huaweicloudsdkdris.v1.model.statistics_source_dto import StatisticsSourceDTO +from huaweicloudsdkdris.v1.model.target_list import TargetList +from huaweicloudsdkdris.v1.model.target_pos import TargetPos +from huaweicloudsdkdris.v1.model.target_rect import TargetRect +from huaweicloudsdkdris.v1.model.traffic_controller_dto import TrafficControllerDTO +from huaweicloudsdkdris.v1.model.traffic_event_dto import TrafficEventDTO +from huaweicloudsdkdris.v1.model.update_data_channel_request import UpdateDataChannelRequest +from huaweicloudsdkdris.v1.model.update_data_channel_response import UpdateDataChannelResponse +from huaweicloudsdkdris.v1.model.update_edge_app_request import UpdateEdgeAppRequest +from huaweicloudsdkdris.v1.model.update_edge_app_response import UpdateEdgeAppResponse +from huaweicloudsdkdris.v1.model.update_edge_app_version_dto import UpdateEdgeAppVersionDTO +from huaweicloudsdkdris.v1.model.update_edge_app_version_state_dto import UpdateEdgeAppVersionStateDTO +from huaweicloudsdkdris.v1.model.update_edge_application_request_dto import UpdateEdgeApplicationRequestDTO +from huaweicloudsdkdris.v1.model.update_edge_application_version_request import UpdateEdgeApplicationVersionRequest +from huaweicloudsdkdris.v1.model.update_edge_application_version_response import UpdateEdgeApplicationVersionResponse +from huaweicloudsdkdris.v1.model.update_edge_application_version_state_request import UpdateEdgeApplicationVersionStateRequest +from huaweicloudsdkdris.v1.model.update_edge_application_version_state_response import UpdateEdgeApplicationVersionStateResponse +from huaweicloudsdkdris.v1.model.update_forwarding_config_request import UpdateForwardingConfigRequest +from huaweicloudsdkdris.v1.model.update_forwarding_config_request_dto import UpdateForwardingConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_forwarding_config_response import UpdateForwardingConfigResponse +from huaweicloudsdkdris.v1.model.update_kafka_config_request_dto import UpdateKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_mrs_kafka_config_request_dto import UpdateMrsKafkaConfigRequestDTO +from huaweicloudsdkdris.v1.model.update_rsu_model import UpdateRsuModel +from huaweicloudsdkdris.v1.model.update_rsu_model_request import UpdateRsuModelRequest +from huaweicloudsdkdris.v1.model.update_rsu_model_response import UpdateRsuModelResponse +from huaweicloudsdkdris.v1.model.update_rsu_request import UpdateRsuRequest +from huaweicloudsdkdris.v1.model.update_rsu_response import UpdateRsuResponse +from huaweicloudsdkdris.v1.model.update_traffic_controller_request import UpdateTrafficControllerRequest +from huaweicloudsdkdris.v1.model.update_traffic_controller_response import UpdateTrafficControllerResponse +from huaweicloudsdkdris.v1.model.update_traffic_event_dto import UpdateTrafficEventDTO +from huaweicloudsdkdris.v1.model.update_traffic_event_request import UpdateTrafficEventRequest +from huaweicloudsdkdris.v1.model.update_traffic_event_response import UpdateTrafficEventResponse +from huaweicloudsdkdris.v1.model.update_v2x_edge_app_request import UpdateV2xEdgeAppRequest +from huaweicloudsdkdris.v1.model.update_v2x_edge_app_response import UpdateV2xEdgeAppResponse +from huaweicloudsdkdris.v1.model.update_v2x_edge_request import UpdateV2xEdgeRequest +from huaweicloudsdkdris.v1.model.update_v2x_edge_response import UpdateV2xEdgeResponse +from huaweicloudsdkdris.v1.model.update_vehicle_request import UpdateVehicleRequest +from huaweicloudsdkdris.v1.model.update_vehicle_response import UpdateVehicleResponse +from huaweicloudsdkdris.v1.model.v2_x_edge_app_response_dto import V2XEdgeAppResponseDTO +from huaweicloudsdkdris.v1.model.v2_x_edge_list_response_dto import V2XEdgeListResponseDTO +from huaweicloudsdkdris.v1.model.vehicle_dto import VehicleDTO +from huaweicloudsdkdris.v1.model.volume_dto import VolumeDTO diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_config_request_dto.py new file mode 100755 index 0000000000..9f7c0d3a57 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_config_request_dto.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddForwardingConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'forwarding_type': 'str', + 'forwarding_config': 'ForwardingConfigRequestDTO' + } + + attribute_map = { + 'forwarding_type': 'forwarding_type', + 'forwarding_config': 'forwarding_config' + } + + def __init__(self, forwarding_type=None, forwarding_config=None): + """AddForwardingConfigRequestDTO + + The model defined in huaweicloud sdk + + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + :type forwarding_type: str + :param forwarding_config: + :type forwarding_config: :class:`huaweicloudsdkdris.v1.ForwardingConfigRequestDTO` + """ + + + + self._forwarding_type = None + self._forwarding_config = None + self.discriminator = None + + self.forwarding_type = forwarding_type + self.forwarding_config = forwarding_config + + @property + def forwarding_type(self): + """Gets the forwarding_type of this AddForwardingConfigRequestDTO. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :return: The forwarding_type of this AddForwardingConfigRequestDTO. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this AddForwardingConfigRequestDTO. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :param forwarding_type: The forwarding_type of this AddForwardingConfigRequestDTO. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def forwarding_config(self): + """Gets the forwarding_config of this AddForwardingConfigRequestDTO. + + :return: The forwarding_config of this AddForwardingConfigRequestDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ForwardingConfigRequestDTO` + """ + return self._forwarding_config + + @forwarding_config.setter + def forwarding_config(self, forwarding_config): + """Sets the forwarding_config of this AddForwardingConfigRequestDTO. + + :param forwarding_config: The forwarding_config of this AddForwardingConfigRequestDTO. + :type forwarding_config: :class:`huaweicloudsdkdris.v1.ForwardingConfigRequestDTO` + """ + self._forwarding_config = forwarding_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddForwardingConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_request.py new file mode 100755 index 0000000000..e1611504a5 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddForwardingConfigsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddForwardingConfigRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """AddForwardingConfigsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param body: Body of the AddForwardingConfigsRequest + :type body: :class:`huaweicloudsdkdris.v1.AddForwardingConfigRequestDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this AddForwardingConfigsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this AddForwardingConfigsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this AddForwardingConfigsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this AddForwardingConfigsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this AddForwardingConfigsRequest. + + :return: The body of this AddForwardingConfigsRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddForwardingConfigRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AddForwardingConfigsRequest. + + :param body: The body of this AddForwardingConfigsRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddForwardingConfigRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddForwardingConfigsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_response.py new file mode 100755 index 0000000000..ccf1424599 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_forwarding_configs_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddForwardingConfigsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'forwarding_type': 'str', + 'kafka_config': 'KafkaConfigResponseDTO', + 'mrs_kafka_config': 'MrsKafkaConfigResponseDTO' + } + + attribute_map = { + 'forwarding_type': 'forwarding_type', + 'kafka_config': 'kafka_config', + 'mrs_kafka_config': 'mrs_kafka_config' + } + + def __init__(self, forwarding_type=None, kafka_config=None, mrs_kafka_config=None): + """AddForwardingConfigsResponse + + The model defined in huaweicloud sdk + + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + :type forwarding_type: str + :param kafka_config: + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + :param mrs_kafka_config: + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + + super(AddForwardingConfigsResponse, self).__init__() + + self._forwarding_type = None + self._kafka_config = None + self._mrs_kafka_config = None + self.discriminator = None + + if forwarding_type is not None: + self.forwarding_type = forwarding_type + if kafka_config is not None: + self.kafka_config = kafka_config + if mrs_kafka_config is not None: + self.mrs_kafka_config = mrs_kafka_config + + @property + def forwarding_type(self): + """Gets the forwarding_type of this AddForwardingConfigsResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :return: The forwarding_type of this AddForwardingConfigsResponse. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this AddForwardingConfigsResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :param forwarding_type: The forwarding_type of this AddForwardingConfigsResponse. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def kafka_config(self): + """Gets the kafka_config of this AddForwardingConfigsResponse. + + :return: The kafka_config of this AddForwardingConfigsResponse. + :rtype: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + return self._kafka_config + + @kafka_config.setter + def kafka_config(self, kafka_config): + """Sets the kafka_config of this AddForwardingConfigsResponse. + + :param kafka_config: The kafka_config of this AddForwardingConfigsResponse. + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + self._kafka_config = kafka_config + + @property + def mrs_kafka_config(self): + """Gets the mrs_kafka_config of this AddForwardingConfigsResponse. + + :return: The mrs_kafka_config of this AddForwardingConfigsResponse. + :rtype: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + return self._mrs_kafka_config + + @mrs_kafka_config.setter + def mrs_kafka_config(self, mrs_kafka_config): + """Sets the mrs_kafka_config of this AddForwardingConfigsResponse. + + :param mrs_kafka_config: The mrs_kafka_config of this AddForwardingConfigsResponse. + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + self._mrs_kafka_config = mrs_kafka_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddForwardingConfigsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_dto.py new file mode 100755 index 0000000000..50db81c98c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_dto.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddRsuDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'position_description': 'str', + 'related_edge_num': 'int', + 'rsu_model_id': 'str', + 'intersection_id': 'str', + 'secret': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'position_description': 'position_description', + 'related_edge_num': 'related_edge_num', + 'rsu_model_id': 'rsu_model_id', + 'intersection_id': 'intersection_id', + 'secret': 'secret' + } + + def __init__(self, name=None, description=None, esn=None, ip=None, position_description=None, related_edge_num=None, rsu_model_id=None, intersection_id=None, secret=None): + """AddRsuDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + :type esn: str + :param ip: **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + :type ip: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param related_edge_num: **参数说明**:RSU可关联的Edge的数量。 + :type related_edge_num: int + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + :type rsu_model_id: str + :param intersection_id: **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + :type intersection_id: str + :param secret: **参数说明**:MQTT协议RSU密钥,若携带了rsu_model_id参数,则该字段必填。RSU创建后该字段无法修改,查询RSU及查询RSU列表时该字段均不返回。 **取值范围**:只允许数字、小写字母a-f、大写字母A-F的组合。 + :type secret: str + """ + + + + self._name = None + self._description = None + self._esn = None + self._ip = None + self._position_description = None + self._related_edge_num = None + self._rsu_model_id = None + self._intersection_id = None + self._secret = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.esn = esn + if ip is not None: + self.ip = ip + if position_description is not None: + self.position_description = position_description + self.related_edge_num = related_edge_num + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if intersection_id is not None: + self.intersection_id = intersection_id + if secret is not None: + self.secret = secret + + @property + def name(self): + """Gets the name of this AddRsuDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this AddRsuDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AddRsuDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this AddRsuDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this AddRsuDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this AddRsuDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddRsuDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this AddRsuDTO. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this AddRsuDTO. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :return: The esn of this AddRsuDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this AddRsuDTO. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :param esn: The esn of this AddRsuDTO. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this AddRsuDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :return: The ip of this AddRsuDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this AddRsuDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :param ip: The ip of this AddRsuDTO. + :type ip: str + """ + self._ip = ip + + @property + def position_description(self): + """Gets the position_description of this AddRsuDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this AddRsuDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this AddRsuDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this AddRsuDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def related_edge_num(self): + """Gets the related_edge_num of this AddRsuDTO. + + **参数说明**:RSU可关联的Edge的数量。 + + :return: The related_edge_num of this AddRsuDTO. + :rtype: int + """ + return self._related_edge_num + + @related_edge_num.setter + def related_edge_num(self, related_edge_num): + """Sets the related_edge_num of this AddRsuDTO. + + **参数说明**:RSU可关联的Edge的数量。 + + :param related_edge_num: The related_edge_num of this AddRsuDTO. + :type related_edge_num: int + """ + self._related_edge_num = related_edge_num + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this AddRsuDTO. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :return: The rsu_model_id of this AddRsuDTO. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this AddRsuDTO. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :param rsu_model_id: The rsu_model_id of this AddRsuDTO. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def intersection_id(self): + """Gets the intersection_id of this AddRsuDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :return: The intersection_id of this AddRsuDTO. + :rtype: str + """ + return self._intersection_id + + @intersection_id.setter + def intersection_id(self, intersection_id): + """Sets the intersection_id of this AddRsuDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :param intersection_id: The intersection_id of this AddRsuDTO. + :type intersection_id: str + """ + self._intersection_id = intersection_id + + @property + def secret(self): + """Gets the secret of this AddRsuDTO. + + **参数说明**:MQTT协议RSU密钥,若携带了rsu_model_id参数,则该字段必填。RSU创建后该字段无法修改,查询RSU及查询RSU列表时该字段均不返回。 **取值范围**:只允许数字、小写字母a-f、大写字母A-F的组合。 + + :return: The secret of this AddRsuDTO. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """Sets the secret of this AddRsuDTO. + + **参数说明**:MQTT协议RSU密钥,若携带了rsu_model_id参数,则该字段必填。RSU创建后该字段无法修改,查询RSU及查询RSU列表时该字段均不返回。 **取值范围**:只允许数字、小写字母a-f、大写字母A-F的组合。 + + :param secret: The secret of this AddRsuDTO. + :type secret: str + """ + self._secret = secret + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddRsuDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_model.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_model.py new file mode 100755 index 0000000000..6ed978d401 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_rsu_model.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddRsuModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'manufacturer_name': 'str', + 'description': 'str' + } + + attribute_map = { + 'name': 'name', + 'manufacturer_name': 'manufacturer_name', + 'description': 'description' + } + + def __init__(self, name=None, manufacturer_name=None, description=None): + """AddRsuModel + + The model defined in huaweicloud sdk + + :param name: **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type name: str + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + """ + + + + self._name = None + self._manufacturer_name = None + self._description = None + self.discriminator = None + + self.name = name + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + + @property + def name(self): + """Gets the name of this AddRsuModel. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The name of this AddRsuModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AddRsuModel. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param name: The name of this AddRsuModel. + :type name: str + """ + self._name = name + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this AddRsuModel. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this AddRsuModel. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this AddRsuModel. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this AddRsuModel. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this AddRsuModel. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this AddRsuModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddRsuModel. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this AddRsuModel. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddRsuModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_controller_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_controller_dto.py new file mode 100755 index 0000000000..f7a7656cd6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_controller_dto.py @@ -0,0 +1,434 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddTrafficControllerDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'traffic_controller_id': 'str', + 'esn': 'str', + 'name': 'str', + 'description': 'str', + 'lat': 'float', + 'lon': 'float', + 'ele': 'float', + 'pos_description': 'str', + 'installation_mode': 'str', + 'road_name': 'str', + 'link_id': 'str', + 'secret': 'str' + } + + attribute_map = { + 'traffic_controller_id': 'traffic_controller_id', + 'esn': 'esn', + 'name': 'name', + 'description': 'description', + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele', + 'pos_description': 'pos_description', + 'installation_mode': 'installation_mode', + 'road_name': 'road_name', + 'link_id': 'link_id', + 'secret': 'secret' + } + + def __init__(self, traffic_controller_id=None, esn=None, name=None, description=None, lat=None, lon=None, ele=None, pos_description=None, installation_mode=None, road_name=None, link_id=None, secret=None): + """AddTrafficControllerDTO + + The model defined in huaweicloud sdk + + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type traffic_controller_id: str + :param esn: **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param name: **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_等字符的组合。 + :type name: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + :param pos_description: **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + :type pos_description: str + :param installation_mode: **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + :type installation_mode: str + :param road_name: **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + :type road_name: str + :param link_id: **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + :type link_id: str + :param secret: **参数说明**:第三方信号机设备密钥,输入信号机型号ID后方可填写该字段以设置方信号机设备密码。 + :type secret: str + """ + + + + self._traffic_controller_id = None + self._esn = None + self._name = None + self._description = None + self._lat = None + self._lon = None + self._ele = None + self._pos_description = None + self._installation_mode = None + self._road_name = None + self._link_id = None + self._secret = None + self.discriminator = None + + self.traffic_controller_id = traffic_controller_id + self.esn = esn + if name is not None: + self.name = name + if description is not None: + self.description = description + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if ele is not None: + self.ele = ele + if pos_description is not None: + self.pos_description = pos_description + if installation_mode is not None: + self.installation_mode = installation_mode + if road_name is not None: + self.road_name = road_name + if link_id is not None: + self.link_id = link_id + self.secret = secret + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this AddTrafficControllerDTO. + + **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The traffic_controller_id of this AddTrafficControllerDTO. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this AddTrafficControllerDTO. + + **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param traffic_controller_id: The traffic_controller_id of this AddTrafficControllerDTO. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def esn(self): + """Gets the esn of this AddTrafficControllerDTO. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this AddTrafficControllerDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this AddTrafficControllerDTO. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this AddTrafficControllerDTO. + :type esn: str + """ + self._esn = esn + + @property + def name(self): + """Gets the name of this AddTrafficControllerDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_等字符的组合。 + + :return: The name of this AddTrafficControllerDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AddTrafficControllerDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_等字符的组合。 + + :param name: The name of this AddTrafficControllerDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this AddTrafficControllerDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this AddTrafficControllerDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddTrafficControllerDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this AddTrafficControllerDTO. + :type description: str + """ + self._description = description + + @property + def lat(self): + """Gets the lat of this AddTrafficControllerDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this AddTrafficControllerDTO. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this AddTrafficControllerDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this AddTrafficControllerDTO. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this AddTrafficControllerDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this AddTrafficControllerDTO. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this AddTrafficControllerDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this AddTrafficControllerDTO. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this AddTrafficControllerDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this AddTrafficControllerDTO. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this AddTrafficControllerDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this AddTrafficControllerDTO. + :type ele: float + """ + self._ele = ele + + @property + def pos_description(self): + """Gets the pos_description of this AddTrafficControllerDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :return: The pos_description of this AddTrafficControllerDTO. + :rtype: str + """ + return self._pos_description + + @pos_description.setter + def pos_description(self, pos_description): + """Sets the pos_description of this AddTrafficControllerDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :param pos_description: The pos_description of this AddTrafficControllerDTO. + :type pos_description: str + """ + self._pos_description = pos_description + + @property + def installation_mode(self): + """Gets the installation_mode of this AddTrafficControllerDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + + :return: The installation_mode of this AddTrafficControllerDTO. + :rtype: str + """ + return self._installation_mode + + @installation_mode.setter + def installation_mode(self, installation_mode): + """Sets the installation_mode of this AddTrafficControllerDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + + :param installation_mode: The installation_mode of this AddTrafficControllerDTO. + :type installation_mode: str + """ + self._installation_mode = installation_mode + + @property + def road_name(self): + """Gets the road_name of this AddTrafficControllerDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The road_name of this AddTrafficControllerDTO. + :rtype: str + """ + return self._road_name + + @road_name.setter + def road_name(self, road_name): + """Sets the road_name of this AddTrafficControllerDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param road_name: The road_name of this AddTrafficControllerDTO. + :type road_name: str + """ + self._road_name = road_name + + @property + def link_id(self): + """Gets the link_id of this AddTrafficControllerDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :return: The link_id of this AddTrafficControllerDTO. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this AddTrafficControllerDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :param link_id: The link_id of this AddTrafficControllerDTO. + :type link_id: str + """ + self._link_id = link_id + + @property + def secret(self): + """Gets the secret of this AddTrafficControllerDTO. + + **参数说明**:第三方信号机设备密钥,输入信号机型号ID后方可填写该字段以设置方信号机设备密码。 + + :return: The secret of this AddTrafficControllerDTO. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """Sets the secret of this AddTrafficControllerDTO. + + **参数说明**:第三方信号机设备密钥,输入信号机型号ID后方可填写该字段以设置方信号机设备密码。 + + :param secret: The secret of this AddTrafficControllerDTO. + :type secret: str + """ + self._secret = secret + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddTrafficControllerDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_event_dto.py new file mode 100755 index 0000000000..ccaf66a43f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_traffic_event_dto.py @@ -0,0 +1,511 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddTrafficEventDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'note': 'str', + 'event_confidence': 'int' + } + + attribute_map = { + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence' + } + + def __init__(self, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None): + """AddTrafficEventDTO + + The model defined in huaweicloud sdk + + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: str + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: str + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + """ + + + + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self.discriminator = None + + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + self.event_class = event_class + self.event_type = event_type + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + self.reference_paths = reference_paths + self.event_position_name = event_position_name + self.start_time = start_time + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + + @property + def event_source_type(self): + """Gets the event_source_type of this AddTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this AddTrafficEventDTO. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this AddTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this AddTrafficEventDTO. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this AddTrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this AddTrafficEventDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this AddTrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this AddTrafficEventDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this AddTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this AddTrafficEventDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this AddTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this AddTrafficEventDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this AddTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this AddTrafficEventDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this AddTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this AddTrafficEventDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this AddTrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this AddTrafficEventDTO. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this AddTrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this AddTrafficEventDTO. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this AddTrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this AddTrafficEventDTO. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this AddTrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this AddTrafficEventDTO. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this AddTrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this AddTrafficEventDTO. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this AddTrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this AddTrafficEventDTO. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this AddTrafficEventDTO. + + :return: The event_position of this AddTrafficEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this AddTrafficEventDTO. + + :param event_position: The event_position of this AddTrafficEventDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this AddTrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this AddTrafficEventDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this AddTrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this AddTrafficEventDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this AddTrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this AddTrafficEventDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this AddTrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this AddTrafficEventDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this AddTrafficEventDTO. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this AddTrafficEventDTO. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this AddTrafficEventDTO. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this AddTrafficEventDTO. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this AddTrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this AddTrafficEventDTO. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this AddTrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this AddTrafficEventDTO. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this AddTrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this AddTrafficEventDTO. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this AddTrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this AddTrafficEventDTO. + :type end_time: str + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this AddTrafficEventDTO. + + **参数说明**:备注。 + + :return: The note of this AddTrafficEventDTO. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this AddTrafficEventDTO. + + **参数说明**:备注。 + + :param note: The note of this AddTrafficEventDTO. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this AddTrafficEventDTO. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this AddTrafficEventDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this AddTrafficEventDTO. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this AddTrafficEventDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddTrafficEventDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_app_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_app_dto.py new file mode 100755 index 0000000000..93a91b2e08 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_app_dto.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddV2XEdgeAppDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'app_version': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'app_version': 'app_version' + } + + def __init__(self, edge_app_id=None, app_version=None): + """AddV2XEdgeAppDTO + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID,部署边缘应用前应先创建应用,方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0026.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param app_version: **参数说明**:应用版本,部署边缘应用版本前应先创建应用版本并发布,创建应用版本方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0038.html),发布应用版本方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + :type app_version: str + """ + + + + self._edge_app_id = None + self._app_version = None + self.discriminator = None + + self.edge_app_id = edge_app_id + self.app_version = app_version + + @property + def edge_app_id(self): + """Gets the edge_app_id of this AddV2XEdgeAppDTO. + + **参数说明**:用户自定义应用唯一ID,部署边缘应用前应先创建应用,方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0026.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this AddV2XEdgeAppDTO. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this AddV2XEdgeAppDTO. + + **参数说明**:用户自定义应用唯一ID,部署边缘应用前应先创建应用,方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0026.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this AddV2XEdgeAppDTO. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def app_version(self): + """Gets the app_version of this AddV2XEdgeAppDTO. + + **参数说明**:应用版本,部署边缘应用版本前应先创建应用版本并发布,创建应用版本方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0038.html),发布应用版本方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + + :return: The app_version of this AddV2XEdgeAppDTO. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this AddV2XEdgeAppDTO. + + **参数说明**:应用版本,部署边缘应用版本前应先创建应用版本并发布,创建应用版本方法参见:[创建应用](https://support.huaweicloud.com/api-v2x/v2x_04_0038.html),发布应用版本方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + + :param app_version: The app_version of this AddV2XEdgeAppDTO. + :type app_version: str + """ + self._app_version = app_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddV2XEdgeAppDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_data_channel_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_data_channel_dto.py new file mode 100755 index 0000000000..1d069bf9fe --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_data_channel_dto.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddV2XEdgeDataChannelDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'platform_type': 'str', + 'platform_para': 'PlatformPara' + } + + attribute_map = { + 'platform_type': 'platform_type', + 'platform_para': 'platform_para' + } + + def __init__(self, platform_type=None, platform_para=None): + """AddV2XEdgeDataChannelDTO + + The model defined in huaweicloud sdk + + :param platform_type: **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + :type platform_type: str + :param platform_para: + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + + + + self._platform_type = None + self._platform_para = None + self.discriminator = None + + self.platform_type = platform_type + if platform_para is not None: + self.platform_para = platform_para + + @property + def platform_type(self): + """Gets the platform_type of this AddV2XEdgeDataChannelDTO. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :return: The platform_type of this AddV2XEdgeDataChannelDTO. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """Sets the platform_type of this AddV2XEdgeDataChannelDTO. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :param platform_type: The platform_type of this AddV2XEdgeDataChannelDTO. + :type platform_type: str + """ + self._platform_type = platform_type + + @property + def platform_para(self): + """Gets the platform_para of this AddV2XEdgeDataChannelDTO. + + :return: The platform_para of this AddV2XEdgeDataChannelDTO. + :rtype: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + return self._platform_para + + @platform_para.setter + def platform_para(self, platform_para): + """Sets the platform_para of this AddV2XEdgeDataChannelDTO. + + :param platform_para: The platform_para of this AddV2XEdgeDataChannelDTO. + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + self._platform_para = platform_para + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddV2XEdgeDataChannelDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_dto.py new file mode 100755 index 0000000000..f84cac6f82 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_v2_x_edge_dto.py @@ -0,0 +1,456 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddV2XEdgeDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'port': 'int', + 'hardware_type': 'str', + 'position_description': 'str', + 'location': 'Location', + 'camera_ids': 'list[str]', + 'radar_ids': 'list[str]', + 'local_rsus': 'list[str]', + 'edge_general_config': 'EdgeGeneralConfig', + 'edge_advance_config': 'object' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'port': 'port', + 'hardware_type': 'hardware_type', + 'position_description': 'position_description', + 'location': 'location', + 'camera_ids': 'camera_ids', + 'radar_ids': 'radar_ids', + 'local_rsus': 'local_rsus', + 'edge_general_config': 'edge_general_config', + 'edge_advance_config': 'edge_advance_config' + } + + def __init__(self, name=None, description=None, esn=None, ip=None, port=None, hardware_type=None, position_description=None, location=None, camera_ids=None, radar_ids=None, local_rsus=None, edge_general_config=None, edge_advance_config=None): + """AddV2XEdgeDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + :type name: str + :param description: **参数说明**:Edge描述。 + :type description: str + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param ip: **参数说明**:网络IP。例如127.0.0.1。 + :type ip: str + :param port: **参数说明**:ITS800,ATLAS 端口号。 + :type port: int + :param hardware_type: **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + :type hardware_type: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param camera_ids: **参数说明**:摄像头ID列表。 + :type camera_ids: list[str] + :param radar_ids: **参数说明**:雷达ID列表。 + :type radar_ids: list[str] + :param local_rsus: **参数说明**:Edge关联的本地RSU列表。 + :type local_rsus: list[str] + :param edge_general_config: + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + :param edge_advance_config: **参数说明**:Edge高级配置(请谨慎修改,错误配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可 + :type edge_advance_config: object + """ + + + + self._name = None + self._description = None + self._esn = None + self._ip = None + self._port = None + self._hardware_type = None + self._position_description = None + self._location = None + self._camera_ids = None + self._radar_ids = None + self._local_rsus = None + self._edge_general_config = None + self._edge_advance_config = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.esn = esn + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if hardware_type is not None: + self.hardware_type = hardware_type + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if camera_ids is not None: + self.camera_ids = camera_ids + if radar_ids is not None: + self.radar_ids = radar_ids + if local_rsus is not None: + self.local_rsus = local_rsus + if edge_general_config is not None: + self.edge_general_config = edge_general_config + if edge_advance_config is not None: + self.edge_advance_config = edge_advance_config + + @property + def name(self): + """Gets the name of this AddV2XEdgeDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :return: The name of this AddV2XEdgeDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AddV2XEdgeDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :param name: The name of this AddV2XEdgeDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this AddV2XEdgeDTO. + + **参数说明**:Edge描述。 + + :return: The description of this AddV2XEdgeDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddV2XEdgeDTO. + + **参数说明**:Edge描述。 + + :param description: The description of this AddV2XEdgeDTO. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this AddV2XEdgeDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this AddV2XEdgeDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this AddV2XEdgeDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this AddV2XEdgeDTO. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this AddV2XEdgeDTO. + + **参数说明**:网络IP。例如127.0.0.1。 + + :return: The ip of this AddV2XEdgeDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this AddV2XEdgeDTO. + + **参数说明**:网络IP。例如127.0.0.1。 + + :param ip: The ip of this AddV2XEdgeDTO. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this AddV2XEdgeDTO. + + **参数说明**:ITS800,ATLAS 端口号。 + + :return: The port of this AddV2XEdgeDTO. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AddV2XEdgeDTO. + + **参数说明**:ITS800,ATLAS 端口号。 + + :param port: The port of this AddV2XEdgeDTO. + :type port: int + """ + self._port = port + + @property + def hardware_type(self): + """Gets the hardware_type of this AddV2XEdgeDTO. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :return: The hardware_type of this AddV2XEdgeDTO. + :rtype: str + """ + return self._hardware_type + + @hardware_type.setter + def hardware_type(self, hardware_type): + """Sets the hardware_type of this AddV2XEdgeDTO. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :param hardware_type: The hardware_type of this AddV2XEdgeDTO. + :type hardware_type: str + """ + self._hardware_type = hardware_type + + @property + def position_description(self): + """Gets the position_description of this AddV2XEdgeDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this AddV2XEdgeDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this AddV2XEdgeDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this AddV2XEdgeDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this AddV2XEdgeDTO. + + :return: The location of this AddV2XEdgeDTO. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this AddV2XEdgeDTO. + + :param location: The location of this AddV2XEdgeDTO. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def camera_ids(self): + """Gets the camera_ids of this AddV2XEdgeDTO. + + **参数说明**:摄像头ID列表。 + + :return: The camera_ids of this AddV2XEdgeDTO. + :rtype: list[str] + """ + return self._camera_ids + + @camera_ids.setter + def camera_ids(self, camera_ids): + """Sets the camera_ids of this AddV2XEdgeDTO. + + **参数说明**:摄像头ID列表。 + + :param camera_ids: The camera_ids of this AddV2XEdgeDTO. + :type camera_ids: list[str] + """ + self._camera_ids = camera_ids + + @property + def radar_ids(self): + """Gets the radar_ids of this AddV2XEdgeDTO. + + **参数说明**:雷达ID列表。 + + :return: The radar_ids of this AddV2XEdgeDTO. + :rtype: list[str] + """ + return self._radar_ids + + @radar_ids.setter + def radar_ids(self, radar_ids): + """Sets the radar_ids of this AddV2XEdgeDTO. + + **参数说明**:雷达ID列表。 + + :param radar_ids: The radar_ids of this AddV2XEdgeDTO. + :type radar_ids: list[str] + """ + self._radar_ids = radar_ids + + @property + def local_rsus(self): + """Gets the local_rsus of this AddV2XEdgeDTO. + + **参数说明**:Edge关联的本地RSU列表。 + + :return: The local_rsus of this AddV2XEdgeDTO. + :rtype: list[str] + """ + return self._local_rsus + + @local_rsus.setter + def local_rsus(self, local_rsus): + """Sets the local_rsus of this AddV2XEdgeDTO. + + **参数说明**:Edge关联的本地RSU列表。 + + :param local_rsus: The local_rsus of this AddV2XEdgeDTO. + :type local_rsus: list[str] + """ + self._local_rsus = local_rsus + + @property + def edge_general_config(self): + """Gets the edge_general_config of this AddV2XEdgeDTO. + + :return: The edge_general_config of this AddV2XEdgeDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + """ + return self._edge_general_config + + @edge_general_config.setter + def edge_general_config(self, edge_general_config): + """Sets the edge_general_config of this AddV2XEdgeDTO. + + :param edge_general_config: The edge_general_config of this AddV2XEdgeDTO. + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + """ + self._edge_general_config = edge_general_config + + @property + def edge_advance_config(self): + """Gets the edge_advance_config of this AddV2XEdgeDTO. + + **参数说明**:Edge高级配置(请谨慎修改,错误配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可 + + :return: The edge_advance_config of this AddV2XEdgeDTO. + :rtype: object + """ + return self._edge_advance_config + + @edge_advance_config.setter + def edge_advance_config(self, edge_advance_config): + """Sets the edge_advance_config of this AddV2XEdgeDTO. + + **参数说明**:Edge高级配置(请谨慎修改,错误配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可 + + :param edge_advance_config: The edge_advance_config of this AddV2XEdgeDTO. + :type edge_advance_config: object + """ + self._edge_advance_config = edge_advance_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddV2XEdgeDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_vehicle_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_vehicle_dto.py new file mode 100755 index 0000000000..ec0a775e2c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/add_vehicle_dto.py @@ -0,0 +1,493 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddVehicleDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vehicle_id': 'str', + 'plate_no': 'str', + 'vin': 'str', + 'obu_id': 'str', + 'imei': 'str', + 'brand': 'str', + 'model': 'str', + 'style': 'str', + 'fuel_type': 'str', + 'color': 'str', + 'plate_color': 'str', + 'access_type': 'str', + 'secret': 'str', + 'description': 'str' + } + + attribute_map = { + 'vehicle_id': 'vehicle_id', + 'plate_no': 'plate_no', + 'vin': 'vin', + 'obu_id': 'obu_id', + 'imei': 'imei', + 'brand': 'brand', + 'model': 'model', + 'style': 'style', + 'fuel_type': 'fuel_type', + 'color': 'color', + 'plate_color': 'plate_color', + 'access_type': 'access_type', + 'secret': 'secret', + 'description': 'description' + } + + def __init__(self, vehicle_id=None, plate_no=None, vin=None, obu_id=None, imei=None, brand=None, model=None, style=None, fuel_type=None, color=None, plate_color=None, access_type=None, secret=None, description=None): + """AddVehicleDTO + + The model defined in huaweicloud sdk + + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param plate_no: **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type plate_no: str + :param vin: **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + :type vin: str + :param obu_id: **参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type obu_id: str + :param imei: **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + :type imei: str + :param brand: **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type brand: str + :param model: **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + :type model: str + :param style: **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + :type style: str + :param fuel_type: **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷 + :type fuel_type: str + :param color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + :type color: str + :param plate_color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色\" + :type plate_color: str + :param access_type: **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + :type access_type: str + :param secret: **参数说明**:第三方车辆密钥,输入车辆型号ID后方可填写该字段以设置方车辆密码。 + :type secret: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + """ + + + + self._vehicle_id = None + self._plate_no = None + self._vin = None + self._obu_id = None + self._imei = None + self._brand = None + self._model = None + self._style = None + self._fuel_type = None + self._color = None + self._plate_color = None + self._access_type = None + self._secret = None + self._description = None + self.discriminator = None + + self.vehicle_id = vehicle_id + if plate_no is not None: + self.plate_no = plate_no + if vin is not None: + self.vin = vin + if obu_id is not None: + self.obu_id = obu_id + if imei is not None: + self.imei = imei + if brand is not None: + self.brand = brand + if model is not None: + self.model = model + if style is not None: + self.style = style + if fuel_type is not None: + self.fuel_type = fuel_type + if color is not None: + self.color = color + if plate_color is not None: + self.plate_color = plate_color + if access_type is not None: + self.access_type = access_type + self.secret = secret + if description is not None: + self.description = description + + @property + def vehicle_id(self): + """Gets the vehicle_id of this AddVehicleDTO. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this AddVehicleDTO. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this AddVehicleDTO. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this AddVehicleDTO. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def plate_no(self): + """Gets the plate_no of this AddVehicleDTO. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The plate_no of this AddVehicleDTO. + :rtype: str + """ + return self._plate_no + + @plate_no.setter + def plate_no(self, plate_no): + """Sets the plate_no of this AddVehicleDTO. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param plate_no: The plate_no of this AddVehicleDTO. + :type plate_no: str + """ + self._plate_no = plate_no + + @property + def vin(self): + """Gets the vin of this AddVehicleDTO. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :return: The vin of this AddVehicleDTO. + :rtype: str + """ + return self._vin + + @vin.setter + def vin(self, vin): + """Sets the vin of this AddVehicleDTO. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :param vin: The vin of this AddVehicleDTO. + :type vin: str + """ + self._vin = vin + + @property + def obu_id(self): + """Gets the obu_id of this AddVehicleDTO. + + **参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The obu_id of this AddVehicleDTO. + :rtype: str + """ + return self._obu_id + + @obu_id.setter + def obu_id(self, obu_id): + """Sets the obu_id of this AddVehicleDTO. + + **参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param obu_id: The obu_id of this AddVehicleDTO. + :type obu_id: str + """ + self._obu_id = obu_id + + @property + def imei(self): + """Gets the imei of this AddVehicleDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :return: The imei of this AddVehicleDTO. + :rtype: str + """ + return self._imei + + @imei.setter + def imei(self, imei): + """Sets the imei of this AddVehicleDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :param imei: The imei of this AddVehicleDTO. + :type imei: str + """ + self._imei = imei + + @property + def brand(self): + """Gets the brand of this AddVehicleDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The brand of this AddVehicleDTO. + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this AddVehicleDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param brand: The brand of this AddVehicleDTO. + :type brand: str + """ + self._brand = brand + + @property + def model(self): + """Gets the model of this AddVehicleDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The model of this AddVehicleDTO. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this AddVehicleDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :param model: The model of this AddVehicleDTO. + :type model: str + """ + self._model = model + + @property + def style(self): + """Gets the style of this AddVehicleDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :return: The style of this AddVehicleDTO. + :rtype: str + """ + return self._style + + @style.setter + def style(self, style): + """Sets the style of this AddVehicleDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :param style: The style of this AddVehicleDTO. + :type style: str + """ + self._style = style + + @property + def fuel_type(self): + """Gets the fuel_type of this AddVehicleDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷 + + :return: The fuel_type of this AddVehicleDTO. + :rtype: str + """ + return self._fuel_type + + @fuel_type.setter + def fuel_type(self, fuel_type): + """Sets the fuel_type of this AddVehicleDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷 + + :param fuel_type: The fuel_type of this AddVehicleDTO. + :type fuel_type: str + """ + self._fuel_type = fuel_type + + @property + def color(self): + """Gets the color of this AddVehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + + :return: The color of this AddVehicleDTO. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this AddVehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + + :param color: The color of this AddVehicleDTO. + :type color: str + """ + self._color = color + + @property + def plate_color(self): + """Gets the plate_color of this AddVehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色\" + + :return: The plate_color of this AddVehicleDTO. + :rtype: str + """ + return self._plate_color + + @plate_color.setter + def plate_color(self, plate_color): + """Sets the plate_color of this AddVehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色\" + + :param plate_color: The plate_color of this AddVehicleDTO. + :type plate_color: str + """ + self._plate_color = plate_color + + @property + def access_type(self): + """Gets the access_type of this AddVehicleDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :return: The access_type of this AddVehicleDTO. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this AddVehicleDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :param access_type: The access_type of this AddVehicleDTO. + :type access_type: str + """ + self._access_type = access_type + + @property + def secret(self): + """Gets the secret of this AddVehicleDTO. + + **参数说明**:第三方车辆密钥,输入车辆型号ID后方可填写该字段以设置方车辆密码。 + + :return: The secret of this AddVehicleDTO. + :rtype: str + """ + return self._secret + + @secret.setter + def secret(self, secret): + """Sets the secret of this AddVehicleDTO. + + **参数说明**:第三方车辆密钥,输入车辆型号ID后方可填写该字段以设置方车辆密码。 + + :param secret: The secret of this AddVehicleDTO. + :type secret: str + """ + self._secret = secret + + @property + def description(self): + """Gets the description of this AddVehicleDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this AddVehicleDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddVehicleDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this AddVehicleDTO. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddVehicleDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_request.py new file mode 100755 index 0000000000..a8ef606efa --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_request.py @@ -0,0 +1,262 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowEdgeAppVersionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'version': 'str', + 'offset': 'int', + 'limit': 'int', + 'state': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'offset': 'offset', + 'limit': 'limit', + 'state': 'state' + } + + def __init__(self, instance_id=None, edge_app_id=None, version=None, offset=None, limit=None, state=None): + """BatchShowEdgeAppVersionsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本搜索关键字。 + :type version: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:每页记录数。 + :type limit: int + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + """ + + + + self._instance_id = None + self._edge_app_id = None + self._version = None + self._offset = None + self._limit = None + self._state = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if state is not None: + self.state = state + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this BatchShowEdgeAppVersionsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this BatchShowEdgeAppVersionsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this BatchShowEdgeAppVersionsRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this BatchShowEdgeAppVersionsRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:应用版本搜索关键字。 + + :return: The version of this BatchShowEdgeAppVersionsRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:应用版本搜索关键字。 + + :param version: The version of this BatchShowEdgeAppVersionsRequest. + :type version: str + """ + self._version = version + + @property + def offset(self): + """Gets the offset of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this BatchShowEdgeAppVersionsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this BatchShowEdgeAppVersionsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:每页记录数。 + + :return: The limit of this BatchShowEdgeAppVersionsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:每页记录数。 + + :param limit: The limit of this BatchShowEdgeAppVersionsRequest. + :type limit: int + """ + self._limit = limit + + @property + def state(self): + """Gets the state of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this BatchShowEdgeAppVersionsRequest. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this BatchShowEdgeAppVersionsRequest. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this BatchShowEdgeAppVersionsRequest. + :type state: str + """ + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowEdgeAppVersionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_response.py new file mode 100755 index 0000000000..779d3cc95a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_app_versions_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowEdgeAppVersionsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'versions': 'list[QueryEdgeAppVersionBriefResponseDTO]' + } + + attribute_map = { + 'count': 'count', + 'versions': 'versions' + } + + def __init__(self, count=None, versions=None): + """BatchShowEdgeAppVersionsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:总记录数。 + :type count: int + :param versions: **参数说明**:列举每条记录。 + :type versions: list[:class:`huaweicloudsdkdris.v1.QueryEdgeAppVersionBriefResponseDTO`] + """ + + super(BatchShowEdgeAppVersionsResponse, self).__init__() + + self._count = None + self._versions = None + self.discriminator = None + + if count is not None: + self.count = count + if versions is not None: + self.versions = versions + + @property + def count(self): + """Gets the count of this BatchShowEdgeAppVersionsResponse. + + **参数说明**:总记录数。 + + :return: The count of this BatchShowEdgeAppVersionsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowEdgeAppVersionsResponse. + + **参数说明**:总记录数。 + + :param count: The count of this BatchShowEdgeAppVersionsResponse. + :type count: int + """ + self._count = count + + @property + def versions(self): + """Gets the versions of this BatchShowEdgeAppVersionsResponse. + + **参数说明**:列举每条记录。 + + :return: The versions of this BatchShowEdgeAppVersionsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.QueryEdgeAppVersionBriefResponseDTO`] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this BatchShowEdgeAppVersionsResponse. + + **参数说明**:列举每条记录。 + + :param versions: The versions of this BatchShowEdgeAppVersionsResponse. + :type versions: list[:class:`huaweicloudsdkdris.v1.QueryEdgeAppVersionBriefResponseDTO`] + """ + self._versions = versions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowEdgeAppVersionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_request.py new file mode 100755 index 0000000000..ec9b04b2c3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_request.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowEdgeAppsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, instance_id=None, edge_app_id=None, offset=None, limit=None): + """BatchShowEdgeAppsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:每页记录数。 + :type limit: int + """ + + + + self._instance_id = None + self._edge_app_id = None + self._offset = None + self._limit = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowEdgeAppsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this BatchShowEdgeAppsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowEdgeAppsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this BatchShowEdgeAppsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this BatchShowEdgeAppsRequest. + + **参数说明**:应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this BatchShowEdgeAppsRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this BatchShowEdgeAppsRequest. + + **参数说明**:应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this BatchShowEdgeAppsRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def offset(self): + """Gets the offset of this BatchShowEdgeAppsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this BatchShowEdgeAppsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowEdgeAppsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this BatchShowEdgeAppsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowEdgeAppsRequest. + + **参数说明**:每页记录数。 + + :return: The limit of this BatchShowEdgeAppsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowEdgeAppsRequest. + + **参数说明**:每页记录数。 + + :param limit: The limit of this BatchShowEdgeAppsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowEdgeAppsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_response.py new file mode 100755 index 0000000000..6460e6247c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_edge_apps_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowEdgeAppsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'edge_apps': 'list[QueryApplicationBriefResponseDTO]' + } + + attribute_map = { + 'count': 'count', + 'edge_apps': 'edge_apps' + } + + def __init__(self, count=None, edge_apps=None): + """BatchShowEdgeAppsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:总记录数。 + :type count: int + :param edge_apps: **参数说明**:列举每条记录。 + :type edge_apps: list[:class:`huaweicloudsdkdris.v1.QueryApplicationBriefResponseDTO`] + """ + + super(BatchShowEdgeAppsResponse, self).__init__() + + self._count = None + self._edge_apps = None + self.discriminator = None + + if count is not None: + self.count = count + if edge_apps is not None: + self.edge_apps = edge_apps + + @property + def count(self): + """Gets the count of this BatchShowEdgeAppsResponse. + + **参数说明**:总记录数。 + + :return: The count of this BatchShowEdgeAppsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowEdgeAppsResponse. + + **参数说明**:总记录数。 + + :param count: The count of this BatchShowEdgeAppsResponse. + :type count: int + """ + self._count = count + + @property + def edge_apps(self): + """Gets the edge_apps of this BatchShowEdgeAppsResponse. + + **参数说明**:列举每条记录。 + + :return: The edge_apps of this BatchShowEdgeAppsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.QueryApplicationBriefResponseDTO`] + """ + return self._edge_apps + + @edge_apps.setter + def edge_apps(self, edge_apps): + """Sets the edge_apps of this BatchShowEdgeAppsResponse. + + **参数说明**:列举每条记录。 + + :param edge_apps: The edge_apps of this BatchShowEdgeAppsResponse. + :type edge_apps: list[:class:`huaweicloudsdkdris.v1.QueryApplicationBriefResponseDTO`] + """ + self._edge_apps = edge_apps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowEdgeAppsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_request.py new file mode 100755 index 0000000000..dbdb48d6c6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_request.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowIpcsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'status': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'status': 'status', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, offset=None, limit=None, status=None, v2x_edge_id=None): + """BatchShowIpcsRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param status: **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + :type status: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._status = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if status is not None: + self.status = status + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowIpcsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this BatchShowIpcsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowIpcsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this BatchShowIpcsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this BatchShowIpcsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this BatchShowIpcsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowIpcsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this BatchShowIpcsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowIpcsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this BatchShowIpcsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowIpcsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this BatchShowIpcsRequest. + :type limit: int + """ + self._limit = limit + + @property + def status(self): + """Gets the status of this BatchShowIpcsRequest. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :return: The status of this BatchShowIpcsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchShowIpcsRequest. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :param status: The status of this BatchShowIpcsRequest. + :type status: str + """ + self._status = status + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this BatchShowIpcsRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this BatchShowIpcsRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this BatchShowIpcsRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this BatchShowIpcsRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowIpcsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_response.py new file mode 100755 index 0000000000..e618425500 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_ipcs_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowIpcsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'ipcs': 'list[IpcResponseDTO]' + } + + attribute_map = { + 'count': 'count', + 'ipcs': 'ipcs' + } + + def __init__(self, count=None, ipcs=None): + """BatchShowIpcsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:总数 + :type count: int + :param ipcs: **参数说明**:IPC列表 + :type ipcs: list[:class:`huaweicloudsdkdris.v1.IpcResponseDTO`] + """ + + super(BatchShowIpcsResponse, self).__init__() + + self._count = None + self._ipcs = None + self.discriminator = None + + if count is not None: + self.count = count + if ipcs is not None: + self.ipcs = ipcs + + @property + def count(self): + """Gets the count of this BatchShowIpcsResponse. + + **参数说明**:总数 + + :return: The count of this BatchShowIpcsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowIpcsResponse. + + **参数说明**:总数 + + :param count: The count of this BatchShowIpcsResponse. + :type count: int + """ + self._count = count + + @property + def ipcs(self): + """Gets the ipcs of this BatchShowIpcsResponse. + + **参数说明**:IPC列表 + + :return: The ipcs of this BatchShowIpcsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.IpcResponseDTO`] + """ + return self._ipcs + + @ipcs.setter + def ipcs(self, ipcs): + """Sets the ipcs of this BatchShowIpcsResponse. + + **参数说明**:IPC列表 + + :param ipcs: The ipcs of this BatchShowIpcsResponse. + :type ipcs: list[:class:`huaweicloudsdkdris.v1.IpcResponseDTO`] + """ + self._ipcs = ipcs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowIpcsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_request.py new file mode 100755 index 0000000000..01785242a8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_request.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowRsusRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'rsu_id': 'str', + 'esn': 'str', + 'status': 'str', + 'rsu_model_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'rsu_id': 'rsu_id', + 'esn': 'esn', + 'status': 'status', + 'rsu_model_id': 'rsu_model_id' + } + + def __init__(self, instance_id=None, offset=None, limit=None, rsu_id=None, esn=None, status=None, rsu_model_id=None): + """BatchShowRsusRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + :param esn: **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + :type esn: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + :type status: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + :type rsu_model_id: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._rsu_id = None + self._esn = None + self._status = None + self._rsu_model_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if rsu_id is not None: + self.rsu_id = rsu_id + if esn is not None: + self.esn = esn + if status is not None: + self.status = status + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowRsusRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this BatchShowRsusRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowRsusRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this BatchShowRsusRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this BatchShowRsusRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this BatchShowRsusRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowRsusRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this BatchShowRsusRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowRsusRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this BatchShowRsusRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowRsusRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this BatchShowRsusRequest. + :type limit: int + """ + self._limit = limit + + @property + def rsu_id(self): + """Gets the rsu_id of this BatchShowRsusRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this BatchShowRsusRequest. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this BatchShowRsusRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this BatchShowRsusRequest. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + @property + def esn(self): + """Gets the esn of this BatchShowRsusRequest. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :return: The esn of this BatchShowRsusRequest. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this BatchShowRsusRequest. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :param esn: The esn of this BatchShowRsusRequest. + :type esn: str + """ + self._esn = esn + + @property + def status(self): + """Gets the status of this BatchShowRsusRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :return: The status of this BatchShowRsusRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchShowRsusRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :param status: The status of this BatchShowRsusRequest. + :type status: str + """ + self._status = status + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this BatchShowRsusRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :return: The rsu_model_id of this BatchShowRsusRequest. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this BatchShowRsusRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :param rsu_model_id: The rsu_model_id of this BatchShowRsusRequest. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowRsusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_response.py new file mode 100755 index 0000000000..adbd9b7639 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_rsus_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowRsusResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'rsus': 'list[RsuDTO]' + } + + attribute_map = { + 'count': 'count', + 'rsus': 'rsus' + } + + def __init__(self, count=None, rsus=None): + """BatchShowRsusResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:返回RSU的总体数量。 + :type count: int + :param rsus: **参数说明**:RSU数据列表。 + :type rsus: list[:class:`huaweicloudsdkdris.v1.RsuDTO`] + """ + + super(BatchShowRsusResponse, self).__init__() + + self._count = None + self._rsus = None + self.discriminator = None + + if count is not None: + self.count = count + if rsus is not None: + self.rsus = rsus + + @property + def count(self): + """Gets the count of this BatchShowRsusResponse. + + **参数说明**:返回RSU的总体数量。 + + :return: The count of this BatchShowRsusResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowRsusResponse. + + **参数说明**:返回RSU的总体数量。 + + :param count: The count of this BatchShowRsusResponse. + :type count: int + """ + self._count = count + + @property + def rsus(self): + """Gets the rsus of this BatchShowRsusResponse. + + **参数说明**:RSU数据列表。 + + :return: The rsus of this BatchShowRsusResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.RsuDTO`] + """ + return self._rsus + + @rsus.setter + def rsus(self, rsus): + """Sets the rsus of this BatchShowRsusResponse. + + **参数说明**:RSU数据列表。 + + :param rsus: The rsus of this BatchShowRsusResponse. + :type rsus: list[:class:`huaweicloudsdkdris.v1.RsuDTO`] + """ + self._rsus = rsus + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowRsusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_request.py new file mode 100755 index 0000000000..162c65ff1a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_request.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowTrafficControllersRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'traffic_controller_id': 'str', + 'esn': 'str', + 'status': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'traffic_controller_id': 'traffic_controller_id', + 'esn': 'esn', + 'status': 'status' + } + + def __init__(self, instance_id=None, offset=None, limit=None, traffic_controller_id=None, esn=None, status=None): + """BatchShowTrafficControllersRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + :type limit: int + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type traffic_controller_id: str + :param esn: **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._traffic_controller_id = None + self._esn = None + self._status = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if traffic_controller_id is not None: + self.traffic_controller_id = traffic_controller_id + if esn is not None: + self.esn = esn + if status is not None: + self.status = status + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowTrafficControllersRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this BatchShowTrafficControllersRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowTrafficControllersRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this BatchShowTrafficControllersRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this BatchShowTrafficControllersRequest. + + **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0 + + :return: The offset of this BatchShowTrafficControllersRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowTrafficControllersRequest. + + **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0 + + :param offset: The offset of this BatchShowTrafficControllersRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowTrafficControllersRequest. + + **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + + :return: The limit of this BatchShowTrafficControllersRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowTrafficControllersRequest. + + **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + + :param limit: The limit of this BatchShowTrafficControllersRequest. + :type limit: int + """ + self._limit = limit + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this BatchShowTrafficControllersRequest. + + **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The traffic_controller_id of this BatchShowTrafficControllersRequest. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this BatchShowTrafficControllersRequest. + + **参数说明**:信号机设备ID,全局唯一。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param traffic_controller_id: The traffic_controller_id of this BatchShowTrafficControllersRequest. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def esn(self): + """Gets the esn of this BatchShowTrafficControllersRequest. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this BatchShowTrafficControllersRequest. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this BatchShowTrafficControllersRequest. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this BatchShowTrafficControllersRequest. + :type esn: str + """ + self._esn = esn + + @property + def status(self): + """Gets the status of this BatchShowTrafficControllersRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this BatchShowTrafficControllersRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchShowTrafficControllersRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this BatchShowTrafficControllersRequest. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowTrafficControllersRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_response.py new file mode 100755 index 0000000000..7dff7b008a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_controllers_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowTrafficControllersResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'traffic_controller_devices': 'list[TrafficControllerDTO]' + } + + attribute_map = { + 'count': 'count', + 'traffic_controller_devices': 'traffic_controller_devices' + } + + def __init__(self, count=None, traffic_controller_devices=None): + """BatchShowTrafficControllersResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:返回信号机设备的总体数量。 + :type count: int + :param traffic_controller_devices: **参数说明**:数据列表。 + :type traffic_controller_devices: list[:class:`huaweicloudsdkdris.v1.TrafficControllerDTO`] + """ + + super(BatchShowTrafficControllersResponse, self).__init__() + + self._count = None + self._traffic_controller_devices = None + self.discriminator = None + + if count is not None: + self.count = count + if traffic_controller_devices is not None: + self.traffic_controller_devices = traffic_controller_devices + + @property + def count(self): + """Gets the count of this BatchShowTrafficControllersResponse. + + **参数说明**:返回信号机设备的总体数量。 + + :return: The count of this BatchShowTrafficControllersResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowTrafficControllersResponse. + + **参数说明**:返回信号机设备的总体数量。 + + :param count: The count of this BatchShowTrafficControllersResponse. + :type count: int + """ + self._count = count + + @property + def traffic_controller_devices(self): + """Gets the traffic_controller_devices of this BatchShowTrafficControllersResponse. + + **参数说明**:数据列表。 + + :return: The traffic_controller_devices of this BatchShowTrafficControllersResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.TrafficControllerDTO`] + """ + return self._traffic_controller_devices + + @traffic_controller_devices.setter + def traffic_controller_devices(self, traffic_controller_devices): + """Sets the traffic_controller_devices of this BatchShowTrafficControllersResponse. + + **参数说明**:数据列表。 + + :param traffic_controller_devices: The traffic_controller_devices of this BatchShowTrafficControllersResponse. + :type traffic_controller_devices: list[:class:`huaweicloudsdkdris.v1.TrafficControllerDTO`] + """ + self._traffic_controller_devices = traffic_controller_devices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowTrafficControllersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_request.py new file mode 100755 index 0000000000..6bad9d2c91 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_request.py @@ -0,0 +1,466 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowTrafficEventsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'area_code': 'int', + 'status': 'str', + 'event_type': 'int', + 'event_source_type': 'list[str]', + 'event_class': 'str', + 'event_id': 'str', + 'from_time': 'str', + 'to_time': 'str', + 'sort_key': 'str', + 'sort_dir': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'area_code': 'area_code', + 'status': 'status', + 'event_type': 'event_type', + 'event_source_type': 'event_source_type', + 'event_class': 'event_class', + 'event_id': 'event_id', + 'from_time': 'from_time', + 'to_time': 'to_time', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir' + } + + def __init__(self, instance_id=None, offset=None, limit=None, area_code=None, status=None, event_type=None, event_source_type=None, event_class=None, event_id=None, from_time=None, to_time=None, sort_key=None, sort_dir=None): + """BatchShowTrafficEventsRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:查询事件列表的页码。 + :type offset: int + :param limit: **参数说明**:查询时每页显示的记录数。 + :type limit: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param status: **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + :type status: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_type: int + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: list[str] + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param from_time: **参数说明**:查询事件开始时间段的起始时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + :type from_time: str + :param to_time: **参数说明**:查询事件开始时间段的结束时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + :type to_time: str + :param sort_key: **参数说明**:按照哪一个字段排序,默认按事件开始时间。 + :type sort_key: str + :param sort_dir: **参数说明**:升序或降序,升序为ASC, 降序为DESC,默认降序。 + :type sort_dir: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._area_code = None + self._status = None + self._event_type = None + self._event_source_type = None + self._event_class = None + self._event_id = None + self._from_time = None + self._to_time = None + self._sort_key = None + self._sort_dir = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if area_code is not None: + self.area_code = area_code + if status is not None: + self.status = status + if event_type is not None: + self.event_type = event_type + if event_source_type is not None: + self.event_source_type = event_source_type + if event_class is not None: + self.event_class = event_class + if event_id is not None: + self.event_id = event_id + if from_time is not None: + self.from_time = from_time + if to_time is not None: + self.to_time = to_time + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowTrafficEventsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowTrafficEventsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this BatchShowTrafficEventsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件列表的页码。 + + :return: The offset of this BatchShowTrafficEventsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件列表的页码。 + + :param offset: The offset of this BatchShowTrafficEventsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowTrafficEventsRequest. + + **参数说明**:查询时每页显示的记录数。 + + :return: The limit of this BatchShowTrafficEventsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowTrafficEventsRequest. + + **参数说明**:查询时每页显示的记录数。 + + :param limit: The limit of this BatchShowTrafficEventsRequest. + :type limit: int + """ + self._limit = limit + + @property + def area_code(self): + """Gets the area_code of this BatchShowTrafficEventsRequest. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this BatchShowTrafficEventsRequest. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this BatchShowTrafficEventsRequest. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this BatchShowTrafficEventsRequest. + :type area_code: int + """ + self._area_code = area_code + + @property + def status(self): + """Gets the status of this BatchShowTrafficEventsRequest. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :return: The status of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchShowTrafficEventsRequest. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :param status: The status of this BatchShowTrafficEventsRequest. + :type status: str + """ + self._status = status + + @property + def event_type(self): + """Gets the event_type of this BatchShowTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_type of this BatchShowTrafficEventsRequest. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this BatchShowTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_type: The event_type of this BatchShowTrafficEventsRequest. + :type event_type: int + """ + self._event_type = event_type + + @property + def event_source_type(self): + """Gets the event_source_type of this BatchShowTrafficEventsRequest. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this BatchShowTrafficEventsRequest. + :rtype: list[str] + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this BatchShowTrafficEventsRequest. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this BatchShowTrafficEventsRequest. + :type event_source_type: list[str] + """ + self._event_source_type = event_source_type + + @property + def event_class(self): + """Gets the event_class of this BatchShowTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this BatchShowTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this BatchShowTrafficEventsRequest. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_id(self): + """Gets the event_id of this BatchShowTrafficEventsRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this BatchShowTrafficEventsRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this BatchShowTrafficEventsRequest. + :type event_id: str + """ + self._event_id = event_id + + @property + def from_time(self): + """Gets the from_time of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件开始时间段的起始时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + + :return: The from_time of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._from_time + + @from_time.setter + def from_time(self, from_time): + """Sets the from_time of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件开始时间段的起始时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + + :param from_time: The from_time of this BatchShowTrafficEventsRequest. + :type from_time: str + """ + self._from_time = from_time + + @property + def to_time(self): + """Gets the to_time of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件开始时间段的结束时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + + :return: The to_time of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._to_time + + @to_time.setter + def to_time(self, to_time): + """Sets the to_time of this BatchShowTrafficEventsRequest. + + **参数说明**:查询事件开始时间段的结束时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如 2020-09-01T01:37:01Z。 + + :param to_time: The to_time of this BatchShowTrafficEventsRequest. + :type to_time: str + """ + self._to_time = to_time + + @property + def sort_key(self): + """Gets the sort_key of this BatchShowTrafficEventsRequest. + + **参数说明**:按照哪一个字段排序,默认按事件开始时间。 + + :return: The sort_key of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this BatchShowTrafficEventsRequest. + + **参数说明**:按照哪一个字段排序,默认按事件开始时间。 + + :param sort_key: The sort_key of this BatchShowTrafficEventsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this BatchShowTrafficEventsRequest. + + **参数说明**:升序或降序,升序为ASC, 降序为DESC,默认降序。 + + :return: The sort_dir of this BatchShowTrafficEventsRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this BatchShowTrafficEventsRequest. + + **参数说明**:升序或降序,升序为ASC, 降序为DESC,默认降序。 + + :param sort_dir: The sort_dir of this BatchShowTrafficEventsRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowTrafficEventsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_response.py new file mode 100755 index 0000000000..9f557983c3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_traffic_events_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowTrafficEventsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'events': 'list[TrafficEventDTO]' + } + + attribute_map = { + 'count': 'count', + 'events': 'events' + } + + def __init__(self, count=None, events=None): + """BatchShowTrafficEventsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:返回条目总数量。 + :type count: int + :param events: **参数说明**:事件列表。 + :type events: list[:class:`huaweicloudsdkdris.v1.TrafficEventDTO`] + """ + + super(BatchShowTrafficEventsResponse, self).__init__() + + self._count = None + self._events = None + self.discriminator = None + + if count is not None: + self.count = count + if events is not None: + self.events = events + + @property + def count(self): + """Gets the count of this BatchShowTrafficEventsResponse. + + **参数说明**:返回条目总数量。 + + :return: The count of this BatchShowTrafficEventsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowTrafficEventsResponse. + + **参数说明**:返回条目总数量。 + + :param count: The count of this BatchShowTrafficEventsResponse. + :type count: int + """ + self._count = count + + @property + def events(self): + """Gets the events of this BatchShowTrafficEventsResponse. + + **参数说明**:事件列表。 + + :return: The events of this BatchShowTrafficEventsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.TrafficEventDTO`] + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this BatchShowTrafficEventsResponse. + + **参数说明**:事件列表。 + + :param events: The events of this BatchShowTrafficEventsResponse. + :type events: list[:class:`huaweicloudsdkdris.v1.TrafficEventDTO`] + """ + self._events = events + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowTrafficEventsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_request.py new file mode 100755 index 0000000000..ec89f5d947 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_request.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowVehiclesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'vehicle_id': 'str', + 'status': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'vehicle_id': 'vehicle_id', + 'status': 'status' + } + + def __init__(self, instance_id=None, offset=None, limit=None, vehicle_id=None, status=None): + """BatchShowVehiclesRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + :type limit: int + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._vehicle_id = None + self._status = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if vehicle_id is not None: + self.vehicle_id = vehicle_id + if status is not None: + self.status = status + + @property + def instance_id(self): + """Gets the instance_id of this BatchShowVehiclesRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this BatchShowVehiclesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchShowVehiclesRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this BatchShowVehiclesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this BatchShowVehiclesRequest. + + **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0。 + + :return: The offset of this BatchShowVehiclesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this BatchShowVehiclesRequest. + + **参数说明**:分页查询时的页码, offset大于等于0,默认取值为0。 + + :param offset: The offset of this BatchShowVehiclesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this BatchShowVehiclesRequest. + + **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + + :return: The limit of this BatchShowVehiclesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this BatchShowVehiclesRequest. + + **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为0-20的整数。 + + :param limit: The limit of this BatchShowVehiclesRequest. + :type limit: int + """ + self._limit = limit + + @property + def vehicle_id(self): + """Gets the vehicle_id of this BatchShowVehiclesRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this BatchShowVehiclesRequest. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this BatchShowVehiclesRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this BatchShowVehiclesRequest. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def status(self): + """Gets the status of this BatchShowVehiclesRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this BatchShowVehiclesRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchShowVehiclesRequest. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this BatchShowVehiclesRequest. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowVehiclesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_response.py new file mode 100755 index 0000000000..c3003d79d3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/batch_show_vehicles_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchShowVehiclesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'vehicles': 'list[VehicleDTO]' + } + + attribute_map = { + 'count': 'count', + 'vehicles': 'vehicles' + } + + def __init__(self, count=None, vehicles=None): + """BatchShowVehiclesResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:返回车辆的总体数量。 + :type count: int + :param vehicles: **参数说明**:数据列表。 + :type vehicles: list[:class:`huaweicloudsdkdris.v1.VehicleDTO`] + """ + + super(BatchShowVehiclesResponse, self).__init__() + + self._count = None + self._vehicles = None + self.discriminator = None + + if count is not None: + self.count = count + if vehicles is not None: + self.vehicles = vehicles + + @property + def count(self): + """Gets the count of this BatchShowVehiclesResponse. + + **参数说明**:返回车辆的总体数量。 + + :return: The count of this BatchShowVehiclesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this BatchShowVehiclesResponse. + + **参数说明**:返回车辆的总体数量。 + + :param count: The count of this BatchShowVehiclesResponse. + :type count: int + """ + self._count = count + + @property + def vehicles(self): + """Gets the vehicles of this BatchShowVehiclesResponse. + + **参数说明**:数据列表。 + + :return: The vehicles of this BatchShowVehiclesResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.VehicleDTO`] + """ + return self._vehicles + + @vehicles.setter + def vehicles(self, vehicles): + """Sets the vehicles of this BatchShowVehiclesResponse. + + **参数说明**:数据列表。 + + :param vehicles: The vehicles of this BatchShowVehiclesResponse. + :type vehicles: list[:class:`huaweicloudsdkdris.v1.VehicleDTO`] + """ + self._vehicles = vehicles + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchShowVehiclesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/channel.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/channel.py new file mode 100755 index 0000000000..9eca69f27a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/channel.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Channel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'by_lte_pc5': 'bool', + 'by_lte_uu': 'bool' + } + + attribute_map = { + 'by_lte_pc5': 'by_lte_pc5', + 'by_lte_uu': 'by_lte_uu' + } + + def __init__(self, by_lte_pc5=None, by_lte_uu=None): + """Channel + + The model defined in huaweicloud sdk + + :param by_lte_pc5: **参数说明**:LTE-PC5传输通道。若通过LTE-PC5传输通道下发事件,该字段为true。 + :type by_lte_pc5: bool + :param by_lte_uu: **参数说明**:LTE-Uu的传输通道。若通过LTE-Uu的传输通道下发事件,该字段为true。 + :type by_lte_uu: bool + """ + + + + self._by_lte_pc5 = None + self._by_lte_uu = None + self.discriminator = None + + if by_lte_pc5 is not None: + self.by_lte_pc5 = by_lte_pc5 + if by_lte_uu is not None: + self.by_lte_uu = by_lte_uu + + @property + def by_lte_pc5(self): + """Gets the by_lte_pc5 of this Channel. + + **参数说明**:LTE-PC5传输通道。若通过LTE-PC5传输通道下发事件,该字段为true。 + + :return: The by_lte_pc5 of this Channel. + :rtype: bool + """ + return self._by_lte_pc5 + + @by_lte_pc5.setter + def by_lte_pc5(self, by_lte_pc5): + """Sets the by_lte_pc5 of this Channel. + + **参数说明**:LTE-PC5传输通道。若通过LTE-PC5传输通道下发事件,该字段为true。 + + :param by_lte_pc5: The by_lte_pc5 of this Channel. + :type by_lte_pc5: bool + """ + self._by_lte_pc5 = by_lte_pc5 + + @property + def by_lte_uu(self): + """Gets the by_lte_uu of this Channel. + + **参数说明**:LTE-Uu的传输通道。若通过LTE-Uu的传输通道下发事件,该字段为true。 + + :return: The by_lte_uu of this Channel. + :rtype: bool + """ + return self._by_lte_uu + + @by_lte_uu.setter + def by_lte_uu(self, by_lte_uu): + """Sets the by_lte_uu of this Channel. + + **参数说明**:LTE-Uu的传输通道。若通过LTE-Uu的传输通道下发事件,该字段为true。 + + :param by_lte_uu: The by_lte_uu of this Channel. + :type by_lte_uu: bool + """ + self._by_lte_uu = by_lte_uu + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Channel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_info.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_info.py new file mode 100755 index 0000000000..9c37bfe5be --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_info.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CongestionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'level': 'int', + 'length': 'int', + 'start_point': 'Position3D', + 'end_point': 'Position3D', + 'congestion_lanes_info': 'list[CongestionLanesInfo]' + } + + attribute_map = { + 'level': 'level', + 'length': 'length', + 'start_point': 'start_point', + 'end_point': 'end_point', + 'congestion_lanes_info': 'congestion_lanes_info' + } + + def __init__(self, level=None, length=None, start_point=None, end_point=None, congestion_lanes_info=None): + """CongestionInfo + + The model defined in huaweicloud sdk + + :param level: **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + :type level: int + :param length: **参数说明**:拥堵长度,单位为米(m)。 + :type length: int + :param start_point: + :type start_point: :class:`huaweicloudsdkdris.v1.Position3D` + :param end_point: + :type end_point: :class:`huaweicloudsdkdris.v1.Position3D` + :param congestion_lanes_info: **参数说明**:车道拥堵信息。 + :type congestion_lanes_info: list[:class:`huaweicloudsdkdris.v1.CongestionLanesInfo`] + """ + + + + self._level = None + self._length = None + self._start_point = None + self._end_point = None + self._congestion_lanes_info = None + self.discriminator = None + + if level is not None: + self.level = level + if length is not None: + self.length = length + if start_point is not None: + self.start_point = start_point + if end_point is not None: + self.end_point = end_point + if congestion_lanes_info is not None: + self.congestion_lanes_info = congestion_lanes_info + + @property + def level(self): + """Gets the level of this CongestionInfo. + + **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + + :return: The level of this CongestionInfo. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CongestionInfo. + + **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + + :param level: The level of this CongestionInfo. + :type level: int + """ + self._level = level + + @property + def length(self): + """Gets the length of this CongestionInfo. + + **参数说明**:拥堵长度,单位为米(m)。 + + :return: The length of this CongestionInfo. + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this CongestionInfo. + + **参数说明**:拥堵长度,单位为米(m)。 + + :param length: The length of this CongestionInfo. + :type length: int + """ + self._length = length + + @property + def start_point(self): + """Gets the start_point of this CongestionInfo. + + :return: The start_point of this CongestionInfo. + :rtype: :class:`huaweicloudsdkdris.v1.Position3D` + """ + return self._start_point + + @start_point.setter + def start_point(self, start_point): + """Sets the start_point of this CongestionInfo. + + :param start_point: The start_point of this CongestionInfo. + :type start_point: :class:`huaweicloudsdkdris.v1.Position3D` + """ + self._start_point = start_point + + @property + def end_point(self): + """Gets the end_point of this CongestionInfo. + + :return: The end_point of this CongestionInfo. + :rtype: :class:`huaweicloudsdkdris.v1.Position3D` + """ + return self._end_point + + @end_point.setter + def end_point(self, end_point): + """Sets the end_point of this CongestionInfo. + + :param end_point: The end_point of this CongestionInfo. + :type end_point: :class:`huaweicloudsdkdris.v1.Position3D` + """ + self._end_point = end_point + + @property + def congestion_lanes_info(self): + """Gets the congestion_lanes_info of this CongestionInfo. + + **参数说明**:车道拥堵信息。 + + :return: The congestion_lanes_info of this CongestionInfo. + :rtype: list[:class:`huaweicloudsdkdris.v1.CongestionLanesInfo`] + """ + return self._congestion_lanes_info + + @congestion_lanes_info.setter + def congestion_lanes_info(self, congestion_lanes_info): + """Sets the congestion_lanes_info of this CongestionInfo. + + **参数说明**:车道拥堵信息。 + + :param congestion_lanes_info: The congestion_lanes_info of this CongestionInfo. + :type congestion_lanes_info: list[:class:`huaweicloudsdkdris.v1.CongestionLanesInfo`] + """ + self._congestion_lanes_info = congestion_lanes_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CongestionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_lanes_info.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_lanes_info.py new file mode 100755 index 0000000000..bc04040bb4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/congestion_lanes_info.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CongestionLanesInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'laneid': 'int', + 'level': 'int', + 'length': 'int', + 'start_point': 'Position3D', + 'end_point': 'Position3D' + } + + attribute_map = { + 'laneid': 'laneid', + 'level': 'level', + 'length': 'length', + 'start_point': 'start_point', + 'end_point': 'end_point' + } + + def __init__(self, laneid=None, level=None, length=None, start_point=None, end_point=None): + """CongestionLanesInfo + + The model defined in huaweicloud sdk + + :param laneid: **参数说明**:车道号。 + :type laneid: int + :param level: **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + :type level: int + :param length: **参数说明**:拥堵长度,单位为米(m)。 + :type length: int + :param start_point: + :type start_point: :class:`huaweicloudsdkdris.v1.Position3D` + :param end_point: + :type end_point: :class:`huaweicloudsdkdris.v1.Position3D` + """ + + + + self._laneid = None + self._level = None + self._length = None + self._start_point = None + self._end_point = None + self.discriminator = None + + if laneid is not None: + self.laneid = laneid + if level is not None: + self.level = level + if length is not None: + self.length = length + if start_point is not None: + self.start_point = start_point + if end_point is not None: + self.end_point = end_point + + @property + def laneid(self): + """Gets the laneid of this CongestionLanesInfo. + + **参数说明**:车道号。 + + :return: The laneid of this CongestionLanesInfo. + :rtype: int + """ + return self._laneid + + @laneid.setter + def laneid(self, laneid): + """Sets the laneid of this CongestionLanesInfo. + + **参数说明**:车道号。 + + :param laneid: The laneid of this CongestionLanesInfo. + :type laneid: int + """ + self._laneid = laneid + + @property + def level(self): + """Gets the level of this CongestionLanesInfo. + + **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + + :return: The level of this CongestionLanesInfo. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CongestionLanesInfo. + + **参数说明**:拥堵级别。 **取值范围**: - 1:拥堵级别低,速度[25, 30) 单位:km/h - 2:拥堵级别中,速度[15,25) 单位:km/h - 3:拥堵级别高,速度[0, 15) 单位:km/h + + :param level: The level of this CongestionLanesInfo. + :type level: int + """ + self._level = level + + @property + def length(self): + """Gets the length of this CongestionLanesInfo. + + **参数说明**:拥堵长度,单位为米(m)。 + + :return: The length of this CongestionLanesInfo. + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this CongestionLanesInfo. + + **参数说明**:拥堵长度,单位为米(m)。 + + :param length: The length of this CongestionLanesInfo. + :type length: int + """ + self._length = length + + @property + def start_point(self): + """Gets the start_point of this CongestionLanesInfo. + + :return: The start_point of this CongestionLanesInfo. + :rtype: :class:`huaweicloudsdkdris.v1.Position3D` + """ + return self._start_point + + @start_point.setter + def start_point(self, start_point): + """Sets the start_point of this CongestionLanesInfo. + + :param start_point: The start_point of this CongestionLanesInfo. + :type start_point: :class:`huaweicloudsdkdris.v1.Position3D` + """ + self._start_point = start_point + + @property + def end_point(self): + """Gets the end_point of this CongestionLanesInfo. + + :return: The end_point of this CongestionLanesInfo. + :rtype: :class:`huaweicloudsdkdris.v1.Position3D` + """ + return self._end_point + + @end_point.setter + def end_point(self, end_point): + """Sets the end_point of this CongestionLanesInfo. + + :param end_point: The end_point of this CongestionLanesInfo. + :type end_point: :class:`huaweicloudsdkdris.v1.Position3D` + """ + self._end_point = end_point + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CongestionLanesInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_configs_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_configs_dto.py new file mode 100755 index 0000000000..dbd828f7ce --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_configs_dto.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContainerConfigsDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'privileged': 'bool', + 'host_network': 'bool', + 'restart_policy': 'str', + 'container_port_list': 'list[ContainerPortDTO]' + } + + attribute_map = { + 'privileged': 'privileged', + 'host_network': 'host_network', + 'restart_policy': 'restart_policy', + 'container_port_list': 'container_port_list' + } + + def __init__(self, privileged=None, host_network=None, restart_policy=None, container_port_list=None): + """ContainerConfigsDTO + + The model defined in huaweicloud sdk + + :param privileged: **参数说明**:开启容器特权模式。 + :type privileged: bool + :param host_network: **参数说明**:是否使用主机网络模式。 + :type host_network: bool + :param restart_policy: **参数说明**:重启策略,容器执行健康检查后失败后的策略。 + :type restart_policy: str + :param container_port_list: **参数说明**:容器端口映射值。 + :type container_port_list: list[:class:`huaweicloudsdkdris.v1.ContainerPortDTO`] + """ + + + + self._privileged = None + self._host_network = None + self._restart_policy = None + self._container_port_list = None + self.discriminator = None + + if privileged is not None: + self.privileged = privileged + if host_network is not None: + self.host_network = host_network + self.restart_policy = restart_policy + if container_port_list is not None: + self.container_port_list = container_port_list + + @property + def privileged(self): + """Gets the privileged of this ContainerConfigsDTO. + + **参数说明**:开启容器特权模式。 + + :return: The privileged of this ContainerConfigsDTO. + :rtype: bool + """ + return self._privileged + + @privileged.setter + def privileged(self, privileged): + """Sets the privileged of this ContainerConfigsDTO. + + **参数说明**:开启容器特权模式。 + + :param privileged: The privileged of this ContainerConfigsDTO. + :type privileged: bool + """ + self._privileged = privileged + + @property + def host_network(self): + """Gets the host_network of this ContainerConfigsDTO. + + **参数说明**:是否使用主机网络模式。 + + :return: The host_network of this ContainerConfigsDTO. + :rtype: bool + """ + return self._host_network + + @host_network.setter + def host_network(self, host_network): + """Sets the host_network of this ContainerConfigsDTO. + + **参数说明**:是否使用主机网络模式。 + + :param host_network: The host_network of this ContainerConfigsDTO. + :type host_network: bool + """ + self._host_network = host_network + + @property + def restart_policy(self): + """Gets the restart_policy of this ContainerConfigsDTO. + + **参数说明**:重启策略,容器执行健康检查后失败后的策略。 + + :return: The restart_policy of this ContainerConfigsDTO. + :rtype: str + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """Sets the restart_policy of this ContainerConfigsDTO. + + **参数说明**:重启策略,容器执行健康检查后失败后的策略。 + + :param restart_policy: The restart_policy of this ContainerConfigsDTO. + :type restart_policy: str + """ + self._restart_policy = restart_policy + + @property + def container_port_list(self): + """Gets the container_port_list of this ContainerConfigsDTO. + + **参数说明**:容器端口映射值。 + + :return: The container_port_list of this ContainerConfigsDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.ContainerPortDTO`] + """ + return self._container_port_list + + @container_port_list.setter + def container_port_list(self, container_port_list): + """Sets the container_port_list of this ContainerConfigsDTO. + + **参数说明**:容器端口映射值。 + + :param container_port_list: The container_port_list of this ContainerConfigsDTO. + :type container_port_list: list[:class:`huaweicloudsdkdris.v1.ContainerPortDTO`] + """ + self._container_port_list = container_port_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerConfigsDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_port_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_port_dto.py new file mode 100755 index 0000000000..5ac02c61cc --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_port_dto.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContainerPortDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'container_port': 'int', + 'host_port': 'int', + 'host_ip': 'str' + } + + attribute_map = { + 'container_port': 'container_port', + 'host_port': 'host_port', + 'host_ip': 'host_ip' + } + + def __init__(self, container_port=None, host_port=None, host_ip=None): + """ContainerPortDTO + + The model defined in huaweicloud sdk + + :param container_port: **参数说明**:构成一堆映射的容器端口。 + :type container_port: int + :param host_port: **参数说明**:构成一对映射的物理机对应网卡端口。 + :type host_port: int + :param host_ip: **参数说明**:对应网卡地址。 + :type host_ip: str + """ + + + + self._container_port = None + self._host_port = None + self._host_ip = None + self.discriminator = None + + if container_port is not None: + self.container_port = container_port + if host_port is not None: + self.host_port = host_port + if host_ip is not None: + self.host_ip = host_ip + + @property + def container_port(self): + """Gets the container_port of this ContainerPortDTO. + + **参数说明**:构成一堆映射的容器端口。 + + :return: The container_port of this ContainerPortDTO. + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this ContainerPortDTO. + + **参数说明**:构成一堆映射的容器端口。 + + :param container_port: The container_port of this ContainerPortDTO. + :type container_port: int + """ + self._container_port = container_port + + @property + def host_port(self): + """Gets the host_port of this ContainerPortDTO. + + **参数说明**:构成一对映射的物理机对应网卡端口。 + + :return: The host_port of this ContainerPortDTO. + :rtype: int + """ + return self._host_port + + @host_port.setter + def host_port(self, host_port): + """Sets the host_port of this ContainerPortDTO. + + **参数说明**:构成一对映射的物理机对应网卡端口。 + + :param host_port: The host_port of this ContainerPortDTO. + :type host_port: int + """ + self._host_port = host_port + + @property + def host_ip(self): + """Gets the host_ip of this ContainerPortDTO. + + **参数说明**:对应网卡地址。 + + :return: The host_ip of this ContainerPortDTO. + :rtype: str + """ + return self._host_ip + + @host_ip.setter + def host_ip(self, host_ip): + """Sets the host_ip of this ContainerPortDTO. + + **参数说明**:对应网卡地址。 + + :param host_ip: The host_ip of this ContainerPortDTO. + :type host_ip: str + """ + self._host_ip = host_ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerPortDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_settings_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_settings_dto.py new file mode 100755 index 0000000000..8896acf205 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/container_settings_dto.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContainerSettingsDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'configs': 'ContainerConfigsDTO', + 'image_url': 'str', + 'envs': 'object', + 'volumes': 'list[VolumeDTO]', + 'resources': 'ResourceDTO', + 'ext_devices': 'list[ExtDevice]' + } + + attribute_map = { + 'configs': 'configs', + 'image_url': 'image_url', + 'envs': 'envs', + 'volumes': 'volumes', + 'resources': 'resources', + 'ext_devices': 'ext_devices' + } + + def __init__(self, configs=None, image_url=None, envs=None, volumes=None, resources=None, ext_devices=None): + """ContainerSettingsDTO + + The model defined in huaweicloud sdk + + :param configs: + :type configs: :class:`huaweicloudsdkdris.v1.ContainerConfigsDTO` + :param image_url: **参数说明**:镜像存储地址。 + :type image_url: str + :param envs: **参数说明**:环境变量。 + :type envs: object + :param volumes: **参数说明**:卷配置。 + :type volumes: list[:class:`huaweicloudsdkdris.v1.VolumeDTO`] + :param resources: + :type resources: :class:`huaweicloudsdkdris.v1.ResourceDTO` + :param ext_devices: **参数说明**:外挂设备配置。 + :type ext_devices: list[:class:`huaweicloudsdkdris.v1.ExtDevice`] + """ + + + + self._configs = None + self._image_url = None + self._envs = None + self._volumes = None + self._resources = None + self._ext_devices = None + self.discriminator = None + + if configs is not None: + self.configs = configs + self.image_url = image_url + if envs is not None: + self.envs = envs + if volumes is not None: + self.volumes = volumes + if resources is not None: + self.resources = resources + if ext_devices is not None: + self.ext_devices = ext_devices + + @property + def configs(self): + """Gets the configs of this ContainerSettingsDTO. + + :return: The configs of this ContainerSettingsDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerConfigsDTO` + """ + return self._configs + + @configs.setter + def configs(self, configs): + """Sets the configs of this ContainerSettingsDTO. + + :param configs: The configs of this ContainerSettingsDTO. + :type configs: :class:`huaweicloudsdkdris.v1.ContainerConfigsDTO` + """ + self._configs = configs + + @property + def image_url(self): + """Gets the image_url of this ContainerSettingsDTO. + + **参数说明**:镜像存储地址。 + + :return: The image_url of this ContainerSettingsDTO. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this ContainerSettingsDTO. + + **参数说明**:镜像存储地址。 + + :param image_url: The image_url of this ContainerSettingsDTO. + :type image_url: str + """ + self._image_url = image_url + + @property + def envs(self): + """Gets the envs of this ContainerSettingsDTO. + + **参数说明**:环境变量。 + + :return: The envs of this ContainerSettingsDTO. + :rtype: object + """ + return self._envs + + @envs.setter + def envs(self, envs): + """Sets the envs of this ContainerSettingsDTO. + + **参数说明**:环境变量。 + + :param envs: The envs of this ContainerSettingsDTO. + :type envs: object + """ + self._envs = envs + + @property + def volumes(self): + """Gets the volumes of this ContainerSettingsDTO. + + **参数说明**:卷配置。 + + :return: The volumes of this ContainerSettingsDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.VolumeDTO`] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """Sets the volumes of this ContainerSettingsDTO. + + **参数说明**:卷配置。 + + :param volumes: The volumes of this ContainerSettingsDTO. + :type volumes: list[:class:`huaweicloudsdkdris.v1.VolumeDTO`] + """ + self._volumes = volumes + + @property + def resources(self): + """Gets the resources of this ContainerSettingsDTO. + + :return: The resources of this ContainerSettingsDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ResourceDTO` + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ContainerSettingsDTO. + + :param resources: The resources of this ContainerSettingsDTO. + :type resources: :class:`huaweicloudsdkdris.v1.ResourceDTO` + """ + self._resources = resources + + @property + def ext_devices(self): + """Gets the ext_devices of this ContainerSettingsDTO. + + **参数说明**:外挂设备配置。 + + :return: The ext_devices of this ContainerSettingsDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.ExtDevice`] + """ + return self._ext_devices + + @ext_devices.setter + def ext_devices(self, ext_devices): + """Sets the ext_devices of this ContainerSettingsDTO. + + **参数说明**:外挂设备配置。 + + :param ext_devices: The ext_devices of this ContainerSettingsDTO. + :type ext_devices: list[:class:`huaweicloudsdkdris.v1.ExtDevice`] + """ + self._ext_devices = ext_devices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerSettingsDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_request.py new file mode 100755 index 0000000000..7a635ffa01 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDataChannelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str', + 'body': 'AddV2XEdgeDataChannelDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, v2x_edge_id=None, body=None): + """CreateDataChannelRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param body: Body of the CreateDataChannelRequest + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :return: The instance_id of this CreateDataChannelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :param instance_id: The instance_id of this CreateDataChannelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this CreateDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this CreateDataChannelRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this CreateDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this CreateDataChannelRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def body(self): + """Gets the body of this CreateDataChannelRequest. + + :return: The body of this CreateDataChannelRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDataChannelRequest. + + :param body: The body of this CreateDataChannelRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDataChannelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_response.py new file mode 100755 index 0000000000..a869d05351 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_data_channel_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDataChannelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'platform_type': 'str', + 'platform_para': 'PlatformPara', + 'channel_status': 'str' + } + + attribute_map = { + 'platform_type': 'platform_type', + 'platform_para': 'platform_para', + 'channel_status': 'channel_status' + } + + def __init__(self, platform_type=None, platform_para=None, channel_status=None): + """CreateDataChannelResponse + + The model defined in huaweicloud sdk + + :param platform_type: **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + :type platform_type: str + :param platform_para: + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + :param channel_status: **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type channel_status: str + """ + + super(CreateDataChannelResponse, self).__init__() + + self._platform_type = None + self._platform_para = None + self._channel_status = None + self.discriminator = None + + if platform_type is not None: + self.platform_type = platform_type + if platform_para is not None: + self.platform_para = platform_para + if channel_status is not None: + self.channel_status = channel_status + + @property + def platform_type(self): + """Gets the platform_type of this CreateDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :return: The platform_type of this CreateDataChannelResponse. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """Sets the platform_type of this CreateDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :param platform_type: The platform_type of this CreateDataChannelResponse. + :type platform_type: str + """ + self._platform_type = platform_type + + @property + def platform_para(self): + """Gets the platform_para of this CreateDataChannelResponse. + + :return: The platform_para of this CreateDataChannelResponse. + :rtype: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + return self._platform_para + + @platform_para.setter + def platform_para(self, platform_para): + """Sets the platform_para of this CreateDataChannelResponse. + + :param platform_para: The platform_para of this CreateDataChannelResponse. + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + self._platform_para = platform_para + + @property + def channel_status(self): + """Gets the channel_status of this CreateDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The channel_status of this CreateDataChannelResponse. + :rtype: str + """ + return self._channel_status + + @channel_status.setter + def channel_status(self, channel_status): + """Sets the channel_status of this CreateDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param channel_status: The channel_status of this CreateDataChannelResponse. + :type channel_status: str + """ + self._channel_status = channel_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDataChannelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_request.py new file mode 100755 index 0000000000..90d9e1d177 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'CreateEdgeApplicationRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateEdgeAppRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param body: Body of the CreateEdgeAppRequest + :type body: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationRequestDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this CreateEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this CreateEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateEdgeAppRequest. + + :return: The body of this CreateEdgeAppRequest. + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateEdgeAppRequest. + + :param body: The body of this CreateEdgeAppRequest. + :type body: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_response.py new file mode 100755 index 0000000000..607ab69837 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_app_response.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'last_published_version': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'last_published_version': 'last_published_version' + } + + def __init__(self, edge_app_id=None, description=None, created_time=None, last_modified_time=None, last_published_version=None): + """CreateEdgeAppResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:更新时间。 + :type last_modified_time: str + :param last_published_version: **参数说明**:最新发布版本。 + :type last_published_version: str + """ + + super(CreateEdgeAppResponse, self).__init__() + + self._edge_app_id = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._last_published_version = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if last_published_version is not None: + self.last_published_version = last_published_version + + @property + def edge_app_id(self): + """Gets the edge_app_id of this CreateEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this CreateEdgeAppResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this CreateEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this CreateEdgeAppResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def description(self): + """Gets the description of this CreateEdgeAppResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateEdgeAppResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateEdgeAppResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateEdgeAppResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this CreateEdgeAppResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this CreateEdgeAppResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateEdgeAppResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this CreateEdgeAppResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateEdgeAppResponse. + + **参数说明**:更新时间。 + + :return: The last_modified_time of this CreateEdgeAppResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateEdgeAppResponse. + + **参数说明**:更新时间。 + + :param last_modified_time: The last_modified_time of this CreateEdgeAppResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def last_published_version(self): + """Gets the last_published_version of this CreateEdgeAppResponse. + + **参数说明**:最新发布版本。 + + :return: The last_published_version of this CreateEdgeAppResponse. + :rtype: str + """ + return self._last_published_version + + @last_published_version.setter + def last_published_version(self, last_published_version): + """Sets the last_published_version of this CreateEdgeAppResponse. + + **参数说明**:最新发布版本。 + + :param last_published_version: The last_published_version of this CreateEdgeAppResponse. + :type last_published_version: str + """ + self._last_published_version = last_published_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_request_dto.py new file mode 100755 index 0000000000..ad7fe68244 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_request_dto.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeApplicationRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'description': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'description': 'description' + } + + def __init__(self, edge_app_id=None, description=None): + """CreateEdgeApplicationRequestDTO + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + """ + + + + self._edge_app_id = None + self._description = None + self.discriminator = None + + self.edge_app_id = edge_app_id + if description is not None: + self.description = description + + @property + def edge_app_id(self): + """Gets the edge_app_id of this CreateEdgeApplicationRequestDTO. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this CreateEdgeApplicationRequestDTO. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this CreateEdgeApplicationRequestDTO. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this CreateEdgeApplicationRequestDTO. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def description(self): + """Gets the description of this CreateEdgeApplicationRequestDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateEdgeApplicationRequestDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateEdgeApplicationRequestDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateEdgeApplicationRequestDTO. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeApplicationRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_dto.py new file mode 100755 index 0000000000..c3b57f933b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_dto.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeApplicationVersionDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'description': 'str', + 'container_settings': 'ContainerSettingsDTO', + 'command': 'object', + 'args': 'object' + } + + attribute_map = { + 'version': 'version', + 'description': 'description', + 'container_settings': 'container_settings', + 'command': 'command', + 'args': 'args' + } + + def __init__(self, version=None, description=None, container_settings=None, command=None, args=None): + """CreateEdgeApplicationVersionDTO + + The model defined in huaweicloud sdk + + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param container_settings: + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + :param command: **参数说明**:启动命令。 + :type command: object + :param args: **参数说明**:启动参数。 + :type args: object + """ + + + + self._version = None + self._description = None + self._container_settings = None + self._command = None + self._args = None + self.discriminator = None + + self.version = version + if description is not None: + self.description = description + self.container_settings = container_settings + if command is not None: + self.command = command + if args is not None: + self.args = args + + @property + def version(self): + """Gets the version of this CreateEdgeApplicationVersionDTO. + + **参数说明**:应用版本。 + + :return: The version of this CreateEdgeApplicationVersionDTO. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateEdgeApplicationVersionDTO. + + **参数说明**:应用版本。 + + :param version: The version of this CreateEdgeApplicationVersionDTO. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this CreateEdgeApplicationVersionDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateEdgeApplicationVersionDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateEdgeApplicationVersionDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateEdgeApplicationVersionDTO. + :type description: str + """ + self._description = description + + @property + def container_settings(self): + """Gets the container_settings of this CreateEdgeApplicationVersionDTO. + + :return: The container_settings of this CreateEdgeApplicationVersionDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + return self._container_settings + + @container_settings.setter + def container_settings(self, container_settings): + """Sets the container_settings of this CreateEdgeApplicationVersionDTO. + + :param container_settings: The container_settings of this CreateEdgeApplicationVersionDTO. + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + self._container_settings = container_settings + + @property + def command(self): + """Gets the command of this CreateEdgeApplicationVersionDTO. + + **参数说明**:启动命令。 + + :return: The command of this CreateEdgeApplicationVersionDTO. + :rtype: object + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this CreateEdgeApplicationVersionDTO. + + **参数说明**:启动命令。 + + :param command: The command of this CreateEdgeApplicationVersionDTO. + :type command: object + """ + self._command = command + + @property + def args(self): + """Gets the args of this CreateEdgeApplicationVersionDTO. + + **参数说明**:启动参数。 + + :return: The args of this CreateEdgeApplicationVersionDTO. + :rtype: object + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this CreateEdgeApplicationVersionDTO. + + **参数说明**:启动参数。 + + :param args: The args of this CreateEdgeApplicationVersionDTO. + :type args: object + """ + self._args = args + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeApplicationVersionDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_request.py new file mode 100755 index 0000000000..fa7f699936 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeApplicationVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'body': 'CreateEdgeApplicationVersionDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, edge_app_id=None, body=None): + """CreateEdgeApplicationVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param body: Body of the CreateEdgeApplicationVersionRequest + :type body: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionDTO` + """ + + + + self._instance_id = None + self._edge_app_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this CreateEdgeApplicationVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this CreateEdgeApplicationVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this CreateEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this CreateEdgeApplicationVersionRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this CreateEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this CreateEdgeApplicationVersionRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def body(self): + """Gets the body of this CreateEdgeApplicationVersionRequest. + + :return: The body of this CreateEdgeApplicationVersionRequest. + :rtype: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateEdgeApplicationVersionRequest. + + :param body: The body of this CreateEdgeApplicationVersionRequest. + :type body: :class:`huaweicloudsdkdris.v1.CreateEdgeApplicationVersionDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeApplicationVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_response.py new file mode 100755 index 0000000000..473bcf1f35 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_edge_application_version_response.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEdgeApplicationVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'version': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'state': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'container_settings': 'ContainerSettingsDTO', + 'publish_time': 'str', + 'off_shelf_time': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'state': 'state', + 'command': 'command', + 'args': 'args', + 'container_settings': 'container_settings', + 'publish_time': 'publish_time', + 'off_shelf_time': 'off_shelf_time' + } + + def __init__(self, edge_app_id=None, version=None, description=None, created_time=None, last_modified_time=None, state=None, command=None, args=None, container_settings=None, publish_time=None, off_shelf_time=None): + """CreateEdgeApplicationVersionResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:最后一次修改时间。 + :type last_modified_time: str + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + :param command: **参数说明**:启动命令。 + :type command: list[str] + :param args: **参数说明**:启动参数。 + :type args: list[str] + :param container_settings: + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + :param publish_time: **参数说明**:发布时间。 + :type publish_time: str + :param off_shelf_time: **参数说明**:下线时间。 + :type off_shelf_time: str + """ + + super(CreateEdgeApplicationVersionResponse, self).__init__() + + self._edge_app_id = None + self._version = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._state = None + self._command = None + self._args = None + self._container_settings = None + self._publish_time = None + self._off_shelf_time = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if state is not None: + self.state = state + if command is not None: + self.command = command + if args is not None: + self.args = args + if container_settings is not None: + self.container_settings = container_settings + if publish_time is not None: + self.publish_time = publish_time + if off_shelf_time is not None: + self.off_shelf_time = off_shelf_time + + @property + def edge_app_id(self): + """Gets the edge_app_id of this CreateEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this CreateEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this CreateEdgeApplicationVersionResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :return: The version of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :param version: The version of this CreateEdgeApplicationVersionResponse. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateEdgeApplicationVersionResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this CreateEdgeApplicationVersionResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :return: The last_modified_time of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :param last_modified_time: The last_modified_time of this CreateEdgeApplicationVersionResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def state(self): + """Gets the state of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this CreateEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this CreateEdgeApplicationVersionResponse. + :type state: str + """ + self._state = state + + @property + def command(self): + """Gets the command of this CreateEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :return: The command of this CreateEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this CreateEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :param command: The command of this CreateEdgeApplicationVersionResponse. + :type command: list[str] + """ + self._command = command + + @property + def args(self): + """Gets the args of this CreateEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :return: The args of this CreateEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this CreateEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :param args: The args of this CreateEdgeApplicationVersionResponse. + :type args: list[str] + """ + self._args = args + + @property + def container_settings(self): + """Gets the container_settings of this CreateEdgeApplicationVersionResponse. + + :return: The container_settings of this CreateEdgeApplicationVersionResponse. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + return self._container_settings + + @container_settings.setter + def container_settings(self, container_settings): + """Sets the container_settings of this CreateEdgeApplicationVersionResponse. + + :param container_settings: The container_settings of this CreateEdgeApplicationVersionResponse. + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + self._container_settings = container_settings + + @property + def publish_time(self): + """Gets the publish_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :return: The publish_time of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._publish_time + + @publish_time.setter + def publish_time(self, publish_time): + """Sets the publish_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :param publish_time: The publish_time of this CreateEdgeApplicationVersionResponse. + :type publish_time: str + """ + self._publish_time = publish_time + + @property + def off_shelf_time(self): + """Gets the off_shelf_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :return: The off_shelf_time of this CreateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._off_shelf_time + + @off_shelf_time.setter + def off_shelf_time(self, off_shelf_time): + """Sets the off_shelf_time of this CreateEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :param off_shelf_time: The off_shelf_time of this CreateEdgeApplicationVersionResponse. + :type off_shelf_time: str + """ + self._off_shelf_time = off_shelf_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEdgeApplicationVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_request.py new file mode 100755 index 0000000000..e384e836d6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRsuModelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddRsuModel' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateRsuModelRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateRsuModelRequest + :type body: :class:`huaweicloudsdkdris.v1.AddRsuModel` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateRsuModelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateRsuModelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateRsuModelRequest. + + :return: The body of this CreateRsuModelRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddRsuModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateRsuModelRequest. + + :param body: The body of this CreateRsuModelRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddRsuModel` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRsuModelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_response.py new file mode 100755 index 0000000000..f39388d8e2 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_model_response.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRsuModelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_model_id': 'str', + 'name': 'str', + 'manufacturer_name': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime' + } + + attribute_map = { + 'rsu_model_id': 'rsu_model_id', + 'name': 'name', + 'manufacturer_name': 'manufacturer_name', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time' + } + + def __init__(self, rsu_model_id=None, name=None, manufacturer_name=None, description=None, last_modified_time=None, created_time=None): + """CreateRsuModelResponse + + The model defined in huaweicloud sdk + + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + :param name: **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type name: str + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + :param last_modified_time: **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type last_modified_time: datetime + :param created_time: **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type created_time: datetime + """ + + super(CreateRsuModelResponse, self).__init__() + + self._rsu_model_id = None + self._name = None + self._manufacturer_name = None + self._description = None + self._last_modified_time = None + self._created_time = None + self.discriminator = None + + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if name is not None: + self.name = name + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this CreateRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this CreateRsuModelResponse. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this CreateRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this CreateRsuModelResponse. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def name(self): + """Gets the name of this CreateRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The name of this CreateRsuModelResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param name: The name of this CreateRsuModelResponse. + :type name: str + """ + self._name = name + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this CreateRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this CreateRsuModelResponse. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this CreateRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this CreateRsuModelResponse. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this CreateRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this CreateRsuModelResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this CreateRsuModelResponse. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The last_modified_time of this CreateRsuModelResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param last_modified_time: The last_modified_time of this CreateRsuModelResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this CreateRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The created_time of this CreateRsuModelResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param created_time: The created_time of this CreateRsuModelResponse. + :type created_time: datetime + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRsuModelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_request.py new file mode 100755 index 0000000000..11180606bc --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRsuRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddRsuDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateRsuRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateRsuRequest + :type body: :class:`huaweicloudsdkdris.v1.AddRsuDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateRsuRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateRsuRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateRsuRequest. + + :return: The body of this CreateRsuRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddRsuDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateRsuRequest. + + :param body: The body of this CreateRsuRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddRsuDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRsuRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_response.py new file mode 100755 index 0000000000..e1746269c3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_rsu_response.py @@ -0,0 +1,520 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRsuResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'ip': 'str', + 'position_description': 'str', + 'location': 'RsuLocation', + 'status': 'str', + 'rsu_model_id': 'str', + 'intersection_id': 'str', + 'related_edge_num': 'int', + 'software_version': 'str' + } + + attribute_map = { + 'rsu_id': 'rsu_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'ip': 'ip', + 'position_description': 'position_description', + 'location': 'location', + 'status': 'status', + 'rsu_model_id': 'rsu_model_id', + 'intersection_id': 'intersection_id', + 'related_edge_num': 'related_edge_num', + 'software_version': 'software_version' + } + + def __init__(self, rsu_id=None, name=None, description=None, esn=None, last_modified_time=None, created_time=None, last_online_time=None, ip=None, position_description=None, location=None, status=None, rsu_model_id=None, intersection_id=None, related_edge_num=None, software_version=None): + """CreateRsuResponse + + The model defined in huaweicloud sdk + + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + :param name: **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + :type esn: str + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param ip: **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + :type ip: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + :param status: **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + :type status: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + :type rsu_model_id: str + :param intersection_id: **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + :type intersection_id: str + :param related_edge_num: **参数说明**:RSU可关联的Edge的数量。 + :type related_edge_num: int + :param software_version: **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + :type software_version: str + """ + + super(CreateRsuResponse, self).__init__() + + self._rsu_id = None + self._name = None + self._description = None + self._esn = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._ip = None + self._position_description = None + self._location = None + self._status = None + self._rsu_model_id = None + self._intersection_id = None + self._related_edge_num = None + self._software_version = None + self.discriminator = None + + if rsu_id is not None: + self.rsu_id = rsu_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if ip is not None: + self.ip = ip + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if status is not None: + self.status = status + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if intersection_id is not None: + self.intersection_id = intersection_id + if related_edge_num is not None: + self.related_edge_num = related_edge_num + if software_version is not None: + self.software_version = software_version + + @property + def rsu_id(self): + """Gets the rsu_id of this CreateRsuResponse. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this CreateRsuResponse. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this CreateRsuResponse. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this CreateRsuResponse. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + @property + def name(self): + """Gets the name of this CreateRsuResponse. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this CreateRsuResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateRsuResponse. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this CreateRsuResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateRsuResponse. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateRsuResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateRsuResponse. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateRsuResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this CreateRsuResponse. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :return: The esn of this CreateRsuResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this CreateRsuResponse. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :param esn: The esn of this CreateRsuResponse. + :type esn: str + """ + self._esn = esn + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateRsuResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this CreateRsuResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateRsuResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this CreateRsuResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this CreateRsuResponse. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this CreateRsuResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateRsuResponse. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this CreateRsuResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this CreateRsuResponse. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this CreateRsuResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this CreateRsuResponse. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this CreateRsuResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def ip(self): + """Gets the ip of this CreateRsuResponse. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :return: The ip of this CreateRsuResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this CreateRsuResponse. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :param ip: The ip of this CreateRsuResponse. + :type ip: str + """ + self._ip = ip + + @property + def position_description(self): + """Gets the position_description of this CreateRsuResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this CreateRsuResponse. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this CreateRsuResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this CreateRsuResponse. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this CreateRsuResponse. + + :return: The location of this CreateRsuResponse. + :rtype: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this CreateRsuResponse. + + :param location: The location of this CreateRsuResponse. + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + self._location = location + + @property + def status(self): + """Gets the status of this CreateRsuResponse. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :return: The status of this CreateRsuResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateRsuResponse. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :param status: The status of this CreateRsuResponse. + :type status: str + """ + self._status = status + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this CreateRsuResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :return: The rsu_model_id of this CreateRsuResponse. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this CreateRsuResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :param rsu_model_id: The rsu_model_id of this CreateRsuResponse. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def intersection_id(self): + """Gets the intersection_id of this CreateRsuResponse. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :return: The intersection_id of this CreateRsuResponse. + :rtype: str + """ + return self._intersection_id + + @intersection_id.setter + def intersection_id(self, intersection_id): + """Sets the intersection_id of this CreateRsuResponse. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :param intersection_id: The intersection_id of this CreateRsuResponse. + :type intersection_id: str + """ + self._intersection_id = intersection_id + + @property + def related_edge_num(self): + """Gets the related_edge_num of this CreateRsuResponse. + + **参数说明**:RSU可关联的Edge的数量。 + + :return: The related_edge_num of this CreateRsuResponse. + :rtype: int + """ + return self._related_edge_num + + @related_edge_num.setter + def related_edge_num(self, related_edge_num): + """Sets the related_edge_num of this CreateRsuResponse. + + **参数说明**:RSU可关联的Edge的数量。 + + :param related_edge_num: The related_edge_num of this CreateRsuResponse. + :type related_edge_num: int + """ + self._related_edge_num = related_edge_num + + @property + def software_version(self): + """Gets the software_version of this CreateRsuResponse. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :return: The software_version of this CreateRsuResponse. + :rtype: str + """ + return self._software_version + + @software_version.setter + def software_version(self, software_version): + """Sets the software_version of this CreateRsuResponse. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :param software_version: The software_version of this CreateRsuResponse. + :type software_version: str + """ + self._software_version = software_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRsuResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_request.py new file mode 100755 index 0000000000..ab4d3dcd2b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTrafficControllerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddTrafficControllerDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateTrafficControllerRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateTrafficControllerRequest + :type body: :class:`huaweicloudsdkdris.v1.AddTrafficControllerDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateTrafficControllerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateTrafficControllerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateTrafficControllerRequest. + + :return: The body of this CreateTrafficControllerRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddTrafficControllerDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateTrafficControllerRequest. + + :param body: The body of this CreateTrafficControllerRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddTrafficControllerDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTrafficControllerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_response.py new file mode 100755 index 0000000000..553bdf497d --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_controller_response.py @@ -0,0 +1,524 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTrafficControllerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'traffic_controller_id': 'str', + 'esn': 'str', + 'name': 'str', + 'description': 'str', + 'lat': 'float', + 'lon': 'float', + 'ele': 'float', + 'pos_description': 'str', + 'installation_mode': 'str', + 'road_name': 'str', + 'link_id': 'str', + 'status': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime' + } + + attribute_map = { + 'traffic_controller_id': 'traffic_controller_id', + 'esn': 'esn', + 'name': 'name', + 'description': 'description', + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele', + 'pos_description': 'pos_description', + 'installation_mode': 'installation_mode', + 'road_name': 'road_name', + 'link_id': 'link_id', + 'status': 'status', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time' + } + + def __init__(self, traffic_controller_id=None, esn=None, name=None, description=None, lat=None, lon=None, ele=None, pos_description=None, installation_mode=None, road_name=None, link_id=None, status=None, last_modified_time=None, created_time=None, last_online_time=None): + """CreateTrafficControllerResponse + + The model defined in huaweicloud sdk + + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 + :type traffic_controller_id: str + :param esn: \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param name: **参数说明**:名称。 + :type name: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + :param pos_description: **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + :type pos_description: str + :param installation_mode: **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + :type installation_mode: str + :param road_name: **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + :type road_name: str + :param link_id: **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + :type link_id: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + """ + + super(CreateTrafficControllerResponse, self).__init__() + + self._traffic_controller_id = None + self._esn = None + self._name = None + self._description = None + self._lat = None + self._lon = None + self._ele = None + self._pos_description = None + self._installation_mode = None + self._road_name = None + self._link_id = None + self._status = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self.discriminator = None + + if traffic_controller_id is not None: + self.traffic_controller_id = traffic_controller_id + if esn is not None: + self.esn = esn + if name is not None: + self.name = name + if description is not None: + self.description = description + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if ele is not None: + self.ele = ele + if pos_description is not None: + self.pos_description = pos_description + if installation_mode is not None: + self.installation_mode = installation_mode + if road_name is not None: + self.road_name = road_name + if link_id is not None: + self.link_id = link_id + if status is not None: + self.status = status + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this CreateTrafficControllerResponse. + + **参数说明**:信号机设备ID,全局唯一。 + + :return: The traffic_controller_id of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this CreateTrafficControllerResponse. + + **参数说明**:信号机设备ID,全局唯一。 + + :param traffic_controller_id: The traffic_controller_id of this CreateTrafficControllerResponse. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def esn(self): + """Gets the esn of this CreateTrafficControllerResponse. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this CreateTrafficControllerResponse. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this CreateTrafficControllerResponse. + :type esn: str + """ + self._esn = esn + + @property + def name(self): + """Gets the name of this CreateTrafficControllerResponse. + + **参数说明**:名称。 + + :return: The name of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateTrafficControllerResponse. + + **参数说明**:名称。 + + :param name: The name of this CreateTrafficControllerResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateTrafficControllerResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateTrafficControllerResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this CreateTrafficControllerResponse. + :type description: str + """ + self._description = description + + @property + def lat(self): + """Gets the lat of this CreateTrafficControllerResponse. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this CreateTrafficControllerResponse. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this CreateTrafficControllerResponse. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this CreateTrafficControllerResponse. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this CreateTrafficControllerResponse. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this CreateTrafficControllerResponse. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this CreateTrafficControllerResponse. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this CreateTrafficControllerResponse. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this CreateTrafficControllerResponse. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this CreateTrafficControllerResponse. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this CreateTrafficControllerResponse. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this CreateTrafficControllerResponse. + :type ele: float + """ + self._ele = ele + + @property + def pos_description(self): + """Gets the pos_description of this CreateTrafficControllerResponse. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :return: The pos_description of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._pos_description + + @pos_description.setter + def pos_description(self, pos_description): + """Sets the pos_description of this CreateTrafficControllerResponse. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :param pos_description: The pos_description of this CreateTrafficControllerResponse. + :type pos_description: str + """ + self._pos_description = pos_description + + @property + def installation_mode(self): + """Gets the installation_mode of this CreateTrafficControllerResponse. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :return: The installation_mode of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._installation_mode + + @installation_mode.setter + def installation_mode(self, installation_mode): + """Sets the installation_mode of this CreateTrafficControllerResponse. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :param installation_mode: The installation_mode of this CreateTrafficControllerResponse. + :type installation_mode: str + """ + self._installation_mode = installation_mode + + @property + def road_name(self): + """Gets the road_name of this CreateTrafficControllerResponse. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The road_name of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._road_name + + @road_name.setter + def road_name(self, road_name): + """Sets the road_name of this CreateTrafficControllerResponse. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param road_name: The road_name of this CreateTrafficControllerResponse. + :type road_name: str + """ + self._road_name = road_name + + @property + def link_id(self): + """Gets the link_id of this CreateTrafficControllerResponse. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :return: The link_id of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this CreateTrafficControllerResponse. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :param link_id: The link_id of this CreateTrafficControllerResponse. + :type link_id: str + """ + self._link_id = link_id + + @property + def status(self): + """Gets the status of this CreateTrafficControllerResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this CreateTrafficControllerResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateTrafficControllerResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this CreateTrafficControllerResponse. + :type status: str + """ + self._status = status + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateTrafficControllerResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this CreateTrafficControllerResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateTrafficControllerResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this CreateTrafficControllerResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this CreateTrafficControllerResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this CreateTrafficControllerResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateTrafficControllerResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this CreateTrafficControllerResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this CreateTrafficControllerResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this CreateTrafficControllerResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this CreateTrafficControllerResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this CreateTrafficControllerResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTrafficControllerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_request.py new file mode 100755 index 0000000000..08311322e8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTrafficEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddTrafficEventDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateTrafficEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateTrafficEventRequest + :type body: :class:`huaweicloudsdkdris.v1.AddTrafficEventDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateTrafficEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateTrafficEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateTrafficEventRequest. + + :return: The body of this CreateTrafficEventRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddTrafficEventDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateTrafficEventRequest. + + :param body: The body of this CreateTrafficEventRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddTrafficEventDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTrafficEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_response.py new file mode 100755 index 0000000000..fc793fe1cb --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_traffic_event_response.py @@ -0,0 +1,636 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTrafficEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'event_id': 'str', + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'note': 'str', + 'event_confidence': 'int', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'status': 'status', + 'event_id': 'event_id', + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, status=None, event_id=None, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None, created_time=None, last_modified_time=None): + """CreateTrafficEventResponse + + The model defined in huaweicloud sdk + + :param status: **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + :type status: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: datetime + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: datetime + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + :param created_time: '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(CreateTrafficEventResponse, self).__init__() + + self._status = None + self._event_id = None + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if status is not None: + self.status = status + if event_id is not None: + self.event_id = event_id + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if area_code is not None: + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + if reference_paths is not None: + self.reference_paths = reference_paths + if event_position_name is not None: + self.event_position_name = event_position_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def status(self): + """Gets the status of this CreateTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :return: The status of this CreateTrafficEventResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :param status: The status of this CreateTrafficEventResponse. + :type status: str + """ + self._status = status + + @property + def event_id(self): + """Gets the event_id of this CreateTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this CreateTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this CreateTrafficEventResponse. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_source_type(self): + """Gets the event_source_type of this CreateTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this CreateTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this CreateTrafficEventResponse. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this CreateTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this CreateTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this CreateTrafficEventResponse. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this CreateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this CreateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this CreateTrafficEventResponse. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this CreateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this CreateTrafficEventResponse. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this CreateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this CreateTrafficEventResponse. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this CreateTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this CreateTrafficEventResponse. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this CreateTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this CreateTrafficEventResponse. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this CreateTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this CreateTrafficEventResponse. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this CreateTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this CreateTrafficEventResponse. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this CreateTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this CreateTrafficEventResponse. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this CreateTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this CreateTrafficEventResponse. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this CreateTrafficEventResponse. + + :return: The event_position of this CreateTrafficEventResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this CreateTrafficEventResponse. + + :param event_position: The event_position of this CreateTrafficEventResponse. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this CreateTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this CreateTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this CreateTrafficEventResponse. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this CreateTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this CreateTrafficEventResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this CreateTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this CreateTrafficEventResponse. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this CreateTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this CreateTrafficEventResponse. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this CreateTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this CreateTrafficEventResponse. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this CreateTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this CreateTrafficEventResponse. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this CreateTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this CreateTrafficEventResponse. + :type start_time: datetime + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this CreateTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this CreateTrafficEventResponse. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this CreateTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this CreateTrafficEventResponse. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this CreateTrafficEventResponse. + + **参数说明**:备注。 + + :return: The note of this CreateTrafficEventResponse. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this CreateTrafficEventResponse. + + **参数说明**:备注。 + + :param note: The note of this CreateTrafficEventResponse. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this CreateTrafficEventResponse. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this CreateTrafficEventResponse. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this CreateTrafficEventResponse. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this CreateTrafficEventResponse. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def created_time(self): + """Gets the created_time of this CreateTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this CreateTrafficEventResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this CreateTrafficEventResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this CreateTrafficEventResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this CreateTrafficEventResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTrafficEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_request.py new file mode 100755 index 0000000000..a02f317360 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateV2xEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'instance_id': 'str', + 'body': 'AddV2XEdgeAppDTO' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, v2x_edge_id=None, instance_id=None, body=None): + """CreateV2xEdgeAppRequest + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param body: Body of the CreateV2xEdgeAppRequest + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeAppDTO` + """ + + + + self._v2x_edge_id = None + self._instance_id = None + self._body = None + self.discriminator = None + + self.v2x_edge_id = v2x_edge_id + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this CreateV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this CreateV2xEdgeAppRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this CreateV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this CreateV2xEdgeAppRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this CreateV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this CreateV2xEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this CreateV2xEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateV2xEdgeAppRequest. + + :return: The body of this CreateV2xEdgeAppRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddV2XEdgeAppDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateV2xEdgeAppRequest. + + :param body: The body of this CreateV2xEdgeAppRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeAppDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateV2xEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_response.py new file mode 100755 index 0000000000..3d54cd41a6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_app_response.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateV2xEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'edge_app_id': 'str', + 'app_version': 'str', + 'status': 'str' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'edge_app_id': 'edge_app_id', + 'app_version': 'app_version', + 'status': 'status' + } + + def __init__(self, v2x_edge_id=None, edge_app_id=None, app_version=None, status=None): + """CreateV2xEdgeAppResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param app_version: **参数说明**:应用版本,比如1.0.0。 + :type app_version: str + :param status: **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + :type status: str + """ + + super(CreateV2xEdgeAppResponse, self).__init__() + + self._v2x_edge_id = None + self._edge_app_id = None + self._app_version = None + self._status = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if app_version is not None: + self.app_version = app_version + if status is not None: + self.status = status + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this CreateV2xEdgeAppResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this CreateV2xEdgeAppResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this CreateV2xEdgeAppResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this CreateV2xEdgeAppResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this CreateV2xEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this CreateV2xEdgeAppResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this CreateV2xEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this CreateV2xEdgeAppResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def app_version(self): + """Gets the app_version of this CreateV2xEdgeAppResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :return: The app_version of this CreateV2xEdgeAppResponse. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this CreateV2xEdgeAppResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :param app_version: The app_version of this CreateV2xEdgeAppResponse. + :type app_version: str + """ + self._app_version = app_version + + @property + def status(self): + """Gets the status of this CreateV2xEdgeAppResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :return: The status of this CreateV2xEdgeAppResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateV2xEdgeAppResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :param status: The status of this CreateV2xEdgeAppResponse. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateV2xEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_request.py new file mode 100755 index 0000000000..ef1fb265ca --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateV2xEdgeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddV2XEdgeDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateV2xEdgeRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateV2xEdgeRequest + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateV2xEdgeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateV2xEdgeRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateV2xEdgeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateV2xEdgeRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateV2xEdgeRequest. + + :return: The body of this CreateV2xEdgeRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateV2xEdgeRequest. + + :param body: The body of this CreateV2xEdgeRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateV2xEdgeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_response.py new file mode 100755 index 0000000000..6e28348ab8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_v2x_edge_response.py @@ -0,0 +1,603 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateV2xEdgeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'port': 'int', + 'hardware_type': 'str', + 'position_description': 'str', + 'location': 'Location', + 'camera_ids': 'list[str]', + 'radar_ids': 'list[str]', + 'local_rsus': 'list[str]', + 'edge_general_config': 'EdgeGeneralConfigInResponse', + 'edge_advance_config': 'object', + 'status': 'str', + 'node_id': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'port': 'port', + 'hardware_type': 'hardware_type', + 'position_description': 'position_description', + 'location': 'location', + 'camera_ids': 'camera_ids', + 'radar_ids': 'radar_ids', + 'local_rsus': 'local_rsus', + 'edge_general_config': 'edge_general_config', + 'edge_advance_config': 'edge_advance_config', + 'status': 'status', + 'node_id': 'node_id', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, v2x_edge_id=None, name=None, description=None, esn=None, ip=None, port=None, hardware_type=None, position_description=None, location=None, camera_ids=None, radar_ids=None, local_rsus=None, edge_general_config=None, edge_advance_config=None, status=None, node_id=None, created_time=None, last_modified_time=None): + """CreateV2xEdgeResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge + :type v2x_edge_id: str + :param name: **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param ip: **参数说明**:网络IP,例如127.0.0.1。 + :type ip: str + :param port: ITS800,ATLAS 端口号 + :type port: int + :param hardware_type: **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + :type hardware_type: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param camera_ids: **参数说明**:摄像头ID列表。 + :type camera_ids: list[str] + :param radar_ids: **参数说明**:雷达ID列表。 + :type radar_ids: list[str] + :param local_rsus: **参数说明**:Edge关联的本地RSU列表。 + :type local_rsus: list[str] + :param edge_general_config: + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + :param edge_advance_config: Edge高级配置,Json格式 + :type edge_advance_config: object + :param status: \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + :type status: str + :param node_id: 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + :type node_id: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(CreateV2xEdgeResponse, self).__init__() + + self._v2x_edge_id = None + self._name = None + self._description = None + self._esn = None + self._ip = None + self._port = None + self._hardware_type = None + self._position_description = None + self._location = None + self._camera_ids = None + self._radar_ids = None + self._local_rsus = None + self._edge_general_config = None + self._edge_advance_config = None + self._status = None + self._node_id = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if hardware_type is not None: + self.hardware_type = hardware_type + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if camera_ids is not None: + self.camera_ids = camera_ids + if radar_ids is not None: + self.radar_ids = radar_ids + if local_rsus is not None: + self.local_rsus = local_rsus + if edge_general_config is not None: + self.edge_general_config = edge_general_config + if edge_advance_config is not None: + self.edge_advance_config = edge_advance_config + if status is not None: + self.status = status + if node_id is not None: + self.node_id = node_id + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this CreateV2xEdgeResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :return: The v2x_edge_id of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this CreateV2xEdgeResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :param v2x_edge_id: The v2x_edge_id of this CreateV2xEdgeResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this CreateV2xEdgeResponse. + + **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateV2xEdgeResponse. + + **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this CreateV2xEdgeResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateV2xEdgeResponse. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateV2xEdgeResponse. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this CreateV2xEdgeResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this CreateV2xEdgeResponse. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this CreateV2xEdgeResponse. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this CreateV2xEdgeResponse. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this CreateV2xEdgeResponse. + + **参数说明**:网络IP,例如127.0.0.1。 + + :return: The ip of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this CreateV2xEdgeResponse. + + **参数说明**:网络IP,例如127.0.0.1。 + + :param ip: The ip of this CreateV2xEdgeResponse. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this CreateV2xEdgeResponse. + + ITS800,ATLAS 端口号 + + :return: The port of this CreateV2xEdgeResponse. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this CreateV2xEdgeResponse. + + ITS800,ATLAS 端口号 + + :param port: The port of this CreateV2xEdgeResponse. + :type port: int + """ + self._port = port + + @property + def hardware_type(self): + """Gets the hardware_type of this CreateV2xEdgeResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :return: The hardware_type of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._hardware_type + + @hardware_type.setter + def hardware_type(self, hardware_type): + """Sets the hardware_type of this CreateV2xEdgeResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :param hardware_type: The hardware_type of this CreateV2xEdgeResponse. + :type hardware_type: str + """ + self._hardware_type = hardware_type + + @property + def position_description(self): + """Gets the position_description of this CreateV2xEdgeResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this CreateV2xEdgeResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this CreateV2xEdgeResponse. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this CreateV2xEdgeResponse. + + :return: The location of this CreateV2xEdgeResponse. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this CreateV2xEdgeResponse. + + :param location: The location of this CreateV2xEdgeResponse. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def camera_ids(self): + """Gets the camera_ids of this CreateV2xEdgeResponse. + + **参数说明**:摄像头ID列表。 + + :return: The camera_ids of this CreateV2xEdgeResponse. + :rtype: list[str] + """ + return self._camera_ids + + @camera_ids.setter + def camera_ids(self, camera_ids): + """Sets the camera_ids of this CreateV2xEdgeResponse. + + **参数说明**:摄像头ID列表。 + + :param camera_ids: The camera_ids of this CreateV2xEdgeResponse. + :type camera_ids: list[str] + """ + self._camera_ids = camera_ids + + @property + def radar_ids(self): + """Gets the radar_ids of this CreateV2xEdgeResponse. + + **参数说明**:雷达ID列表。 + + :return: The radar_ids of this CreateV2xEdgeResponse. + :rtype: list[str] + """ + return self._radar_ids + + @radar_ids.setter + def radar_ids(self, radar_ids): + """Sets the radar_ids of this CreateV2xEdgeResponse. + + **参数说明**:雷达ID列表。 + + :param radar_ids: The radar_ids of this CreateV2xEdgeResponse. + :type radar_ids: list[str] + """ + self._radar_ids = radar_ids + + @property + def local_rsus(self): + """Gets the local_rsus of this CreateV2xEdgeResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :return: The local_rsus of this CreateV2xEdgeResponse. + :rtype: list[str] + """ + return self._local_rsus + + @local_rsus.setter + def local_rsus(self, local_rsus): + """Sets the local_rsus of this CreateV2xEdgeResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :param local_rsus: The local_rsus of this CreateV2xEdgeResponse. + :type local_rsus: list[str] + """ + self._local_rsus = local_rsus + + @property + def edge_general_config(self): + """Gets the edge_general_config of this CreateV2xEdgeResponse. + + :return: The edge_general_config of this CreateV2xEdgeResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + return self._edge_general_config + + @edge_general_config.setter + def edge_general_config(self, edge_general_config): + """Sets the edge_general_config of this CreateV2xEdgeResponse. + + :param edge_general_config: The edge_general_config of this CreateV2xEdgeResponse. + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + self._edge_general_config = edge_general_config + + @property + def edge_advance_config(self): + """Gets the edge_advance_config of this CreateV2xEdgeResponse. + + Edge高级配置,Json格式 + + :return: The edge_advance_config of this CreateV2xEdgeResponse. + :rtype: object + """ + return self._edge_advance_config + + @edge_advance_config.setter + def edge_advance_config(self, edge_advance_config): + """Sets the edge_advance_config of this CreateV2xEdgeResponse. + + Edge高级配置,Json格式 + + :param edge_advance_config: The edge_advance_config of this CreateV2xEdgeResponse. + :type edge_advance_config: object + """ + self._edge_advance_config = edge_advance_config + + @property + def status(self): + """Gets the status of this CreateV2xEdgeResponse. + + \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :return: The status of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateV2xEdgeResponse. + + \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :param status: The status of this CreateV2xEdgeResponse. + :type status: str + """ + self._status = status + + @property + def node_id(self): + """Gets the node_id of this CreateV2xEdgeResponse. + + 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + + :return: The node_id of this CreateV2xEdgeResponse. + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CreateV2xEdgeResponse. + + 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + + :param node_id: The node_id of this CreateV2xEdgeResponse. + :type node_id: str + """ + self._node_id = node_id + + @property + def created_time(self): + """Gets the created_time of this CreateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this CreateV2xEdgeResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this CreateV2xEdgeResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this CreateV2xEdgeResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this CreateV2xEdgeResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateV2xEdgeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_request.py new file mode 100755 index 0000000000..da274499e8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateVehicleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'AddVehicleDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateVehicleRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the CreateVehicleRequest + :type body: :class:`huaweicloudsdkdris.v1.AddVehicleDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this CreateVehicleRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this CreateVehicleRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateVehicleRequest. + + :return: The body of this CreateVehicleRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddVehicleDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateVehicleRequest. + + :param body: The body of this CreateVehicleRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddVehicleDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateVehicleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_response.py new file mode 100755 index 0000000000..873b4012e2 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/create_vehicle_response.py @@ -0,0 +1,582 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateVehicleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vehicle_id': 'str', + 'plate_no': 'str', + 'vin': 'str', + 'obu_id': 'str', + 'imei': 'str', + 'brand': 'str', + 'model': 'str', + 'style': 'str', + 'fuel_type': 'str', + 'color': 'str', + 'plate_color': 'str', + 'access_type': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'status': 'str' + } + + attribute_map = { + 'vehicle_id': 'vehicle_id', + 'plate_no': 'plate_no', + 'vin': 'vin', + 'obu_id': 'obu_id', + 'imei': 'imei', + 'brand': 'brand', + 'model': 'model', + 'style': 'style', + 'fuel_type': 'fuel_type', + 'color': 'color', + 'plate_color': 'plate_color', + 'access_type': 'access_type', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'status': 'status' + } + + def __init__(self, vehicle_id=None, plate_no=None, vin=None, obu_id=None, imei=None, brand=None, model=None, style=None, fuel_type=None, color=None, plate_color=None, access_type=None, description=None, last_modified_time=None, created_time=None, last_online_time=None, status=None): + """CreateVehicleResponse + + The model defined in huaweicloud sdk + + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param plate_no: **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type plate_no: str + :param vin: **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + :type vin: str + :param obu_id: \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type obu_id: str + :param imei: **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + :type imei: str + :param brand: **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type brand: str + :param model: **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + :type model: str + :param style: **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + :type style: str + :param fuel_type: **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + :type fuel_type: str + :param color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + :type color: str + :param plate_color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + :type plate_color: str + :param access_type: **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + :type access_type: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + :type status: str + """ + + super(CreateVehicleResponse, self).__init__() + + self._vehicle_id = None + self._plate_no = None + self._vin = None + self._obu_id = None + self._imei = None + self._brand = None + self._model = None + self._style = None + self._fuel_type = None + self._color = None + self._plate_color = None + self._access_type = None + self._description = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._status = None + self.discriminator = None + + if vehicle_id is not None: + self.vehicle_id = vehicle_id + if plate_no is not None: + self.plate_no = plate_no + if vin is not None: + self.vin = vin + if obu_id is not None: + self.obu_id = obu_id + if imei is not None: + self.imei = imei + if brand is not None: + self.brand = brand + if model is not None: + self.model = model + if style is not None: + self.style = style + if fuel_type is not None: + self.fuel_type = fuel_type + if color is not None: + self.color = color + if plate_color is not None: + self.plate_color = plate_color + if access_type is not None: + self.access_type = access_type + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if status is not None: + self.status = status + + @property + def vehicle_id(self): + """Gets the vehicle_id of this CreateVehicleResponse. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this CreateVehicleResponse. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this CreateVehicleResponse. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this CreateVehicleResponse. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def plate_no(self): + """Gets the plate_no of this CreateVehicleResponse. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The plate_no of this CreateVehicleResponse. + :rtype: str + """ + return self._plate_no + + @plate_no.setter + def plate_no(self, plate_no): + """Sets the plate_no of this CreateVehicleResponse. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param plate_no: The plate_no of this CreateVehicleResponse. + :type plate_no: str + """ + self._plate_no = plate_no + + @property + def vin(self): + """Gets the vin of this CreateVehicleResponse. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :return: The vin of this CreateVehicleResponse. + :rtype: str + """ + return self._vin + + @vin.setter + def vin(self, vin): + """Sets the vin of this CreateVehicleResponse. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :param vin: The vin of this CreateVehicleResponse. + :type vin: str + """ + self._vin = vin + + @property + def obu_id(self): + """Gets the obu_id of this CreateVehicleResponse. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The obu_id of this CreateVehicleResponse. + :rtype: str + """ + return self._obu_id + + @obu_id.setter + def obu_id(self, obu_id): + """Sets the obu_id of this CreateVehicleResponse. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param obu_id: The obu_id of this CreateVehicleResponse. + :type obu_id: str + """ + self._obu_id = obu_id + + @property + def imei(self): + """Gets the imei of this CreateVehicleResponse. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :return: The imei of this CreateVehicleResponse. + :rtype: str + """ + return self._imei + + @imei.setter + def imei(self, imei): + """Sets the imei of this CreateVehicleResponse. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :param imei: The imei of this CreateVehicleResponse. + :type imei: str + """ + self._imei = imei + + @property + def brand(self): + """Gets the brand of this CreateVehicleResponse. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The brand of this CreateVehicleResponse. + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this CreateVehicleResponse. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param brand: The brand of this CreateVehicleResponse. + :type brand: str + """ + self._brand = brand + + @property + def model(self): + """Gets the model of this CreateVehicleResponse. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The model of this CreateVehicleResponse. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this CreateVehicleResponse. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :param model: The model of this CreateVehicleResponse. + :type model: str + """ + self._model = model + + @property + def style(self): + """Gets the style of this CreateVehicleResponse. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :return: The style of this CreateVehicleResponse. + :rtype: str + """ + return self._style + + @style.setter + def style(self, style): + """Sets the style of this CreateVehicleResponse. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :param style: The style of this CreateVehicleResponse. + :type style: str + """ + self._style = style + + @property + def fuel_type(self): + """Gets the fuel_type of this CreateVehicleResponse. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :return: The fuel_type of this CreateVehicleResponse. + :rtype: str + """ + return self._fuel_type + + @fuel_type.setter + def fuel_type(self, fuel_type): + """Sets the fuel_type of this CreateVehicleResponse. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :param fuel_type: The fuel_type of this CreateVehicleResponse. + :type fuel_type: str + """ + self._fuel_type = fuel_type + + @property + def color(self): + """Gets the color of this CreateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :return: The color of this CreateVehicleResponse. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this CreateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :param color: The color of this CreateVehicleResponse. + :type color: str + """ + self._color = color + + @property + def plate_color(self): + """Gets the plate_color of this CreateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :return: The plate_color of this CreateVehicleResponse. + :rtype: str + """ + return self._plate_color + + @plate_color.setter + def plate_color(self, plate_color): + """Sets the plate_color of this CreateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :param plate_color: The plate_color of this CreateVehicleResponse. + :type plate_color: str + """ + self._plate_color = plate_color + + @property + def access_type(self): + """Gets the access_type of this CreateVehicleResponse. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :return: The access_type of this CreateVehicleResponse. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this CreateVehicleResponse. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :param access_type: The access_type of this CreateVehicleResponse. + :type access_type: str + """ + self._access_type = access_type + + @property + def description(self): + """Gets the description of this CreateVehicleResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this CreateVehicleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateVehicleResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this CreateVehicleResponse. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this CreateVehicleResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this CreateVehicleResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this CreateVehicleResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this CreateVehicleResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this CreateVehicleResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this CreateVehicleResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this CreateVehicleResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this CreateVehicleResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this CreateVehicleResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this CreateVehicleResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this CreateVehicleResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this CreateVehicleResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def status(self): + """Gets the status of this CreateVehicleResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :return: The status of this CreateVehicleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateVehicleResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :param status: The status of this CreateVehicleResponse. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateVehicleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_request.py new file mode 100755 index 0000000000..8bfd079152 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDataChannelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, v2x_edge_id=None): + """DeleteDataChannelRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :return: The instance_id of this DeleteDataChannelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :param instance_id: The instance_id of this DeleteDataChannelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this DeleteDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this DeleteDataChannelRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this DeleteDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this DeleteDataChannelRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDataChannelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_response.py new file mode 100755 index 0000000000..9413b35607 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_data_channel_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDataChannelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteDataChannelResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteDataChannelResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteDataChannelResponse. + + :return: The body of this DeleteDataChannelResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDataChannelResponse. + + :param body: The body of this DeleteDataChannelResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDataChannelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_request.py new file mode 100755 index 0000000000..21e2364169 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id' + } + + def __init__(self, instance_id=None, edge_app_id=None): + """DeleteEdgeAppRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + """ + + + + self._instance_id = None + self._edge_app_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this DeleteEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this DeleteEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this DeleteEdgeAppRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this DeleteEdgeAppRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this DeleteEdgeAppRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this DeleteEdgeAppRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_response.py new file mode 100755 index 0000000000..162bc7a181 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_app_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteEdgeAppResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteEdgeAppResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteEdgeAppResponse. + + :return: The body of this DeleteEdgeAppResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteEdgeAppResponse. + + :param body: The body of this DeleteEdgeAppResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_request.py new file mode 100755 index 0000000000..a5029a7ddb --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteEdgeApplicationVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'version': 'version' + } + + def __init__(self, instance_id=None, edge_app_id=None, version=None): + """DeleteEdgeApplicationVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本,应用版本唯一。 + :type version: str + """ + + + + self._instance_id = None + self._edge_app_id = None + self._version = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + self.version = version + + @property + def instance_id(self): + """Gets the instance_id of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this DeleteEdgeApplicationVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this DeleteEdgeApplicationVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this DeleteEdgeApplicationVersionRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this DeleteEdgeApplicationVersionRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用版本唯一。 + + :return: The version of this DeleteEdgeApplicationVersionRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DeleteEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用版本唯一。 + + :param version: The version of this DeleteEdgeApplicationVersionRequest. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteEdgeApplicationVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_response.py new file mode 100755 index 0000000000..da252752c3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_edge_application_version_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteEdgeApplicationVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteEdgeApplicationVersionResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteEdgeApplicationVersionResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteEdgeApplicationVersionResponse. + + :return: The body of this DeleteEdgeApplicationVersionResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteEdgeApplicationVersionResponse. + + :param body: The body of this DeleteEdgeApplicationVersionResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteEdgeApplicationVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_request.py new file mode 100755 index 0000000000..043b8df24c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteForwardingConfigRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'forwarding_type': 'str', + 'forwarding_config_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'forwarding_type': 'forwarding_type', + 'forwarding_config_id': 'forwarding_config_id' + } + + def __init__(self, instance_id=None, forwarding_type=None, forwarding_config_id=None): + """DeleteForwardingConfigRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + :type forwarding_type: str + :param forwarding_config_id: **参数说明**:转发配置的唯一ID。 + :type forwarding_config_id: str + """ + + + + self._instance_id = None + self._forwarding_type = None + self._forwarding_config_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.forwarding_type = forwarding_type + self.forwarding_config_id = forwarding_config_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this DeleteForwardingConfigRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this DeleteForwardingConfigRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def forwarding_type(self): + """Gets the forwarding_type of this DeleteForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :return: The forwarding_type of this DeleteForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this DeleteForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :param forwarding_type: The forwarding_type of this DeleteForwardingConfigRequest. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def forwarding_config_id(self): + """Gets the forwarding_config_id of this DeleteForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :return: The forwarding_config_id of this DeleteForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_config_id + + @forwarding_config_id.setter + def forwarding_config_id(self, forwarding_config_id): + """Sets the forwarding_config_id of this DeleteForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :param forwarding_config_id: The forwarding_config_id of this DeleteForwardingConfigRequest. + :type forwarding_config_id: str + """ + self._forwarding_config_id = forwarding_config_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteForwardingConfigRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_response.py new file mode 100755 index 0000000000..3addaa1a3e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_forwarding_config_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteForwardingConfigResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteForwardingConfigResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteForwardingConfigResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteForwardingConfigResponse. + + :return: The body of this DeleteForwardingConfigResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteForwardingConfigResponse. + + :param body: The body of this DeleteForwardingConfigResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteForwardingConfigResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_request.py new file mode 100755 index 0000000000..42494452ed --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRsuModelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'rsu_model_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'rsu_model_id': 'rsu_model_id' + } + + def __init__(self, instance_id=None, rsu_model_id=None): + """DeleteRsuModelRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + """ + + + + self._instance_id = None + self._rsu_model_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.rsu_model_id = rsu_model_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteRsuModelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteRsuModelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this DeleteRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this DeleteRsuModelRequest. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this DeleteRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this DeleteRsuModelRequest. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteRsuModelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_response.py new file mode 100755 index 0000000000..f58731d8c5 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_model_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRsuModelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteRsuModelResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteRsuModelResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteRsuModelResponse. + + :return: The body of this DeleteRsuModelResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteRsuModelResponse. + + :param body: The body of this DeleteRsuModelResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteRsuModelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_request.py new file mode 100755 index 0000000000..b70a247f8f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRsuRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'rsu_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'rsu_id': 'rsu_id' + } + + def __init__(self, instance_id=None, rsu_id=None): + """DeleteRsuRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + """ + + + + self._instance_id = None + self._rsu_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.rsu_id = rsu_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteRsuRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteRsuRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def rsu_id(self): + """Gets the rsu_id of this DeleteRsuRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this DeleteRsuRequest. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this DeleteRsuRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this DeleteRsuRequest. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteRsuRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_response.py new file mode 100755 index 0000000000..db17ded418 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_rsu_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRsuResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteRsuResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteRsuResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteRsuResponse. + + :return: The body of this DeleteRsuResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteRsuResponse. + + :param body: The body of this DeleteRsuResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteRsuResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_request.py new file mode 100755 index 0000000000..263e6b9522 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTrafficControllerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'traffic_controller_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'traffic_controller_id': 'traffic_controller_id' + } + + def __init__(self, instance_id=None, traffic_controller_id=None): + """DeleteTrafficControllerRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param traffic_controller_id: traffic_controller_id + :type traffic_controller_id: str + """ + + + + self._instance_id = None + self._traffic_controller_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.traffic_controller_id = traffic_controller_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteTrafficControllerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteTrafficControllerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this DeleteTrafficControllerRequest. + + traffic_controller_id + + :return: The traffic_controller_id of this DeleteTrafficControllerRequest. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this DeleteTrafficControllerRequest. + + traffic_controller_id + + :param traffic_controller_id: The traffic_controller_id of this DeleteTrafficControllerRequest. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTrafficControllerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_response.py new file mode 100755 index 0000000000..c73725b80b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_controller_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTrafficControllerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteTrafficControllerResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteTrafficControllerResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteTrafficControllerResponse. + + :return: The body of this DeleteTrafficControllerResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteTrafficControllerResponse. + + :param body: The body of this DeleteTrafficControllerResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTrafficControllerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_request.py new file mode 100755 index 0000000000..7f3ce1b445 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTrafficEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'event_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'event_id': 'event_id' + } + + def __init__(self, instance_id=None, event_id=None): + """DeleteTrafficEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + """ + + + + self._instance_id = None + self._event_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.event_id = event_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteTrafficEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteTrafficEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def event_id(self): + """Gets the event_id of this DeleteTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this DeleteTrafficEventRequest. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this DeleteTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this DeleteTrafficEventRequest. + :type event_id: str + """ + self._event_id = event_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTrafficEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_response.py new file mode 100755 index 0000000000..aa21d46976 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_traffic_event_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTrafficEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteTrafficEventResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteTrafficEventResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteTrafficEventResponse. + + :return: The body of this DeleteTrafficEventResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteTrafficEventResponse. + + :param body: The body of this DeleteTrafficEventResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteTrafficEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_request.py new file mode 100755 index 0000000000..4f8d64f46a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteV2XEdgeAppByEdgeAppIdRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, edge_app_id=None, instance_id=None, v2x_edge_id=None): + """DeleteV2XEdgeAppByEdgeAppIdRequest + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + """ + + + + self._edge_app_id = None + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + self.edge_app_id = edge_app_id + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this DeleteV2XEdgeAppByEdgeAppIdRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteV2XEdgeAppByEdgeAppIdRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_response.py new file mode 100755 index 0000000000..5725987d86 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_app_by_edge_app_id_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteV2XEdgeAppByEdgeAppIdResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteV2XEdgeAppByEdgeAppIdResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteV2XEdgeAppByEdgeAppIdResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteV2XEdgeAppByEdgeAppIdResponse. + + :return: The body of this DeleteV2XEdgeAppByEdgeAppIdResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteV2XEdgeAppByEdgeAppIdResponse. + + :param body: The body of this DeleteV2XEdgeAppByEdgeAppIdResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteV2XEdgeAppByEdgeAppIdResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_request.py new file mode 100755 index 0000000000..0618d1a0c4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteV2XEdgeByV2xEdgeIdRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, v2x_edge_id=None): + """DeleteV2XEdgeByV2xEdgeIdRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this DeleteV2XEdgeByV2xEdgeIdRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteV2XEdgeByV2xEdgeIdRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_response.py new file mode 100755 index 0000000000..792130f0a3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_v2_x_edge_by_v2x_edge_id_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteV2XEdgeByV2xEdgeIdResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteV2XEdgeByV2xEdgeIdResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteV2XEdgeByV2xEdgeIdResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteV2XEdgeByV2xEdgeIdResponse. + + :return: The body of this DeleteV2XEdgeByV2xEdgeIdResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteV2XEdgeByV2xEdgeIdResponse. + + :param body: The body of this DeleteV2XEdgeByV2xEdgeIdResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteV2XEdgeByV2xEdgeIdResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_request.py new file mode 100755 index 0000000000..ae397056c2 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteVehicleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'vehicle_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'vehicle_id': 'vehicle_id' + } + + def __init__(self, instance_id=None, vehicle_id=None): + """DeleteVehicleRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + """ + + + + self._instance_id = None + self._vehicle_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.vehicle_id = vehicle_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this DeleteVehicleRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this DeleteVehicleRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def vehicle_id(self): + """Gets the vehicle_id of this DeleteVehicleRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this DeleteVehicleRequest. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this DeleteVehicleRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this DeleteVehicleRequest. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteVehicleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_response.py new file mode 100755 index 0000000000..7343d05f9e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/delete_vehicle_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteVehicleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteVehicleResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteVehicleResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteVehicleResponse. + + :return: The body of this DeleteVehicleResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteVehicleResponse. + + :param body: The body of this DeleteVehicleResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteVehicleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config.py new file mode 100755 index 0000000000..2b2d0729d3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config.py @@ -0,0 +1,408 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EdgeGeneralConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'avp_enabled': 'bool', + 'rsm_enabled': 'bool', + 'time_compensate': 'bool', + 'rsi_positioning_enabled': 'bool', + 'log_level': 'str', + 'road_detection_length': 'float', + 'ramp_detection_length': 'float', + 'gat1400_username': 'str', + 'gat1400_password': 'str', + 'user_name': 'str', + 'password': 'str' + } + + attribute_map = { + 'avp_enabled': 'avp_enabled', + 'rsm_enabled': 'rsm_enabled', + 'time_compensate': 'time_compensate', + 'rsi_positioning_enabled': 'rsi_positioning_enabled', + 'log_level': 'log_level', + 'road_detection_length': 'road_detection_length', + 'ramp_detection_length': 'ramp_detection_length', + 'gat1400_username': 'gat1400_username', + 'gat1400_password': 'gat1400_password', + 'user_name': 'user_name', + 'password': 'password' + } + + def __init__(self, avp_enabled=None, rsm_enabled=None, time_compensate=None, rsi_positioning_enabled=None, log_level=None, road_detection_length=None, ramp_detection_length=None, gat1400_username=None, gat1400_password=None, user_name=None, password=None): + """EdgeGeneralConfig + + The model defined in huaweicloud sdk + + :param avp_enabled: **参数说明**:AVP场景。 + :type avp_enabled: bool + :param rsm_enabled: **参数说明**:RSM上报:默认不上报。 + :type rsm_enabled: bool + :param time_compensate: **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + :type time_compensate: bool + :param rsi_positioning_enabled: **参数说明**:RSI事件定位功能。 + :type rsi_positioning_enabled: bool + :param log_level: **参数说明**:应用日志级别,可选项:on/off,默认关闭。 + :type log_level: str + :param road_detection_length: **参数说明**:道路检测长度,单位:米。 + :type road_detection_length: float + :param ramp_detection_length: **参数说明**:匝道检测长度,单位:米。 + :type ramp_detection_length: float + :param gat1400_username: **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + :type gat1400_username: str + :param gat1400_password: **参数说明**:1400接口密码。 **取值范围**: 1.密码必须包含如下至少两种字符的组合: -一个小写字母; -一个大写字母; -一个数字; -一个特殊字符:`~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 和空格 2.gat1400密码不能与gat1400用户名相同 + :type gat1400_password: str + :param user_name: **参数说明**:ITS800鉴权用的用户名和密码。 + :type user_name: str + :param password: **参数说明**:密码。 + :type password: str + """ + + + + self._avp_enabled = None + self._rsm_enabled = None + self._time_compensate = None + self._rsi_positioning_enabled = None + self._log_level = None + self._road_detection_length = None + self._ramp_detection_length = None + self._gat1400_username = None + self._gat1400_password = None + self._user_name = None + self._password = None + self.discriminator = None + + if avp_enabled is not None: + self.avp_enabled = avp_enabled + if rsm_enabled is not None: + self.rsm_enabled = rsm_enabled + if time_compensate is not None: + self.time_compensate = time_compensate + if rsi_positioning_enabled is not None: + self.rsi_positioning_enabled = rsi_positioning_enabled + if log_level is not None: + self.log_level = log_level + if road_detection_length is not None: + self.road_detection_length = road_detection_length + if ramp_detection_length is not None: + self.ramp_detection_length = ramp_detection_length + if gat1400_username is not None: + self.gat1400_username = gat1400_username + if gat1400_password is not None: + self.gat1400_password = gat1400_password + if user_name is not None: + self.user_name = user_name + if password is not None: + self.password = password + + @property + def avp_enabled(self): + """Gets the avp_enabled of this EdgeGeneralConfig. + + **参数说明**:AVP场景。 + + :return: The avp_enabled of this EdgeGeneralConfig. + :rtype: bool + """ + return self._avp_enabled + + @avp_enabled.setter + def avp_enabled(self, avp_enabled): + """Sets the avp_enabled of this EdgeGeneralConfig. + + **参数说明**:AVP场景。 + + :param avp_enabled: The avp_enabled of this EdgeGeneralConfig. + :type avp_enabled: bool + """ + self._avp_enabled = avp_enabled + + @property + def rsm_enabled(self): + """Gets the rsm_enabled of this EdgeGeneralConfig. + + **参数说明**:RSM上报:默认不上报。 + + :return: The rsm_enabled of this EdgeGeneralConfig. + :rtype: bool + """ + return self._rsm_enabled + + @rsm_enabled.setter + def rsm_enabled(self, rsm_enabled): + """Sets the rsm_enabled of this EdgeGeneralConfig. + + **参数说明**:RSM上报:默认不上报。 + + :param rsm_enabled: The rsm_enabled of this EdgeGeneralConfig. + :type rsm_enabled: bool + """ + self._rsm_enabled = rsm_enabled + + @property + def time_compensate(self): + """Gets the time_compensate of this EdgeGeneralConfig. + + **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + + :return: The time_compensate of this EdgeGeneralConfig. + :rtype: bool + """ + return self._time_compensate + + @time_compensate.setter + def time_compensate(self, time_compensate): + """Sets the time_compensate of this EdgeGeneralConfig. + + **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + + :param time_compensate: The time_compensate of this EdgeGeneralConfig. + :type time_compensate: bool + """ + self._time_compensate = time_compensate + + @property + def rsi_positioning_enabled(self): + """Gets the rsi_positioning_enabled of this EdgeGeneralConfig. + + **参数说明**:RSI事件定位功能。 + + :return: The rsi_positioning_enabled of this EdgeGeneralConfig. + :rtype: bool + """ + return self._rsi_positioning_enabled + + @rsi_positioning_enabled.setter + def rsi_positioning_enabled(self, rsi_positioning_enabled): + """Sets the rsi_positioning_enabled of this EdgeGeneralConfig. + + **参数说明**:RSI事件定位功能。 + + :param rsi_positioning_enabled: The rsi_positioning_enabled of this EdgeGeneralConfig. + :type rsi_positioning_enabled: bool + """ + self._rsi_positioning_enabled = rsi_positioning_enabled + + @property + def log_level(self): + """Gets the log_level of this EdgeGeneralConfig. + + **参数说明**:应用日志级别,可选项:on/off,默认关闭。 + + :return: The log_level of this EdgeGeneralConfig. + :rtype: str + """ + return self._log_level + + @log_level.setter + def log_level(self, log_level): + """Sets the log_level of this EdgeGeneralConfig. + + **参数说明**:应用日志级别,可选项:on/off,默认关闭。 + + :param log_level: The log_level of this EdgeGeneralConfig. + :type log_level: str + """ + self._log_level = log_level + + @property + def road_detection_length(self): + """Gets the road_detection_length of this EdgeGeneralConfig. + + **参数说明**:道路检测长度,单位:米。 + + :return: The road_detection_length of this EdgeGeneralConfig. + :rtype: float + """ + return self._road_detection_length + + @road_detection_length.setter + def road_detection_length(self, road_detection_length): + """Sets the road_detection_length of this EdgeGeneralConfig. + + **参数说明**:道路检测长度,单位:米。 + + :param road_detection_length: The road_detection_length of this EdgeGeneralConfig. + :type road_detection_length: float + """ + self._road_detection_length = road_detection_length + + @property + def ramp_detection_length(self): + """Gets the ramp_detection_length of this EdgeGeneralConfig. + + **参数说明**:匝道检测长度,单位:米。 + + :return: The ramp_detection_length of this EdgeGeneralConfig. + :rtype: float + """ + return self._ramp_detection_length + + @ramp_detection_length.setter + def ramp_detection_length(self, ramp_detection_length): + """Sets the ramp_detection_length of this EdgeGeneralConfig. + + **参数说明**:匝道检测长度,单位:米。 + + :param ramp_detection_length: The ramp_detection_length of this EdgeGeneralConfig. + :type ramp_detection_length: float + """ + self._ramp_detection_length = ramp_detection_length + + @property + def gat1400_username(self): + """Gets the gat1400_username of this EdgeGeneralConfig. + + **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + + :return: The gat1400_username of this EdgeGeneralConfig. + :rtype: str + """ + return self._gat1400_username + + @gat1400_username.setter + def gat1400_username(self, gat1400_username): + """Sets the gat1400_username of this EdgeGeneralConfig. + + **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + + :param gat1400_username: The gat1400_username of this EdgeGeneralConfig. + :type gat1400_username: str + """ + self._gat1400_username = gat1400_username + + @property + def gat1400_password(self): + """Gets the gat1400_password of this EdgeGeneralConfig. + + **参数说明**:1400接口密码。 **取值范围**: 1.密码必须包含如下至少两种字符的组合: -一个小写字母; -一个大写字母; -一个数字; -一个特殊字符:`~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 和空格 2.gat1400密码不能与gat1400用户名相同 + + :return: The gat1400_password of this EdgeGeneralConfig. + :rtype: str + """ + return self._gat1400_password + + @gat1400_password.setter + def gat1400_password(self, gat1400_password): + """Sets the gat1400_password of this EdgeGeneralConfig. + + **参数说明**:1400接口密码。 **取值范围**: 1.密码必须包含如下至少两种字符的组合: -一个小写字母; -一个大写字母; -一个数字; -一个特殊字符:`~!@#$%^&*()-_=+\\|[{}];:'\",<.>/? 和空格 2.gat1400密码不能与gat1400用户名相同 + + :param gat1400_password: The gat1400_password of this EdgeGeneralConfig. + :type gat1400_password: str + """ + self._gat1400_password = gat1400_password + + @property + def user_name(self): + """Gets the user_name of this EdgeGeneralConfig. + + **参数说明**:ITS800鉴权用的用户名和密码。 + + :return: The user_name of this EdgeGeneralConfig. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this EdgeGeneralConfig. + + **参数说明**:ITS800鉴权用的用户名和密码。 + + :param user_name: The user_name of this EdgeGeneralConfig. + :type user_name: str + """ + self._user_name = user_name + + @property + def password(self): + """Gets the password of this EdgeGeneralConfig. + + **参数说明**:密码。 + + :return: The password of this EdgeGeneralConfig. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this EdgeGeneralConfig. + + **参数说明**:密码。 + + :param password: The password of this EdgeGeneralConfig. + :type password: str + """ + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EdgeGeneralConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config_in_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config_in_response.py new file mode 100755 index 0000000000..c57c8b218e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/edge_general_config_in_response.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EdgeGeneralConfigInResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'avp_enabled': 'bool', + 'rsm_enabled': 'bool', + 'time_compensate': 'bool', + 'rsi_positioning_enabled': 'bool', + 'log_level': 'str', + 'road_detection_length': 'float', + 'ramp_detection_length': 'float', + 'gat1400_username': 'str', + 'user_name': 'str' + } + + attribute_map = { + 'avp_enabled': 'avp_enabled', + 'rsm_enabled': 'rsm_enabled', + 'time_compensate': 'time_compensate', + 'rsi_positioning_enabled': 'rsi_positioning_enabled', + 'log_level': 'log_level', + 'road_detection_length': 'road_detection_length', + 'ramp_detection_length': 'ramp_detection_length', + 'gat1400_username': 'gat1400_username', + 'user_name': 'user_name' + } + + def __init__(self, avp_enabled=None, rsm_enabled=None, time_compensate=None, rsi_positioning_enabled=None, log_level=None, road_detection_length=None, ramp_detection_length=None, gat1400_username=None, user_name=None): + """EdgeGeneralConfigInResponse + + The model defined in huaweicloud sdk + + :param avp_enabled: **参数说明**:AVP场景。 + :type avp_enabled: bool + :param rsm_enabled: **参数说明**:RSM上报:默认不上报。 + :type rsm_enabled: bool + :param time_compensate: **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + :type time_compensate: bool + :param rsi_positioning_enabled: **参数说明**:RSI事件定位功能。 + :type rsi_positioning_enabled: bool + :param log_level: **参数说明**:应用日志级别 **取值范围**:on/off,默认关闭。 + :type log_level: str + :param road_detection_length: **参数说明**:道路检测长度,单位:米。 + :type road_detection_length: float + :param ramp_detection_length: **参数说明**:匝道检测长度,单位:米。 + :type ramp_detection_length: float + :param gat1400_username: **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + :type gat1400_username: str + :param user_name: **参数说明**:ITS800鉴权用的用户名和密码。 + :type user_name: str + """ + + + + self._avp_enabled = None + self._rsm_enabled = None + self._time_compensate = None + self._rsi_positioning_enabled = None + self._log_level = None + self._road_detection_length = None + self._ramp_detection_length = None + self._gat1400_username = None + self._user_name = None + self.discriminator = None + + if avp_enabled is not None: + self.avp_enabled = avp_enabled + if rsm_enabled is not None: + self.rsm_enabled = rsm_enabled + if time_compensate is not None: + self.time_compensate = time_compensate + if rsi_positioning_enabled is not None: + self.rsi_positioning_enabled = rsi_positioning_enabled + if log_level is not None: + self.log_level = log_level + if road_detection_length is not None: + self.road_detection_length = road_detection_length + if ramp_detection_length is not None: + self.ramp_detection_length = ramp_detection_length + if gat1400_username is not None: + self.gat1400_username = gat1400_username + if user_name is not None: + self.user_name = user_name + + @property + def avp_enabled(self): + """Gets the avp_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:AVP场景。 + + :return: The avp_enabled of this EdgeGeneralConfigInResponse. + :rtype: bool + """ + return self._avp_enabled + + @avp_enabled.setter + def avp_enabled(self, avp_enabled): + """Sets the avp_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:AVP场景。 + + :param avp_enabled: The avp_enabled of this EdgeGeneralConfigInResponse. + :type avp_enabled: bool + """ + self._avp_enabled = avp_enabled + + @property + def rsm_enabled(self): + """Gets the rsm_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:RSM上报:默认不上报。 + + :return: The rsm_enabled of this EdgeGeneralConfigInResponse. + :rtype: bool + """ + return self._rsm_enabled + + @rsm_enabled.setter + def rsm_enabled(self, rsm_enabled): + """Sets the rsm_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:RSM上报:默认不上报。 + + :param rsm_enabled: The rsm_enabled of this EdgeGeneralConfigInResponse. + :type rsm_enabled: bool + """ + self._rsm_enabled = rsm_enabled + + @property + def time_compensate(self): + """Gets the time_compensate of this EdgeGeneralConfigInResponse. + + **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + + :return: The time_compensate of this EdgeGeneralConfigInResponse. + :rtype: bool + """ + return self._time_compensate + + @time_compensate.setter + def time_compensate(self, time_compensate): + """Sets the time_compensate of this EdgeGeneralConfigInResponse. + + **参数说明**:时延补偿:是否启动Edge时延补偿功能。 + + :param time_compensate: The time_compensate of this EdgeGeneralConfigInResponse. + :type time_compensate: bool + """ + self._time_compensate = time_compensate + + @property + def rsi_positioning_enabled(self): + """Gets the rsi_positioning_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:RSI事件定位功能。 + + :return: The rsi_positioning_enabled of this EdgeGeneralConfigInResponse. + :rtype: bool + """ + return self._rsi_positioning_enabled + + @rsi_positioning_enabled.setter + def rsi_positioning_enabled(self, rsi_positioning_enabled): + """Sets the rsi_positioning_enabled of this EdgeGeneralConfigInResponse. + + **参数说明**:RSI事件定位功能。 + + :param rsi_positioning_enabled: The rsi_positioning_enabled of this EdgeGeneralConfigInResponse. + :type rsi_positioning_enabled: bool + """ + self._rsi_positioning_enabled = rsi_positioning_enabled + + @property + def log_level(self): + """Gets the log_level of this EdgeGeneralConfigInResponse. + + **参数说明**:应用日志级别 **取值范围**:on/off,默认关闭。 + + :return: The log_level of this EdgeGeneralConfigInResponse. + :rtype: str + """ + return self._log_level + + @log_level.setter + def log_level(self, log_level): + """Sets the log_level of this EdgeGeneralConfigInResponse. + + **参数说明**:应用日志级别 **取值范围**:on/off,默认关闭。 + + :param log_level: The log_level of this EdgeGeneralConfigInResponse. + :type log_level: str + """ + self._log_level = log_level + + @property + def road_detection_length(self): + """Gets the road_detection_length of this EdgeGeneralConfigInResponse. + + **参数说明**:道路检测长度,单位:米。 + + :return: The road_detection_length of this EdgeGeneralConfigInResponse. + :rtype: float + """ + return self._road_detection_length + + @road_detection_length.setter + def road_detection_length(self, road_detection_length): + """Sets the road_detection_length of this EdgeGeneralConfigInResponse. + + **参数说明**:道路检测长度,单位:米。 + + :param road_detection_length: The road_detection_length of this EdgeGeneralConfigInResponse. + :type road_detection_length: float + """ + self._road_detection_length = road_detection_length + + @property + def ramp_detection_length(self): + """Gets the ramp_detection_length of this EdgeGeneralConfigInResponse. + + **参数说明**:匝道检测长度,单位:米。 + + :return: The ramp_detection_length of this EdgeGeneralConfigInResponse. + :rtype: float + """ + return self._ramp_detection_length + + @ramp_detection_length.setter + def ramp_detection_length(self, ramp_detection_length): + """Sets the ramp_detection_length of this EdgeGeneralConfigInResponse. + + **参数说明**:匝道检测长度,单位:米。 + + :param ramp_detection_length: The ramp_detection_length of this EdgeGeneralConfigInResponse. + :type ramp_detection_length: float + """ + self._ramp_detection_length = ramp_detection_length + + @property + def gat1400_username(self): + """Gets the gat1400_username of this EdgeGeneralConfigInResponse. + + **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + + :return: The gat1400_username of this EdgeGeneralConfigInResponse. + :rtype: str + """ + return self._gat1400_username + + @gat1400_username.setter + def gat1400_username(self, gat1400_username): + """Sets the gat1400_username of this EdgeGeneralConfigInResponse. + + **参数说明**:1400接口用户名。 **取值范围**:长度不小于8,不大于32,只允许数字字母下划线组合,且不能以数字下划线开头,不能有中文和特殊字符,gat1400用户名不能与gat1400密码相同。 + + :param gat1400_username: The gat1400_username of this EdgeGeneralConfigInResponse. + :type gat1400_username: str + """ + self._gat1400_username = gat1400_username + + @property + def user_name(self): + """Gets the user_name of this EdgeGeneralConfigInResponse. + + **参数说明**:ITS800鉴权用的用户名和密码。 + + :return: The user_name of this EdgeGeneralConfigInResponse. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this EdgeGeneralConfigInResponse. + + **参数说明**:ITS800鉴权用的用户名和密码。 + + :param user_name: The user_name of this EdgeGeneralConfigInResponse. + :type user_name: str + """ + self._user_name = user_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EdgeGeneralConfigInResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_ex_info.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_ex_info.py new file mode 100755 index 0000000000..24f992ebac --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_ex_info.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EventExInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'participants': 'list[EventParticipant]', + 'congestion_info': 'CongestionInfo' + } + + attribute_map = { + 'participants': 'participants', + 'congestion_info': 'congestion_info' + } + + def __init__(self, participants=None, congestion_info=None): + """EventExInfo + + The model defined in huaweicloud sdk + + :param participants: **参数说明**:识别出交通事件时所对应的交通参与者。 + :type participants: list[:class:`huaweicloudsdkdris.v1.EventParticipant`] + :param congestion_info: + :type congestion_info: :class:`huaweicloudsdkdris.v1.CongestionInfo` + """ + + + + self._participants = None + self._congestion_info = None + self.discriminator = None + + if participants is not None: + self.participants = participants + if congestion_info is not None: + self.congestion_info = congestion_info + + @property + def participants(self): + """Gets the participants of this EventExInfo. + + **参数说明**:识别出交通事件时所对应的交通参与者。 + + :return: The participants of this EventExInfo. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventParticipant`] + """ + return self._participants + + @participants.setter + def participants(self, participants): + """Sets the participants of this EventExInfo. + + **参数说明**:识别出交通事件时所对应的交通参与者。 + + :param participants: The participants of this EventExInfo. + :type participants: list[:class:`huaweicloudsdkdris.v1.EventParticipant`] + """ + self._participants = participants + + @property + def congestion_info(self): + """Gets the congestion_info of this EventExInfo. + + :return: The congestion_info of this EventExInfo. + :rtype: :class:`huaweicloudsdkdris.v1.CongestionInfo` + """ + return self._congestion_info + + @congestion_info.setter + def congestion_info(self, congestion_info): + """Sets the congestion_info of this EventExInfo. + + :param congestion_info: The congestion_info of this EventExInfo. + :type congestion_info: :class:`huaweicloudsdkdris.v1.CongestionInfo` + """ + self._congestion_info = congestion_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventExInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_location.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_location.py new file mode 100755 index 0000000000..4c824732b0 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_location.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EventLocation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lat': 'float', + 'lon': 'float' + } + + attribute_map = { + 'lat': 'lat', + 'lon': 'lon' + } + + def __init__(self, lat=None, lon=None): + """EventLocation + + The model defined in huaweicloud sdk + + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + """ + + + + self._lat = None + self._lon = None + self.discriminator = None + + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + + @property + def lat(self): + """Gets the lat of this EventLocation. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this EventLocation. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this EventLocation. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this EventLocation. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this EventLocation. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this EventLocation. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this EventLocation. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this EventLocation. + :type lon: float + """ + self._lon = lon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventLocation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_participant.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_participant.py new file mode 100755 index 0000000000..d0309e7346 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_participant.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EventParticipant: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ptc_type': 'str', + 'plate_no': 'str', + 'speed': 'int', + 'vehicle_class': 'int', + 'gat_vehicle_class': 'str', + 'track_id': 'int', + 'lane_no': 'int', + 'target_rects': 'list[TargetRect]' + } + + attribute_map = { + 'ptc_type': 'ptc_type', + 'plate_no': 'plate_no', + 'speed': 'speed', + 'vehicle_class': 'vehicle_class', + 'gat_vehicle_class': 'gat_vehicle_class', + 'track_id': 'track_id', + 'lane_no': 'lane_no', + 'target_rects': 'target_rects' + } + + def __init__(self, ptc_type=None, plate_no=None, speed=None, vehicle_class=None, gat_vehicle_class=None, track_id=None, lane_no=None, target_rects=None): + """EventParticipant + + The model defined in huaweicloud sdk + + :param ptc_type: **参数说明**:交通参与者的具体类型描述。 **取值范围**: - unknown:未知 - motor:机动车 - non-motor:非机动车 - pedestrian:行人 + :type ptc_type: str + :param plate_no: **参数说明**:车牌号。 + :type plate_no: str + :param speed: **参数说明**:对应车辆被检测到超速或者慢行时的速度小。单位为0.02米每秒。值为8191时代表无效数值。 + :type speed: int + :param vehicle_class: **参数说明**:车辆类型。参考 [车辆基本类型参数说明](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + :type vehicle_class: int + :param gat_vehicle_class: **参数说明**:机动车车辆类型。参考[机动车车辆类型](https://support.huaweicloud.com/api-v2x/v2x_04_0179.html)。 + :type gat_vehicle_class: str + :param track_id: **参数说明**:感知设备识别的id,具体表示为机动车轨迹ID。 + :type track_id: int + :param lane_no: **参数说明**:事件发生的所在车道 + :type lane_no: int + :param target_rects: **参数说明**:目标检测框信息列表。 + :type target_rects: list[:class:`huaweicloudsdkdris.v1.TargetRect`] + """ + + + + self._ptc_type = None + self._plate_no = None + self._speed = None + self._vehicle_class = None + self._gat_vehicle_class = None + self._track_id = None + self._lane_no = None + self._target_rects = None + self.discriminator = None + + if ptc_type is not None: + self.ptc_type = ptc_type + if plate_no is not None: + self.plate_no = plate_no + if speed is not None: + self.speed = speed + if vehicle_class is not None: + self.vehicle_class = vehicle_class + if gat_vehicle_class is not None: + self.gat_vehicle_class = gat_vehicle_class + if track_id is not None: + self.track_id = track_id + if lane_no is not None: + self.lane_no = lane_no + if target_rects is not None: + self.target_rects = target_rects + + @property + def ptc_type(self): + """Gets the ptc_type of this EventParticipant. + + **参数说明**:交通参与者的具体类型描述。 **取值范围**: - unknown:未知 - motor:机动车 - non-motor:非机动车 - pedestrian:行人 + + :return: The ptc_type of this EventParticipant. + :rtype: str + """ + return self._ptc_type + + @ptc_type.setter + def ptc_type(self, ptc_type): + """Sets the ptc_type of this EventParticipant. + + **参数说明**:交通参与者的具体类型描述。 **取值范围**: - unknown:未知 - motor:机动车 - non-motor:非机动车 - pedestrian:行人 + + :param ptc_type: The ptc_type of this EventParticipant. + :type ptc_type: str + """ + self._ptc_type = ptc_type + + @property + def plate_no(self): + """Gets the plate_no of this EventParticipant. + + **参数说明**:车牌号。 + + :return: The plate_no of this EventParticipant. + :rtype: str + """ + return self._plate_no + + @plate_no.setter + def plate_no(self, plate_no): + """Sets the plate_no of this EventParticipant. + + **参数说明**:车牌号。 + + :param plate_no: The plate_no of this EventParticipant. + :type plate_no: str + """ + self._plate_no = plate_no + + @property + def speed(self): + """Gets the speed of this EventParticipant. + + **参数说明**:对应车辆被检测到超速或者慢行时的速度小。单位为0.02米每秒。值为8191时代表无效数值。 + + :return: The speed of this EventParticipant. + :rtype: int + """ + return self._speed + + @speed.setter + def speed(self, speed): + """Sets the speed of this EventParticipant. + + **参数说明**:对应车辆被检测到超速或者慢行时的速度小。单位为0.02米每秒。值为8191时代表无效数值。 + + :param speed: The speed of this EventParticipant. + :type speed: int + """ + self._speed = speed + + @property + def vehicle_class(self): + """Gets the vehicle_class of this EventParticipant. + + **参数说明**:车辆类型。参考 [车辆基本类型参数说明](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + + :return: The vehicle_class of this EventParticipant. + :rtype: int + """ + return self._vehicle_class + + @vehicle_class.setter + def vehicle_class(self, vehicle_class): + """Sets the vehicle_class of this EventParticipant. + + **参数说明**:车辆类型。参考 [车辆基本类型参数说明](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + + :param vehicle_class: The vehicle_class of this EventParticipant. + :type vehicle_class: int + """ + self._vehicle_class = vehicle_class + + @property + def gat_vehicle_class(self): + """Gets the gat_vehicle_class of this EventParticipant. + + **参数说明**:机动车车辆类型。参考[机动车车辆类型](https://support.huaweicloud.com/api-v2x/v2x_04_0179.html)。 + + :return: The gat_vehicle_class of this EventParticipant. + :rtype: str + """ + return self._gat_vehicle_class + + @gat_vehicle_class.setter + def gat_vehicle_class(self, gat_vehicle_class): + """Sets the gat_vehicle_class of this EventParticipant. + + **参数说明**:机动车车辆类型。参考[机动车车辆类型](https://support.huaweicloud.com/api-v2x/v2x_04_0179.html)。 + + :param gat_vehicle_class: The gat_vehicle_class of this EventParticipant. + :type gat_vehicle_class: str + """ + self._gat_vehicle_class = gat_vehicle_class + + @property + def track_id(self): + """Gets the track_id of this EventParticipant. + + **参数说明**:感知设备识别的id,具体表示为机动车轨迹ID。 + + :return: The track_id of this EventParticipant. + :rtype: int + """ + return self._track_id + + @track_id.setter + def track_id(self, track_id): + """Sets the track_id of this EventParticipant. + + **参数说明**:感知设备识别的id,具体表示为机动车轨迹ID。 + + :param track_id: The track_id of this EventParticipant. + :type track_id: int + """ + self._track_id = track_id + + @property + def lane_no(self): + """Gets the lane_no of this EventParticipant. + + **参数说明**:事件发生的所在车道 + + :return: The lane_no of this EventParticipant. + :rtype: int + """ + return self._lane_no + + @lane_no.setter + def lane_no(self, lane_no): + """Sets the lane_no of this EventParticipant. + + **参数说明**:事件发生的所在车道 + + :param lane_no: The lane_no of this EventParticipant. + :type lane_no: int + """ + self._lane_no = lane_no + + @property + def target_rects(self): + """Gets the target_rects of this EventParticipant. + + **参数说明**:目标检测框信息列表。 + + :return: The target_rects of this EventParticipant. + :rtype: list[:class:`huaweicloudsdkdris.v1.TargetRect`] + """ + return self._target_rects + + @target_rects.setter + def target_rects(self, target_rects): + """Sets the target_rects of this EventParticipant. + + **参数说明**:目标检测框信息列表。 + + :param target_rects: The target_rects of this EventParticipant. + :type target_rects: list[:class:`huaweicloudsdkdris.v1.TargetRect`] + """ + self._target_rects = target_rects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventParticipant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_reference_path.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_reference_path.py new file mode 100755 index 0000000000..310e378399 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/event_reference_path.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EventReferencePath: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'active_path': 'list[EventLocation]', + 'path_radius': 'int' + } + + attribute_map = { + 'active_path': 'active_path', + 'path_radius': 'path_radius' + } + + def __init__(self, active_path=None, path_radius=None): + """EventReferencePath + + The model defined in huaweicloud sdk + + :param active_path: **参数说明**:激活路径。 + :type active_path: list[:class:`huaweicloudsdkdris.v1.EventLocation`] + :param path_radius: **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + :type path_radius: int + """ + + + + self._active_path = None + self._path_radius = None + self.discriminator = None + + if active_path is not None: + self.active_path = active_path + if path_radius is not None: + self.path_radius = path_radius + + @property + def active_path(self): + """Gets the active_path of this EventReferencePath. + + **参数说明**:激活路径。 + + :return: The active_path of this EventReferencePath. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventLocation`] + """ + return self._active_path + + @active_path.setter + def active_path(self, active_path): + """Sets the active_path of this EventReferencePath. + + **参数说明**:激活路径。 + + :param active_path: The active_path of this EventReferencePath. + :type active_path: list[:class:`huaweicloudsdkdris.v1.EventLocation`] + """ + self._active_path = active_path + + @property + def path_radius(self): + """Gets the path_radius of this EventReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :return: The path_radius of this EventReferencePath. + :rtype: int + """ + return self._path_radius + + @path_radius.setter + def path_radius(self, path_radius): + """Sets the path_radius of this EventReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :param path_radius: The path_radius of this EventReferencePath. + :type path_radius: int + """ + self._path_radius = path_radius + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventReferencePath): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ext_device.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ext_device.py new file mode 100755 index 0000000000..ff1153bf98 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ext_device.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtDevice: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'str', + 'destination': 'str', + 'cgroup_permissions': 'str' + } + + attribute_map = { + 'source': 'source', + 'destination': 'destination', + 'cgroup_permissions': 'cgroup_permissions' + } + + def __init__(self, source=None, destination=None, cgroup_permissions=None): + """ExtDevice + + The model defined in huaweicloud sdk + + :param source: **参数说明**:源路径。 + :type source: str + :param destination: **参数说明**:卷挂载路径。 + :type destination: str + :param cgroup_permissions: **参数说明**:只读,默认MRW。 + :type cgroup_permissions: str + """ + + + + self._source = None + self._destination = None + self._cgroup_permissions = None + self.discriminator = None + + self.source = source + self.destination = destination + if cgroup_permissions is not None: + self.cgroup_permissions = cgroup_permissions + + @property + def source(self): + """Gets the source of this ExtDevice. + + **参数说明**:源路径。 + + :return: The source of this ExtDevice. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this ExtDevice. + + **参数说明**:源路径。 + + :param source: The source of this ExtDevice. + :type source: str + """ + self._source = source + + @property + def destination(self): + """Gets the destination of this ExtDevice. + + **参数说明**:卷挂载路径。 + + :return: The destination of this ExtDevice. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """Sets the destination of this ExtDevice. + + **参数说明**:卷挂载路径。 + + :param destination: The destination of this ExtDevice. + :type destination: str + """ + self._destination = destination + + @property + def cgroup_permissions(self): + """Gets the cgroup_permissions of this ExtDevice. + + **参数说明**:只读,默认MRW。 + + :return: The cgroup_permissions of this ExtDevice. + :rtype: str + """ + return self._cgroup_permissions + + @cgroup_permissions.setter + def cgroup_permissions(self, cgroup_permissions): + """Sets the cgroup_permissions of this ExtDevice. + + **参数说明**:只读,默认MRW。 + + :param cgroup_permissions: The cgroup_permissions of this ExtDevice. + :type cgroup_permissions: str + """ + self._cgroup_permissions = cgroup_permissions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExtDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config.py new file mode 100755 index 0000000000..0577010229 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ForwardingConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'forwarding_type': 'str', + 'kafka_config': 'KafkaConfigResponseDTO', + 'mrs_kafka_config': 'MrsKafkaConfigResponseDTO' + } + + attribute_map = { + 'forwarding_type': 'forwarding_type', + 'kafka_config': 'kafka_config', + 'mrs_kafka_config': 'mrs_kafka_config' + } + + def __init__(self, forwarding_type=None, kafka_config=None, mrs_kafka_config=None): + """ForwardingConfig + + The model defined in huaweicloud sdk + + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + :type forwarding_type: str + :param kafka_config: + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + :param mrs_kafka_config: + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + + + + self._forwarding_type = None + self._kafka_config = None + self._mrs_kafka_config = None + self.discriminator = None + + if forwarding_type is not None: + self.forwarding_type = forwarding_type + if kafka_config is not None: + self.kafka_config = kafka_config + if mrs_kafka_config is not None: + self.mrs_kafka_config = mrs_kafka_config + + @property + def forwarding_type(self): + """Gets the forwarding_type of this ForwardingConfig. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :return: The forwarding_type of this ForwardingConfig. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this ForwardingConfig. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :param forwarding_type: The forwarding_type of this ForwardingConfig. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def kafka_config(self): + """Gets the kafka_config of this ForwardingConfig. + + :return: The kafka_config of this ForwardingConfig. + :rtype: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + return self._kafka_config + + @kafka_config.setter + def kafka_config(self, kafka_config): + """Sets the kafka_config of this ForwardingConfig. + + :param kafka_config: The kafka_config of this ForwardingConfig. + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + self._kafka_config = kafka_config + + @property + def mrs_kafka_config(self): + """Gets the mrs_kafka_config of this ForwardingConfig. + + :return: The mrs_kafka_config of this ForwardingConfig. + :rtype: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + return self._mrs_kafka_config + + @mrs_kafka_config.setter + def mrs_kafka_config(self, mrs_kafka_config): + """Sets the mrs_kafka_config of this ForwardingConfig. + + :param mrs_kafka_config: The mrs_kafka_config of this ForwardingConfig. + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + self._mrs_kafka_config = mrs_kafka_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ForwardingConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config_request_dto.py new file mode 100755 index 0000000000..6441e55811 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/forwarding_config_request_dto.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ForwardingConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'kafka_config': 'KafkaConfigRequestDTO', + 'mrs_kafka_config': 'MrsKafkaConfigRequestDTO' + } + + attribute_map = { + 'kafka_config': 'kafka_config', + 'mrs_kafka_config': 'mrs_kafka_config' + } + + def __init__(self, kafka_config=None, mrs_kafka_config=None): + """ForwardingConfigRequestDTO + + The model defined in huaweicloud sdk + + :param kafka_config: + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigRequestDTO` + :param mrs_kafka_config: + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigRequestDTO` + """ + + + + self._kafka_config = None + self._mrs_kafka_config = None + self.discriminator = None + + if kafka_config is not None: + self.kafka_config = kafka_config + if mrs_kafka_config is not None: + self.mrs_kafka_config = mrs_kafka_config + + @property + def kafka_config(self): + """Gets the kafka_config of this ForwardingConfigRequestDTO. + + :return: The kafka_config of this ForwardingConfigRequestDTO. + :rtype: :class:`huaweicloudsdkdris.v1.KafkaConfigRequestDTO` + """ + return self._kafka_config + + @kafka_config.setter + def kafka_config(self, kafka_config): + """Sets the kafka_config of this ForwardingConfigRequestDTO. + + :param kafka_config: The kafka_config of this ForwardingConfigRequestDTO. + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigRequestDTO` + """ + self._kafka_config = kafka_config + + @property + def mrs_kafka_config(self): + """Gets the mrs_kafka_config of this ForwardingConfigRequestDTO. + + :return: The mrs_kafka_config of this ForwardingConfigRequestDTO. + :rtype: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigRequestDTO` + """ + return self._mrs_kafka_config + + @mrs_kafka_config.setter + def mrs_kafka_config(self, mrs_kafka_config): + """Sets the mrs_kafka_config of this ForwardingConfigRequestDTO. + + :param mrs_kafka_config: The mrs_kafka_config of this ForwardingConfigRequestDTO. + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigRequestDTO` + """ + self._mrs_kafka_config = mrs_kafka_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ForwardingConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py new file mode 100755 index 0000000000..5cb8836fb6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py @@ -0,0 +1,690 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HistoryTrafficEventDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'event_id': 'str', + 'event_source_type': 'str', + 'event_source_id': 'str', + 'area_code': 'int', + 'event_class': 'str', + 'event_type': 'int', + 'cross_id': 'str', + 'event_description': 'str', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'Position3D', + 'event_position_name': 'str', + 'reference_paths': 'list[ReferencePath]', + 'note': 'str', + 'event_status': 'str', + 'event_confidence': 'int', + 'event_ex_info': 'EventExInfo', + 'rsu_id': 'list[str]', + 'start_time': 'str', + 'end_time': 'str', + 'created_time': 'str' + } + + attribute_map = { + 'event_id': 'event_id', + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'area_code': 'area_code', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'cross_id': 'cross_id', + 'event_description': 'event_description', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_position_name': 'event_position_name', + 'reference_paths': 'reference_paths', + 'note': 'note', + 'event_status': 'event_status', + 'event_confidence': 'event_confidence', + 'event_ex_info': 'event_ex_info', + 'rsu_id': 'rsu_id', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'created_time': 'created_time' + } + + def __init__(self, event_id=None, event_source_type=None, event_source_id=None, area_code=None, event_class=None, event_type=None, cross_id=None, event_description=None, event_level=None, event_params=None, event_position=None, event_position_name=None, reference_paths=None, note=None, event_status=None, event_confidence=None, event_ex_info=None, rsu_id=None, start_time=None, end_time=None, created_time=None): + """HistoryTrafficEventDTO + + The model defined in huaweicloud sdk + + :param event_id: **参数说明**:事件ID,由平台生成。 + :type event_id: str + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源ID。 + :type event_source_id: str + :param area_code: **参数说明**:区域码。 + :type area_code: int + :param event_class: **参数说明**:事件的分类。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param cross_id: **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + :type cross_id: str + :param event_description: **参数说明**:交通事件描述。 + :type event_description: str + :param event_level: **参数说明**:事件级别(1-5) 由低到高的事件严重程度。 + :type event_level: int + :param event_params: **参数说明**:事件参数,用户自定义。 + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.Position3D` + :param event_position_name: **参数说明**:事件位置名称。 + :type event_position_name: str + :param reference_paths: **参数说明**:事件的关联路径。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ReferencePath`] + :param note: **参数说明**:用户备注信息。 + :type note: str + :param event_status: **参数说明**:事件的状态。 **取值范围**: - Invalid:过期事件,事件发生的时间段在当前时间之前。 - Active:活动事件,事件正在发生,当前时间处于事件发生时间段内。 - Future:未来事件,在当前时间之后才会发生的事件。 + :type event_status: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + :param event_ex_info: + :type event_ex_info: :class:`huaweicloudsdkdris.v1.EventExInfo` + :param rsu_id: **参数说明**:事件关联的rsuID。 + :type rsu_id: list[str] + :param start_time: **参数说明**:事件的开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: str + :param end_time: **参数说明**:事件的结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: str + :param created_time: **参数说明**:事件的创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: str + """ + + + + self._event_id = None + self._event_source_type = None + self._event_source_id = None + self._area_code = None + self._event_class = None + self._event_type = None + self._cross_id = None + self._event_description = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_position_name = None + self._reference_paths = None + self._note = None + self._event_status = None + self._event_confidence = None + self._event_ex_info = None + self._rsu_id = None + self._start_time = None + self._end_time = None + self._created_time = None + self.discriminator = None + + if event_id is not None: + self.event_id = event_id + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if area_code is not None: + self.area_code = area_code + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if cross_id is not None: + self.cross_id = cross_id + if event_description is not None: + self.event_description = event_description + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_position_name is not None: + self.event_position_name = event_position_name + if reference_paths is not None: + self.reference_paths = reference_paths + if note is not None: + self.note = note + if event_status is not None: + self.event_status = event_status + if event_confidence is not None: + self.event_confidence = event_confidence + if event_ex_info is not None: + self.event_ex_info = event_ex_info + if rsu_id is not None: + self.rsu_id = rsu_id + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if created_time is not None: + self.created_time = created_time + + @property + def event_id(self): + """Gets the event_id of this HistoryTrafficEventDTO. + + **参数说明**:事件ID,由平台生成。 + + :return: The event_id of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this HistoryTrafficEventDTO. + + **参数说明**:事件ID,由平台生成。 + + :param event_id: The event_id of this HistoryTrafficEventDTO. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_source_type(self): + """Gets the event_source_type of this HistoryTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this HistoryTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this HistoryTrafficEventDTO. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this HistoryTrafficEventDTO. + + **参数说明**:事件来源ID。 + + :return: The event_source_id of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this HistoryTrafficEventDTO. + + **参数说明**:事件来源ID。 + + :param event_source_id: The event_source_id of this HistoryTrafficEventDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def area_code(self): + """Gets the area_code of this HistoryTrafficEventDTO. + + **参数说明**:区域码。 + + :return: The area_code of this HistoryTrafficEventDTO. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this HistoryTrafficEventDTO. + + **参数说明**:区域码。 + + :param area_code: The area_code of this HistoryTrafficEventDTO. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_class(self): + """Gets the event_class of this HistoryTrafficEventDTO. + + **参数说明**:事件的分类。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + + :return: The event_class of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this HistoryTrafficEventDTO. + + **参数说明**:事件的分类。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + + :param event_class: The event_class of this HistoryTrafficEventDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this HistoryTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this HistoryTrafficEventDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this HistoryTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this HistoryTrafficEventDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def cross_id(self): + """Gets the cross_id of this HistoryTrafficEventDTO. + + **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + + :return: The cross_id of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._cross_id + + @cross_id.setter + def cross_id(self, cross_id): + """Sets the cross_id of this HistoryTrafficEventDTO. + + **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + + :param cross_id: The cross_id of this HistoryTrafficEventDTO. + :type cross_id: str + """ + self._cross_id = cross_id + + @property + def event_description(self): + """Gets the event_description of this HistoryTrafficEventDTO. + + **参数说明**:交通事件描述。 + + :return: The event_description of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this HistoryTrafficEventDTO. + + **参数说明**:交通事件描述。 + + :param event_description: The event_description of this HistoryTrafficEventDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def event_level(self): + """Gets the event_level of this HistoryTrafficEventDTO. + + **参数说明**:事件级别(1-5) 由低到高的事件严重程度。 + + :return: The event_level of this HistoryTrafficEventDTO. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this HistoryTrafficEventDTO. + + **参数说明**:事件级别(1-5) 由低到高的事件严重程度。 + + :param event_level: The event_level of this HistoryTrafficEventDTO. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this HistoryTrafficEventDTO. + + **参数说明**:事件参数,用户自定义。 + + :return: The event_params of this HistoryTrafficEventDTO. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this HistoryTrafficEventDTO. + + **参数说明**:事件参数,用户自定义。 + + :param event_params: The event_params of this HistoryTrafficEventDTO. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this HistoryTrafficEventDTO. + + :return: The event_position of this HistoryTrafficEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.Position3D` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this HistoryTrafficEventDTO. + + :param event_position: The event_position of this HistoryTrafficEventDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.Position3D` + """ + self._event_position = event_position + + @property + def event_position_name(self): + """Gets the event_position_name of this HistoryTrafficEventDTO. + + **参数说明**:事件位置名称。 + + :return: The event_position_name of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this HistoryTrafficEventDTO. + + **参数说明**:事件位置名称。 + + :param event_position_name: The event_position_name of this HistoryTrafficEventDTO. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def reference_paths(self): + """Gets the reference_paths of this HistoryTrafficEventDTO. + + **参数说明**:事件的关联路径。 + + :return: The reference_paths of this HistoryTrafficEventDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.ReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this HistoryTrafficEventDTO. + + **参数说明**:事件的关联路径。 + + :param reference_paths: The reference_paths of this HistoryTrafficEventDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def note(self): + """Gets the note of this HistoryTrafficEventDTO. + + **参数说明**:用户备注信息。 + + :return: The note of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this HistoryTrafficEventDTO. + + **参数说明**:用户备注信息。 + + :param note: The note of this HistoryTrafficEventDTO. + :type note: str + """ + self._note = note + + @property + def event_status(self): + """Gets the event_status of this HistoryTrafficEventDTO. + + **参数说明**:事件的状态。 **取值范围**: - Invalid:过期事件,事件发生的时间段在当前时间之前。 - Active:活动事件,事件正在发生,当前时间处于事件发生时间段内。 - Future:未来事件,在当前时间之后才会发生的事件。 + + :return: The event_status of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._event_status + + @event_status.setter + def event_status(self, event_status): + """Sets the event_status of this HistoryTrafficEventDTO. + + **参数说明**:事件的状态。 **取值范围**: - Invalid:过期事件,事件发生的时间段在当前时间之前。 - Active:活动事件,事件正在发生,当前时间处于事件发生时间段内。 - Future:未来事件,在当前时间之后才会发生的事件。 + + :param event_status: The event_status of this HistoryTrafficEventDTO. + :type event_status: str + """ + self._event_status = event_status + + @property + def event_confidence(self): + """Gets the event_confidence of this HistoryTrafficEventDTO. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this HistoryTrafficEventDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this HistoryTrafficEventDTO. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this HistoryTrafficEventDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def event_ex_info(self): + """Gets the event_ex_info of this HistoryTrafficEventDTO. + + :return: The event_ex_info of this HistoryTrafficEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EventExInfo` + """ + return self._event_ex_info + + @event_ex_info.setter + def event_ex_info(self, event_ex_info): + """Sets the event_ex_info of this HistoryTrafficEventDTO. + + :param event_ex_info: The event_ex_info of this HistoryTrafficEventDTO. + :type event_ex_info: :class:`huaweicloudsdkdris.v1.EventExInfo` + """ + self._event_ex_info = event_ex_info + + @property + def rsu_id(self): + """Gets the rsu_id of this HistoryTrafficEventDTO. + + **参数说明**:事件关联的rsuID。 + + :return: The rsu_id of this HistoryTrafficEventDTO. + :rtype: list[str] + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this HistoryTrafficEventDTO. + + **参数说明**:事件关联的rsuID。 + + :param rsu_id: The rsu_id of this HistoryTrafficEventDTO. + :type rsu_id: list[str] + """ + self._rsu_id = rsu_id + + @property + def start_time(self): + """Gets the start_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this HistoryTrafficEventDTO. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this HistoryTrafficEventDTO. + :type end_time: str + """ + self._end_time = end_time + + @property + def created_time(self): + """Gets the created_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this HistoryTrafficEventDTO. + + **参数说明**:事件的创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this HistoryTrafficEventDTO. + :type created_time: str + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, HistoryTrafficEventDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/id_and_status.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/id_and_status.py new file mode 100755 index 0000000000..6775b2f593 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/id_and_status.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IdAndStatus: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'status': 'str' + } + + attribute_map = { + 'id': 'id', + 'status': 'status' + } + + def __init__(self, id=None, status=None): + """IdAndStatus + + The model defined in huaweicloud sdk + + :param id: **参数说明**:摄像头、雷达或RSU的ID。 + :type id: str + :param status: **参数说明**:摄像头、雷达或RSU的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + """ + + + + self._id = None + self._status = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + + @property + def id(self): + """Gets the id of this IdAndStatus. + + **参数说明**:摄像头、雷达或RSU的ID。 + + :return: The id of this IdAndStatus. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IdAndStatus. + + **参数说明**:摄像头、雷达或RSU的ID。 + + :param id: The id of this IdAndStatus. + :type id: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this IdAndStatus. + + **参数说明**:摄像头、雷达或RSU的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this IdAndStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this IdAndStatus. + + **参数说明**:摄像头、雷达或RSU的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this IdAndStatus. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IdAndStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_dto.py new file mode 100755 index 0000000000..50f221f804 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_dto.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImmediateEventDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'time_stamp': 'datetime', + 'event_class': 'str', + 'event_type': 'int', + 'event_source': 'str', + 'event_source_id': 'str', + 'event_confidence': 'int', + 'event_position': 'ImmediateEventPosition3D', + 'event_radius': 'int', + 'event_description': 'str', + 'event_priority': 'int', + 'reference_paths': 'list[ImmediateEventReferencePath]' + } + + attribute_map = { + 'time_stamp': 'time_stamp', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'event_source': 'event_source', + 'event_source_id': 'event_source_id', + 'event_confidence': 'event_confidence', + 'event_position': 'event_position', + 'event_radius': 'event_radius', + 'event_description': 'event_description', + 'event_priority': 'event_priority', + 'reference_paths': 'reference_paths' + } + + def __init__(self, time_stamp=None, event_class=None, event_type=None, event_source=None, event_source_id=None, event_confidence=None, event_position=None, event_radius=None, event_description=None, event_priority=None, reference_paths=None): + """ImmediateEventDTO + + The model defined in huaweicloud sdk + + :param time_stamp: **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + :type time_stamp: datetime + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param event_source: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_confidence: **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + :type event_confidence: int + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + :param event_radius: **参数说明**:事件的发生区域半径,单位为分米。 + :type event_radius: int + :param event_description: **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + :type event_description: str + :param event_priority: **参数说明**:事件优先级,0-7,数字越大,级别越高。 + :type event_priority: int + :param reference_paths: **参数说明**:事件生效的关联路径。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + + + + self._time_stamp = None + self._event_class = None + self._event_type = None + self._event_source = None + self._event_source_id = None + self._event_confidence = None + self._event_position = None + self._event_radius = None + self._event_description = None + self._event_priority = None + self._reference_paths = None + self.discriminator = None + + self.time_stamp = time_stamp + self.event_class = event_class + self.event_type = event_type + self.event_source = event_source + if event_source_id is not None: + self.event_source_id = event_source_id + if event_confidence is not None: + self.event_confidence = event_confidence + self.event_position = event_position + if event_radius is not None: + self.event_radius = event_radius + if event_description is not None: + self.event_description = event_description + if event_priority is not None: + self.event_priority = event_priority + if reference_paths is not None: + self.reference_paths = reference_paths + + @property + def time_stamp(self): + """Gets the time_stamp of this ImmediateEventDTO. + + **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + + :return: The time_stamp of this ImmediateEventDTO. + :rtype: datetime + """ + return self._time_stamp + + @time_stamp.setter + def time_stamp(self, time_stamp): + """Sets the time_stamp of this ImmediateEventDTO. + + **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + + :param time_stamp: The time_stamp of this ImmediateEventDTO. + :type time_stamp: datetime + """ + self._time_stamp = time_stamp + + @property + def event_class(self): + """Gets the event_class of this ImmediateEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this ImmediateEventDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this ImmediateEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this ImmediateEventDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this ImmediateEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this ImmediateEventDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this ImmediateEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this ImmediateEventDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def event_source(self): + """Gets the event_source of this ImmediateEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source of this ImmediateEventDTO. + :rtype: str + """ + return self._event_source + + @event_source.setter + def event_source(self, event_source): + """Sets the event_source of this ImmediateEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source: The event_source of this ImmediateEventDTO. + :type event_source: str + """ + self._event_source = event_source + + @property + def event_source_id(self): + """Gets the event_source_id of this ImmediateEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this ImmediateEventDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this ImmediateEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this ImmediateEventDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_confidence(self): + """Gets the event_confidence of this ImmediateEventDTO. + + **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + + :return: The event_confidence of this ImmediateEventDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this ImmediateEventDTO. + + **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + + :param event_confidence: The event_confidence of this ImmediateEventDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def event_position(self): + """Gets the event_position of this ImmediateEventDTO. + + :return: The event_position of this ImmediateEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this ImmediateEventDTO. + + :param event_position: The event_position of this ImmediateEventDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + """ + self._event_position = event_position + + @property + def event_radius(self): + """Gets the event_radius of this ImmediateEventDTO. + + **参数说明**:事件的发生区域半径,单位为分米。 + + :return: The event_radius of this ImmediateEventDTO. + :rtype: int + """ + return self._event_radius + + @event_radius.setter + def event_radius(self, event_radius): + """Sets the event_radius of this ImmediateEventDTO. + + **参数说明**:事件的发生区域半径,单位为分米。 + + :param event_radius: The event_radius of this ImmediateEventDTO. + :type event_radius: int + """ + self._event_radius = event_radius + + @property + def event_description(self): + """Gets the event_description of this ImmediateEventDTO. + + **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + + :return: The event_description of this ImmediateEventDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this ImmediateEventDTO. + + **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + + :param event_description: The event_description of this ImmediateEventDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def event_priority(self): + """Gets the event_priority of this ImmediateEventDTO. + + **参数说明**:事件优先级,0-7,数字越大,级别越高。 + + :return: The event_priority of this ImmediateEventDTO. + :rtype: int + """ + return self._event_priority + + @event_priority.setter + def event_priority(self, event_priority): + """Sets the event_priority of this ImmediateEventDTO. + + **参数说明**:事件优先级,0-7,数字越大,级别越高。 + + :param event_priority: The event_priority of this ImmediateEventDTO. + :type event_priority: int + """ + self._event_priority = event_priority + + @property + def reference_paths(self): + """Gets the reference_paths of this ImmediateEventDTO. + + **参数说明**:事件生效的关联路径。 + + :return: The reference_paths of this ImmediateEventDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this ImmediateEventDTO. + + **参数说明**:事件生效的关联路径。 + + :param reference_paths: The reference_paths of this ImmediateEventDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + self._reference_paths = reference_paths + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImmediateEventDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_position3_d.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_position3_d.py new file mode 100755 index 0000000000..70da8b48ea --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_position3_d.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImmediateEventPosition3D: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lat': 'float', + 'lon': 'float', + 'ele': 'float' + } + + attribute_map = { + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele' + } + + def __init__(self, lat=None, lon=None, ele=None): + """ImmediateEventPosition3D + + The model defined in huaweicloud sdk + + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + """ + + + + self._lat = None + self._lon = None + self._ele = None + self.discriminator = None + + self.lat = lat + self.lon = lon + if ele is not None: + self.ele = ele + + @property + def lat(self): + """Gets the lat of this ImmediateEventPosition3D. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this ImmediateEventPosition3D. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this ImmediateEventPosition3D. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this ImmediateEventPosition3D. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this ImmediateEventPosition3D. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this ImmediateEventPosition3D. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this ImmediateEventPosition3D. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this ImmediateEventPosition3D. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this ImmediateEventPosition3D. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this ImmediateEventPosition3D. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this ImmediateEventPosition3D. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this ImmediateEventPosition3D. + :type ele: float + """ + self._ele = ele + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImmediateEventPosition3D): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_reference_path.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_reference_path.py new file mode 100755 index 0000000000..31b1ce107f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_reference_path.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImmediateEventReferencePath: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'active_path': 'list[ImmediateEventPosition3D]', + 'path_radius': 'int' + } + + attribute_map = { + 'active_path': 'active_path', + 'path_radius': 'path_radius' + } + + def __init__(self, active_path=None, path_radius=None): + """ImmediateEventReferencePath + + The model defined in huaweicloud sdk + + :param active_path: **参数说明**:通过点集合定义一个有向的作用范围。 + :type active_path: list[:class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D`] + :param path_radius: **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + :type path_radius: int + """ + + + + self._active_path = None + self._path_radius = None + self.discriminator = None + + self.active_path = active_path + if path_radius is not None: + self.path_radius = path_radius + + @property + def active_path(self): + """Gets the active_path of this ImmediateEventReferencePath. + + **参数说明**:通过点集合定义一个有向的作用范围。 + + :return: The active_path of this ImmediateEventReferencePath. + :rtype: list[:class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D`] + """ + return self._active_path + + @active_path.setter + def active_path(self, active_path): + """Sets the active_path of this ImmediateEventReferencePath. + + **参数说明**:通过点集合定义一个有向的作用范围。 + + :param active_path: The active_path of this ImmediateEventReferencePath. + :type active_path: list[:class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D`] + """ + self._active_path = active_path + + @property + def path_radius(self): + """Gets the path_radius of this ImmediateEventReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :return: The path_radius of this ImmediateEventReferencePath. + :rtype: int + """ + return self._path_radius + + @path_radius.setter + def path_radius(self, path_radius): + """Sets the path_radius of this ImmediateEventReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :param path_radius: The path_radius of this ImmediateEventReferencePath. + :type path_radius: int + """ + self._path_radius = path_radius + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImmediateEventReferencePath): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_response_dto.py new file mode 100755 index 0000000000..d326d83b3c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/immediate_event_response_dto.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImmediateEventResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'time_stamp': 'datetime', + 'event_class': 'str', + 'event_type': 'int', + 'event_source': 'str', + 'event_source_id': 'str', + 'event_confidence': 'int', + 'event_position': 'ImmediateEventPosition3D', + 'event_radius': 'int', + 'event_description': 'str', + 'event_priority': 'int', + 'reference_paths': 'list[ImmediateEventReferencePath]' + } + + attribute_map = { + 'time_stamp': 'time_stamp', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'event_source': 'event_source', + 'event_source_id': 'event_source_id', + 'event_confidence': 'event_confidence', + 'event_position': 'event_position', + 'event_radius': 'event_radius', + 'event_description': 'event_description', + 'event_priority': 'event_priority', + 'reference_paths': 'reference_paths' + } + + def __init__(self, time_stamp=None, event_class=None, event_type=None, event_source=None, event_source_id=None, event_confidence=None, event_position=None, event_radius=None, event_description=None, event_priority=None, reference_paths=None): + """ImmediateEventResponseDTO + + The model defined in huaweicloud sdk + + :param time_stamp: **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + :type time_stamp: datetime + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件 + :type event_type: int + :param event_source: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_confidence: **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + :type event_confidence: int + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + :param event_radius: **参数说明**:事件的发生区域半径,单位为分米。 + :type event_radius: int + :param event_description: **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + :type event_description: str + :param event_priority: **参数说明**:事件优先级,0-7,数字越大,级别越高。 + :type event_priority: int + :param reference_paths: **参数说明**:事件生效的关联路径。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + + + + self._time_stamp = None + self._event_class = None + self._event_type = None + self._event_source = None + self._event_source_id = None + self._event_confidence = None + self._event_position = None + self._event_radius = None + self._event_description = None + self._event_priority = None + self._reference_paths = None + self.discriminator = None + + if time_stamp is not None: + self.time_stamp = time_stamp + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if event_source is not None: + self.event_source = event_source + if event_source_id is not None: + self.event_source_id = event_source_id + if event_confidence is not None: + self.event_confidence = event_confidence + if event_position is not None: + self.event_position = event_position + if event_radius is not None: + self.event_radius = event_radius + if event_description is not None: + self.event_description = event_description + if event_priority is not None: + self.event_priority = event_priority + if reference_paths is not None: + self.reference_paths = reference_paths + + @property + def time_stamp(self): + """Gets the time_stamp of this ImmediateEventResponseDTO. + + **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + + :return: The time_stamp of this ImmediateEventResponseDTO. + :rtype: datetime + """ + return self._time_stamp + + @time_stamp.setter + def time_stamp(self, time_stamp): + """Sets the time_stamp of this ImmediateEventResponseDTO. + + **参数说明**:事件发生时间,毫秒级。 格式:yyyy-MM-dd''T''HH:mm:ss.SSS''Z'' 例如 2015-12-12T12:12:12.356Z。 + + :param time_stamp: The time_stamp of this ImmediateEventResponseDTO. + :type time_stamp: datetime + """ + self._time_stamp = time_stamp + + @property + def event_class(self): + """Gets the event_class of this ImmediateEventResponseDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this ImmediateEventResponseDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this ImmediateEventResponseDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this ImmediateEventResponseDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this ImmediateEventResponseDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件 + + :return: The event_type of this ImmediateEventResponseDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this ImmediateEventResponseDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件 + + :param event_type: The event_type of this ImmediateEventResponseDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def event_source(self): + """Gets the event_source of this ImmediateEventResponseDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source of this ImmediateEventResponseDTO. + :rtype: str + """ + return self._event_source + + @event_source.setter + def event_source(self, event_source): + """Sets the event_source of this ImmediateEventResponseDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source: The event_source of this ImmediateEventResponseDTO. + :type event_source: str + """ + self._event_source = event_source + + @property + def event_source_id(self): + """Gets the event_source_id of this ImmediateEventResponseDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this ImmediateEventResponseDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this ImmediateEventResponseDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this ImmediateEventResponseDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_confidence(self): + """Gets the event_confidence of this ImmediateEventResponseDTO. + + **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + + :return: The event_confidence of this ImmediateEventResponseDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this ImmediateEventResponseDTO. + + **参数说明**:道路交通事件的信息来源提供的事件置信度水平,帮助接收端判断是否相信该事件信息,可选。 + + :param event_confidence: The event_confidence of this ImmediateEventResponseDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def event_position(self): + """Gets the event_position of this ImmediateEventResponseDTO. + + :return: The event_position of this ImmediateEventResponseDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this ImmediateEventResponseDTO. + + :param event_position: The event_position of this ImmediateEventResponseDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.ImmediateEventPosition3D` + """ + self._event_position = event_position + + @property + def event_radius(self): + """Gets the event_radius of this ImmediateEventResponseDTO. + + **参数说明**:事件的发生区域半径,单位为分米。 + + :return: The event_radius of this ImmediateEventResponseDTO. + :rtype: int + """ + return self._event_radius + + @event_radius.setter + def event_radius(self, event_radius): + """Sets the event_radius of this ImmediateEventResponseDTO. + + **参数说明**:事件的发生区域半径,单位为分米。 + + :param event_radius: The event_radius of this ImmediateEventResponseDTO. + :type event_radius: int + """ + self._event_radius = event_radius + + @property + def event_description(self): + """Gets the event_description of this ImmediateEventResponseDTO. + + **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + + :return: The event_description of this ImmediateEventResponseDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this ImmediateEventResponseDTO. + + **参数说明**:事件的文本描述信息,可自行扩展需传递的信息。 + + :param event_description: The event_description of this ImmediateEventResponseDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def event_priority(self): + """Gets the event_priority of this ImmediateEventResponseDTO. + + **参数说明**:事件优先级,0-7,数字越大,级别越高。 + + :return: The event_priority of this ImmediateEventResponseDTO. + :rtype: int + """ + return self._event_priority + + @event_priority.setter + def event_priority(self, event_priority): + """Sets the event_priority of this ImmediateEventResponseDTO. + + **参数说明**:事件优先级,0-7,数字越大,级别越高。 + + :param event_priority: The event_priority of this ImmediateEventResponseDTO. + :type event_priority: int + """ + self._event_priority = event_priority + + @property + def reference_paths(self): + """Gets the reference_paths of this ImmediateEventResponseDTO. + + **参数说明**:事件生效的关联路径。 + + :return: The reference_paths of this ImmediateEventResponseDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this ImmediateEventResponseDTO. + + **参数说明**:事件生效的关联路径。 + + :param reference_paths: The reference_paths of this ImmediateEventResponseDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.ImmediateEventReferencePath`] + """ + self._reference_paths = reference_paths + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImmediateEventResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ipc_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ipc_response_dto.py new file mode 100755 index 0000000000..c975cbfa46 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/ipc_response_dto.py @@ -0,0 +1,495 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IpcResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'camera_id': 'str', + 'v2x_edge_id': 'str', + 'name': 'str', + 'cross_id': 'str', + 'focal_type': 'str', + 'parent_connect_code': 'str', + 'connect_code': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'status': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime', + 'last_online_time': 'datetime' + } + + attribute_map = { + 'camera_id': 'camera_id', + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'cross_id': 'cross_id', + 'focal_type': 'focal_type', + 'parent_connect_code': 'parent_connect_code', + 'connect_code': 'connect_code', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'status': 'status', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'last_online_time': 'last_online_time' + } + + def __init__(self, camera_id=None, v2x_edge_id=None, name=None, cross_id=None, focal_type=None, parent_connect_code=None, connect_code=None, description=None, esn=None, ip=None, status=None, created_time=None, last_modified_time=None, last_online_time=None): + """IpcResponseDTO + + The model defined in huaweicloud sdk + + :param camera_id: **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + :type camera_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + :param name: **参数说明**:摄像头名称。 + :type name: str + :param cross_id: **参数说明**:摄像头所感知的路口或者路段的Id。 + :type cross_id: str + :param focal_type: **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + :type focal_type: str + :param parent_connect_code: **参数说明**:摄像头连接的ITS800的互联编码。 + :type parent_connect_code: str + :param connect_code: **参数说明**:摄像头的互联编码。 + :type connect_code: str + :param description: **参数说明**:描述。 + :type description: str + :param esn: **参数说明**:IPC的设备编码。 + :type esn: str + :param ip: **参数说明**:该摄像头的ip地址。 + :type ip: str + :param status: **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + :type status: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + :param last_online_time: **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_online_time: datetime + """ + + + + self._camera_id = None + self._v2x_edge_id = None + self._name = None + self._cross_id = None + self._focal_type = None + self._parent_connect_code = None + self._connect_code = None + self._description = None + self._esn = None + self._ip = None + self._status = None + self._created_time = None + self._last_modified_time = None + self._last_online_time = None + self.discriminator = None + + if camera_id is not None: + self.camera_id = camera_id + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if cross_id is not None: + self.cross_id = cross_id + if focal_type is not None: + self.focal_type = focal_type + if parent_connect_code is not None: + self.parent_connect_code = parent_connect_code + if connect_code is not None: + self.connect_code = connect_code + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if status is not None: + self.status = status + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if last_online_time is not None: + self.last_online_time = last_online_time + + @property + def camera_id(self): + """Gets the camera_id of this IpcResponseDTO. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :return: The camera_id of this IpcResponseDTO. + :rtype: str + """ + return self._camera_id + + @camera_id.setter + def camera_id(self, camera_id): + """Sets the camera_id of this IpcResponseDTO. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :param camera_id: The camera_id of this IpcResponseDTO. + :type camera_id: str + """ + self._camera_id = camera_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this IpcResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this IpcResponseDTO. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this IpcResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this IpcResponseDTO. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this IpcResponseDTO. + + **参数说明**:摄像头名称。 + + :return: The name of this IpcResponseDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IpcResponseDTO. + + **参数说明**:摄像头名称。 + + :param name: The name of this IpcResponseDTO. + :type name: str + """ + self._name = name + + @property + def cross_id(self): + """Gets the cross_id of this IpcResponseDTO. + + **参数说明**:摄像头所感知的路口或者路段的Id。 + + :return: The cross_id of this IpcResponseDTO. + :rtype: str + """ + return self._cross_id + + @cross_id.setter + def cross_id(self, cross_id): + """Sets the cross_id of this IpcResponseDTO. + + **参数说明**:摄像头所感知的路口或者路段的Id。 + + :param cross_id: The cross_id of this IpcResponseDTO. + :type cross_id: str + """ + self._cross_id = cross_id + + @property + def focal_type(self): + """Gets the focal_type of this IpcResponseDTO. + + **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + + :return: The focal_type of this IpcResponseDTO. + :rtype: str + """ + return self._focal_type + + @focal_type.setter + def focal_type(self, focal_type): + """Sets the focal_type of this IpcResponseDTO. + + **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + + :param focal_type: The focal_type of this IpcResponseDTO. + :type focal_type: str + """ + self._focal_type = focal_type + + @property + def parent_connect_code(self): + """Gets the parent_connect_code of this IpcResponseDTO. + + **参数说明**:摄像头连接的ITS800的互联编码。 + + :return: The parent_connect_code of this IpcResponseDTO. + :rtype: str + """ + return self._parent_connect_code + + @parent_connect_code.setter + def parent_connect_code(self, parent_connect_code): + """Sets the parent_connect_code of this IpcResponseDTO. + + **参数说明**:摄像头连接的ITS800的互联编码。 + + :param parent_connect_code: The parent_connect_code of this IpcResponseDTO. + :type parent_connect_code: str + """ + self._parent_connect_code = parent_connect_code + + @property + def connect_code(self): + """Gets the connect_code of this IpcResponseDTO. + + **参数说明**:摄像头的互联编码。 + + :return: The connect_code of this IpcResponseDTO. + :rtype: str + """ + return self._connect_code + + @connect_code.setter + def connect_code(self, connect_code): + """Sets the connect_code of this IpcResponseDTO. + + **参数说明**:摄像头的互联编码。 + + :param connect_code: The connect_code of this IpcResponseDTO. + :type connect_code: str + """ + self._connect_code = connect_code + + @property + def description(self): + """Gets the description of this IpcResponseDTO. + + **参数说明**:描述。 + + :return: The description of this IpcResponseDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IpcResponseDTO. + + **参数说明**:描述。 + + :param description: The description of this IpcResponseDTO. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this IpcResponseDTO. + + **参数说明**:IPC的设备编码。 + + :return: The esn of this IpcResponseDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this IpcResponseDTO. + + **参数说明**:IPC的设备编码。 + + :param esn: The esn of this IpcResponseDTO. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this IpcResponseDTO. + + **参数说明**:该摄像头的ip地址。 + + :return: The ip of this IpcResponseDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this IpcResponseDTO. + + **参数说明**:该摄像头的ip地址。 + + :param ip: The ip of this IpcResponseDTO. + :type ip: str + """ + self._ip = ip + + @property + def status(self): + """Gets the status of this IpcResponseDTO. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :return: The status of this IpcResponseDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this IpcResponseDTO. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :param status: The status of this IpcResponseDTO. + :type status: str + """ + self._status = status + + @property + def created_time(self): + """Gets the created_time of this IpcResponseDTO. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this IpcResponseDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this IpcResponseDTO. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this IpcResponseDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this IpcResponseDTO. + + **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this IpcResponseDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this IpcResponseDTO. + + **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this IpcResponseDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def last_online_time(self): + """Gets the last_online_time of this IpcResponseDTO. + + **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_online_time of this IpcResponseDTO. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this IpcResponseDTO. + + **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_online_time: The last_online_time of this IpcResponseDTO. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IpcResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_request_dto.py new file mode 100755 index 0000000000..ee22505ddf --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_request_dto.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class KafkaConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'topic_prefix': 'str', + 'user_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'password': 'str' + } + + attribute_map = { + 'topic_prefix': 'topic_prefix', + 'user_topics': 'user_topics', + 'brokers': 'brokers', + 'username': 'username', + 'password': 'password' + } + + def __init__(self, topic_prefix=None, user_topics=None, brokers=None, username=None, password=None): + """KafkaConfigRequestDTO + + The model defined in huaweicloud sdk + + :param topic_prefix: **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 + :type topic_prefix: str + :param user_topics: **参数说明**:kafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type user_topics: list[str] + :param brokers: **参数说明**:Kafka broker列表。 + :type brokers: list[str] + :param username: **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param password: **参数说明**:kafka密码。 + :type password: str + """ + + + + self._topic_prefix = None + self._user_topics = None + self._brokers = None + self._username = None + self._password = None + self.discriminator = None + + if topic_prefix is not None: + self.topic_prefix = topic_prefix + if user_topics is not None: + self.user_topics = user_topics + self.brokers = brokers + if username is not None: + self.username = username + if password is not None: + self.password = password + + @property + def topic_prefix(self): + """Gets the topic_prefix of this KafkaConfigRequestDTO. + + **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 + + :return: The topic_prefix of this KafkaConfigRequestDTO. + :rtype: str + """ + return self._topic_prefix + + @topic_prefix.setter + def topic_prefix(self, topic_prefix): + """Sets the topic_prefix of this KafkaConfigRequestDTO. + + **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 + + :param topic_prefix: The topic_prefix of this KafkaConfigRequestDTO. + :type topic_prefix: str + """ + self._topic_prefix = topic_prefix + + @property + def user_topics(self): + """Gets the user_topics of this KafkaConfigRequestDTO. + + **参数说明**:kafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The user_topics of this KafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._user_topics + + @user_topics.setter + def user_topics(self, user_topics): + """Sets the user_topics of this KafkaConfigRequestDTO. + + **参数说明**:kafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param user_topics: The user_topics of this KafkaConfigRequestDTO. + :type user_topics: list[str] + """ + self._user_topics = user_topics + + @property + def brokers(self): + """Gets the brokers of this KafkaConfigRequestDTO. + + **参数说明**:Kafka broker列表。 + + :return: The brokers of this KafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this KafkaConfigRequestDTO. + + **参数说明**:Kafka broker列表。 + + :param brokers: The brokers of this KafkaConfigRequestDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this KafkaConfigRequestDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this KafkaConfigRequestDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this KafkaConfigRequestDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this KafkaConfigRequestDTO. + :type username: str + """ + self._username = username + + @property + def password(self): + """Gets the password of this KafkaConfigRequestDTO. + + **参数说明**:kafka密码。 + + :return: The password of this KafkaConfigRequestDTO. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this KafkaConfigRequestDTO. + + **参数说明**:kafka密码。 + + :param password: The password of this KafkaConfigRequestDTO. + :type password: str + """ + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KafkaConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_response_dto.py new file mode 100755 index 0000000000..9b25d77999 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/kafka_config_response_dto.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class KafkaConfigResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'kafka_config_id': 'str', + 'kafka_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'topic_prefix': 'str', + 'status': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'kafka_config_id': 'kafka_config_id', + 'kafka_topics': 'kafka_topics', + 'brokers': 'brokers', + 'username': 'username', + 'topic_prefix': 'topic_prefix', + 'status': 'status', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, kafka_config_id=None, kafka_topics=None, brokers=None, username=None, topic_prefix=None, status=None, created_time=None, last_modified_time=None): + """KafkaConfigResponseDTO + + The model defined in huaweicloud sdk + + :param kafka_config_id: **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type kafka_config_id: str + :param kafka_topics: **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type kafka_topics: list[str] + :param brokers: **参数说明**:Kafka broker列表。 + :type brokers: list[str] + :param username: **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param topic_prefix: **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type topic_prefix: str + :param status: **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + :type status: str + :param created_time: **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type created_time: datetime + :param last_modified_time: **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type last_modified_time: datetime + """ + + + + self._kafka_config_id = None + self._kafka_topics = None + self._brokers = None + self._username = None + self._topic_prefix = None + self._status = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if kafka_config_id is not None: + self.kafka_config_id = kafka_config_id + if kafka_topics is not None: + self.kafka_topics = kafka_topics + if brokers is not None: + self.brokers = brokers + if username is not None: + self.username = username + if topic_prefix is not None: + self.topic_prefix = topic_prefix + if status is not None: + self.status = status + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def kafka_config_id(self): + """Gets the kafka_config_id of this KafkaConfigResponseDTO. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The kafka_config_id of this KafkaConfigResponseDTO. + :rtype: str + """ + return self._kafka_config_id + + @kafka_config_id.setter + def kafka_config_id(self, kafka_config_id): + """Sets the kafka_config_id of this KafkaConfigResponseDTO. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param kafka_config_id: The kafka_config_id of this KafkaConfigResponseDTO. + :type kafka_config_id: str + """ + self._kafka_config_id = kafka_config_id + + @property + def kafka_topics(self): + """Gets the kafka_topics of this KafkaConfigResponseDTO. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The kafka_topics of this KafkaConfigResponseDTO. + :rtype: list[str] + """ + return self._kafka_topics + + @kafka_topics.setter + def kafka_topics(self, kafka_topics): + """Sets the kafka_topics of this KafkaConfigResponseDTO. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param kafka_topics: The kafka_topics of this KafkaConfigResponseDTO. + :type kafka_topics: list[str] + """ + self._kafka_topics = kafka_topics + + @property + def brokers(self): + """Gets the brokers of this KafkaConfigResponseDTO. + + **参数说明**:Kafka broker列表。 + + :return: The brokers of this KafkaConfigResponseDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this KafkaConfigResponseDTO. + + **参数说明**:Kafka broker列表。 + + :param brokers: The brokers of this KafkaConfigResponseDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this KafkaConfigResponseDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this KafkaConfigResponseDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this KafkaConfigResponseDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this KafkaConfigResponseDTO. + :type username: str + """ + self._username = username + + @property + def topic_prefix(self): + """Gets the topic_prefix of this KafkaConfigResponseDTO. + + **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The topic_prefix of this KafkaConfigResponseDTO. + :rtype: str + """ + return self._topic_prefix + + @topic_prefix.setter + def topic_prefix(self, topic_prefix): + """Sets the topic_prefix of this KafkaConfigResponseDTO. + + **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param topic_prefix: The topic_prefix of this KafkaConfigResponseDTO. + :type topic_prefix: str + """ + self._topic_prefix = topic_prefix + + @property + def status(self): + """Gets the status of this KafkaConfigResponseDTO. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :return: The status of this KafkaConfigResponseDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this KafkaConfigResponseDTO. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :param status: The status of this KafkaConfigResponseDTO. + :type status: str + """ + self._status = status + + @property + def created_time(self): + """Gets the created_time of this KafkaConfigResponseDTO. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The created_time of this KafkaConfigResponseDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this KafkaConfigResponseDTO. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param created_time: The created_time of this KafkaConfigResponseDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this KafkaConfigResponseDTO. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The last_modified_time of this KafkaConfigResponseDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this KafkaConfigResponseDTO. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param last_modified_time: The last_modified_time of this KafkaConfigResponseDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KafkaConfigResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/lane_occupancy.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/lane_occupancy.py new file mode 100755 index 0000000000..93a104c9f2 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/lane_occupancy.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LaneOccupancy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lane_id': 'int', + 'space_occupancy': 'float', + 'time_occupancy': 'float' + } + + attribute_map = { + 'lane_id': 'lane_id', + 'space_occupancy': 'space_occupancy', + 'time_occupancy': 'time_occupancy' + } + + def __init__(self, lane_id=None, space_occupancy=None, time_occupancy=None): + """LaneOccupancy + + The model defined in huaweicloud sdk + + :param lane_id: **参数说明**:车道编号。车道从左到右,从0开始编号 + :type lane_id: int + :param space_occupancy: **参数说明**:车道的空间占有率。 + :type space_occupancy: float + :param time_occupancy: **参数说明**:车道的时间占有率。 + :type time_occupancy: float + """ + + + + self._lane_id = None + self._space_occupancy = None + self._time_occupancy = None + self.discriminator = None + + if lane_id is not None: + self.lane_id = lane_id + if space_occupancy is not None: + self.space_occupancy = space_occupancy + if time_occupancy is not None: + self.time_occupancy = time_occupancy + + @property + def lane_id(self): + """Gets the lane_id of this LaneOccupancy. + + **参数说明**:车道编号。车道从左到右,从0开始编号 + + :return: The lane_id of this LaneOccupancy. + :rtype: int + """ + return self._lane_id + + @lane_id.setter + def lane_id(self, lane_id): + """Sets the lane_id of this LaneOccupancy. + + **参数说明**:车道编号。车道从左到右,从0开始编号 + + :param lane_id: The lane_id of this LaneOccupancy. + :type lane_id: int + """ + self._lane_id = lane_id + + @property + def space_occupancy(self): + """Gets the space_occupancy of this LaneOccupancy. + + **参数说明**:车道的空间占有率。 + + :return: The space_occupancy of this LaneOccupancy. + :rtype: float + """ + return self._space_occupancy + + @space_occupancy.setter + def space_occupancy(self, space_occupancy): + """Sets the space_occupancy of this LaneOccupancy. + + **参数说明**:车道的空间占有率。 + + :param space_occupancy: The space_occupancy of this LaneOccupancy. + :type space_occupancy: float + """ + self._space_occupancy = space_occupancy + + @property + def time_occupancy(self): + """Gets the time_occupancy of this LaneOccupancy. + + **参数说明**:车道的时间占有率。 + + :return: The time_occupancy of this LaneOccupancy. + :rtype: float + """ + return self._time_occupancy + + @time_occupancy.setter + def time_occupancy(self, time_occupancy): + """Sets the time_occupancy of this LaneOccupancy. + + **参数说明**:车道的时间占有率。 + + :param time_occupancy: The time_occupancy of this LaneOccupancy. + :type time_occupancy: float + """ + self._time_occupancy = time_occupancy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LaneOccupancy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_request.py new file mode 100755 index 0000000000..2d82091951 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_request.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListEdgeFlowsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'from_date': 'str', + 'to_date': 'str', + 'edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'from_date': 'from_date', + 'to_date': 'to_date', + 'edge_id': 'edge_id' + } + + def __init__(self, instance_id=None, offset=None, limit=None, from_date=None, to_date=None, edge_id=None): + """ListEdgeFlowsRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param from_date: **参数说明**:查询此时间后达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-01T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + :type from_date: str + :param to_date: **参数说明**:查询此时间前达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-02T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + :type to_date: str + :param edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 **取值范围**:数字,a至f的小写字母,横杠(-),长度为36的组合。 + :type edge_id: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._from_date = None + self._to_date = None + self._edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + if edge_id is not None: + self.edge_id = edge_id + + @property + def instance_id(self): + """Gets the instance_id of this ListEdgeFlowsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ListEdgeFlowsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListEdgeFlowsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ListEdgeFlowsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ListEdgeFlowsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this ListEdgeFlowsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListEdgeFlowsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this ListEdgeFlowsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListEdgeFlowsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this ListEdgeFlowsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListEdgeFlowsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this ListEdgeFlowsRequest. + :type limit: int + """ + self._limit = limit + + @property + def from_date(self): + """Gets the from_date of this ListEdgeFlowsRequest. + + **参数说明**:查询此时间后达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-01T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + + :return: The from_date of this ListEdgeFlowsRequest. + :rtype: str + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ListEdgeFlowsRequest. + + **参数说明**:查询此时间后达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-01T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + + :param from_date: The from_date of this ListEdgeFlowsRequest. + :type from_date: str + """ + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ListEdgeFlowsRequest. + + **参数说明**:查询此时间前达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-02T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + + :return: The to_date of this ListEdgeFlowsRequest. + :rtype: str + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ListEdgeFlowsRequest. + + **参数说明**:查询此时间前达到平台的消息。 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'。 例如 2020-09-02T01:37:01.000Z。 **取值范围**:携带edge_id参数查询时,from_date和to_date的时间范围不能超过24小时;未携带edge_id参数查询时,from_date和to_date的时间范围不能超过1小时。 + + :param to_date: The to_date of this ListEdgeFlowsRequest. + :type to_date: str + """ + self._to_date = to_date + + @property + def edge_id(self): + """Gets the edge_id of this ListEdgeFlowsRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 **取值范围**:数字,a至f的小写字母,横杠(-),长度为36的组合。 + + :return: The edge_id of this ListEdgeFlowsRequest. + :rtype: str + """ + return self._edge_id + + @edge_id.setter + def edge_id(self, edge_id): + """Sets the edge_id of this ListEdgeFlowsRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 **取值范围**:数字,a至f的小写字母,横杠(-),长度为36的组合。 + + :param edge_id: The edge_id of this ListEdgeFlowsRequest. + :type edge_id: str + """ + self._edge_id = edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEdgeFlowsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_response.py new file mode 100755 index 0000000000..0d80180eb7 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_edge_flows_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListEdgeFlowsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'statistics': 'list[OpenV2XStatisticsBody]' + } + + attribute_map = { + 'count': 'count', + 'statistics': 'statistics' + } + + def __init__(self, count=None, statistics=None): + """ListEdgeFlowsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:条件查询返回的总条数。 + :type count: int + :param statistics: **参数说明**:车辆流量,平均速度等统计信息列表 + :type statistics: list[:class:`huaweicloudsdkdris.v1.OpenV2XStatisticsBody`] + """ + + super(ListEdgeFlowsResponse, self).__init__() + + self._count = None + self._statistics = None + self.discriminator = None + + if count is not None: + self.count = count + if statistics is not None: + self.statistics = statistics + + @property + def count(self): + """Gets the count of this ListEdgeFlowsResponse. + + **参数说明**:条件查询返回的总条数。 + + :return: The count of this ListEdgeFlowsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListEdgeFlowsResponse. + + **参数说明**:条件查询返回的总条数。 + + :param count: The count of this ListEdgeFlowsResponse. + :type count: int + """ + self._count = count + + @property + def statistics(self): + """Gets the statistics of this ListEdgeFlowsResponse. + + **参数说明**:车辆流量,平均速度等统计信息列表 + + :return: The statistics of this ListEdgeFlowsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.OpenV2XStatisticsBody`] + """ + return self._statistics + + @statistics.setter + def statistics(self, statistics): + """Sets the statistics of this ListEdgeFlowsResponse. + + **参数说明**:车辆流量,平均速度等统计信息列表 + + :param statistics: The statistics of this ListEdgeFlowsResponse. + :type statistics: list[:class:`huaweicloudsdkdris.v1.OpenV2XStatisticsBody`] + """ + self._statistics = statistics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListEdgeFlowsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_request.py new file mode 100755 index 0000000000..3750578a3a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_request.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRsuModelsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'limit': 'int', + 'manufacturer_name': 'str', + 'offset': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'limit': 'limit', + 'manufacturer_name': 'manufacturer_name', + 'offset': 'offset' + } + + def __init__(self, instance_id=None, limit=None, manufacturer_name=None, offset=None): + """ListRsuModelsRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + """ + + + + self._instance_id = None + self._limit = None + self._manufacturer_name = None + self._offset = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if limit is not None: + self.limit = limit + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if offset is not None: + self.offset = offset + + @property + def instance_id(self): + """Gets the instance_id of this ListRsuModelsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ListRsuModelsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListRsuModelsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ListRsuModelsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def limit(self): + """Gets the limit of this ListRsuModelsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this ListRsuModelsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRsuModelsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this ListRsuModelsRequest. + :type limit: int + """ + self._limit = limit + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this ListRsuModelsRequest. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this ListRsuModelsRequest. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this ListRsuModelsRequest. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this ListRsuModelsRequest. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def offset(self): + """Gets the offset of this ListRsuModelsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this ListRsuModelsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRsuModelsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this ListRsuModelsRequest. + :type offset: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRsuModelsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_response.py new file mode 100755 index 0000000000..88c2fddd22 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_rsu_models_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRsuModelsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'rsu_models': 'list[RsuModelSummary]' + } + + attribute_map = { + 'count': 'count', + 'rsu_models': 'rsu_models' + } + + def __init__(self, count=None, rsu_models=None): + """ListRsuModelsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:满足查询条件的记录总数。 + :type count: int + :param rsu_models: **参数说明**:RSU型号信息列表。 + :type rsu_models: list[:class:`huaweicloudsdkdris.v1.RsuModelSummary`] + """ + + super(ListRsuModelsResponse, self).__init__() + + self._count = None + self._rsu_models = None + self.discriminator = None + + if count is not None: + self.count = count + if rsu_models is not None: + self.rsu_models = rsu_models + + @property + def count(self): + """Gets the count of this ListRsuModelsResponse. + + **参数说明**:满足查询条件的记录总数。 + + :return: The count of this ListRsuModelsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListRsuModelsResponse. + + **参数说明**:满足查询条件的记录总数。 + + :param count: The count of this ListRsuModelsResponse. + :type count: int + """ + self._count = count + + @property + def rsu_models(self): + """Gets the rsu_models of this ListRsuModelsResponse. + + **参数说明**:RSU型号信息列表。 + + :return: The rsu_models of this ListRsuModelsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.RsuModelSummary`] + """ + return self._rsu_models + + @rsu_models.setter + def rsu_models(self, rsu_models): + """Sets the rsu_models of this ListRsuModelsResponse. + + **参数说明**:RSU型号信息列表。 + + :param rsu_models: The rsu_models of this ListRsuModelsResponse. + :type rsu_models: list[:class:`huaweicloudsdkdris.v1.RsuModelSummary`] + """ + self._rsu_models = rsu_models + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRsuModelsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_request.py new file mode 100755 index 0000000000..090d6a9156 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_request.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListV2xEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, v2x_edge_id=None, instance_id=None, offset=None, limit=None): + """ListV2xEdgeAppRequest + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:每页记录数。 + :type limit: int + """ + + + + self._v2x_edge_id = None + self._instance_id = None + self._offset = None + self._limit = None + self.discriminator = None + + self.v2x_edge_id = v2x_edge_id + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ListV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this ListV2xEdgeAppRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ListV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this ListV2xEdgeAppRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this ListV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this ListV2xEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this ListV2xEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ListV2xEdgeAppRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this ListV2xEdgeAppRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListV2xEdgeAppRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this ListV2xEdgeAppRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListV2xEdgeAppRequest. + + **参数说明**:每页记录数。 + + :return: The limit of this ListV2xEdgeAppRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListV2xEdgeAppRequest. + + **参数说明**:每页记录数。 + + :param limit: The limit of this ListV2xEdgeAppRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListV2xEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_response.py new file mode 100755 index 0000000000..550494052f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edge_app_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListV2xEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'apps': 'list[V2XEdgeAppResponseDTO]' + } + + attribute_map = { + 'count': 'count', + 'apps': 'apps' + } + + def __init__(self, count=None, apps=None): + """ListV2xEdgeAppResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:满足查询条件的记录数。 + :type count: int + :param apps: **参数说明**:已部署的边缘应用列表。 + :type apps: list[:class:`huaweicloudsdkdris.v1.V2XEdgeAppResponseDTO`] + """ + + super(ListV2xEdgeAppResponse, self).__init__() + + self._count = None + self._apps = None + self.discriminator = None + + if count is not None: + self.count = count + if apps is not None: + self.apps = apps + + @property + def count(self): + """Gets the count of this ListV2xEdgeAppResponse. + + **参数说明**:满足查询条件的记录数。 + + :return: The count of this ListV2xEdgeAppResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListV2xEdgeAppResponse. + + **参数说明**:满足查询条件的记录数。 + + :param count: The count of this ListV2xEdgeAppResponse. + :type count: int + """ + self._count = count + + @property + def apps(self): + """Gets the apps of this ListV2xEdgeAppResponse. + + **参数说明**:已部署的边缘应用列表。 + + :return: The apps of this ListV2xEdgeAppResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.V2XEdgeAppResponseDTO`] + """ + return self._apps + + @apps.setter + def apps(self, apps): + """Sets the apps of this ListV2xEdgeAppResponse. + + **参数说明**:已部署的边缘应用列表。 + + :param apps: The apps of this ListV2xEdgeAppResponse. + :type apps: list[:class:`huaweicloudsdkdris.v1.V2XEdgeAppResponseDTO`] + """ + self._apps = apps + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListV2xEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_request.py new file mode 100755 index 0000000000..adf36760f8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_request.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListV2xEdgesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'status': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'status': 'status' + } + + def __init__(self, instance_id=None, offset=None, limit=None, status=None): + """ListV2xEdgesRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param status: **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + :type status: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._status = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if status is not None: + self.status = status + + @property + def instance_id(self): + """Gets the instance_id of this ListV2xEdgesRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ListV2xEdgesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListV2xEdgesRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ListV2xEdgesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ListV2xEdgesRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this ListV2xEdgesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListV2xEdgesRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this ListV2xEdgesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListV2xEdgesRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this ListV2xEdgesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListV2xEdgesRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this ListV2xEdgesRequest. + :type limit: int + """ + self._limit = limit + + @property + def status(self): + """Gets the status of this ListV2xEdgesRequest. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :return: The status of this ListV2xEdgesRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListV2xEdgesRequest. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :param status: The status of this ListV2xEdgesRequest. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListV2xEdgesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_response.py new file mode 100755 index 0000000000..9d157ad784 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/list_v2x_edges_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListV2xEdgesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'edges': 'list[V2XEdgeListResponseDTO]' + } + + attribute_map = { + 'count': 'count', + 'edges': 'edges' + } + + def __init__(self, count=None, edges=None): + """ListV2xEdgesResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:总数。 + :type count: int + :param edges: **参数说明**:数据列表。 + :type edges: list[:class:`huaweicloudsdkdris.v1.V2XEdgeListResponseDTO`] + """ + + super(ListV2xEdgesResponse, self).__init__() + + self._count = None + self._edges = None + self.discriminator = None + + if count is not None: + self.count = count + if edges is not None: + self.edges = edges + + @property + def count(self): + """Gets the count of this ListV2xEdgesResponse. + + **参数说明**:总数。 + + :return: The count of this ListV2xEdgesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListV2xEdgesResponse. + + **参数说明**:总数。 + + :param count: The count of this ListV2xEdgesResponse. + :type count: int + """ + self._count = count + + @property + def edges(self): + """Gets the edges of this ListV2xEdgesResponse. + + **参数说明**:数据列表。 + + :return: The edges of this ListV2xEdgesResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.V2XEdgeListResponseDTO`] + """ + return self._edges + + @edges.setter + def edges(self, edges): + """Sets the edges of this ListV2xEdgesResponse. + + **参数说明**:数据列表。 + + :param edges: The edges of this ListV2xEdgesResponse. + :type edges: list[:class:`huaweicloudsdkdris.v1.V2XEdgeListResponseDTO`] + """ + self._edges = edges + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListV2xEdgesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/location.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/location.py new file mode 100755 index 0000000000..efed3b3a0b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/location.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Location: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lat': 'float', + 'lon': 'float' + } + + attribute_map = { + 'lat': 'lat', + 'lon': 'lon' + } + + def __init__(self, lat=None, lon=None): + """Location + + The model defined in huaweicloud sdk + + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负。单位°,精度小数点后7位。 + :type lon: float + """ + + + + self._lat = None + self._lon = None + self.discriminator = None + + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + + @property + def lat(self): + """Gets the lat of this Location. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this Location. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this Location. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this Location. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this Location. + + **参数说明**:定义经度数值。东经为正,西经为负。单位°,精度小数点后7位。 + + :return: The lon of this Location. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this Location. + + **参数说明**:定义经度数值。东经为正,西经为负。单位°,精度小数点后7位。 + + :param lon: The lon of this Location. + :type lon: float + """ + self._lon = lon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Location): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/model_flow.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/model_flow.py new file mode 100755 index 0000000000..8debe6a513 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/model_flow.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModelFlow: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vehicle_class': 'int', + 'flow': 'int', + 'average_speed': 'float' + } + + attribute_map = { + 'vehicle_class': 'vehicle_class', + 'flow': 'flow', + 'average_speed': 'average_speed' + } + + def __init__(self, vehicle_class=None, flow=None, average_speed=None): + """ModelFlow + + The model defined in huaweicloud sdk + + :param vehicle_class: **参数说明**:车辆类型。参考[车辆基本类型](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + :type vehicle_class: int + :param flow: **参数说明**:统计周期内的车辆数。 + :type flow: int + :param average_speed: **参数说明**:车辆平均速度,单位km/h。 + :type average_speed: float + """ + + + + self._vehicle_class = None + self._flow = None + self._average_speed = None + self.discriminator = None + + if vehicle_class is not None: + self.vehicle_class = vehicle_class + if flow is not None: + self.flow = flow + if average_speed is not None: + self.average_speed = average_speed + + @property + def vehicle_class(self): + """Gets the vehicle_class of this ModelFlow. + + **参数说明**:车辆类型。参考[车辆基本类型](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + + :return: The vehicle_class of this ModelFlow. + :rtype: int + """ + return self._vehicle_class + + @vehicle_class.setter + def vehicle_class(self, vehicle_class): + """Sets the vehicle_class of this ModelFlow. + + **参数说明**:车辆类型。参考[车辆基本类型](https://support.huaweicloud.com/api-v2x/v2x_04_0162.html)。 + + :param vehicle_class: The vehicle_class of this ModelFlow. + :type vehicle_class: int + """ + self._vehicle_class = vehicle_class + + @property + def flow(self): + """Gets the flow of this ModelFlow. + + **参数说明**:统计周期内的车辆数。 + + :return: The flow of this ModelFlow. + :rtype: int + """ + return self._flow + + @flow.setter + def flow(self, flow): + """Sets the flow of this ModelFlow. + + **参数说明**:统计周期内的车辆数。 + + :param flow: The flow of this ModelFlow. + :type flow: int + """ + self._flow = flow + + @property + def average_speed(self): + """Gets the average_speed of this ModelFlow. + + **参数说明**:车辆平均速度,单位km/h。 + + :return: The average_speed of this ModelFlow. + :rtype: float + """ + return self._average_speed + + @average_speed.setter + def average_speed(self, average_speed): + """Sets the average_speed of this ModelFlow. + + **参数说明**:车辆平均速度,单位km/h。 + + :param average_speed: The average_speed of this ModelFlow. + :type average_speed: float + """ + self._average_speed = average_speed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModelFlow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_rsu_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_rsu_request_dto.py new file mode 100755 index 0000000000..5dbdc77ac3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_rsu_request_dto.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyRsuRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'ip': 'str', + 'position_description': 'str', + 'related_edge_num': 'int', + 'intersection_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'ip': 'ip', + 'position_description': 'position_description', + 'related_edge_num': 'related_edge_num', + 'intersection_id': 'intersection_id' + } + + def __init__(self, name=None, description=None, ip=None, position_description=None, related_edge_num=None, intersection_id=None): + """ModifyRsuRequestDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param ip: **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + :type ip: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param related_edge_num: **参数说明**:RSU可关联的Edge的数量,修改值需大于等于当前已连接设备。 + :type related_edge_num: int + :param intersection_id: **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + :type intersection_id: str + """ + + + + self._name = None + self._description = None + self._ip = None + self._position_description = None + self._related_edge_num = None + self._intersection_id = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if ip is not None: + self.ip = ip + if position_description is not None: + self.position_description = position_description + if related_edge_num is not None: + self.related_edge_num = related_edge_num + if intersection_id is not None: + self.intersection_id = intersection_id + + @property + def name(self): + """Gets the name of this ModifyRsuRequestDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this ModifyRsuRequestDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyRsuRequestDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this ModifyRsuRequestDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyRsuRequestDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this ModifyRsuRequestDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyRsuRequestDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this ModifyRsuRequestDTO. + :type description: str + """ + self._description = description + + @property + def ip(self): + """Gets the ip of this ModifyRsuRequestDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :return: The ip of this ModifyRsuRequestDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ModifyRsuRequestDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :param ip: The ip of this ModifyRsuRequestDTO. + :type ip: str + """ + self._ip = ip + + @property + def position_description(self): + """Gets the position_description of this ModifyRsuRequestDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this ModifyRsuRequestDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this ModifyRsuRequestDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this ModifyRsuRequestDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def related_edge_num(self): + """Gets the related_edge_num of this ModifyRsuRequestDTO. + + **参数说明**:RSU可关联的Edge的数量,修改值需大于等于当前已连接设备。 + + :return: The related_edge_num of this ModifyRsuRequestDTO. + :rtype: int + """ + return self._related_edge_num + + @related_edge_num.setter + def related_edge_num(self, related_edge_num): + """Sets the related_edge_num of this ModifyRsuRequestDTO. + + **参数说明**:RSU可关联的Edge的数量,修改值需大于等于当前已连接设备。 + + :param related_edge_num: The related_edge_num of this ModifyRsuRequestDTO. + :type related_edge_num: int + """ + self._related_edge_num = related_edge_num + + @property + def intersection_id(self): + """Gets the intersection_id of this ModifyRsuRequestDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :return: The intersection_id of this ModifyRsuRequestDTO. + :rtype: str + """ + return self._intersection_id + + @intersection_id.setter + def intersection_id(self, intersection_id): + """Sets the intersection_id of this ModifyRsuRequestDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :param intersection_id: The intersection_id of this ModifyRsuRequestDTO. + :type intersection_id: str + """ + self._intersection_id = intersection_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyRsuRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_traffic_controller_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_traffic_controller_request_dto.py new file mode 100755 index 0000000000..7d0878504f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_traffic_controller_request_dto.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyTrafficControllerRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'lat': 'float', + 'lon': 'float', + 'ele': 'float', + 'pos_description': 'str', + 'installation_mode': 'str', + 'road_name': 'str', + 'link_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele', + 'pos_description': 'pos_description', + 'installation_mode': 'installation_mode', + 'road_name': 'road_name', + 'link_id': 'link_id' + } + + def __init__(self, name=None, description=None, lat=None, lon=None, ele=None, pos_description=None, installation_mode=None, road_name=None, link_id=None): + """ModifyTrafficControllerRequestDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_-等字符的组合。 + :type name: str + :param description: **参数说明**:描述 + :type description: str + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + :param pos_description: **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + :type pos_description: str + :param installation_mode: **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + :type installation_mode: str + :param road_name: **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + :type road_name: str + :param link_id: **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + :type link_id: str + """ + + + + self._name = None + self._description = None + self._lat = None + self._lon = None + self._ele = None + self._pos_description = None + self._installation_mode = None + self._road_name = None + self._link_id = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if ele is not None: + self.ele = ele + if pos_description is not None: + self.pos_description = pos_description + if installation_mode is not None: + self.installation_mode = installation_mode + if road_name is not None: + self.road_name = road_name + if link_id is not None: + self.link_id = link_id + + @property + def name(self): + """Gets the name of this ModifyTrafficControllerRequestDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The name of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyTrafficControllerRequestDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param name: The name of this ModifyTrafficControllerRequestDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyTrafficControllerRequestDTO. + + **参数说明**:描述 + + :return: The description of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyTrafficControllerRequestDTO. + + **参数说明**:描述 + + :param description: The description of this ModifyTrafficControllerRequestDTO. + :type description: str + """ + self._description = description + + @property + def lat(self): + """Gets the lat of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this ModifyTrafficControllerRequestDTO. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this ModifyTrafficControllerRequestDTO. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this ModifyTrafficControllerRequestDTO. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this ModifyTrafficControllerRequestDTO. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this ModifyTrafficControllerRequestDTO. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this ModifyTrafficControllerRequestDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this ModifyTrafficControllerRequestDTO. + :type ele: float + """ + self._ele = ele + + @property + def pos_description(self): + """Gets the pos_description of this ModifyTrafficControllerRequestDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :return: The pos_description of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._pos_description + + @pos_description.setter + def pos_description(self, pos_description): + """Sets the pos_description of this ModifyTrafficControllerRequestDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :param pos_description: The pos_description of this ModifyTrafficControllerRequestDTO. + :type pos_description: str + """ + self._pos_description = pos_description + + @property + def installation_mode(self): + """Gets the installation_mode of this ModifyTrafficControllerRequestDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + + :return: The installation_mode of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._installation_mode + + @installation_mode.setter + def installation_mode(self, installation_mode): + """Sets the installation_mode of this ModifyTrafficControllerRequestDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式\" + + :param installation_mode: The installation_mode of this ModifyTrafficControllerRequestDTO. + :type installation_mode: str + """ + self._installation_mode = installation_mode + + @property + def road_name(self): + """Gets the road_name of this ModifyTrafficControllerRequestDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The road_name of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._road_name + + @road_name.setter + def road_name(self, road_name): + """Sets the road_name of this ModifyTrafficControllerRequestDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param road_name: The road_name of this ModifyTrafficControllerRequestDTO. + :type road_name: str + """ + self._road_name = road_name + + @property + def link_id(self): + """Gets the link_id of this ModifyTrafficControllerRequestDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :return: The link_id of this ModifyTrafficControllerRequestDTO. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this ModifyTrafficControllerRequestDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :param link_id: The link_id of this ModifyTrafficControllerRequestDTO. + :type link_id: str + """ + self._link_id = link_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyTrafficControllerRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_app_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_app_dto.py new file mode 100755 index 0000000000..e3bf7f3cdf --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_app_dto.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyV2XEdgeAppDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_version': 'str' + } + + attribute_map = { + 'app_version': 'app_version' + } + + def __init__(self, app_version=None): + """ModifyV2XEdgeAppDTO + + The model defined in huaweicloud sdk + + :param app_version: **参数说明**:应用版本,比如1.0.0,升级边缘应用版本时应确保应用版本状态为发布(PUBLISHED),查询应用版本状态方法参见:[查询应用版本详情](https://support.huaweicloud.com/api-v2x/v2x_04_0104.html),更新应用版本状态方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + :type app_version: str + """ + + + + self._app_version = None + self.discriminator = None + + self.app_version = app_version + + @property + def app_version(self): + """Gets the app_version of this ModifyV2XEdgeAppDTO. + + **参数说明**:应用版本,比如1.0.0,升级边缘应用版本时应确保应用版本状态为发布(PUBLISHED),查询应用版本状态方法参见:[查询应用版本详情](https://support.huaweicloud.com/api-v2x/v2x_04_0104.html),更新应用版本状态方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + + :return: The app_version of this ModifyV2XEdgeAppDTO. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this ModifyV2XEdgeAppDTO. + + **参数说明**:应用版本,比如1.0.0,升级边缘应用版本时应确保应用版本状态为发布(PUBLISHED),查询应用版本状态方法参见:[查询应用版本详情](https://support.huaweicloud.com/api-v2x/v2x_04_0104.html),更新应用版本状态方法参见:[更新应用版本状态](https://support.huaweicloud.com/api-v2x/v2x_04_0105.html)。 **取值范围**:只允许小写字母、数字、连接符(-)、点(.)的组合且要以小写字母或数字开头和结尾。 + + :param app_version: The app_version of this ModifyV2XEdgeAppDTO. + :type app_version: str + """ + self._app_version = app_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyV2XEdgeAppDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_dto.py new file mode 100755 index 0000000000..b9cadecd8b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_v2_x_edge_dto.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyV2XEdgeDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'port': 'int', + 'position_description': 'str', + 'location': 'Location', + 'camera_ids': 'list[str]', + 'radar_ids': 'list[str]', + 'local_rsus': 'list[str]', + 'edge_general_config': 'EdgeGeneralConfig', + 'edge_advance_config': 'object' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'port': 'port', + 'position_description': 'position_description', + 'location': 'location', + 'camera_ids': 'camera_ids', + 'radar_ids': 'radar_ids', + 'local_rsus': 'local_rsus', + 'edge_general_config': 'edge_general_config', + 'edge_advance_config': 'edge_advance_config' + } + + def __init__(self, name=None, description=None, esn=None, ip=None, port=None, position_description=None, location=None, camera_ids=None, radar_ids=None, local_rsus=None, edge_general_config=None, edge_advance_config=None): + """ModifyV2XEdgeDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + :type name: str + :param description: **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、以及_.-等字符的组合。 + :type description: str + :param esn: **参数说明**:设备编码。仅用于一致性检查,不可修改。 **取值范围**:长度不超过64,只允许中文、字母、数字、以及_等字符的组合。 + :type esn: str + :param ip: **参数说明**:网络IP,例如:127.0.0.1。 + :type ip: str + :param port: **参数说明**:ITS800,ATLAS 端口号。 + :type port: int + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param camera_ids: **参数说明**:摄像头ID列表。 + :type camera_ids: list[str] + :param radar_ids: **参数说明**:雷达ID列表。 + :type radar_ids: list[str] + :param local_rsus: **参数说明**:Edge关联的本地RSU列表。 + :type local_rsus: list[str] + :param edge_general_config: + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + :param edge_advance_config: **参数说明**:Edge高级配置(请谨慎修改,错误的配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可。 + :type edge_advance_config: object + """ + + + + self._name = None + self._description = None + self._esn = None + self._ip = None + self._port = None + self._position_description = None + self._location = None + self._camera_ids = None + self._radar_ids = None + self._local_rsus = None + self._edge_general_config = None + self._edge_advance_config = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if camera_ids is not None: + self.camera_ids = camera_ids + if radar_ids is not None: + self.radar_ids = radar_ids + if local_rsus is not None: + self.local_rsus = local_rsus + if edge_general_config is not None: + self.edge_general_config = edge_general_config + if edge_advance_config is not None: + self.edge_advance_config = edge_advance_config + + @property + def name(self): + """Gets the name of this ModifyV2XEdgeDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :return: The name of this ModifyV2XEdgeDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyV2XEdgeDTO. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :param name: The name of this ModifyV2XEdgeDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyV2XEdgeDTO. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、以及_.-等字符的组合。 + + :return: The description of this ModifyV2XEdgeDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyV2XEdgeDTO. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、以及_.-等字符的组合。 + + :param description: The description of this ModifyV2XEdgeDTO. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this ModifyV2XEdgeDTO. + + **参数说明**:设备编码。仅用于一致性检查,不可修改。 **取值范围**:长度不超过64,只允许中文、字母、数字、以及_等字符的组合。 + + :return: The esn of this ModifyV2XEdgeDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this ModifyV2XEdgeDTO. + + **参数说明**:设备编码。仅用于一致性检查,不可修改。 **取值范围**:长度不超过64,只允许中文、字母、数字、以及_等字符的组合。 + + :param esn: The esn of this ModifyV2XEdgeDTO. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this ModifyV2XEdgeDTO. + + **参数说明**:网络IP,例如:127.0.0.1。 + + :return: The ip of this ModifyV2XEdgeDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ModifyV2XEdgeDTO. + + **参数说明**:网络IP,例如:127.0.0.1。 + + :param ip: The ip of this ModifyV2XEdgeDTO. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this ModifyV2XEdgeDTO. + + **参数说明**:ITS800,ATLAS 端口号。 + + :return: The port of this ModifyV2XEdgeDTO. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this ModifyV2XEdgeDTO. + + **参数说明**:ITS800,ATLAS 端口号。 + + :param port: The port of this ModifyV2XEdgeDTO. + :type port: int + """ + self._port = port + + @property + def position_description(self): + """Gets the position_description of this ModifyV2XEdgeDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this ModifyV2XEdgeDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this ModifyV2XEdgeDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this ModifyV2XEdgeDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this ModifyV2XEdgeDTO. + + :return: The location of this ModifyV2XEdgeDTO. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this ModifyV2XEdgeDTO. + + :param location: The location of this ModifyV2XEdgeDTO. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def camera_ids(self): + """Gets the camera_ids of this ModifyV2XEdgeDTO. + + **参数说明**:摄像头ID列表。 + + :return: The camera_ids of this ModifyV2XEdgeDTO. + :rtype: list[str] + """ + return self._camera_ids + + @camera_ids.setter + def camera_ids(self, camera_ids): + """Sets the camera_ids of this ModifyV2XEdgeDTO. + + **参数说明**:摄像头ID列表。 + + :param camera_ids: The camera_ids of this ModifyV2XEdgeDTO. + :type camera_ids: list[str] + """ + self._camera_ids = camera_ids + + @property + def radar_ids(self): + """Gets the radar_ids of this ModifyV2XEdgeDTO. + + **参数说明**:雷达ID列表。 + + :return: The radar_ids of this ModifyV2XEdgeDTO. + :rtype: list[str] + """ + return self._radar_ids + + @radar_ids.setter + def radar_ids(self, radar_ids): + """Sets the radar_ids of this ModifyV2XEdgeDTO. + + **参数说明**:雷达ID列表。 + + :param radar_ids: The radar_ids of this ModifyV2XEdgeDTO. + :type radar_ids: list[str] + """ + self._radar_ids = radar_ids + + @property + def local_rsus(self): + """Gets the local_rsus of this ModifyV2XEdgeDTO. + + **参数说明**:Edge关联的本地RSU列表。 + + :return: The local_rsus of this ModifyV2XEdgeDTO. + :rtype: list[str] + """ + return self._local_rsus + + @local_rsus.setter + def local_rsus(self, local_rsus): + """Sets the local_rsus of this ModifyV2XEdgeDTO. + + **参数说明**:Edge关联的本地RSU列表。 + + :param local_rsus: The local_rsus of this ModifyV2XEdgeDTO. + :type local_rsus: list[str] + """ + self._local_rsus = local_rsus + + @property + def edge_general_config(self): + """Gets the edge_general_config of this ModifyV2XEdgeDTO. + + :return: The edge_general_config of this ModifyV2XEdgeDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + """ + return self._edge_general_config + + @edge_general_config.setter + def edge_general_config(self, edge_general_config): + """Sets the edge_general_config of this ModifyV2XEdgeDTO. + + :param edge_general_config: The edge_general_config of this ModifyV2XEdgeDTO. + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfig` + """ + self._edge_general_config = edge_general_config + + @property + def edge_advance_config(self): + """Gets the edge_advance_config of this ModifyV2XEdgeDTO. + + **参数说明**:Edge高级配置(请谨慎修改,错误的配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可。 + + :return: The edge_advance_config of this ModifyV2XEdgeDTO. + :rtype: object + """ + return self._edge_advance_config + + @edge_advance_config.setter + def edge_advance_config(self, edge_advance_config): + """Sets the edge_advance_config of this ModifyV2XEdgeDTO. + + **参数说明**:Edge高级配置(请谨慎修改,错误的配置将导致edge不可用),Json格式;如果想要删除整个edge_advance_config可以填写空Object(例如:{})。如果想移除某个配置项,直接从配置数据中移除相应的属性即可。 + + :param edge_advance_config: The edge_advance_config of this ModifyV2XEdgeDTO. + :type edge_advance_config: object + """ + self._edge_advance_config = edge_advance_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyV2XEdgeDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_vehicle_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_vehicle_request_dto.py new file mode 100755 index 0000000000..18d2d9ced9 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/modify_vehicle_request_dto.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyVehicleRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'imei': 'str', + 'brand': 'str', + 'model': 'str', + 'style': 'str', + 'fuel_type': 'str', + 'color': 'str', + 'plate_color': 'str', + 'access_type': 'str', + 'description': 'str' + } + + attribute_map = { + 'imei': 'imei', + 'brand': 'brand', + 'model': 'model', + 'style': 'style', + 'fuel_type': 'fuel_type', + 'color': 'color', + 'plate_color': 'plate_color', + 'access_type': 'access_type', + 'description': 'description' + } + + def __init__(self, imei=None, brand=None, model=None, style=None, fuel_type=None, color=None, plate_color=None, access_type=None, description=None): + """ModifyVehicleRequestDTO + + The model defined in huaweicloud sdk + + :param imei: **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + :type imei: str + :param brand: **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type brand: str + :param model: **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + :type model: str + :param style: **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + :type style: str + :param fuel_type: **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + :type fuel_type: str + :param color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + :type color: str + :param plate_color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + :type plate_color: str + :param access_type: **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + :type access_type: str + :param description: **参数说明**:描述 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + """ + + + + self._imei = None + self._brand = None + self._model = None + self._style = None + self._fuel_type = None + self._color = None + self._plate_color = None + self._access_type = None + self._description = None + self.discriminator = None + + if imei is not None: + self.imei = imei + if brand is not None: + self.brand = brand + if model is not None: + self.model = model + if style is not None: + self.style = style + if fuel_type is not None: + self.fuel_type = fuel_type + if color is not None: + self.color = color + if plate_color is not None: + self.plate_color = plate_color + if access_type is not None: + self.access_type = access_type + if description is not None: + self.description = description + + @property + def imei(self): + """Gets the imei of this ModifyVehicleRequestDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :return: The imei of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._imei + + @imei.setter + def imei(self, imei): + """Sets the imei of this ModifyVehicleRequestDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :param imei: The imei of this ModifyVehicleRequestDTO. + :type imei: str + """ + self._imei = imei + + @property + def brand(self): + """Gets the brand of this ModifyVehicleRequestDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The brand of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this ModifyVehicleRequestDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param brand: The brand of this ModifyVehicleRequestDTO. + :type brand: str + """ + self._brand = brand + + @property + def model(self): + """Gets the model of this ModifyVehicleRequestDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The model of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this ModifyVehicleRequestDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :param model: The model of this ModifyVehicleRequestDTO. + :type model: str + """ + self._model = model + + @property + def style(self): + """Gets the style of this ModifyVehicleRequestDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :return: The style of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._style + + @style.setter + def style(self, style): + """Sets the style of this ModifyVehicleRequestDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :param style: The style of this ModifyVehicleRequestDTO. + :type style: str + """ + self._style = style + + @property + def fuel_type(self): + """Gets the fuel_type of this ModifyVehicleRequestDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :return: The fuel_type of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._fuel_type + + @fuel_type.setter + def fuel_type(self, fuel_type): + """Sets the fuel_type of this ModifyVehicleRequestDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :param fuel_type: The fuel_type of this ModifyVehicleRequestDTO. + :type fuel_type: str + """ + self._fuel_type = fuel_type + + @property + def color(self): + """Gets the color of this ModifyVehicleRequestDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + + :return: The color of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this ModifyVehicleRequestDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他 + + :param color: The color of this ModifyVehicleRequestDTO. + :type color: str + """ + self._color = color + + @property + def plate_color(self): + """Gets the plate_color of this ModifyVehicleRequestDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :return: The plate_color of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._plate_color + + @plate_color.setter + def plate_color(self, plate_color): + """Sets the plate_color of this ModifyVehicleRequestDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :param plate_color: The plate_color of this ModifyVehicleRequestDTO. + :type plate_color: str + """ + self._plate_color = plate_color + + @property + def access_type(self): + """Gets the access_type of this ModifyVehicleRequestDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :return: The access_type of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this ModifyVehicleRequestDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :param access_type: The access_type of this ModifyVehicleRequestDTO. + :type access_type: str + """ + self._access_type = access_type + + @property + def description(self): + """Gets the description of this ModifyVehicleRequestDTO. + + **参数说明**:描述 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this ModifyVehicleRequestDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyVehicleRequestDTO. + + **参数说明**:描述 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this ModifyVehicleRequestDTO. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyVehicleRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_request_dto.py new file mode 100755 index 0000000000..c46c9392b9 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_request_dto.py @@ -0,0 +1,262 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MrsKafkaConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'user_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'authentication': 'bool', + 'krb5_content': 'str', + 'keytab_content': 'str' + } + + attribute_map = { + 'user_topics': 'user_topics', + 'brokers': 'brokers', + 'username': 'username', + 'authentication': 'authentication', + 'krb5_content': 'krb5_content', + 'keytab_content': 'keytab_content' + } + + def __init__(self, user_topics=None, brokers=None, username=None, authentication=None, krb5_content=None, keytab_content=None): + """MrsKafkaConfigRequestDTO + + The model defined in huaweicloud sdk + + :param user_topics: **参数说明**:mrskafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type user_topics: list[str] + :param brokers: **参数说明**:mrsKafka broker列表。 + :type brokers: list[str] + :param username: **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param authentication: **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + :type authentication: bool + :param krb5_content: **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + :type krb5_content: str + :param keytab_content: **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + :type keytab_content: str + """ + + + + self._user_topics = None + self._brokers = None + self._username = None + self._authentication = None + self._krb5_content = None + self._keytab_content = None + self.discriminator = None + + if user_topics is not None: + self.user_topics = user_topics + self.brokers = brokers + if username is not None: + self.username = username + if authentication is not None: + self.authentication = authentication + if krb5_content is not None: + self.krb5_content = krb5_content + if keytab_content is not None: + self.keytab_content = keytab_content + + @property + def user_topics(self): + """Gets the user_topics of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The user_topics of this MrsKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._user_topics + + @user_topics.setter + def user_topics(self, user_topics): + """Sets the user_topics of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka的主题列表,根据需要转发的消息类型填写。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param user_topics: The user_topics of this MrsKafkaConfigRequestDTO. + :type user_topics: list[str] + """ + self._user_topics = user_topics + + @property + def brokers(self): + """Gets the brokers of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrsKafka broker列表。 + + :return: The brokers of this MrsKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrsKafka broker列表。 + + :param brokers: The brokers of this MrsKafkaConfigRequestDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this MrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this MrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this MrsKafkaConfigRequestDTO. + :type username: str + """ + self._username = username + + @property + def authentication(self): + """Gets the authentication of this MrsKafkaConfigRequestDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :return: The authentication of this MrsKafkaConfigRequestDTO. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """Sets the authentication of this MrsKafkaConfigRequestDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :param authentication: The authentication of this MrsKafkaConfigRequestDTO. + :type authentication: bool + """ + self._authentication = authentication + + @property + def krb5_content(self): + """Gets the krb5_content of this MrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + + :return: The krb5_content of this MrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._krb5_content + + @krb5_content.setter + def krb5_content(self, krb5_content): + """Sets the krb5_content of this MrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + + :param krb5_content: The krb5_content of this MrsKafkaConfigRequestDTO. + :type krb5_content: str + """ + self._krb5_content = krb5_content + + @property + def keytab_content(self): + """Gets the keytab_content of this MrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + + :return: The keytab_content of this MrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._keytab_content + + @keytab_content.setter + def keytab_content(self, keytab_content): + """Sets the keytab_content of this MrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + + :param keytab_content: The keytab_content of this MrsKafkaConfigRequestDTO. + :type keytab_content: str + """ + self._keytab_content = keytab_content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MrsKafkaConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_response_dto.py new file mode 100755 index 0000000000..ddbcfd3ff9 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/mrs_kafka_config_response_dto.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MrsKafkaConfigResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'kafka_config_id': 'str', + 'kafka_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'status': 'str', + 'authentication': 'bool', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'kafka_config_id': 'kafka_config_id', + 'kafka_topics': 'kafka_topics', + 'brokers': 'brokers', + 'username': 'username', + 'status': 'status', + 'authentication': 'authentication', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, kafka_config_id=None, kafka_topics=None, brokers=None, username=None, status=None, authentication=None, created_time=None, last_modified_time=None): + """MrsKafkaConfigResponseDTO + + The model defined in huaweicloud sdk + + :param kafka_config_id: **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type kafka_config_id: str + :param kafka_topics: **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type kafka_topics: list[str] + :param brokers: **参数说明**:Kafka broker列表。 + :type brokers: list[str] + :param username: **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param status: **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + :type status: str + :param authentication: **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + :type authentication: bool + :param created_time: **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type created_time: datetime + :param last_modified_time: **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type last_modified_time: datetime + """ + + + + self._kafka_config_id = None + self._kafka_topics = None + self._brokers = None + self._username = None + self._status = None + self._authentication = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if kafka_config_id is not None: + self.kafka_config_id = kafka_config_id + if kafka_topics is not None: + self.kafka_topics = kafka_topics + if brokers is not None: + self.brokers = brokers + if username is not None: + self.username = username + if status is not None: + self.status = status + if authentication is not None: + self.authentication = authentication + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def kafka_config_id(self): + """Gets the kafka_config_id of this MrsKafkaConfigResponseDTO. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The kafka_config_id of this MrsKafkaConfigResponseDTO. + :rtype: str + """ + return self._kafka_config_id + + @kafka_config_id.setter + def kafka_config_id(self, kafka_config_id): + """Sets the kafka_config_id of this MrsKafkaConfigResponseDTO. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param kafka_config_id: The kafka_config_id of this MrsKafkaConfigResponseDTO. + :type kafka_config_id: str + """ + self._kafka_config_id = kafka_config_id + + @property + def kafka_topics(self): + """Gets the kafka_topics of this MrsKafkaConfigResponseDTO. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The kafka_topics of this MrsKafkaConfigResponseDTO. + :rtype: list[str] + """ + return self._kafka_topics + + @kafka_topics.setter + def kafka_topics(self, kafka_topics): + """Sets the kafka_topics of this MrsKafkaConfigResponseDTO. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param kafka_topics: The kafka_topics of this MrsKafkaConfigResponseDTO. + :type kafka_topics: list[str] + """ + self._kafka_topics = kafka_topics + + @property + def brokers(self): + """Gets the brokers of this MrsKafkaConfigResponseDTO. + + **参数说明**:Kafka broker列表。 + + :return: The brokers of this MrsKafkaConfigResponseDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this MrsKafkaConfigResponseDTO. + + **参数说明**:Kafka broker列表。 + + :param brokers: The brokers of this MrsKafkaConfigResponseDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this MrsKafkaConfigResponseDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this MrsKafkaConfigResponseDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this MrsKafkaConfigResponseDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this MrsKafkaConfigResponseDTO. + :type username: str + """ + self._username = username + + @property + def status(self): + """Gets the status of this MrsKafkaConfigResponseDTO. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :return: The status of this MrsKafkaConfigResponseDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this MrsKafkaConfigResponseDTO. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :param status: The status of this MrsKafkaConfigResponseDTO. + :type status: str + """ + self._status = status + + @property + def authentication(self): + """Gets the authentication of this MrsKafkaConfigResponseDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :return: The authentication of this MrsKafkaConfigResponseDTO. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """Sets the authentication of this MrsKafkaConfigResponseDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :param authentication: The authentication of this MrsKafkaConfigResponseDTO. + :type authentication: bool + """ + self._authentication = authentication + + @property + def created_time(self): + """Gets the created_time of this MrsKafkaConfigResponseDTO. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The created_time of this MrsKafkaConfigResponseDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this MrsKafkaConfigResponseDTO. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param created_time: The created_time of this MrsKafkaConfigResponseDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this MrsKafkaConfigResponseDTO. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The last_modified_time of this MrsKafkaConfigResponseDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this MrsKafkaConfigResponseDTO. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param last_modified_time: The last_modified_time of this MrsKafkaConfigResponseDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MrsKafkaConfigResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/open_v2_x_statistics_body.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/open_v2_x_statistics_body.py new file mode 100755 index 0000000000..e3a4d5ac38 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/open_v2_x_statistics_body.py @@ -0,0 +1,433 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OpenV2XStatisticsBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'StatisticsSourceDTO', + 'time': 'str', + 'period': 'int', + 'direction': 'float', + 'flow': 'int', + 'average_speed': 'float', + 'esn': 'str', + 'cross_id': 'str', + 'traffic_direction': 'int', + 'road_kind': 'int', + 'vehicle_class_flow': 'list[ModelFlow]', + 'occupancy': 'list[LaneOccupancy]' + } + + attribute_map = { + 'source': 'source', + 'time': 'time', + 'period': 'period', + 'direction': 'direction', + 'flow': 'flow', + 'average_speed': 'average_speed', + 'esn': 'esn', + 'cross_id': 'cross_id', + 'traffic_direction': 'traffic_direction', + 'road_kind': 'road_kind', + 'vehicle_class_flow': 'vehicle_class_flow', + 'occupancy': 'occupancy' + } + + def __init__(self, source=None, time=None, period=None, direction=None, flow=None, average_speed=None, esn=None, cross_id=None, traffic_direction=None, road_kind=None, vehicle_class_flow=None, occupancy=None): + """OpenV2XStatisticsBody + + The model defined in huaweicloud sdk + + :param source: + :type source: :class:`huaweicloudsdkdris.v1.StatisticsSourceDTO` + :param time: **参数说明**:数据上报的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如:2021-01-08T02:03:41Z。 + :type time: str + :param period: **参数说明**:统计周期,单位秒。 + :type period: int + :param direction: **参数说明**:道路路的角度,区分道路方向,向东为0度,逆时针增加。 + :type direction: float + :param flow: **参数说明**:统计周期内的车辆数。 + :type flow: int + :param average_speed: **参数说明**:车辆平均速度,单位km/h。 + :type average_speed: float + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param cross_id: **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + :type cross_id: str + :param traffic_direction: **参数说明**:路段的交通流方向,交通流方向按照“西北规则”进行定义,即尽量选择西北的点作为正向起点,先西后北。西北规则具体说明请参见 [“西北规则”说明](此处添加support文档的url)。 0:正向 1:逆向 2:正向转逆向的连接线 3:逆向转正向的连接线 9:为方向未确定 + :type traffic_direction: int + :param road_kind: **参数说明**:道路特征,0为主路,1为汇入匝道,2为汇出匝道,3为辅道 + :type road_kind: int + :param vehicle_class_flow: **参数说明**:不同车辆类型的流量统计。 + :type vehicle_class_flow: list[:class:`huaweicloudsdkdris.v1.ModelFlow`] + :param occupancy: **参数说明**:分车道统计的占有率列表。 + :type occupancy: list[:class:`huaweicloudsdkdris.v1.LaneOccupancy`] + """ + + + + self._source = None + self._time = None + self._period = None + self._direction = None + self._flow = None + self._average_speed = None + self._esn = None + self._cross_id = None + self._traffic_direction = None + self._road_kind = None + self._vehicle_class_flow = None + self._occupancy = None + self.discriminator = None + + if source is not None: + self.source = source + if time is not None: + self.time = time + if period is not None: + self.period = period + if direction is not None: + self.direction = direction + if flow is not None: + self.flow = flow + if average_speed is not None: + self.average_speed = average_speed + if esn is not None: + self.esn = esn + if cross_id is not None: + self.cross_id = cross_id + if traffic_direction is not None: + self.traffic_direction = traffic_direction + if road_kind is not None: + self.road_kind = road_kind + if vehicle_class_flow is not None: + self.vehicle_class_flow = vehicle_class_flow + if occupancy is not None: + self.occupancy = occupancy + + @property + def source(self): + """Gets the source of this OpenV2XStatisticsBody. + + :return: The source of this OpenV2XStatisticsBody. + :rtype: :class:`huaweicloudsdkdris.v1.StatisticsSourceDTO` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this OpenV2XStatisticsBody. + + :param source: The source of this OpenV2XStatisticsBody. + :type source: :class:`huaweicloudsdkdris.v1.StatisticsSourceDTO` + """ + self._source = source + + @property + def time(self): + """Gets the time of this OpenV2XStatisticsBody. + + **参数说明**:数据上报的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如:2021-01-08T02:03:41Z。 + + :return: The time of this OpenV2XStatisticsBody. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this OpenV2XStatisticsBody. + + **参数说明**:数据上报的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'。 例如:2021-01-08T02:03:41Z。 + + :param time: The time of this OpenV2XStatisticsBody. + :type time: str + """ + self._time = time + + @property + def period(self): + """Gets the period of this OpenV2XStatisticsBody. + + **参数说明**:统计周期,单位秒。 + + :return: The period of this OpenV2XStatisticsBody. + :rtype: int + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this OpenV2XStatisticsBody. + + **参数说明**:统计周期,单位秒。 + + :param period: The period of this OpenV2XStatisticsBody. + :type period: int + """ + self._period = period + + @property + def direction(self): + """Gets the direction of this OpenV2XStatisticsBody. + + **参数说明**:道路路的角度,区分道路方向,向东为0度,逆时针增加。 + + :return: The direction of this OpenV2XStatisticsBody. + :rtype: float + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this OpenV2XStatisticsBody. + + **参数说明**:道路路的角度,区分道路方向,向东为0度,逆时针增加。 + + :param direction: The direction of this OpenV2XStatisticsBody. + :type direction: float + """ + self._direction = direction + + @property + def flow(self): + """Gets the flow of this OpenV2XStatisticsBody. + + **参数说明**:统计周期内的车辆数。 + + :return: The flow of this OpenV2XStatisticsBody. + :rtype: int + """ + return self._flow + + @flow.setter + def flow(self, flow): + """Sets the flow of this OpenV2XStatisticsBody. + + **参数说明**:统计周期内的车辆数。 + + :param flow: The flow of this OpenV2XStatisticsBody. + :type flow: int + """ + self._flow = flow + + @property + def average_speed(self): + """Gets the average_speed of this OpenV2XStatisticsBody. + + **参数说明**:车辆平均速度,单位km/h。 + + :return: The average_speed of this OpenV2XStatisticsBody. + :rtype: float + """ + return self._average_speed + + @average_speed.setter + def average_speed(self, average_speed): + """Sets the average_speed of this OpenV2XStatisticsBody. + + **参数说明**:车辆平均速度,单位km/h。 + + :param average_speed: The average_speed of this OpenV2XStatisticsBody. + :type average_speed: float + """ + self._average_speed = average_speed + + @property + def esn(self): + """Gets the esn of this OpenV2XStatisticsBody. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this OpenV2XStatisticsBody. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this OpenV2XStatisticsBody. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this OpenV2XStatisticsBody. + :type esn: str + """ + self._esn = esn + + @property + def cross_id(self): + """Gets the cross_id of this OpenV2XStatisticsBody. + + **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + + :return: The cross_id of this OpenV2XStatisticsBody. + :rtype: str + """ + return self._cross_id + + @cross_id.setter + def cross_id(self, cross_id): + """Sets the cross_id of this OpenV2XStatisticsBody. + + **参数说明**:路口id,对应到一组雷视拟合设备,检测一个特定的路口或者路段。 + + :param cross_id: The cross_id of this OpenV2XStatisticsBody. + :type cross_id: str + """ + self._cross_id = cross_id + + @property + def traffic_direction(self): + """Gets the traffic_direction of this OpenV2XStatisticsBody. + + **参数说明**:路段的交通流方向,交通流方向按照“西北规则”进行定义,即尽量选择西北的点作为正向起点,先西后北。西北规则具体说明请参见 [“西北规则”说明](此处添加support文档的url)。 0:正向 1:逆向 2:正向转逆向的连接线 3:逆向转正向的连接线 9:为方向未确定 + + :return: The traffic_direction of this OpenV2XStatisticsBody. + :rtype: int + """ + return self._traffic_direction + + @traffic_direction.setter + def traffic_direction(self, traffic_direction): + """Sets the traffic_direction of this OpenV2XStatisticsBody. + + **参数说明**:路段的交通流方向,交通流方向按照“西北规则”进行定义,即尽量选择西北的点作为正向起点,先西后北。西北规则具体说明请参见 [“西北规则”说明](此处添加support文档的url)。 0:正向 1:逆向 2:正向转逆向的连接线 3:逆向转正向的连接线 9:为方向未确定 + + :param traffic_direction: The traffic_direction of this OpenV2XStatisticsBody. + :type traffic_direction: int + """ + self._traffic_direction = traffic_direction + + @property + def road_kind(self): + """Gets the road_kind of this OpenV2XStatisticsBody. + + **参数说明**:道路特征,0为主路,1为汇入匝道,2为汇出匝道,3为辅道 + + :return: The road_kind of this OpenV2XStatisticsBody. + :rtype: int + """ + return self._road_kind + + @road_kind.setter + def road_kind(self, road_kind): + """Sets the road_kind of this OpenV2XStatisticsBody. + + **参数说明**:道路特征,0为主路,1为汇入匝道,2为汇出匝道,3为辅道 + + :param road_kind: The road_kind of this OpenV2XStatisticsBody. + :type road_kind: int + """ + self._road_kind = road_kind + + @property + def vehicle_class_flow(self): + """Gets the vehicle_class_flow of this OpenV2XStatisticsBody. + + **参数说明**:不同车辆类型的流量统计。 + + :return: The vehicle_class_flow of this OpenV2XStatisticsBody. + :rtype: list[:class:`huaweicloudsdkdris.v1.ModelFlow`] + """ + return self._vehicle_class_flow + + @vehicle_class_flow.setter + def vehicle_class_flow(self, vehicle_class_flow): + """Sets the vehicle_class_flow of this OpenV2XStatisticsBody. + + **参数说明**:不同车辆类型的流量统计。 + + :param vehicle_class_flow: The vehicle_class_flow of this OpenV2XStatisticsBody. + :type vehicle_class_flow: list[:class:`huaweicloudsdkdris.v1.ModelFlow`] + """ + self._vehicle_class_flow = vehicle_class_flow + + @property + def occupancy(self): + """Gets the occupancy of this OpenV2XStatisticsBody. + + **参数说明**:分车道统计的占有率列表。 + + :return: The occupancy of this OpenV2XStatisticsBody. + :rtype: list[:class:`huaweicloudsdkdris.v1.LaneOccupancy`] + """ + return self._occupancy + + @occupancy.setter + def occupancy(self, occupancy): + """Sets the occupancy of this OpenV2XStatisticsBody. + + **参数说明**:分车道统计的占有率列表。 + + :param occupancy: The occupancy of this OpenV2XStatisticsBody. + :type occupancy: list[:class:`huaweicloudsdkdris.v1.LaneOccupancy`] + """ + self._occupancy = occupancy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OpenV2XStatisticsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/platform_para.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/platform_para.py new file mode 100755 index 0000000000..148be8de7d --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/platform_para.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlatformPara: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'address': 'str', + 'username': 'str', + 'passwd': 'str' + } + + attribute_map = { + 'address': 'address', + 'username': 'username', + 'passwd': 'passwd' + } + + def __init__(self, address=None, username=None, passwd=None): + """PlatformPara + + The model defined in huaweicloud sdk + + :param address: **参数说明**:第三方业务平台的ip地址和端口。 + :type address: str + :param username: **参数说明**:鉴权用户名。 + :type username: str + :param passwd: **参数说明**:鉴权密码,ITS800或者ATLAS500的密码 + :type passwd: str + """ + + + + self._address = None + self._username = None + self._passwd = None + self.discriminator = None + + if address is not None: + self.address = address + if username is not None: + self.username = username + if passwd is not None: + self.passwd = passwd + + @property + def address(self): + """Gets the address of this PlatformPara. + + **参数说明**:第三方业务平台的ip地址和端口。 + + :return: The address of this PlatformPara. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this PlatformPara. + + **参数说明**:第三方业务平台的ip地址和端口。 + + :param address: The address of this PlatformPara. + :type address: str + """ + self._address = address + + @property + def username(self): + """Gets the username of this PlatformPara. + + **参数说明**:鉴权用户名。 + + :return: The username of this PlatformPara. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this PlatformPara. + + **参数说明**:鉴权用户名。 + + :param username: The username of this PlatformPara. + :type username: str + """ + self._username = username + + @property + def passwd(self): + """Gets the passwd of this PlatformPara. + + **参数说明**:鉴权密码,ITS800或者ATLAS500的密码 + + :return: The passwd of this PlatformPara. + :rtype: str + """ + return self._passwd + + @passwd.setter + def passwd(self, passwd): + """Sets the passwd of this PlatformPara. + + **参数说明**:鉴权密码,ITS800或者ATLAS500的密码 + + :param passwd: The passwd of this PlatformPara. + :type passwd: str + """ + self._passwd = passwd + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlatformPara): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/position3_d.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/position3_d.py new file mode 100755 index 0000000000..2594a1eb36 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/position3_d.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Position3D: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lat': 'object', + 'lon': 'object', + 'ele': 'object' + } + + attribute_map = { + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele' + } + + def __init__(self, lat=None, lon=None, ele=None): + """Position3D + + The model defined in huaweicloud sdk + + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: object + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: object + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: object + """ + + + + self._lat = None + self._lon = None + self._ele = None + self.discriminator = None + + self.lat = lat + self.lon = lon + if ele is not None: + self.ele = ele + + @property + def lat(self): + """Gets the lat of this Position3D. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this Position3D. + :rtype: object + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this Position3D. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this Position3D. + :type lat: object + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this Position3D. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this Position3D. + :rtype: object + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this Position3D. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this Position3D. + :type lon: object + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this Position3D. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this Position3D. + :rtype: object + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this Position3D. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this Position3D. + :type ele: object + """ + self._ele = ele + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Position3D): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_application_brief_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_application_brief_response_dto.py new file mode 100755 index 0000000000..5f7de3c75c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_application_brief_response_dto.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryApplicationBriefResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'last_published_version': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'last_published_version': 'last_published_version' + } + + def __init__(self, edge_app_id=None, description=None, created_time=None, last_modified_time=None, last_published_version=None): + """QueryApplicationBriefResponseDTO + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:更新时间。 + :type last_modified_time: str + :param last_published_version: **参数说明**:最新发布版本。 + :type last_published_version: str + """ + + + + self._edge_app_id = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._last_published_version = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if last_published_version is not None: + self.last_published_version = last_published_version + + @property + def edge_app_id(self): + """Gets the edge_app_id of this QueryApplicationBriefResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this QueryApplicationBriefResponseDTO. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this QueryApplicationBriefResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this QueryApplicationBriefResponseDTO. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def description(self): + """Gets the description of this QueryApplicationBriefResponseDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this QueryApplicationBriefResponseDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this QueryApplicationBriefResponseDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this QueryApplicationBriefResponseDTO. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this QueryApplicationBriefResponseDTO. + + **参数说明**:创建时间。 + + :return: The created_time of this QueryApplicationBriefResponseDTO. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this QueryApplicationBriefResponseDTO. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this QueryApplicationBriefResponseDTO. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this QueryApplicationBriefResponseDTO. + + **参数说明**:更新时间。 + + :return: The last_modified_time of this QueryApplicationBriefResponseDTO. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this QueryApplicationBriefResponseDTO. + + **参数说明**:更新时间。 + + :param last_modified_time: The last_modified_time of this QueryApplicationBriefResponseDTO. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def last_published_version(self): + """Gets the last_published_version of this QueryApplicationBriefResponseDTO. + + **参数说明**:最新发布版本。 + + :return: The last_published_version of this QueryApplicationBriefResponseDTO. + :rtype: str + """ + return self._last_published_version + + @last_published_version.setter + def last_published_version(self, last_published_version): + """Sets the last_published_version of this QueryApplicationBriefResponseDTO. + + **参数说明**:最新发布版本。 + + :param last_published_version: The last_published_version of this QueryApplicationBriefResponseDTO. + :type last_published_version: str + """ + self._last_published_version = last_published_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryApplicationBriefResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_edge_app_version_brief_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_edge_app_version_brief_response_dto.py new file mode 100755 index 0000000000..f875f69b3c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/query_edge_app_version_brief_response_dto.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryEdgeAppVersionBriefResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'version': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'state': 'str', + 'publish_time': 'str', + 'off_shelf_time': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'state': 'state', + 'publish_time': 'publish_time', + 'off_shelf_time': 'off_shelf_time' + } + + def __init__(self, edge_app_id=None, version=None, description=None, created_time=None, last_modified_time=None, state=None, publish_time=None, off_shelf_time=None): + """QueryEdgeAppVersionBriefResponseDTO + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:最后一次修改时间。 + :type last_modified_time: str + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + :param publish_time: **参数说明**:发布时间。 + :type publish_time: str + :param off_shelf_time: **参数说明**:下线时间。 + :type off_shelf_time: str + """ + + + + self._edge_app_id = None + self._version = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._state = None + self._publish_time = None + self._off_shelf_time = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if state is not None: + self.state = state + if publish_time is not None: + self.publish_time = publish_time + if off_shelf_time is not None: + self.off_shelf_time = off_shelf_time + + @property + def edge_app_id(self): + """Gets the edge_app_id of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this QueryEdgeAppVersionBriefResponseDTO. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用版本。 + + :return: The version of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用版本。 + + :param version: The version of this QueryEdgeAppVersionBriefResponseDTO. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this QueryEdgeAppVersionBriefResponseDTO. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:创建时间。 + + :return: The created_time of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this QueryEdgeAppVersionBriefResponseDTO. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:最后一次修改时间。 + + :return: The last_modified_time of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:最后一次修改时间。 + + :param last_modified_time: The last_modified_time of this QueryEdgeAppVersionBriefResponseDTO. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def state(self): + """Gets the state of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this QueryEdgeAppVersionBriefResponseDTO. + :type state: str + """ + self._state = state + + @property + def publish_time(self): + """Gets the publish_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:发布时间。 + + :return: The publish_time of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._publish_time + + @publish_time.setter + def publish_time(self, publish_time): + """Sets the publish_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:发布时间。 + + :param publish_time: The publish_time of this QueryEdgeAppVersionBriefResponseDTO. + :type publish_time: str + """ + self._publish_time = publish_time + + @property + def off_shelf_time(self): + """Gets the off_shelf_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:下线时间。 + + :return: The off_shelf_time of this QueryEdgeAppVersionBriefResponseDTO. + :rtype: str + """ + return self._off_shelf_time + + @off_shelf_time.setter + def off_shelf_time(self, off_shelf_time): + """Sets the off_shelf_time of this QueryEdgeAppVersionBriefResponseDTO. + + **参数说明**:下线时间。 + + :param off_shelf_time: The off_shelf_time of this QueryEdgeAppVersionBriefResponseDTO. + :type off_shelf_time: str + """ + self._off_shelf_time = off_shelf_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryEdgeAppVersionBriefResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/reference_path.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/reference_path.py new file mode 100755 index 0000000000..8f46f40fb9 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/reference_path.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReferencePath: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'active_path': 'list[Position3D]', + 'path_radius': 'int' + } + + attribute_map = { + 'active_path': 'active_path', + 'path_radius': 'path_radius' + } + + def __init__(self, active_path=None, path_radius=None): + """ReferencePath + + The model defined in huaweicloud sdk + + :param active_path: **参数说明**:事件的有效路径 + :type active_path: list[:class:`huaweicloudsdkdris.v1.Position3D`] + :param path_radius: **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + :type path_radius: int + """ + + + + self._active_path = None + self._path_radius = None + self.discriminator = None + + if active_path is not None: + self.active_path = active_path + if path_radius is not None: + self.path_radius = path_radius + + @property + def active_path(self): + """Gets the active_path of this ReferencePath. + + **参数说明**:事件的有效路径 + + :return: The active_path of this ReferencePath. + :rtype: list[:class:`huaweicloudsdkdris.v1.Position3D`] + """ + return self._active_path + + @active_path.setter + def active_path(self, active_path): + """Sets the active_path of this ReferencePath. + + **参数说明**:事件的有效路径 + + :param active_path: The active_path of this ReferencePath. + :type active_path: list[:class:`huaweicloudsdkdris.v1.Position3D`] + """ + self._active_path = active_path + + @property + def path_radius(self): + """Gets the path_radius of this ReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :return: The path_radius of this ReferencePath. + :rtype: int + """ + return self._path_radius + + @path_radius.setter + def path_radius(self, path_radius): + """Sets the path_radius of this ReferencePath. + + **参数说明**:事件的影响区域半径,可选,单位为分米。用半径表示影响区域边界离中心线的垂直距离,反映该区域的宽度以覆盖实际路段。 + + :param path_radius: The path_radius of this ReferencePath. + :type path_radius: int + """ + self._path_radius = path_radius + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReferencePath): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_config_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_config_dto.py new file mode 100755 index 0000000000..fff6fae3d4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_config_dto.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResourceConfigDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cpu': 'float', + 'memory': 'float', + 'gpu': 'float', + 'npu': 'float' + } + + attribute_map = { + 'cpu': 'cpu', + 'memory': 'memory', + 'gpu': 'gpu', + 'npu': 'npu' + } + + def __init__(self, cpu=None, memory=None, gpu=None, npu=None): + """ResourceConfigDTO + + The model defined in huaweicloud sdk + + :param cpu: **参数说明**:cpu个数。 + :type cpu: float + :param memory: **参数说明**:内存大小。 + :type memory: float + :param gpu: **参数说明**:gpu个数。 + :type gpu: float + :param npu: **参数说明**:npu个数。 + :type npu: float + """ + + + + self._cpu = None + self._memory = None + self._gpu = None + self._npu = None + self.discriminator = None + + if cpu is not None: + self.cpu = cpu + if memory is not None: + self.memory = memory + if gpu is not None: + self.gpu = gpu + if npu is not None: + self.npu = npu + + @property + def cpu(self): + """Gets the cpu of this ResourceConfigDTO. + + **参数说明**:cpu个数。 + + :return: The cpu of this ResourceConfigDTO. + :rtype: float + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """Sets the cpu of this ResourceConfigDTO. + + **参数说明**:cpu个数。 + + :param cpu: The cpu of this ResourceConfigDTO. + :type cpu: float + """ + self._cpu = cpu + + @property + def memory(self): + """Gets the memory of this ResourceConfigDTO. + + **参数说明**:内存大小。 + + :return: The memory of this ResourceConfigDTO. + :rtype: float + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this ResourceConfigDTO. + + **参数说明**:内存大小。 + + :param memory: The memory of this ResourceConfigDTO. + :type memory: float + """ + self._memory = memory + + @property + def gpu(self): + """Gets the gpu of this ResourceConfigDTO. + + **参数说明**:gpu个数。 + + :return: The gpu of this ResourceConfigDTO. + :rtype: float + """ + return self._gpu + + @gpu.setter + def gpu(self, gpu): + """Sets the gpu of this ResourceConfigDTO. + + **参数说明**:gpu个数。 + + :param gpu: The gpu of this ResourceConfigDTO. + :type gpu: float + """ + self._gpu = gpu + + @property + def npu(self): + """Gets the npu of this ResourceConfigDTO. + + **参数说明**:npu个数。 + + :return: The npu of this ResourceConfigDTO. + :rtype: float + """ + return self._npu + + @npu.setter + def npu(self, npu): + """Sets the npu of this ResourceConfigDTO. + + **参数说明**:npu个数。 + + :param npu: The npu of this ResourceConfigDTO. + :type npu: float + """ + self._npu = npu + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourceConfigDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_dto.py new file mode 100755 index 0000000000..9940a15fa3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/resource_dto.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResourceDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limits': 'ResourceConfigDTO', + 'requests': 'ResourceConfigDTO' + } + + attribute_map = { + 'limits': 'limits', + 'requests': 'requests' + } + + def __init__(self, limits=None, requests=None): + """ResourceDTO + + The model defined in huaweicloud sdk + + :param limits: + :type limits: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + :param requests: + :type requests: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + """ + + + + self._limits = None + self._requests = None + self.discriminator = None + + if limits is not None: + self.limits = limits + if requests is not None: + self.requests = requests + + @property + def limits(self): + """Gets the limits of this ResourceDTO. + + :return: The limits of this ResourceDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this ResourceDTO. + + :param limits: The limits of this ResourceDTO. + :type limits: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + """ + self._limits = limits + + @property + def requests(self): + """Gets the requests of this ResourceDTO. + + :return: The requests of this ResourceDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this ResourceDTO. + + :param requests: The requests of this ResourceDTO. + :type requests: :class:`huaweicloudsdkdris.v1.ResourceConfigDTO` + """ + self._requests = requests + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourceDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_dto.py new file mode 100755 index 0000000000..ae373b1c5f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_dto.py @@ -0,0 +1,520 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RsuDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'ip': 'str', + 'position_description': 'str', + 'location': 'RsuLocation', + 'status': 'str', + 'rsu_model_id': 'str', + 'intersection_id': 'str', + 'related_edge_num': 'int', + 'software_version': 'str' + } + + attribute_map = { + 'rsu_id': 'rsu_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'ip': 'ip', + 'position_description': 'position_description', + 'location': 'location', + 'status': 'status', + 'rsu_model_id': 'rsu_model_id', + 'intersection_id': 'intersection_id', + 'related_edge_num': 'related_edge_num', + 'software_version': 'software_version' + } + + def __init__(self, rsu_id=None, name=None, description=None, esn=None, last_modified_time=None, created_time=None, last_online_time=None, ip=None, position_description=None, location=None, status=None, rsu_model_id=None, intersection_id=None, related_edge_num=None, software_version=None): + """RsuDTO + + The model defined in huaweicloud sdk + + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + :param name: **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + :type esn: str + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param ip: **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + :type ip: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + :param status: **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + :type status: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + :type rsu_model_id: str + :param intersection_id: **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + :type intersection_id: str + :param related_edge_num: **参数说明**:RSU可关联的Edge的数量。 + :type related_edge_num: int + :param software_version: **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + :type software_version: str + """ + + + + self._rsu_id = None + self._name = None + self._description = None + self._esn = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._ip = None + self._position_description = None + self._location = None + self._status = None + self._rsu_model_id = None + self._intersection_id = None + self._related_edge_num = None + self._software_version = None + self.discriminator = None + + if rsu_id is not None: + self.rsu_id = rsu_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if ip is not None: + self.ip = ip + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if status is not None: + self.status = status + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if intersection_id is not None: + self.intersection_id = intersection_id + if related_edge_num is not None: + self.related_edge_num = related_edge_num + if software_version is not None: + self.software_version = software_version + + @property + def rsu_id(self): + """Gets the rsu_id of this RsuDTO. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this RsuDTO. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this RsuDTO. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this RsuDTO. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + @property + def name(self): + """Gets the name of this RsuDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this RsuDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RsuDTO. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this RsuDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this RsuDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this RsuDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RsuDTO. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this RsuDTO. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this RsuDTO. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :return: The esn of this RsuDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this RsuDTO. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :param esn: The esn of this RsuDTO. + :type esn: str + """ + self._esn = esn + + @property + def last_modified_time(self): + """Gets the last_modified_time of this RsuDTO. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this RsuDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this RsuDTO. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this RsuDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this RsuDTO. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this RsuDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this RsuDTO. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this RsuDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this RsuDTO. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this RsuDTO. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this RsuDTO. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this RsuDTO. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def ip(self): + """Gets the ip of this RsuDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :return: The ip of this RsuDTO. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this RsuDTO. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :param ip: The ip of this RsuDTO. + :type ip: str + """ + self._ip = ip + + @property + def position_description(self): + """Gets the position_description of this RsuDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this RsuDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this RsuDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this RsuDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this RsuDTO. + + :return: The location of this RsuDTO. + :rtype: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this RsuDTO. + + :param location: The location of this RsuDTO. + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + self._location = location + + @property + def status(self): + """Gets the status of this RsuDTO. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :return: The status of this RsuDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this RsuDTO. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :param status: The status of this RsuDTO. + :type status: str + """ + self._status = status + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this RsuDTO. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :return: The rsu_model_id of this RsuDTO. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this RsuDTO. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :param rsu_model_id: The rsu_model_id of this RsuDTO. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def intersection_id(self): + """Gets the intersection_id of this RsuDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :return: The intersection_id of this RsuDTO. + :rtype: str + """ + return self._intersection_id + + @intersection_id.setter + def intersection_id(self, intersection_id): + """Sets the intersection_id of this RsuDTO. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :param intersection_id: The intersection_id of this RsuDTO. + :type intersection_id: str + """ + self._intersection_id = intersection_id + + @property + def related_edge_num(self): + """Gets the related_edge_num of this RsuDTO. + + **参数说明**:RSU可关联的Edge的数量。 + + :return: The related_edge_num of this RsuDTO. + :rtype: int + """ + return self._related_edge_num + + @related_edge_num.setter + def related_edge_num(self, related_edge_num): + """Sets the related_edge_num of this RsuDTO. + + **参数说明**:RSU可关联的Edge的数量。 + + :param related_edge_num: The related_edge_num of this RsuDTO. + :type related_edge_num: int + """ + self._related_edge_num = related_edge_num + + @property + def software_version(self): + """Gets the software_version of this RsuDTO. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :return: The software_version of this RsuDTO. + :rtype: str + """ + return self._software_version + + @software_version.setter + def software_version(self, software_version): + """Sets the software_version of this RsuDTO. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :param software_version: The software_version of this RsuDTO. + :type software_version: str + """ + self._software_version = software_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RsuDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_location.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_location.py new file mode 100755 index 0000000000..b474a70ab4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_location.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RsuLocation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'lat': 'float', + 'lon': 'float' + } + + attribute_map = { + 'lat': 'lat', + 'lon': 'lon' + } + + def __init__(self, lat=None, lon=None): + """RsuLocation + + The model defined in huaweicloud sdk + + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + """ + + + + self._lat = None + self._lon = None + self.discriminator = None + + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + + @property + def lat(self): + """Gets the lat of this RsuLocation. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this RsuLocation. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this RsuLocation. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this RsuLocation. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this RsuLocation. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this RsuLocation. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this RsuLocation. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this RsuLocation. + :type lon: float + """ + self._lon = lon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RsuLocation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_model_summary.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_model_summary.py new file mode 100755 index 0000000000..6026586bb2 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_model_summary.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RsuModelSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_model_id': 'str', + 'name': 'str', + 'manufacturer_name': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime' + } + + attribute_map = { + 'rsu_model_id': 'rsu_model_id', + 'name': 'name', + 'manufacturer_name': 'manufacturer_name', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time' + } + + def __init__(self, rsu_model_id=None, name=None, manufacturer_name=None, description=None, last_modified_time=None, created_time=None): + """RsuModelSummary + + The model defined in huaweicloud sdk + + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + :param name: **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type name: str + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + :param last_modified_time: **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type last_modified_time: datetime + :param created_time: **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type created_time: datetime + """ + + + + self._rsu_model_id = None + self._name = None + self._manufacturer_name = None + self._description = None + self._last_modified_time = None + self._created_time = None + self.discriminator = None + + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if name is not None: + self.name = name + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this RsuModelSummary. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this RsuModelSummary. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this RsuModelSummary. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this RsuModelSummary. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def name(self): + """Gets the name of this RsuModelSummary. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The name of this RsuModelSummary. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RsuModelSummary. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param name: The name of this RsuModelSummary. + :type name: str + """ + self._name = name + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this RsuModelSummary. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this RsuModelSummary. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this RsuModelSummary. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this RsuModelSummary. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this RsuModelSummary. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this RsuModelSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this RsuModelSummary. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this RsuModelSummary. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this RsuModelSummary. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The last_modified_time of this RsuModelSummary. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this RsuModelSummary. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param last_modified_time: The last_modified_time of this RsuModelSummary. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this RsuModelSummary. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The created_time of this RsuModelSummary. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this RsuModelSummary. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param created_time: The created_time of this RsuModelSummary. + :type created_time: datetime + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RsuModelSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config.py new file mode 100755 index 0000000000..b29d7738cd --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SendConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'channel': 'Channel', + 'target_list': 'TargetList' + } + + attribute_map = { + 'channel': 'channel', + 'target_list': 'target_list' + } + + def __init__(self, channel=None, target_list=None): + """SendConfig + + The model defined in huaweicloud sdk + + :param channel: + :type channel: :class:`huaweicloudsdkdris.v1.Channel` + :param target_list: + :type target_list: :class:`huaweicloudsdkdris.v1.TargetList` + """ + + + + self._channel = None + self._target_list = None + self.discriminator = None + + self.channel = channel + if target_list is not None: + self.target_list = target_list + + @property + def channel(self): + """Gets the channel of this SendConfig. + + :return: The channel of this SendConfig. + :rtype: :class:`huaweicloudsdkdris.v1.Channel` + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this SendConfig. + + :param channel: The channel of this SendConfig. + :type channel: :class:`huaweicloudsdkdris.v1.Channel` + """ + self._channel = channel + + @property + def target_list(self): + """Gets the target_list of this SendConfig. + + :return: The target_list of this SendConfig. + :rtype: :class:`huaweicloudsdkdris.v1.TargetList` + """ + return self._target_list + + @target_list.setter + def target_list(self, target_list): + """Sets the target_list of this SendConfig. + + :param target_list: The target_list of this SendConfig. + :type target_list: :class:`huaweicloudsdkdris.v1.TargetList` + """ + self._target_list = target_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config_response.py new file mode 100755 index 0000000000..95dbfa1c3f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_config_response.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SendConfigResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'channel': 'Channel', + 'target_list': 'TargetList' + } + + attribute_map = { + 'channel': 'channel', + 'target_list': 'target_list' + } + + def __init__(self, channel=None, target_list=None): + """SendConfigResponse + + The model defined in huaweicloud sdk + + :param channel: + :type channel: :class:`huaweicloudsdkdris.v1.Channel` + :param target_list: + :type target_list: :class:`huaweicloudsdkdris.v1.TargetList` + """ + + + + self._channel = None + self._target_list = None + self.discriminator = None + + if channel is not None: + self.channel = channel + if target_list is not None: + self.target_list = target_list + + @property + def channel(self): + """Gets the channel of this SendConfigResponse. + + :return: The channel of this SendConfigResponse. + :rtype: :class:`huaweicloudsdkdris.v1.Channel` + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this SendConfigResponse. + + :param channel: The channel of this SendConfigResponse. + :type channel: :class:`huaweicloudsdkdris.v1.Channel` + """ + self._channel = channel + + @property + def target_list(self): + """Gets the target_list of this SendConfigResponse. + + :return: The target_list of this SendConfigResponse. + :rtype: :class:`huaweicloudsdkdris.v1.TargetList` + """ + return self._target_list + + @target_list.setter + def target_list(self, target_list): + """Sets the target_list of this SendConfigResponse. + + :param target_list: The target_list of this SendConfigResponse. + :type target_list: :class:`huaweicloudsdkdris.v1.TargetList` + """ + self._target_list = target_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendConfigResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_request.py new file mode 100755 index 0000000000..e9dd5965a4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SendImmediateEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'SendImmediateEventsDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """SendImmediateEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param body: Body of the SendImmediateEventRequest + :type body: :class:`huaweicloudsdkdris.v1.SendImmediateEventsDTO` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this SendImmediateEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this SendImmediateEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SendImmediateEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this SendImmediateEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this SendImmediateEventRequest. + + :return: The body of this SendImmediateEventRequest. + :rtype: :class:`huaweicloudsdkdris.v1.SendImmediateEventsDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SendImmediateEventRequest. + + :param body: The body of this SendImmediateEventRequest. + :type body: :class:`huaweicloudsdkdris.v1.SendImmediateEventsDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendImmediateEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_response.py new file mode 100755 index 0000000000..6c468d32a0 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_event_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SendImmediateEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'event_id': 'str', + 'send_config': 'SendConfigResponse', + 'immediate_event': 'ImmediateEventResponseDTO' + } + + attribute_map = { + 'event_id': 'event_id', + 'send_config': 'send_config', + 'immediate_event': 'immediate_event' + } + + def __init__(self, event_id=None, send_config=None, immediate_event=None): + """SendImmediateEventResponse + + The model defined in huaweicloud sdk + + :param event_id: **参数说明**:即时事件ID。 + :type event_id: str + :param send_config: + :type send_config: :class:`huaweicloudsdkdris.v1.SendConfigResponse` + :param immediate_event: + :type immediate_event: :class:`huaweicloudsdkdris.v1.ImmediateEventResponseDTO` + """ + + super(SendImmediateEventResponse, self).__init__() + + self._event_id = None + self._send_config = None + self._immediate_event = None + self.discriminator = None + + if event_id is not None: + self.event_id = event_id + if send_config is not None: + self.send_config = send_config + if immediate_event is not None: + self.immediate_event = immediate_event + + @property + def event_id(self): + """Gets the event_id of this SendImmediateEventResponse. + + **参数说明**:即时事件ID。 + + :return: The event_id of this SendImmediateEventResponse. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this SendImmediateEventResponse. + + **参数说明**:即时事件ID。 + + :param event_id: The event_id of this SendImmediateEventResponse. + :type event_id: str + """ + self._event_id = event_id + + @property + def send_config(self): + """Gets the send_config of this SendImmediateEventResponse. + + :return: The send_config of this SendImmediateEventResponse. + :rtype: :class:`huaweicloudsdkdris.v1.SendConfigResponse` + """ + return self._send_config + + @send_config.setter + def send_config(self, send_config): + """Sets the send_config of this SendImmediateEventResponse. + + :param send_config: The send_config of this SendImmediateEventResponse. + :type send_config: :class:`huaweicloudsdkdris.v1.SendConfigResponse` + """ + self._send_config = send_config + + @property + def immediate_event(self): + """Gets the immediate_event of this SendImmediateEventResponse. + + :return: The immediate_event of this SendImmediateEventResponse. + :rtype: :class:`huaweicloudsdkdris.v1.ImmediateEventResponseDTO` + """ + return self._immediate_event + + @immediate_event.setter + def immediate_event(self, immediate_event): + """Sets the immediate_event of this SendImmediateEventResponse. + + :param immediate_event: The immediate_event of this SendImmediateEventResponse. + :type immediate_event: :class:`huaweicloudsdkdris.v1.ImmediateEventResponseDTO` + """ + self._immediate_event = immediate_event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendImmediateEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_events_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_events_dto.py new file mode 100755 index 0000000000..7f4ab18730 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/send_immediate_events_dto.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SendImmediateEventsDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'send_config': 'SendConfig', + 'immediate_event': 'ImmediateEventDTO' + } + + attribute_map = { + 'send_config': 'send_config', + 'immediate_event': 'immediate_event' + } + + def __init__(self, send_config=None, immediate_event=None): + """SendImmediateEventsDTO + + The model defined in huaweicloud sdk + + :param send_config: + :type send_config: :class:`huaweicloudsdkdris.v1.SendConfig` + :param immediate_event: + :type immediate_event: :class:`huaweicloudsdkdris.v1.ImmediateEventDTO` + """ + + + + self._send_config = None + self._immediate_event = None + self.discriminator = None + + self.send_config = send_config + self.immediate_event = immediate_event + + @property + def send_config(self): + """Gets the send_config of this SendImmediateEventsDTO. + + :return: The send_config of this SendImmediateEventsDTO. + :rtype: :class:`huaweicloudsdkdris.v1.SendConfig` + """ + return self._send_config + + @send_config.setter + def send_config(self, send_config): + """Sets the send_config of this SendImmediateEventsDTO. + + :param send_config: The send_config of this SendImmediateEventsDTO. + :type send_config: :class:`huaweicloudsdkdris.v1.SendConfig` + """ + self._send_config = send_config + + @property + def immediate_event(self): + """Gets the immediate_event of this SendImmediateEventsDTO. + + :return: The immediate_event of this SendImmediateEventsDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ImmediateEventDTO` + """ + return self._immediate_event + + @immediate_event.setter + def immediate_event(self, immediate_event): + """Sets the immediate_event of this SendImmediateEventsDTO. + + :param immediate_event: The immediate_event of this SendImmediateEventsDTO. + :type immediate_event: :class:`huaweicloudsdkdris.v1.ImmediateEventDTO` + """ + self._immediate_event = immediate_event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendImmediateEventsDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_request.py new file mode 100755 index 0000000000..b23403b9d5 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDataChannelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, v2x_edge_id=None): + """ShowDataChannelRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :return: The instance_id of this ShowDataChannelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :param instance_id: The instance_id of this ShowDataChannelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this ShowDataChannelRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this ShowDataChannelRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDataChannelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_response.py new file mode 100755 index 0000000000..e64e59f9e9 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_data_channel_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDataChannelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'platform_type': 'str', + 'platform_para': 'PlatformPara', + 'channel_status': 'str' + } + + attribute_map = { + 'platform_type': 'platform_type', + 'platform_para': 'platform_para', + 'channel_status': 'channel_status' + } + + def __init__(self, platform_type=None, platform_para=None, channel_status=None): + """ShowDataChannelResponse + + The model defined in huaweicloud sdk + + :param platform_type: **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + :type platform_type: str + :param platform_para: + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + :param channel_status: **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type channel_status: str + """ + + super(ShowDataChannelResponse, self).__init__() + + self._platform_type = None + self._platform_para = None + self._channel_status = None + self.discriminator = None + + if platform_type is not None: + self.platform_type = platform_type + if platform_para is not None: + self.platform_para = platform_para + if channel_status is not None: + self.channel_status = channel_status + + @property + def platform_type(self): + """Gets the platform_type of this ShowDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :return: The platform_type of this ShowDataChannelResponse. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """Sets the platform_type of this ShowDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :param platform_type: The platform_type of this ShowDataChannelResponse. + :type platform_type: str + """ + self._platform_type = platform_type + + @property + def platform_para(self): + """Gets the platform_para of this ShowDataChannelResponse. + + :return: The platform_para of this ShowDataChannelResponse. + :rtype: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + return self._platform_para + + @platform_para.setter + def platform_para(self, platform_para): + """Sets the platform_para of this ShowDataChannelResponse. + + :param platform_para: The platform_para of this ShowDataChannelResponse. + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + self._platform_para = platform_para + + @property + def channel_status(self): + """Gets the channel_status of this ShowDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The channel_status of this ShowDataChannelResponse. + :rtype: str + """ + return self._channel_status + + @channel_status.setter + def channel_status(self, channel_status): + """Sets the channel_status of this ShowDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param channel_status: The channel_status of this ShowDataChannelResponse. + :type channel_status: str + """ + self._channel_status = channel_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDataChannelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_request.py new file mode 100755 index 0000000000..da012be702 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDeploymentCodeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, v2x_edge_id=None): + """ShowDeploymentCodeRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowDeploymentCodeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowDeploymentCodeRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowDeploymentCodeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowDeploymentCodeRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowDeploymentCodeRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :return: The v2x_edge_id of this ShowDeploymentCodeRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowDeploymentCodeRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :param v2x_edge_id: The v2x_edge_id of this ShowDeploymentCodeRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDeploymentCodeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_response.py new file mode 100755 index 0000000000..83a50bd4f3 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_deployment_code_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDeploymentCodeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cmd': 'str' + } + + attribute_map = { + 'cmd': 'cmd' + } + + def __init__(self, cmd=None): + """ShowDeploymentCodeResponse + + The model defined in huaweicloud sdk + + :param cmd: **参数说明**:生成的安装命令。 + :type cmd: str + """ + + super(ShowDeploymentCodeResponse, self).__init__() + + self._cmd = None + self.discriminator = None + + if cmd is not None: + self.cmd = cmd + + @property + def cmd(self): + """Gets the cmd of this ShowDeploymentCodeResponse. + + **参数说明**:生成的安装命令。 + + :return: The cmd of this ShowDeploymentCodeResponse. + :rtype: str + """ + return self._cmd + + @cmd.setter + def cmd(self, cmd): + """Sets the cmd of this ShowDeploymentCodeResponse. + + **参数说明**:生成的安装命令。 + + :param cmd: The cmd of this ShowDeploymentCodeResponse. + :type cmd: str + """ + self._cmd = cmd + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDeploymentCodeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_request.py new file mode 100755 index 0000000000..584a2a5ce4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowEdgeApplicationVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'version': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'version': 'version' + } + + def __init__(self, instance_id=None, edge_app_id=None, version=None): + """ShowEdgeApplicationVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本,应用内版本唯一。 + :type version: str + """ + + + + self._instance_id = None + self._edge_app_id = None + self._version = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + self.version = version + + @property + def instance_id(self): + """Gets the instance_id of this ShowEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this ShowEdgeApplicationVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this ShowEdgeApplicationVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this ShowEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this ShowEdgeApplicationVersionRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this ShowEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this ShowEdgeApplicationVersionRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this ShowEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :return: The version of this ShowEdgeApplicationVersionRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :param version: The version of this ShowEdgeApplicationVersionRequest. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowEdgeApplicationVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_response.py new file mode 100755 index 0000000000..3b02741424 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_edge_application_version_response.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowEdgeApplicationVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'version': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'state': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'container_settings': 'ContainerSettingsDTO', + 'publish_time': 'str', + 'off_shelf_time': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'state': 'state', + 'command': 'command', + 'args': 'args', + 'container_settings': 'container_settings', + 'publish_time': 'publish_time', + 'off_shelf_time': 'off_shelf_time' + } + + def __init__(self, edge_app_id=None, version=None, description=None, created_time=None, last_modified_time=None, state=None, command=None, args=None, container_settings=None, publish_time=None, off_shelf_time=None): + """ShowEdgeApplicationVersionResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:最后一次修改时间。 + :type last_modified_time: str + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + :param command: **参数说明**:启动命令。 + :type command: list[str] + :param args: **参数说明**:启动参数。 + :type args: list[str] + :param container_settings: + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + :param publish_time: **参数说明**:发布时间。 + :type publish_time: str + :param off_shelf_time: **参数说明**:下线时间。 + :type off_shelf_time: str + """ + + super(ShowEdgeApplicationVersionResponse, self).__init__() + + self._edge_app_id = None + self._version = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._state = None + self._command = None + self._args = None + self._container_settings = None + self._publish_time = None + self._off_shelf_time = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if state is not None: + self.state = state + if command is not None: + self.command = command + if args is not None: + self.args = args + if container_settings is not None: + self.container_settings = container_settings + if publish_time is not None: + self.publish_time = publish_time + if off_shelf_time is not None: + self.off_shelf_time = off_shelf_time + + @property + def edge_app_id(self): + """Gets the edge_app_id of this ShowEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this ShowEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this ShowEdgeApplicationVersionResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :return: The version of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :param version: The version of this ShowEdgeApplicationVersionResponse. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this ShowEdgeApplicationVersionResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this ShowEdgeApplicationVersionResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :return: The last_modified_time of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :param last_modified_time: The last_modified_time of this ShowEdgeApplicationVersionResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def state(self): + """Gets the state of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ShowEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this ShowEdgeApplicationVersionResponse. + :type state: str + """ + self._state = state + + @property + def command(self): + """Gets the command of this ShowEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :return: The command of this ShowEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this ShowEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :param command: The command of this ShowEdgeApplicationVersionResponse. + :type command: list[str] + """ + self._command = command + + @property + def args(self): + """Gets the args of this ShowEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :return: The args of this ShowEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this ShowEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :param args: The args of this ShowEdgeApplicationVersionResponse. + :type args: list[str] + """ + self._args = args + + @property + def container_settings(self): + """Gets the container_settings of this ShowEdgeApplicationVersionResponse. + + :return: The container_settings of this ShowEdgeApplicationVersionResponse. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + return self._container_settings + + @container_settings.setter + def container_settings(self, container_settings): + """Sets the container_settings of this ShowEdgeApplicationVersionResponse. + + :param container_settings: The container_settings of this ShowEdgeApplicationVersionResponse. + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + self._container_settings = container_settings + + @property + def publish_time(self): + """Gets the publish_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :return: The publish_time of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._publish_time + + @publish_time.setter + def publish_time(self, publish_time): + """Sets the publish_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :param publish_time: The publish_time of this ShowEdgeApplicationVersionResponse. + :type publish_time: str + """ + self._publish_time = publish_time + + @property + def off_shelf_time(self): + """Gets the off_shelf_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :return: The off_shelf_time of this ShowEdgeApplicationVersionResponse. + :rtype: str + """ + return self._off_shelf_time + + @off_shelf_time.setter + def off_shelf_time(self, off_shelf_time): + """Sets the off_shelf_time of this ShowEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :param off_shelf_time: The off_shelf_time of this ShowEdgeApplicationVersionResponse. + :type off_shelf_time: str + """ + self._off_shelf_time = off_shelf_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowEdgeApplicationVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_request.py new file mode 100755 index 0000000000..66212da19e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowForwardingConfigRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'forwarding_type': 'str', + 'forwarding_config_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'forwarding_type': 'forwarding_type', + 'forwarding_config_id': 'forwarding_config_id' + } + + def __init__(self, instance_id=None, forwarding_type=None, forwarding_config_id=None): + """ShowForwardingConfigRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + :type forwarding_type: str + :param forwarding_config_id: **参数说明**:转发配置的唯一ID。 + :type forwarding_config_id: str + """ + + + + self._instance_id = None + self._forwarding_type = None + self._forwarding_config_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.forwarding_type = forwarding_type + self.forwarding_config_id = forwarding_config_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this ShowForwardingConfigRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this ShowForwardingConfigRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def forwarding_type(self): + """Gets the forwarding_type of this ShowForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :return: The forwarding_type of this ShowForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this ShowForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :param forwarding_type: The forwarding_type of this ShowForwardingConfigRequest. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def forwarding_config_id(self): + """Gets the forwarding_config_id of this ShowForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :return: The forwarding_config_id of this ShowForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_config_id + + @forwarding_config_id.setter + def forwarding_config_id(self, forwarding_config_id): + """Sets the forwarding_config_id of this ShowForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :param forwarding_config_id: The forwarding_config_id of this ShowForwardingConfigRequest. + :type forwarding_config_id: str + """ + self._forwarding_config_id = forwarding_config_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowForwardingConfigRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_response.py new file mode 100755 index 0000000000..cec86c1060 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_config_response.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowForwardingConfigResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'forwarding_type': 'str', + 'kafka_config_id': 'str', + 'kafka_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'topic_prefix': 'str', + 'status': 'str', + 'authentication': 'bool', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'forwarding_type': 'forwarding_type', + 'kafka_config_id': 'kafka_config_id', + 'kafka_topics': 'kafka_topics', + 'brokers': 'brokers', + 'username': 'username', + 'topic_prefix': 'topic_prefix', + 'status': 'status', + 'authentication': 'authentication', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, forwarding_type=None, kafka_config_id=None, kafka_topics=None, brokers=None, username=None, topic_prefix=None, status=None, authentication=None, created_time=None, last_modified_time=None): + """ShowForwardingConfigResponse + + The model defined in huaweicloud sdk + + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + :type forwarding_type: str + :param kafka_config_id: **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type kafka_config_id: str + :param kafka_topics: **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type kafka_topics: list[str] + :param brokers: **参数说明**:Kafka broker列表。 + :type brokers: list[str] + :param username: **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param topic_prefix: **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type topic_prefix: str + :param status: **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + :type status: str + :param authentication: **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + :type authentication: bool + :param created_time: **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type created_time: datetime + :param last_modified_time: **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + :type last_modified_time: datetime + """ + + super(ShowForwardingConfigResponse, self).__init__() + + self._forwarding_type = None + self._kafka_config_id = None + self._kafka_topics = None + self._brokers = None + self._username = None + self._topic_prefix = None + self._status = None + self._authentication = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if forwarding_type is not None: + self.forwarding_type = forwarding_type + if kafka_config_id is not None: + self.kafka_config_id = kafka_config_id + if kafka_topics is not None: + self.kafka_topics = kafka_topics + if brokers is not None: + self.brokers = brokers + if username is not None: + self.username = username + if topic_prefix is not None: + self.topic_prefix = topic_prefix + if status is not None: + self.status = status + if authentication is not None: + self.authentication = authentication + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def forwarding_type(self): + """Gets the forwarding_type of this ShowForwardingConfigResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :return: The forwarding_type of this ShowForwardingConfigResponse. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this ShowForwardingConfigResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :param forwarding_type: The forwarding_type of this ShowForwardingConfigResponse. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def kafka_config_id(self): + """Gets the kafka_config_id of this ShowForwardingConfigResponse. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The kafka_config_id of this ShowForwardingConfigResponse. + :rtype: str + """ + return self._kafka_config_id + + @kafka_config_id.setter + def kafka_config_id(self, kafka_config_id): + """Sets the kafka_config_id of this ShowForwardingConfigResponse. + + **参数说明**:每一套Kafka配置的唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param kafka_config_id: The kafka_config_id of this ShowForwardingConfigResponse. + :type kafka_config_id: str + """ + self._kafka_config_id = kafka_config_id + + @property + def kafka_topics(self): + """Gets the kafka_topics of this ShowForwardingConfigResponse. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The kafka_topics of this ShowForwardingConfigResponse. + :rtype: list[str] + """ + return self._kafka_topics + + @kafka_topics.setter + def kafka_topics(self, kafka_topics): + """Sets the kafka_topics of this ShowForwardingConfigResponse. + + **参数说明**:kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param kafka_topics: The kafka_topics of this ShowForwardingConfigResponse. + :type kafka_topics: list[str] + """ + self._kafka_topics = kafka_topics + + @property + def brokers(self): + """Gets the brokers of this ShowForwardingConfigResponse. + + **参数说明**:Kafka broker列表。 + + :return: The brokers of this ShowForwardingConfigResponse. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this ShowForwardingConfigResponse. + + **参数说明**:Kafka broker列表。 + + :param brokers: The brokers of this ShowForwardingConfigResponse. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this ShowForwardingConfigResponse. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this ShowForwardingConfigResponse. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this ShowForwardingConfigResponse. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this ShowForwardingConfigResponse. + :type username: str + """ + self._username = username + + @property + def topic_prefix(self): + """Gets the topic_prefix of this ShowForwardingConfigResponse. + + **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The topic_prefix of this ShowForwardingConfigResponse. + :rtype: str + """ + return self._topic_prefix + + @topic_prefix.setter + def topic_prefix(self, topic_prefix): + """Sets the topic_prefix of this ShowForwardingConfigResponse. + + **参数说明**:Topic前缀。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param topic_prefix: The topic_prefix of this ShowForwardingConfigResponse. + :type topic_prefix: str + """ + self._topic_prefix = topic_prefix + + @property + def status(self): + """Gets the status of this ShowForwardingConfigResponse. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :return: The status of this ShowForwardingConfigResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowForwardingConfigResponse. + + **参数说明**:一套kafka的连接状态。 **取值范围**: - OFFLINE:离线 - ONLINE:在线 + + :param status: The status of this ShowForwardingConfigResponse. + :type status: str + """ + self._status = status + + @property + def authentication(self): + """Gets the authentication of this ShowForwardingConfigResponse. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :return: The authentication of this ShowForwardingConfigResponse. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """Sets the authentication of this ShowForwardingConfigResponse. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :param authentication: The authentication of this ShowForwardingConfigResponse. + :type authentication: bool + """ + self._authentication = authentication + + @property + def created_time(self): + """Gets the created_time of this ShowForwardingConfigResponse. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The created_time of this ShowForwardingConfigResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowForwardingConfigResponse. + + **参数说明**:创建时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param created_time: The created_time of this ShowForwardingConfigResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowForwardingConfigResponse. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :return: The last_modified_time of this ShowForwardingConfigResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowForwardingConfigResponse. + + **参数说明**:修改时间。 格式为yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2015-12-12T12:12:12Z + + :param last_modified_time: The last_modified_time of this ShowForwardingConfigResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowForwardingConfigResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_request.py new file mode 100755 index 0000000000..53ab51091b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_request.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowForwardingConfigsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'forwarding_type': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'forwarding_type': 'forwarding_type', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, instance_id=None, forwarding_type=None, offset=None, limit=None): + """ShowForwardingConfigsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + :type forwarding_type: str + :param offset: **参数说明**:查询配置列表的偏移量。 + :type offset: int + :param limit: **参数说明**:查询时每页显示的记录数。 + :type limit: int + """ + + + + self._instance_id = None + self._forwarding_type = None + self._offset = None + self._limit = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.forwarding_type = forwarding_type + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def instance_id(self): + """Gets the instance_id of this ShowForwardingConfigsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this ShowForwardingConfigsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowForwardingConfigsRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this ShowForwardingConfigsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def forwarding_type(self): + """Gets the forwarding_type of this ShowForwardingConfigsRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :return: The forwarding_type of this ShowForwardingConfigsRequest. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this ShowForwardingConfigsRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :param forwarding_type: The forwarding_type of this ShowForwardingConfigsRequest. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def offset(self): + """Gets the offset of this ShowForwardingConfigsRequest. + + **参数说明**:查询配置列表的偏移量。 + + :return: The offset of this ShowForwardingConfigsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowForwardingConfigsRequest. + + **参数说明**:查询配置列表的偏移量。 + + :param offset: The offset of this ShowForwardingConfigsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowForwardingConfigsRequest. + + **参数说明**:查询时每页显示的记录数。 + + :return: The limit of this ShowForwardingConfigsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowForwardingConfigsRequest. + + **参数说明**:查询时每页显示的记录数。 + + :param limit: The limit of this ShowForwardingConfigsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowForwardingConfigsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_response.py new file mode 100755 index 0000000000..d7c6753c75 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_forwarding_configs_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowForwardingConfigsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'forwarding_configs': 'list[ForwardingConfig]' + } + + attribute_map = { + 'count': 'count', + 'forwarding_configs': 'forwarding_configs' + } + + def __init__(self, count=None, forwarding_configs=None): + """ShowForwardingConfigsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:满足查询条件的记录总数。 + :type count: int + :param forwarding_configs: **参数说明**:转发配置的列表。 + :type forwarding_configs: list[:class:`huaweicloudsdkdris.v1.ForwardingConfig`] + """ + + super(ShowForwardingConfigsResponse, self).__init__() + + self._count = None + self._forwarding_configs = None + self.discriminator = None + + if count is not None: + self.count = count + if forwarding_configs is not None: + self.forwarding_configs = forwarding_configs + + @property + def count(self): + """Gets the count of this ShowForwardingConfigsResponse. + + **参数说明**:满足查询条件的记录总数。 + + :return: The count of this ShowForwardingConfigsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowForwardingConfigsResponse. + + **参数说明**:满足查询条件的记录总数。 + + :param count: The count of this ShowForwardingConfigsResponse. + :type count: int + """ + self._count = count + + @property + def forwarding_configs(self): + """Gets the forwarding_configs of this ShowForwardingConfigsResponse. + + **参数说明**:转发配置的列表。 + + :return: The forwarding_configs of this ShowForwardingConfigsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.ForwardingConfig`] + """ + return self._forwarding_configs + + @forwarding_configs.setter + def forwarding_configs(self, forwarding_configs): + """Sets the forwarding_configs of this ShowForwardingConfigsResponse. + + **参数说明**:转发配置的列表。 + + :param forwarding_configs: The forwarding_configs of this ShowForwardingConfigsResponse. + :type forwarding_configs: list[:class:`huaweicloudsdkdris.v1.ForwardingConfig`] + """ + self._forwarding_configs = forwarding_configs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowForwardingConfigsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_request.py new file mode 100755 index 0000000000..9f57b027db --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_request.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowHistoryTrafficEventsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'from_date': 'int', + 'to_date': 'int', + 'event_id': 'str', + 'event_class': 'str', + 'event_type': 'str', + 'event_source': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'offset': 'offset', + 'limit': 'limit', + 'from_date': 'from_date', + 'to_date': 'to_date', + 'event_id': 'event_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'event_source': 'event_source' + } + + def __init__(self, instance_id=None, offset=None, limit=None, from_date=None, to_date=None, event_id=None, event_class=None, event_type=None, event_source=None): + """ShowHistoryTrafficEventsRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param offset: **参数说明**:分页查询时的页码。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 + :type limit: int + :param from_date: **参数说明**:查询此时间后达到平台的消息,十位Unix时间戳,秒级,例如:1575446506。 + :type from_date: int + :param to_date: **参数说明**:查询此时间前达到平台的消息,十位Unix时间戳,秒级,例如:1576396905。 + :type to_date: int + :param event_id: **参数说明**:事件id + :type event_id: str + :param event_class: **参数说明**:事件的分类,event_type存在时,event_class必选。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: str + :param event_source: **参数说明**:事件来源,默认值v2xServer。 **取值范围**: - v2xServer:来源为通过Console下发的事件 - detection:来源为边缘edge上报的RSI - rsu:来源为通过MQTT接入的RSU上报的RSI + :type event_source: str + """ + + + + self._instance_id = None + self._offset = None + self._limit = None + self._from_date = None + self._to_date = None + self._event_id = None + self._event_class = None + self._event_type = None + self._event_source = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + if event_id is not None: + self.event_id = event_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if event_source is not None: + self.event_source = event_source + + @property + def instance_id(self): + """Gets the instance_id of this ShowHistoryTrafficEventsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowHistoryTrafficEventsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowHistoryTrafficEventsRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowHistoryTrafficEventsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ShowHistoryTrafficEventsRequest. + + **参数说明**:分页查询时的页码。 + + :return: The offset of this ShowHistoryTrafficEventsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowHistoryTrafficEventsRequest. + + **参数说明**:分页查询时的页码。 + + :param offset: The offset of this ShowHistoryTrafficEventsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowHistoryTrafficEventsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :return: The limit of this ShowHistoryTrafficEventsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowHistoryTrafficEventsRequest. + + **参数说明**:分页查询时每页显示的记录数。 + + :param limit: The limit of this ShowHistoryTrafficEventsRequest. + :type limit: int + """ + self._limit = limit + + @property + def from_date(self): + """Gets the from_date of this ShowHistoryTrafficEventsRequest. + + **参数说明**:查询此时间后达到平台的消息,十位Unix时间戳,秒级,例如:1575446506。 + + :return: The from_date of this ShowHistoryTrafficEventsRequest. + :rtype: int + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ShowHistoryTrafficEventsRequest. + + **参数说明**:查询此时间后达到平台的消息,十位Unix时间戳,秒级,例如:1575446506。 + + :param from_date: The from_date of this ShowHistoryTrafficEventsRequest. + :type from_date: int + """ + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ShowHistoryTrafficEventsRequest. + + **参数说明**:查询此时间前达到平台的消息,十位Unix时间戳,秒级,例如:1576396905。 + + :return: The to_date of this ShowHistoryTrafficEventsRequest. + :rtype: int + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ShowHistoryTrafficEventsRequest. + + **参数说明**:查询此时间前达到平台的消息,十位Unix时间戳,秒级,例如:1576396905。 + + :param to_date: The to_date of this ShowHistoryTrafficEventsRequest. + :type to_date: int + """ + self._to_date = to_date + + @property + def event_id(self): + """Gets the event_id of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件id + + :return: The event_id of this ShowHistoryTrafficEventsRequest. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件id + + :param event_id: The event_id of this ShowHistoryTrafficEventsRequest. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_class(self): + """Gets the event_class of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件的分类,event_type存在时,event_class必选。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + + :return: The event_class of this ShowHistoryTrafficEventsRequest. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件的分类,event_type存在时,event_class必选。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 + + :param event_class: The event_class of this ShowHistoryTrafficEventsRequest. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this ShowHistoryTrafficEventsRequest. + :rtype: str + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this ShowHistoryTrafficEventsRequest. + :type event_type: str + """ + self._event_type = event_type + + @property + def event_source(self): + """Gets the event_source of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件来源,默认值v2xServer。 **取值范围**: - v2xServer:来源为通过Console下发的事件 - detection:来源为边缘edge上报的RSI - rsu:来源为通过MQTT接入的RSU上报的RSI + + :return: The event_source of this ShowHistoryTrafficEventsRequest. + :rtype: str + """ + return self._event_source + + @event_source.setter + def event_source(self, event_source): + """Sets the event_source of this ShowHistoryTrafficEventsRequest. + + **参数说明**:事件来源,默认值v2xServer。 **取值范围**: - v2xServer:来源为通过Console下发的事件 - detection:来源为边缘edge上报的RSI - rsu:来源为通过MQTT接入的RSU上报的RSI + + :param event_source: The event_source of this ShowHistoryTrafficEventsRequest. + :type event_source: str + """ + self._event_source = event_source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowHistoryTrafficEventsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_response.py new file mode 100755 index 0000000000..abc2b88e46 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_history_traffic_events_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowHistoryTrafficEventsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'events': 'list[HistoryTrafficEventDTO]' + } + + attribute_map = { + 'count': 'count', + 'events': 'events' + } + + def __init__(self, count=None, events=None): + """ShowHistoryTrafficEventsResponse + + The model defined in huaweicloud sdk + + :param count: **参数说明**:条件查询返回的总条数。 + :type count: int + :param events: **参数说明**:事件列表。 + :type events: list[:class:`huaweicloudsdkdris.v1.HistoryTrafficEventDTO`] + """ + + super(ShowHistoryTrafficEventsResponse, self).__init__() + + self._count = None + self._events = None + self.discriminator = None + + if count is not None: + self.count = count + if events is not None: + self.events = events + + @property + def count(self): + """Gets the count of this ShowHistoryTrafficEventsResponse. + + **参数说明**:条件查询返回的总条数。 + + :return: The count of this ShowHistoryTrafficEventsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowHistoryTrafficEventsResponse. + + **参数说明**:条件查询返回的总条数。 + + :param count: The count of this ShowHistoryTrafficEventsResponse. + :type count: int + """ + self._count = count + + @property + def events(self): + """Gets the events of this ShowHistoryTrafficEventsResponse. + + **参数说明**:事件列表。 + + :return: The events of this ShowHistoryTrafficEventsResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.HistoryTrafficEventDTO`] + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this ShowHistoryTrafficEventsResponse. + + **参数说明**:事件列表。 + + :param events: The events of this ShowHistoryTrafficEventsResponse. + :type events: list[:class:`huaweicloudsdkdris.v1.HistoryTrafficEventDTO`] + """ + self._events = events + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowHistoryTrafficEventsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_request.py new file mode 100755 index 0000000000..15eda8f98b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIpcRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'camera_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'camera_id': 'camera_id' + } + + def __init__(self, instance_id=None, camera_id=None): + """ShowIpcRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param camera_id: **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + :type camera_id: str + """ + + + + self._instance_id = None + self._camera_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.camera_id = camera_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowIpcRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowIpcRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowIpcRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowIpcRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def camera_id(self): + """Gets the camera_id of this ShowIpcRequest. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :return: The camera_id of this ShowIpcRequest. + :rtype: str + """ + return self._camera_id + + @camera_id.setter + def camera_id(self, camera_id): + """Sets the camera_id of this ShowIpcRequest. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :param camera_id: The camera_id of this ShowIpcRequest. + :type camera_id: str + """ + self._camera_id = camera_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIpcRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_response.py new file mode 100755 index 0000000000..f10aebf7aa --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_ipc_response.py @@ -0,0 +1,495 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIpcResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'camera_id': 'str', + 'v2x_edge_id': 'str', + 'name': 'str', + 'cross_id': 'str', + 'focal_type': 'str', + 'parent_connect_code': 'str', + 'connect_code': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'status': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime', + 'last_online_time': 'datetime' + } + + attribute_map = { + 'camera_id': 'camera_id', + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'cross_id': 'cross_id', + 'focal_type': 'focal_type', + 'parent_connect_code': 'parent_connect_code', + 'connect_code': 'connect_code', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'status': 'status', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'last_online_time': 'last_online_time' + } + + def __init__(self, camera_id=None, v2x_edge_id=None, name=None, cross_id=None, focal_type=None, parent_connect_code=None, connect_code=None, description=None, esn=None, ip=None, status=None, created_time=None, last_modified_time=None, last_online_time=None): + """ShowIpcResponse + + The model defined in huaweicloud sdk + + :param camera_id: **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + :type camera_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + :param name: **参数说明**:摄像头名称。 + :type name: str + :param cross_id: **参数说明**:摄像头所感知的路口或者路段的Id。 + :type cross_id: str + :param focal_type: **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + :type focal_type: str + :param parent_connect_code: **参数说明**:摄像头连接的ITS800的互联编码。 + :type parent_connect_code: str + :param connect_code: **参数说明**:摄像头的互联编码。 + :type connect_code: str + :param description: **参数说明**:描述。 + :type description: str + :param esn: **参数说明**:IPC的设备编码。 + :type esn: str + :param ip: **参数说明**:该摄像头的ip地址。 + :type ip: str + :param status: **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + :type status: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + :param last_online_time: **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_online_time: datetime + """ + + super(ShowIpcResponse, self).__init__() + + self._camera_id = None + self._v2x_edge_id = None + self._name = None + self._cross_id = None + self._focal_type = None + self._parent_connect_code = None + self._connect_code = None + self._description = None + self._esn = None + self._ip = None + self._status = None + self._created_time = None + self._last_modified_time = None + self._last_online_time = None + self.discriminator = None + + if camera_id is not None: + self.camera_id = camera_id + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if cross_id is not None: + self.cross_id = cross_id + if focal_type is not None: + self.focal_type = focal_type + if parent_connect_code is not None: + self.parent_connect_code = parent_connect_code + if connect_code is not None: + self.connect_code = connect_code + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if status is not None: + self.status = status + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if last_online_time is not None: + self.last_online_time = last_online_time + + @property + def camera_id(self): + """Gets the camera_id of this ShowIpcResponse. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :return: The camera_id of this ShowIpcResponse. + :rtype: str + """ + return self._camera_id + + @camera_id.setter + def camera_id(self, camera_id): + """Sets the camera_id of this ShowIpcResponse. + + **参数说明**:摄像头ID,console界面查询摄像头IPC列表中的设备Id。 + + :param camera_id: The camera_id of this ShowIpcResponse. + :type camera_id: str + """ + self._camera_id = camera_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowIpcResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this ShowIpcResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowIpcResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this ShowIpcResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this ShowIpcResponse. + + **参数说明**:摄像头名称。 + + :return: The name of this ShowIpcResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowIpcResponse. + + **参数说明**:摄像头名称。 + + :param name: The name of this ShowIpcResponse. + :type name: str + """ + self._name = name + + @property + def cross_id(self): + """Gets the cross_id of this ShowIpcResponse. + + **参数说明**:摄像头所感知的路口或者路段的Id。 + + :return: The cross_id of this ShowIpcResponse. + :rtype: str + """ + return self._cross_id + + @cross_id.setter + def cross_id(self, cross_id): + """Sets the cross_id of this ShowIpcResponse. + + **参数说明**:摄像头所感知的路口或者路段的Id。 + + :param cross_id: The cross_id of this ShowIpcResponse. + :type cross_id: str + """ + self._cross_id = cross_id + + @property + def focal_type(self): + """Gets the focal_type of this ShowIpcResponse. + + **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + + :return: The focal_type of this ShowIpcResponse. + :rtype: str + """ + return self._focal_type + + @focal_type.setter + def focal_type(self, focal_type): + """Sets the focal_type of this ShowIpcResponse. + + **参数说明**:摄像头聚焦类型。 - long:长焦 - short:短焦 + + :param focal_type: The focal_type of this ShowIpcResponse. + :type focal_type: str + """ + self._focal_type = focal_type + + @property + def parent_connect_code(self): + """Gets the parent_connect_code of this ShowIpcResponse. + + **参数说明**:摄像头连接的ITS800的互联编码。 + + :return: The parent_connect_code of this ShowIpcResponse. + :rtype: str + """ + return self._parent_connect_code + + @parent_connect_code.setter + def parent_connect_code(self, parent_connect_code): + """Sets the parent_connect_code of this ShowIpcResponse. + + **参数说明**:摄像头连接的ITS800的互联编码。 + + :param parent_connect_code: The parent_connect_code of this ShowIpcResponse. + :type parent_connect_code: str + """ + self._parent_connect_code = parent_connect_code + + @property + def connect_code(self): + """Gets the connect_code of this ShowIpcResponse. + + **参数说明**:摄像头的互联编码。 + + :return: The connect_code of this ShowIpcResponse. + :rtype: str + """ + return self._connect_code + + @connect_code.setter + def connect_code(self, connect_code): + """Sets the connect_code of this ShowIpcResponse. + + **参数说明**:摄像头的互联编码。 + + :param connect_code: The connect_code of this ShowIpcResponse. + :type connect_code: str + """ + self._connect_code = connect_code + + @property + def description(self): + """Gets the description of this ShowIpcResponse. + + **参数说明**:描述。 + + :return: The description of this ShowIpcResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowIpcResponse. + + **参数说明**:描述。 + + :param description: The description of this ShowIpcResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this ShowIpcResponse. + + **参数说明**:IPC的设备编码。 + + :return: The esn of this ShowIpcResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this ShowIpcResponse. + + **参数说明**:IPC的设备编码。 + + :param esn: The esn of this ShowIpcResponse. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this ShowIpcResponse. + + **参数说明**:该摄像头的ip地址。 + + :return: The ip of this ShowIpcResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ShowIpcResponse. + + **参数说明**:该摄像头的ip地址。 + + :param ip: The ip of this ShowIpcResponse. + :type ip: str + """ + self._ip = ip + + @property + def status(self): + """Gets the status of this ShowIpcResponse. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :return: The status of this ShowIpcResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowIpcResponse. + + **参数说明**:摄像机的状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 - SLEEP:休眠 + + :param status: The status of this ShowIpcResponse. + :type status: str + """ + self._status = status + + @property + def created_time(self): + """Gets the created_time of this ShowIpcResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this ShowIpcResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowIpcResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this ShowIpcResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowIpcResponse. + + **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this ShowIpcResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowIpcResponse. + + **参数说明**:最后修改时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this ShowIpcResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def last_online_time(self): + """Gets the last_online_time of this ShowIpcResponse. + + **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_online_time of this ShowIpcResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this ShowIpcResponse. + + **参数说明**:最后在线时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_online_time: The last_online_time of this ShowIpcResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIpcResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_request.py new file mode 100755 index 0000000000..1c0e68f3ac --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRsuModelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'rsu_model_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'rsu_model_id': 'rsu_model_id' + } + + def __init__(self, instance_id=None, rsu_model_id=None): + """ShowRsuModelRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + """ + + + + self._instance_id = None + self._rsu_model_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.rsu_model_id = rsu_model_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowRsuModelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowRsuModelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this ShowRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this ShowRsuModelRequest. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this ShowRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this ShowRsuModelRequest. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowRsuModelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_response.py new file mode 100755 index 0000000000..de07ec7fca --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_rsu_model_response.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRsuModelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_model_id': 'str', + 'name': 'str', + 'manufacturer_name': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime' + } + + attribute_map = { + 'rsu_model_id': 'rsu_model_id', + 'name': 'name', + 'manufacturer_name': 'manufacturer_name', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time' + } + + def __init__(self, rsu_model_id=None, name=None, manufacturer_name=None, description=None, last_modified_time=None, created_time=None): + """ShowRsuModelResponse + + The model defined in huaweicloud sdk + + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + :param name: **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type name: str + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + :param last_modified_time: **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type last_modified_time: datetime + :param created_time: **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type created_time: datetime + """ + + super(ShowRsuModelResponse, self).__init__() + + self._rsu_model_id = None + self._name = None + self._manufacturer_name = None + self._description = None + self._last_modified_time = None + self._created_time = None + self.discriminator = None + + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if name is not None: + self.name = name + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this ShowRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this ShowRsuModelResponse. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this ShowRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this ShowRsuModelResponse. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def name(self): + """Gets the name of this ShowRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The name of this ShowRsuModelResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param name: The name of this ShowRsuModelResponse. + :type name: str + """ + self._name = name + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this ShowRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this ShowRsuModelResponse. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this ShowRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this ShowRsuModelResponse. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this ShowRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this ShowRsuModelResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this ShowRsuModelResponse. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The last_modified_time of this ShowRsuModelResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param last_modified_time: The last_modified_time of this ShowRsuModelResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this ShowRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The created_time of this ShowRsuModelResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param created_time: The created_time of this ShowRsuModelResponse. + :type created_time: datetime + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowRsuModelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_request.py new file mode 100755 index 0000000000..3258646aca --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTrafficEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'event_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'event_id': 'event_id' + } + + def __init__(self, instance_id=None, event_id=None): + """ShowTrafficEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + """ + + + + self._instance_id = None + self._event_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.event_id = event_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowTrafficEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowTrafficEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def event_id(self): + """Gets the event_id of this ShowTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this ShowTrafficEventRequest. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this ShowTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this ShowTrafficEventRequest. + :type event_id: str + """ + self._event_id = event_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTrafficEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_response.py new file mode 100755 index 0000000000..a5b6e37290 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_traffic_event_response.py @@ -0,0 +1,636 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTrafficEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'event_id': 'str', + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'note': 'str', + 'event_confidence': 'int', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'status': 'status', + 'event_id': 'event_id', + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, status=None, event_id=None, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None, created_time=None, last_modified_time=None): + """ShowTrafficEventResponse + + The model defined in huaweicloud sdk + + :param status: **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + :type status: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: datetime + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: datetime + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + :param created_time: '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(ShowTrafficEventResponse, self).__init__() + + self._status = None + self._event_id = None + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if status is not None: + self.status = status + if event_id is not None: + self.event_id = event_id + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if area_code is not None: + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + if reference_paths is not None: + self.reference_paths = reference_paths + if event_position_name is not None: + self.event_position_name = event_position_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def status(self): + """Gets the status of this ShowTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :return: The status of this ShowTrafficEventResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :param status: The status of this ShowTrafficEventResponse. + :type status: str + """ + self._status = status + + @property + def event_id(self): + """Gets the event_id of this ShowTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this ShowTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this ShowTrafficEventResponse. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_source_type(self): + """Gets the event_source_type of this ShowTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this ShowTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this ShowTrafficEventResponse. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this ShowTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this ShowTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this ShowTrafficEventResponse. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this ShowTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this ShowTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this ShowTrafficEventResponse. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this ShowTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this ShowTrafficEventResponse. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this ShowTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this ShowTrafficEventResponse. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this ShowTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this ShowTrafficEventResponse. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this ShowTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this ShowTrafficEventResponse. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this ShowTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this ShowTrafficEventResponse. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this ShowTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this ShowTrafficEventResponse. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this ShowTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this ShowTrafficEventResponse. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this ShowTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this ShowTrafficEventResponse. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this ShowTrafficEventResponse. + + :return: The event_position of this ShowTrafficEventResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this ShowTrafficEventResponse. + + :param event_position: The event_position of this ShowTrafficEventResponse. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this ShowTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this ShowTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this ShowTrafficEventResponse. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this ShowTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this ShowTrafficEventResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this ShowTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this ShowTrafficEventResponse. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this ShowTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this ShowTrafficEventResponse. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this ShowTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this ShowTrafficEventResponse. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this ShowTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this ShowTrafficEventResponse. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this ShowTrafficEventResponse. + :type start_time: datetime + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this ShowTrafficEventResponse. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this ShowTrafficEventResponse. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this ShowTrafficEventResponse. + + **参数说明**:备注。 + + :return: The note of this ShowTrafficEventResponse. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this ShowTrafficEventResponse. + + **参数说明**:备注。 + + :param note: The note of this ShowTrafficEventResponse. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this ShowTrafficEventResponse. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this ShowTrafficEventResponse. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this ShowTrafficEventResponse. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this ShowTrafficEventResponse. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def created_time(self): + """Gets the created_time of this ShowTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this ShowTrafficEventResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this ShowTrafficEventResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this ShowTrafficEventResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this ShowTrafficEventResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTrafficEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_request.py new file mode 100755 index 0000000000..bc32302381 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowV2XEdgeAppDetailByEdgeAppIdRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, edge_app_id=None, instance_id=None, v2x_edge_id=None): + """ShowV2XEdgeAppDetailByEdgeAppIdRequest + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + """ + + + + self._edge_app_id = None + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + self.edge_app_id = edge_app_id + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowV2XEdgeAppDetailByEdgeAppIdRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_response.py new file mode 100755 index 0000000000..eda05e2b9e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2_x_edge_app_detail_by_edge_app_id_response.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowV2XEdgeAppDetailByEdgeAppIdResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'edge_app_id': 'str', + 'app_version': 'str', + 'status': 'str' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'edge_app_id': 'edge_app_id', + 'app_version': 'app_version', + 'status': 'status' + } + + def __init__(self, v2x_edge_id=None, edge_app_id=None, app_version=None, status=None): + """ShowV2XEdgeAppDetailByEdgeAppIdResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param app_version: **参数说明**:应用版本,比如1.0.0。 + :type app_version: str + :param status: **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + :type status: str + """ + + super(ShowV2XEdgeAppDetailByEdgeAppIdResponse, self).__init__() + + self._v2x_edge_id = None + self._edge_app_id = None + self._app_version = None + self._status = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if app_version is not None: + self.app_version = app_version + if status is not None: + self.status = status + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def app_version(self): + """Gets the app_version of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :return: The app_version of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :param app_version: The app_version of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :type app_version: str + """ + self._app_version = app_version + + @property + def status(self): + """Gets the status of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :return: The status of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :param status: The status of this ShowV2XEdgeAppDetailByEdgeAppIdResponse. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowV2XEdgeAppDetailByEdgeAppIdResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_request.py new file mode 100755 index 0000000000..4f62fa9323 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowV2xEdgeDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id' + } + + def __init__(self, instance_id=None, v2x_edge_id=None): + """ShowV2xEdgeDetailRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowV2xEdgeDetailRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this ShowV2xEdgeDetailRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowV2xEdgeDetailRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this ShowV2xEdgeDetailRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowV2xEdgeDetailRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this ShowV2xEdgeDetailRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowV2xEdgeDetailRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this ShowV2xEdgeDetailRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowV2xEdgeDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_response.py new file mode 100755 index 0000000000..1be7ef7aaa --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/show_v2x_edge_detail_response.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowV2xEdgeDetailResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'port': 'int', + 'hardware_type': 'str', + 'position_description': 'str', + 'location': 'Location', + 'cameras': 'list[IdAndStatus]', + 'radars': 'list[IdAndStatus]', + 'local_rsus': 'list[IdAndStatus]', + 'edge_general_config': 'EdgeGeneralConfigInResponse', + 'edge_advance_config': 'object', + 'status': 'str', + 'channel_status': 'str', + 'node_id': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'port': 'port', + 'hardware_type': 'hardware_type', + 'position_description': 'position_description', + 'location': 'location', + 'cameras': 'cameras', + 'radars': 'radars', + 'local_rsus': 'local_rsus', + 'edge_general_config': 'edge_general_config', + 'edge_advance_config': 'edge_advance_config', + 'status': 'status', + 'channel_status': 'channel_status', + 'node_id': 'node_id', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, v2x_edge_id=None, name=None, description=None, esn=None, ip=None, port=None, hardware_type=None, position_description=None, location=None, cameras=None, radars=None, local_rsus=None, edge_general_config=None, edge_advance_config=None, status=None, channel_status=None, node_id=None, created_time=None, last_modified_time=None): + """ShowV2xEdgeDetailResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param name: **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + :type name: str + :param description: **参数说明**:Edge描述。 + :type description: str + :param esn: **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param ip: **参数说明**:网络I,例如127.0.0.1。 + :type ip: str + :param port: ITS800,ATLAS 端口号 + :type port: int + :param hardware_type: **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS。 + :type hardware_type: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param cameras: **参数说明**:Edge关联的摄像头列表。 + :type cameras: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + :param radars: **参数说明**:Edge关联的雷达列表。 + :type radars: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + :param local_rsus: **参数说明**:Edge关联的本地RSU列表。 + :type local_rsus: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + :param edge_general_config: + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + :param edge_advance_config: **参数说明**:Edge高级配置,Json格式 + :type edge_advance_config: object + :param status: **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + :type status: str + :param channel_status: **参数说明**:业务通道状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type channel_status: str + :param node_id: **参数说明**:边缘管理服务返回的node_id,用于关联EdgeManager的资源。 + :type node_id: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(ShowV2xEdgeDetailResponse, self).__init__() + + self._v2x_edge_id = None + self._name = None + self._description = None + self._esn = None + self._ip = None + self._port = None + self._hardware_type = None + self._position_description = None + self._location = None + self._cameras = None + self._radars = None + self._local_rsus = None + self._edge_general_config = None + self._edge_advance_config = None + self._status = None + self._channel_status = None + self._node_id = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if hardware_type is not None: + self.hardware_type = hardware_type + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if cameras is not None: + self.cameras = cameras + if radars is not None: + self.radars = radars + if local_rsus is not None: + self.local_rsus = local_rsus + if edge_general_config is not None: + self.edge_general_config = edge_general_config + if edge_advance_config is not None: + self.edge_advance_config = edge_advance_config + if status is not None: + self.status = status + if channel_status is not None: + self.channel_status = channel_status + if node_id is not None: + self.node_id = node_id + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this ShowV2xEdgeDetailResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this ShowV2xEdgeDetailResponse. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :return: The name of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowV2xEdgeDetailResponse. + + **参数说明**:名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :param name: The name of this ShowV2xEdgeDetailResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge描述。 + + :return: The description of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge描述。 + + :param description: The description of this ShowV2xEdgeDetailResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this ShowV2xEdgeDetailResponse. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this ShowV2xEdgeDetailResponse. + + **参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this ShowV2xEdgeDetailResponse. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this ShowV2xEdgeDetailResponse. + + **参数说明**:网络I,例如127.0.0.1。 + + :return: The ip of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ShowV2xEdgeDetailResponse. + + **参数说明**:网络I,例如127.0.0.1。 + + :param ip: The ip of this ShowV2xEdgeDetailResponse. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this ShowV2xEdgeDetailResponse. + + ITS800,ATLAS 端口号 + + :return: The port of this ShowV2xEdgeDetailResponse. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this ShowV2xEdgeDetailResponse. + + ITS800,ATLAS 端口号 + + :param port: The port of this ShowV2xEdgeDetailResponse. + :type port: int + """ + self._port = port + + @property + def hardware_type(self): + """Gets the hardware_type of this ShowV2xEdgeDetailResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS。 + + :return: The hardware_type of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._hardware_type + + @hardware_type.setter + def hardware_type(self, hardware_type): + """Sets the hardware_type of this ShowV2xEdgeDetailResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS。 + + :param hardware_type: The hardware_type of this ShowV2xEdgeDetailResponse. + :type hardware_type: str + """ + self._hardware_type = hardware_type + + @property + def position_description(self): + """Gets the position_description of this ShowV2xEdgeDetailResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this ShowV2xEdgeDetailResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this ShowV2xEdgeDetailResponse. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this ShowV2xEdgeDetailResponse. + + :return: The location of this ShowV2xEdgeDetailResponse. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this ShowV2xEdgeDetailResponse. + + :param location: The location of this ShowV2xEdgeDetailResponse. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def cameras(self): + """Gets the cameras of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的摄像头列表。 + + :return: The cameras of this ShowV2xEdgeDetailResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + return self._cameras + + @cameras.setter + def cameras(self, cameras): + """Sets the cameras of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的摄像头列表。 + + :param cameras: The cameras of this ShowV2xEdgeDetailResponse. + :type cameras: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + self._cameras = cameras + + @property + def radars(self): + """Gets the radars of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的雷达列表。 + + :return: The radars of this ShowV2xEdgeDetailResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + return self._radars + + @radars.setter + def radars(self, radars): + """Sets the radars of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的雷达列表。 + + :param radars: The radars of this ShowV2xEdgeDetailResponse. + :type radars: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + self._radars = radars + + @property + def local_rsus(self): + """Gets the local_rsus of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :return: The local_rsus of this ShowV2xEdgeDetailResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + return self._local_rsus + + @local_rsus.setter + def local_rsus(self, local_rsus): + """Sets the local_rsus of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :param local_rsus: The local_rsus of this ShowV2xEdgeDetailResponse. + :type local_rsus: list[:class:`huaweicloudsdkdris.v1.IdAndStatus`] + """ + self._local_rsus = local_rsus + + @property + def edge_general_config(self): + """Gets the edge_general_config of this ShowV2xEdgeDetailResponse. + + :return: The edge_general_config of this ShowV2xEdgeDetailResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + return self._edge_general_config + + @edge_general_config.setter + def edge_general_config(self, edge_general_config): + """Sets the edge_general_config of this ShowV2xEdgeDetailResponse. + + :param edge_general_config: The edge_general_config of this ShowV2xEdgeDetailResponse. + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + self._edge_general_config = edge_general_config + + @property + def edge_advance_config(self): + """Gets the edge_advance_config of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge高级配置,Json格式 + + :return: The edge_advance_config of this ShowV2xEdgeDetailResponse. + :rtype: object + """ + return self._edge_advance_config + + @edge_advance_config.setter + def edge_advance_config(self, edge_advance_config): + """Sets the edge_advance_config of this ShowV2xEdgeDetailResponse. + + **参数说明**:Edge高级配置,Json格式 + + :param edge_advance_config: The edge_advance_config of this ShowV2xEdgeDetailResponse. + :type edge_advance_config: object + """ + self._edge_advance_config = edge_advance_config + + @property + def status(self): + """Gets the status of this ShowV2xEdgeDetailResponse. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :return: The status of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowV2xEdgeDetailResponse. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :param status: The status of this ShowV2xEdgeDetailResponse. + :type status: str + """ + self._status = status + + @property + def channel_status(self): + """Gets the channel_status of this ShowV2xEdgeDetailResponse. + + **参数说明**:业务通道状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The channel_status of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._channel_status + + @channel_status.setter + def channel_status(self, channel_status): + """Sets the channel_status of this ShowV2xEdgeDetailResponse. + + **参数说明**:业务通道状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param channel_status: The channel_status of this ShowV2xEdgeDetailResponse. + :type channel_status: str + """ + self._channel_status = channel_status + + @property + def node_id(self): + """Gets the node_id of this ShowV2xEdgeDetailResponse. + + **参数说明**:边缘管理服务返回的node_id,用于关联EdgeManager的资源。 + + :return: The node_id of this ShowV2xEdgeDetailResponse. + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this ShowV2xEdgeDetailResponse. + + **参数说明**:边缘管理服务返回的node_id,用于关联EdgeManager的资源。 + + :param node_id: The node_id of this ShowV2xEdgeDetailResponse. + :type node_id: str + """ + self._node_id = node_id + + @property + def created_time(self): + """Gets the created_time of this ShowV2xEdgeDetailResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this ShowV2xEdgeDetailResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this ShowV2xEdgeDetailResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this ShowV2xEdgeDetailResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this ShowV2xEdgeDetailResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this ShowV2xEdgeDetailResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this ShowV2xEdgeDetailResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this ShowV2xEdgeDetailResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowV2xEdgeDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/statistics_source_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/statistics_source_dto.py new file mode 100755 index 0000000000..2a3047824b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/statistics_source_dto.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StatisticsSourceDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source_type': 'str', + 'source_id': 'str' + } + + attribute_map = { + 'source_type': 'source_type', + 'source_id': 'source_id' + } + + def __init__(self, source_type=None, source_id=None): + """StatisticsSourceDTO + + The model defined in huaweicloud sdk + + :param source_type: **参数说明**:信息来源的具体类型描述。 + :type source_type: str + :param source_id: **参数说明**:信息来源的唯一标识码ID。 + :type source_id: str + """ + + + + self._source_type = None + self._source_id = None + self.discriminator = None + + if source_type is not None: + self.source_type = source_type + if source_id is not None: + self.source_id = source_id + + @property + def source_type(self): + """Gets the source_type of this StatisticsSourceDTO. + + **参数说明**:信息来源的具体类型描述。 + + :return: The source_type of this StatisticsSourceDTO. + :rtype: str + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this StatisticsSourceDTO. + + **参数说明**:信息来源的具体类型描述。 + + :param source_type: The source_type of this StatisticsSourceDTO. + :type source_type: str + """ + self._source_type = source_type + + @property + def source_id(self): + """Gets the source_id of this StatisticsSourceDTO. + + **参数说明**:信息来源的唯一标识码ID。 + + :return: The source_id of this StatisticsSourceDTO. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this StatisticsSourceDTO. + + **参数说明**:信息来源的唯一标识码ID。 + + :param source_id: The source_id of this StatisticsSourceDTO. + :type source_id: str + """ + self._source_id = source_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StatisticsSourceDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_list.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_list.py new file mode 100755 index 0000000000..86845f6ac0 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TargetList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_rsu_ids': 'list[str]', + 'target_obu_ids': 'list[str]' + } + + attribute_map = { + 'target_rsu_ids': 'target_rsu_ids', + 'target_obu_ids': 'target_obu_ids' + } + + def __init__(self, target_rsu_ids=None, target_obu_ids=None): + """TargetList + + The model defined in huaweicloud sdk + + :param target_rsu_ids: **参数说明**:通过LTE-PC5传输通道(by_lte_pc5参数值为true)下发的rsu id列表。如果rsu id列表为空,则匹配事件范围内的在线rsu进行下发。 + :type target_rsu_ids: list[str] + :param target_obu_ids: **参数说明**:通过LTE-Uu的传输通道(by_lte_uu参数值为true)下发的obu id列表。注意obu id列表不能为空。 + :type target_obu_ids: list[str] + """ + + + + self._target_rsu_ids = None + self._target_obu_ids = None + self.discriminator = None + + if target_rsu_ids is not None: + self.target_rsu_ids = target_rsu_ids + if target_obu_ids is not None: + self.target_obu_ids = target_obu_ids + + @property + def target_rsu_ids(self): + """Gets the target_rsu_ids of this TargetList. + + **参数说明**:通过LTE-PC5传输通道(by_lte_pc5参数值为true)下发的rsu id列表。如果rsu id列表为空,则匹配事件范围内的在线rsu进行下发。 + + :return: The target_rsu_ids of this TargetList. + :rtype: list[str] + """ + return self._target_rsu_ids + + @target_rsu_ids.setter + def target_rsu_ids(self, target_rsu_ids): + """Sets the target_rsu_ids of this TargetList. + + **参数说明**:通过LTE-PC5传输通道(by_lte_pc5参数值为true)下发的rsu id列表。如果rsu id列表为空,则匹配事件范围内的在线rsu进行下发。 + + :param target_rsu_ids: The target_rsu_ids of this TargetList. + :type target_rsu_ids: list[str] + """ + self._target_rsu_ids = target_rsu_ids + + @property + def target_obu_ids(self): + """Gets the target_obu_ids of this TargetList. + + **参数说明**:通过LTE-Uu的传输通道(by_lte_uu参数值为true)下发的obu id列表。注意obu id列表不能为空。 + + :return: The target_obu_ids of this TargetList. + :rtype: list[str] + """ + return self._target_obu_ids + + @target_obu_ids.setter + def target_obu_ids(self, target_obu_ids): + """Sets the target_obu_ids of this TargetList. + + **参数说明**:通过LTE-Uu的传输通道(by_lte_uu参数值为true)下发的obu id列表。注意obu id列表不能为空。 + + :param target_obu_ids: The target_obu_ids of this TargetList. + :type target_obu_ids: list[str] + """ + self._target_obu_ids = target_obu_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TargetList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_pos.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_pos.py new file mode 100755 index 0000000000..244477a30f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_pos.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TargetPos: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'left_top_x': 'int', + 'left_top_y': 'int', + 'right_bottom_x': 'int', + 'right_bottom_y': 'int' + } + + attribute_map = { + 'left_top_x': 'left_top_x', + 'left_top_y': 'left_top_y', + 'right_bottom_x': 'right_bottom_x', + 'right_bottom_y': 'right_bottom_y' + } + + def __init__(self, left_top_x=None, left_top_y=None, right_bottom_x=None, right_bottom_y=None): + """TargetPos + + The model defined in huaweicloud sdk + + :param left_top_x: **参数说明**:目标区域框左上X坐标。 + :type left_top_x: int + :param left_top_y: **参数说明**:目标区域框左上Y坐标。 + :type left_top_y: int + :param right_bottom_x: **参数说明**:目标区域框右下X坐标。 + :type right_bottom_x: int + :param right_bottom_y: **参数说明**:目标区域框右下Y坐标。 + :type right_bottom_y: int + """ + + + + self._left_top_x = None + self._left_top_y = None + self._right_bottom_x = None + self._right_bottom_y = None + self.discriminator = None + + if left_top_x is not None: + self.left_top_x = left_top_x + if left_top_y is not None: + self.left_top_y = left_top_y + if right_bottom_x is not None: + self.right_bottom_x = right_bottom_x + if right_bottom_y is not None: + self.right_bottom_y = right_bottom_y + + @property + def left_top_x(self): + """Gets the left_top_x of this TargetPos. + + **参数说明**:目标区域框左上X坐标。 + + :return: The left_top_x of this TargetPos. + :rtype: int + """ + return self._left_top_x + + @left_top_x.setter + def left_top_x(self, left_top_x): + """Sets the left_top_x of this TargetPos. + + **参数说明**:目标区域框左上X坐标。 + + :param left_top_x: The left_top_x of this TargetPos. + :type left_top_x: int + """ + self._left_top_x = left_top_x + + @property + def left_top_y(self): + """Gets the left_top_y of this TargetPos. + + **参数说明**:目标区域框左上Y坐标。 + + :return: The left_top_y of this TargetPos. + :rtype: int + """ + return self._left_top_y + + @left_top_y.setter + def left_top_y(self, left_top_y): + """Sets the left_top_y of this TargetPos. + + **参数说明**:目标区域框左上Y坐标。 + + :param left_top_y: The left_top_y of this TargetPos. + :type left_top_y: int + """ + self._left_top_y = left_top_y + + @property + def right_bottom_x(self): + """Gets the right_bottom_x of this TargetPos. + + **参数说明**:目标区域框右下X坐标。 + + :return: The right_bottom_x of this TargetPos. + :rtype: int + """ + return self._right_bottom_x + + @right_bottom_x.setter + def right_bottom_x(self, right_bottom_x): + """Sets the right_bottom_x of this TargetPos. + + **参数说明**:目标区域框右下X坐标。 + + :param right_bottom_x: The right_bottom_x of this TargetPos. + :type right_bottom_x: int + """ + self._right_bottom_x = right_bottom_x + + @property + def right_bottom_y(self): + """Gets the right_bottom_y of this TargetPos. + + **参数说明**:目标区域框右下Y坐标。 + + :return: The right_bottom_y of this TargetPos. + :rtype: int + """ + return self._right_bottom_y + + @right_bottom_y.setter + def right_bottom_y(self, right_bottom_y): + """Sets the right_bottom_y of this TargetPos. + + **参数说明**:目标区域框右下Y坐标。 + + :param right_bottom_y: The right_bottom_y of this TargetPos. + :type right_bottom_y: int + """ + self._right_bottom_y = right_bottom_y + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TargetPos): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_rect.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_rect.py new file mode 100755 index 0000000000..1e436d9f4c --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_rect.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TargetRect: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'camera_code': 'str', + 'camera_ip': 'str', + 'target_pos': 'TargetPos', + 'time_stamp_diff': 'int' + } + + attribute_map = { + 'camera_code': 'camera_code', + 'camera_ip': 'camera_ip', + 'target_pos': 'target_pos', + 'time_stamp_diff': 'time_stamp_diff' + } + + def __init__(self, camera_code=None, camera_ip=None, target_pos=None, time_stamp_diff=None): + """TargetRect + + The model defined in huaweicloud sdk + + :param camera_code: **参数说明**:摄像头编码。 + :type camera_code: str + :param camera_ip: **参数说明**:摄像头IP地址。 + :type camera_ip: str + :param target_pos: + :type target_pos: :class:`huaweicloudsdkdris.v1.TargetPos` + :param time_stamp_diff: **参数说明**:与SnapTime的时间差值:当前检测框所在相机的时间戳减去雷视拟合轨迹中的SnapTime的差值。 + :type time_stamp_diff: int + """ + + + + self._camera_code = None + self._camera_ip = None + self._target_pos = None + self._time_stamp_diff = None + self.discriminator = None + + if camera_code is not None: + self.camera_code = camera_code + if camera_ip is not None: + self.camera_ip = camera_ip + if target_pos is not None: + self.target_pos = target_pos + if time_stamp_diff is not None: + self.time_stamp_diff = time_stamp_diff + + @property + def camera_code(self): + """Gets the camera_code of this TargetRect. + + **参数说明**:摄像头编码。 + + :return: The camera_code of this TargetRect. + :rtype: str + """ + return self._camera_code + + @camera_code.setter + def camera_code(self, camera_code): + """Sets the camera_code of this TargetRect. + + **参数说明**:摄像头编码。 + + :param camera_code: The camera_code of this TargetRect. + :type camera_code: str + """ + self._camera_code = camera_code + + @property + def camera_ip(self): + """Gets the camera_ip of this TargetRect. + + **参数说明**:摄像头IP地址。 + + :return: The camera_ip of this TargetRect. + :rtype: str + """ + return self._camera_ip + + @camera_ip.setter + def camera_ip(self, camera_ip): + """Sets the camera_ip of this TargetRect. + + **参数说明**:摄像头IP地址。 + + :param camera_ip: The camera_ip of this TargetRect. + :type camera_ip: str + """ + self._camera_ip = camera_ip + + @property + def target_pos(self): + """Gets the target_pos of this TargetRect. + + :return: The target_pos of this TargetRect. + :rtype: :class:`huaweicloudsdkdris.v1.TargetPos` + """ + return self._target_pos + + @target_pos.setter + def target_pos(self, target_pos): + """Sets the target_pos of this TargetRect. + + :param target_pos: The target_pos of this TargetRect. + :type target_pos: :class:`huaweicloudsdkdris.v1.TargetPos` + """ + self._target_pos = target_pos + + @property + def time_stamp_diff(self): + """Gets the time_stamp_diff of this TargetRect. + + **参数说明**:与SnapTime的时间差值:当前检测框所在相机的时间戳减去雷视拟合轨迹中的SnapTime的差值。 + + :return: The time_stamp_diff of this TargetRect. + :rtype: int + """ + return self._time_stamp_diff + + @time_stamp_diff.setter + def time_stamp_diff(self, time_stamp_diff): + """Sets the time_stamp_diff of this TargetRect. + + **参数说明**:与SnapTime的时间差值:当前检测框所在相机的时间戳减去雷视拟合轨迹中的SnapTime的差值。 + + :param time_stamp_diff: The time_stamp_diff of this TargetRect. + :type time_stamp_diff: int + """ + self._time_stamp_diff = time_stamp_diff + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TargetRect): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_controller_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_controller_dto.py new file mode 100755 index 0000000000..61db7316ad --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_controller_dto.py @@ -0,0 +1,524 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TrafficControllerDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'traffic_controller_id': 'str', + 'esn': 'str', + 'name': 'str', + 'description': 'str', + 'lat': 'float', + 'lon': 'float', + 'ele': 'float', + 'pos_description': 'str', + 'installation_mode': 'str', + 'road_name': 'str', + 'link_id': 'str', + 'status': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime' + } + + attribute_map = { + 'traffic_controller_id': 'traffic_controller_id', + 'esn': 'esn', + 'name': 'name', + 'description': 'description', + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele', + 'pos_description': 'pos_description', + 'installation_mode': 'installation_mode', + 'road_name': 'road_name', + 'link_id': 'link_id', + 'status': 'status', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time' + } + + def __init__(self, traffic_controller_id=None, esn=None, name=None, description=None, lat=None, lon=None, ele=None, pos_description=None, installation_mode=None, road_name=None, link_id=None, status=None, last_modified_time=None, created_time=None, last_online_time=None): + """TrafficControllerDTO + + The model defined in huaweicloud sdk + + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 + :type traffic_controller_id: str + :param esn: \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param name: **参数说明**:名称。 + :type name: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + :param pos_description: **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + :type pos_description: str + :param installation_mode: **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + :type installation_mode: str + :param road_name: **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + :type road_name: str + :param link_id: **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + :type link_id: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + """ + + + + self._traffic_controller_id = None + self._esn = None + self._name = None + self._description = None + self._lat = None + self._lon = None + self._ele = None + self._pos_description = None + self._installation_mode = None + self._road_name = None + self._link_id = None + self._status = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self.discriminator = None + + if traffic_controller_id is not None: + self.traffic_controller_id = traffic_controller_id + if esn is not None: + self.esn = esn + if name is not None: + self.name = name + if description is not None: + self.description = description + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if ele is not None: + self.ele = ele + if pos_description is not None: + self.pos_description = pos_description + if installation_mode is not None: + self.installation_mode = installation_mode + if road_name is not None: + self.road_name = road_name + if link_id is not None: + self.link_id = link_id + if status is not None: + self.status = status + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this TrafficControllerDTO. + + **参数说明**:信号机设备ID,全局唯一。 + + :return: The traffic_controller_id of this TrafficControllerDTO. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this TrafficControllerDTO. + + **参数说明**:信号机设备ID,全局唯一。 + + :param traffic_controller_id: The traffic_controller_id of this TrafficControllerDTO. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def esn(self): + """Gets the esn of this TrafficControllerDTO. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this TrafficControllerDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this TrafficControllerDTO. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this TrafficControllerDTO. + :type esn: str + """ + self._esn = esn + + @property + def name(self): + """Gets the name of this TrafficControllerDTO. + + **参数说明**:名称。 + + :return: The name of this TrafficControllerDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TrafficControllerDTO. + + **参数说明**:名称。 + + :param name: The name of this TrafficControllerDTO. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this TrafficControllerDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this TrafficControllerDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TrafficControllerDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this TrafficControllerDTO. + :type description: str + """ + self._description = description + + @property + def lat(self): + """Gets the lat of this TrafficControllerDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this TrafficControllerDTO. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this TrafficControllerDTO. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this TrafficControllerDTO. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this TrafficControllerDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this TrafficControllerDTO. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this TrafficControllerDTO. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this TrafficControllerDTO. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this TrafficControllerDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this TrafficControllerDTO. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this TrafficControllerDTO. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this TrafficControllerDTO. + :type ele: float + """ + self._ele = ele + + @property + def pos_description(self): + """Gets the pos_description of this TrafficControllerDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :return: The pos_description of this TrafficControllerDTO. + :rtype: str + """ + return self._pos_description + + @pos_description.setter + def pos_description(self, pos_description): + """Sets the pos_description of this TrafficControllerDTO. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :param pos_description: The pos_description of this TrafficControllerDTO. + :type pos_description: str + """ + self._pos_description = pos_description + + @property + def installation_mode(self): + """Gets the installation_mode of this TrafficControllerDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :return: The installation_mode of this TrafficControllerDTO. + :rtype: str + """ + return self._installation_mode + + @installation_mode.setter + def installation_mode(self, installation_mode): + """Sets the installation_mode of this TrafficControllerDTO. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :param installation_mode: The installation_mode of this TrafficControllerDTO. + :type installation_mode: str + """ + self._installation_mode = installation_mode + + @property + def road_name(self): + """Gets the road_name of this TrafficControllerDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The road_name of this TrafficControllerDTO. + :rtype: str + """ + return self._road_name + + @road_name.setter + def road_name(self, road_name): + """Sets the road_name of this TrafficControllerDTO. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param road_name: The road_name of this TrafficControllerDTO. + :type road_name: str + """ + self._road_name = road_name + + @property + def link_id(self): + """Gets the link_id of this TrafficControllerDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :return: The link_id of this TrafficControllerDTO. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this TrafficControllerDTO. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :param link_id: The link_id of this TrafficControllerDTO. + :type link_id: str + """ + self._link_id = link_id + + @property + def status(self): + """Gets the status of this TrafficControllerDTO. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this TrafficControllerDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TrafficControllerDTO. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this TrafficControllerDTO. + :type status: str + """ + self._status = status + + @property + def last_modified_time(self): + """Gets the last_modified_time of this TrafficControllerDTO. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this TrafficControllerDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this TrafficControllerDTO. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this TrafficControllerDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this TrafficControllerDTO. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this TrafficControllerDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this TrafficControllerDTO. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this TrafficControllerDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this TrafficControllerDTO. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this TrafficControllerDTO. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this TrafficControllerDTO. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this TrafficControllerDTO. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrafficControllerDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_event_dto.py new file mode 100755 index 0000000000..7a540d3f76 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/traffic_event_dto.py @@ -0,0 +1,636 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TrafficEventDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'event_id': 'str', + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'note': 'str', + 'event_confidence': 'int', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'status': 'status', + 'event_id': 'event_id', + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, status=None, event_id=None, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None, created_time=None, last_modified_time=None): + """TrafficEventDTO + + The model defined in huaweicloud sdk + + :param status: **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + :type status: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: datetime + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: datetime + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + :param created_time: '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + + + self._status = None + self._event_id = None + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if status is not None: + self.status = status + if event_id is not None: + self.event_id = event_id + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if area_code is not None: + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + if reference_paths is not None: + self.reference_paths = reference_paths + if event_position_name is not None: + self.event_position_name = event_position_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def status(self): + """Gets the status of this TrafficEventDTO. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :return: The status of this TrafficEventDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TrafficEventDTO. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :param status: The status of this TrafficEventDTO. + :type status: str + """ + self._status = status + + @property + def event_id(self): + """Gets the event_id of this TrafficEventDTO. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this TrafficEventDTO. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this TrafficEventDTO. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this TrafficEventDTO. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_source_type(self): + """Gets the event_source_type of this TrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this TrafficEventDTO. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this TrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this TrafficEventDTO. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this TrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this TrafficEventDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this TrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this TrafficEventDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this TrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this TrafficEventDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this TrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this TrafficEventDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this TrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this TrafficEventDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this TrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this TrafficEventDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this TrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this TrafficEventDTO. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this TrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this TrafficEventDTO. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this TrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this TrafficEventDTO. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this TrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this TrafficEventDTO. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this TrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this TrafficEventDTO. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this TrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this TrafficEventDTO. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this TrafficEventDTO. + + :return: The event_position of this TrafficEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this TrafficEventDTO. + + :param event_position: The event_position of this TrafficEventDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this TrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this TrafficEventDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this TrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this TrafficEventDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this TrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this TrafficEventDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this TrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this TrafficEventDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this TrafficEventDTO. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this TrafficEventDTO. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this TrafficEventDTO. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this TrafficEventDTO. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this TrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this TrafficEventDTO. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this TrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this TrafficEventDTO. + :type start_time: datetime + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this TrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this TrafficEventDTO. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this TrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this TrafficEventDTO. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this TrafficEventDTO. + + **参数说明**:备注。 + + :return: The note of this TrafficEventDTO. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this TrafficEventDTO. + + **参数说明**:备注。 + + :param note: The note of this TrafficEventDTO. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this TrafficEventDTO. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this TrafficEventDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this TrafficEventDTO. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this TrafficEventDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def created_time(self): + """Gets the created_time of this TrafficEventDTO. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this TrafficEventDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this TrafficEventDTO. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this TrafficEventDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this TrafficEventDTO. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this TrafficEventDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this TrafficEventDTO. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this TrafficEventDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrafficEventDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_request.py new file mode 100755 index 0000000000..ce30544fa5 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDataChannelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str', + 'body': 'AddV2XEdgeDataChannelDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, v2x_edge_id=None, body=None): + """UpdateDataChannelRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param body: Body of the UpdateDataChannelRequest + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :return: The instance_id of this UpdateDataChannelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateDataChannelRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateDataChannelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this UpdateDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this UpdateDataChannelRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this UpdateDataChannelRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this UpdateDataChannelRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def body(self): + """Gets the body of this UpdateDataChannelRequest. + + :return: The body of this UpdateDataChannelRequest. + :rtype: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateDataChannelRequest. + + :param body: The body of this UpdateDataChannelRequest. + :type body: :class:`huaweicloudsdkdris.v1.AddV2XEdgeDataChannelDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDataChannelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_response.py new file mode 100755 index 0000000000..e172d2b6de --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_data_channel_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDataChannelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'platform_type': 'str', + 'platform_para': 'PlatformPara', + 'channel_status': 'str' + } + + attribute_map = { + 'platform_type': 'platform_type', + 'platform_para': 'platform_para', + 'channel_status': 'channel_status' + } + + def __init__(self, platform_type=None, platform_para=None, channel_status=None): + """UpdateDataChannelResponse + + The model defined in huaweicloud sdk + + :param platform_type: **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + :type platform_type: str + :param platform_para: + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + :param channel_status: **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type channel_status: str + """ + + super(UpdateDataChannelResponse, self).__init__() + + self._platform_type = None + self._platform_para = None + self._channel_status = None + self.discriminator = None + + if platform_type is not None: + self.platform_type = platform_type + if platform_para is not None: + self.platform_para = platform_para + if channel_status is not None: + self.channel_status = channel_status + + @property + def platform_type(self): + """Gets the platform_type of this UpdateDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :return: The platform_type of this UpdateDataChannelResponse. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """Sets the platform_type of this UpdateDataChannelResponse. + + **参数说明**:平台类型。 **取值范围**: - DRIS:华为路网数字化平台 - LITONG:利通 - ZHONGQIYAN:中汽研 + + :param platform_type: The platform_type of this UpdateDataChannelResponse. + :type platform_type: str + """ + self._platform_type = platform_type + + @property + def platform_para(self): + """Gets the platform_para of this UpdateDataChannelResponse. + + :return: The platform_para of this UpdateDataChannelResponse. + :rtype: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + return self._platform_para + + @platform_para.setter + def platform_para(self, platform_para): + """Sets the platform_para of this UpdateDataChannelResponse. + + :param platform_para: The platform_para of this UpdateDataChannelResponse. + :type platform_para: :class:`huaweicloudsdkdris.v1.PlatformPara` + """ + self._platform_para = platform_para + + @property + def channel_status(self): + """Gets the channel_status of this UpdateDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The channel_status of this UpdateDataChannelResponse. + :rtype: str + """ + return self._channel_status + + @channel_status.setter + def channel_status(self, channel_status): + """Sets the channel_status of this UpdateDataChannelResponse. + + **参数说明**:华为路网数字化平台或第三方业务平台连接状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param channel_status: The channel_status of this UpdateDataChannelResponse. + :type channel_status: str + """ + self._channel_status = channel_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDataChannelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_request.py new file mode 100755 index 0000000000..fed18d39ac --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'body': 'UpdateEdgeApplicationRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, edge_app_id=None, body=None): + """UpdateEdgeAppRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param body: Body of the UpdateEdgeAppRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationRequestDTO` + """ + + + + self._instance_id = None + self._edge_app_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this UpdateEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeAppRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateEdgeAppRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeAppRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeAppRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def body(self): + """Gets the body of this UpdateEdgeAppRequest. + + :return: The body of this UpdateEdgeAppRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateEdgeAppRequest. + + :param body: The body of this UpdateEdgeAppRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeApplicationRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_response.py new file mode 100755 index 0000000000..31d52dfeaf --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_response.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'last_published_version': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'last_published_version': 'last_published_version' + } + + def __init__(self, edge_app_id=None, description=None, created_time=None, last_modified_time=None, last_published_version=None): + """UpdateEdgeAppResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:更新时间。 + :type last_modified_time: str + :param last_published_version: **参数说明**:最新发布版本。 + :type last_published_version: str + """ + + super(UpdateEdgeAppResponse, self).__init__() + + self._edge_app_id = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._last_published_version = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if last_published_version is not None: + self.last_published_version = last_published_version + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateEdgeAppResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeAppResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def description(self): + """Gets the description of this UpdateEdgeAppResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateEdgeAppResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateEdgeAppResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateEdgeAppResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this UpdateEdgeAppResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this UpdateEdgeAppResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateEdgeAppResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this UpdateEdgeAppResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateEdgeAppResponse. + + **参数说明**:更新时间。 + + :return: The last_modified_time of this UpdateEdgeAppResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateEdgeAppResponse. + + **参数说明**:更新时间。 + + :param last_modified_time: The last_modified_time of this UpdateEdgeAppResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def last_published_version(self): + """Gets the last_published_version of this UpdateEdgeAppResponse. + + **参数说明**:最新发布版本。 + + :return: The last_published_version of this UpdateEdgeAppResponse. + :rtype: str + """ + return self._last_published_version + + @last_published_version.setter + def last_published_version(self, last_published_version): + """Sets the last_published_version of this UpdateEdgeAppResponse. + + **参数说明**:最新发布版本。 + + :param last_published_version: The last_published_version of this UpdateEdgeAppResponse. + :type last_published_version: str + """ + self._last_published_version = last_published_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_dto.py new file mode 100755 index 0000000000..c714cc6b68 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_dto.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeAppVersionDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'description': 'str', + 'container_settings': 'ContainerSettingsDTO', + 'command': 'object', + 'args': 'object' + } + + attribute_map = { + 'description': 'description', + 'container_settings': 'container_settings', + 'command': 'command', + 'args': 'args' + } + + def __init__(self, description=None, container_settings=None, command=None, args=None): + """UpdateEdgeAppVersionDTO + + The model defined in huaweicloud sdk + + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param container_settings: + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + :param command: **参数说明**:启动命令。 + :type command: object + :param args: **参数说明**:启动参数。 + :type args: object + """ + + + + self._description = None + self._container_settings = None + self._command = None + self._args = None + self.discriminator = None + + if description is not None: + self.description = description + self.container_settings = container_settings + if command is not None: + self.command = command + if args is not None: + self.args = args + + @property + def description(self): + """Gets the description of this UpdateEdgeAppVersionDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateEdgeAppVersionDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateEdgeAppVersionDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateEdgeAppVersionDTO. + :type description: str + """ + self._description = description + + @property + def container_settings(self): + """Gets the container_settings of this UpdateEdgeAppVersionDTO. + + :return: The container_settings of this UpdateEdgeAppVersionDTO. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + return self._container_settings + + @container_settings.setter + def container_settings(self, container_settings): + """Sets the container_settings of this UpdateEdgeAppVersionDTO. + + :param container_settings: The container_settings of this UpdateEdgeAppVersionDTO. + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + self._container_settings = container_settings + + @property + def command(self): + """Gets the command of this UpdateEdgeAppVersionDTO. + + **参数说明**:启动命令。 + + :return: The command of this UpdateEdgeAppVersionDTO. + :rtype: object + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this UpdateEdgeAppVersionDTO. + + **参数说明**:启动命令。 + + :param command: The command of this UpdateEdgeAppVersionDTO. + :type command: object + """ + self._command = command + + @property + def args(self): + """Gets the args of this UpdateEdgeAppVersionDTO. + + **参数说明**:启动参数。 + + :return: The args of this UpdateEdgeAppVersionDTO. + :rtype: object + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this UpdateEdgeAppVersionDTO. + + **参数说明**:启动参数。 + + :param args: The args of this UpdateEdgeAppVersionDTO. + :type args: object + """ + self._args = args + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeAppVersionDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_state_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_state_dto.py new file mode 100755 index 0000000000..fd5b25f8d1 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_app_version_state_dto.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeAppVersionStateDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'state': 'str' + } + + attribute_map = { + 'state': 'state' + } + + def __init__(self, state=None): + """UpdateEdgeAppVersionStateDTO + + The model defined in huaweicloud sdk + + :param state: **参数说明**:应用版本状态。 **取值范围**: - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + """ + + + + self._state = None + self.discriminator = None + + if state is not None: + self.state = state + + @property + def state(self): + """Gets the state of this UpdateEdgeAppVersionStateDTO. + + **参数说明**:应用版本状态。 **取值范围**: - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this UpdateEdgeAppVersionStateDTO. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this UpdateEdgeAppVersionStateDTO. + + **参数说明**:应用版本状态。 **取值范围**: - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this UpdateEdgeAppVersionStateDTO. + :type state: str + """ + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeAppVersionStateDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_request_dto.py new file mode 100755 index 0000000000..01d5aaa006 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_request_dto.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeApplicationRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'description': 'str' + } + + attribute_map = { + 'description': 'description' + } + + def __init__(self, description=None): + """UpdateEdgeApplicationRequestDTO + + The model defined in huaweicloud sdk + + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + """ + + + + self._description = None + self.discriminator = None + + if description is not None: + self.description = description + + @property + def description(self): + """Gets the description of this UpdateEdgeApplicationRequestDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateEdgeApplicationRequestDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateEdgeApplicationRequestDTO. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateEdgeApplicationRequestDTO. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeApplicationRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_request.py new file mode 100755 index 0000000000..7541d5637f --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeApplicationVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'version': 'str', + 'body': 'UpdateEdgeAppVersionDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'body': 'body' + } + + def __init__(self, instance_id=None, edge_app_id=None, version=None, body=None): + """UpdateEdgeApplicationVersionRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本,应用内版本唯一。 + :type version: str + :param body: Body of the UpdateEdgeApplicationVersionRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionDTO` + """ + + + + self._instance_id = None + self._edge_app_id = None + self._version = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + self.version = version + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this UpdateEdgeApplicationVersionRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateEdgeApplicationVersionRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateEdgeApplicationVersionRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeApplicationVersionRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :return: The version of this UpdateEdgeApplicationVersionRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpdateEdgeApplicationVersionRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :param version: The version of this UpdateEdgeApplicationVersionRequest. + :type version: str + """ + self._version = version + + @property + def body(self): + """Gets the body of this UpdateEdgeApplicationVersionRequest. + + :return: The body of this UpdateEdgeApplicationVersionRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateEdgeApplicationVersionRequest. + + :param body: The body of this UpdateEdgeApplicationVersionRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeApplicationVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_response.py new file mode 100755 index 0000000000..942b546381 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_response.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeApplicationVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'version': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'state': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'container_settings': 'ContainerSettingsDTO', + 'publish_time': 'str', + 'off_shelf_time': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'state': 'state', + 'command': 'command', + 'args': 'args', + 'container_settings': 'container_settings', + 'publish_time': 'publish_time', + 'off_shelf_time': 'off_shelf_time' + } + + def __init__(self, edge_app_id=None, version=None, description=None, created_time=None, last_modified_time=None, state=None, command=None, args=None, container_settings=None, publish_time=None, off_shelf_time=None): + """UpdateEdgeApplicationVersionResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:最后一次修改时间。 + :type last_modified_time: str + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + :param command: **参数说明**:启动命令。 + :type command: list[str] + :param args: **参数说明**:启动参数。 + :type args: list[str] + :param container_settings: + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + :param publish_time: **参数说明**:发布时间。 + :type publish_time: str + :param off_shelf_time: **参数说明**:下线时间。 + :type off_shelf_time: str + """ + + super(UpdateEdgeApplicationVersionResponse, self).__init__() + + self._edge_app_id = None + self._version = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._state = None + self._command = None + self._args = None + self._container_settings = None + self._publish_time = None + self._off_shelf_time = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if state is not None: + self.state = state + if command is not None: + self.command = command + if args is not None: + self.args = args + if container_settings is not None: + self.container_settings = container_settings + if publish_time is not None: + self.publish_time = publish_time + if off_shelf_time is not None: + self.off_shelf_time = off_shelf_time + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeApplicationVersionResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :return: The version of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用版本。 + + :param version: The version of this UpdateEdgeApplicationVersionResponse. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateEdgeApplicationVersionResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this UpdateEdgeApplicationVersionResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :return: The last_modified_time of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:最后一次修改时间。 + + :param last_modified_time: The last_modified_time of this UpdateEdgeApplicationVersionResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def state(self): + """Gets the state of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this UpdateEdgeApplicationVersionResponse. + :type state: str + """ + self._state = state + + @property + def command(self): + """Gets the command of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :return: The command of this UpdateEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:启动命令。 + + :param command: The command of this UpdateEdgeApplicationVersionResponse. + :type command: list[str] + """ + self._command = command + + @property + def args(self): + """Gets the args of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :return: The args of this UpdateEdgeApplicationVersionResponse. + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:启动参数。 + + :param args: The args of this UpdateEdgeApplicationVersionResponse. + :type args: list[str] + """ + self._args = args + + @property + def container_settings(self): + """Gets the container_settings of this UpdateEdgeApplicationVersionResponse. + + :return: The container_settings of this UpdateEdgeApplicationVersionResponse. + :rtype: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + return self._container_settings + + @container_settings.setter + def container_settings(self, container_settings): + """Sets the container_settings of this UpdateEdgeApplicationVersionResponse. + + :param container_settings: The container_settings of this UpdateEdgeApplicationVersionResponse. + :type container_settings: :class:`huaweicloudsdkdris.v1.ContainerSettingsDTO` + """ + self._container_settings = container_settings + + @property + def publish_time(self): + """Gets the publish_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :return: The publish_time of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._publish_time + + @publish_time.setter + def publish_time(self, publish_time): + """Sets the publish_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:发布时间。 + + :param publish_time: The publish_time of this UpdateEdgeApplicationVersionResponse. + :type publish_time: str + """ + self._publish_time = publish_time + + @property + def off_shelf_time(self): + """Gets the off_shelf_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :return: The off_shelf_time of this UpdateEdgeApplicationVersionResponse. + :rtype: str + """ + return self._off_shelf_time + + @off_shelf_time.setter + def off_shelf_time(self, off_shelf_time): + """Sets the off_shelf_time of this UpdateEdgeApplicationVersionResponse. + + **参数说明**:下线时间。 + + :param off_shelf_time: The off_shelf_time of this UpdateEdgeApplicationVersionResponse. + :type off_shelf_time: str + """ + self._off_shelf_time = off_shelf_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeApplicationVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_request.py new file mode 100755 index 0000000000..6ea6a09ae4 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeApplicationVersionStateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'edge_app_id': 'str', + 'version': 'str', + 'body': 'UpdateEdgeAppVersionStateDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'body': 'body' + } + + def __init__(self, instance_id=None, edge_app_id=None, version=None, body=None): + """UpdateEdgeApplicationVersionStateRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param version: **参数说明**:应用版本,应用内版本唯一。 + :type version: str + :param body: Body of the UpdateEdgeApplicationVersionStateRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionStateDTO` + """ + + + + self._instance_id = None + self._edge_app_id = None + self._version = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.edge_app_id = edge_app_id + self.version = version + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this UpdateEdgeApplicationVersionStateRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateEdgeApplicationVersionStateRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateEdgeApplicationVersionStateRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:用户自定义应用唯一ID。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeApplicationVersionStateRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :return: The version of this UpdateEdgeApplicationVersionStateRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpdateEdgeApplicationVersionStateRequest. + + **参数说明**:应用版本,应用内版本唯一。 + + :param version: The version of this UpdateEdgeApplicationVersionStateRequest. + :type version: str + """ + self._version = version + + @property + def body(self): + """Gets the body of this UpdateEdgeApplicationVersionStateRequest. + + :return: The body of this UpdateEdgeApplicationVersionStateRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionStateDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateEdgeApplicationVersionStateRequest. + + :param body: The body of this UpdateEdgeApplicationVersionStateRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateEdgeAppVersionStateDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeApplicationVersionStateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_response.py new file mode 100755 index 0000000000..4082d253a6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_edge_application_version_state_response.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateEdgeApplicationVersionStateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'version': 'str', + 'description': 'str', + 'created_time': 'str', + 'last_modified_time': 'str', + 'state': 'str', + 'publish_time': 'str', + 'off_shelf_time': 'str' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'version': 'version', + 'description': 'description', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time', + 'state': 'state', + 'publish_time': 'publish_time', + 'off_shelf_time': 'off_shelf_time' + } + + def __init__(self, edge_app_id=None, version=None, description=None, created_time=None, last_modified_time=None, state=None, publish_time=None, off_shelf_time=None): + """UpdateEdgeApplicationVersionStateResponse + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param version: **参数说明**:应用版本。 + :type version: str + :param description: **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param created_time: **参数说明**:创建时间。 + :type created_time: str + :param last_modified_time: **参数说明**:最后一次修改时间。 + :type last_modified_time: str + :param state: **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + :type state: str + :param publish_time: **参数说明**:发布时间。 + :type publish_time: str + :param off_shelf_time: **参数说明**:下线时间。 + :type off_shelf_time: str + """ + + super(UpdateEdgeApplicationVersionStateResponse, self).__init__() + + self._edge_app_id = None + self._version = None + self._description = None + self._created_time = None + self._last_modified_time = None + self._state = None + self._publish_time = None + self._off_shelf_time = None + self.discriminator = None + + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if version is not None: + self.version = version + if description is not None: + self.description = description + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if state is not None: + self.state = state + if publish_time is not None: + self.publish_time = publish_time + if off_shelf_time is not None: + self.off_shelf_time = off_shelf_time + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this UpdateEdgeApplicationVersionStateResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def version(self): + """Gets the version of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用版本。 + + :return: The version of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用版本。 + + :param version: The version of this UpdateEdgeApplicationVersionStateResponse. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateEdgeApplicationVersionStateResponse. + :type description: str + """ + self._description = description + + @property + def created_time(self): + """Gets the created_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:创建时间。 + + :return: The created_time of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:创建时间。 + + :param created_time: The created_time of this UpdateEdgeApplicationVersionStateResponse. + :type created_time: str + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:最后一次修改时间。 + + :return: The last_modified_time of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:最后一次修改时间。 + + :param last_modified_time: The last_modified_time of this UpdateEdgeApplicationVersionStateResponse. + :type last_modified_time: str + """ + self._last_modified_time = last_modified_time + + @property + def state(self): + """Gets the state of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :return: The state of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:应用版本状态。 **取值范围**: - DRAFT:草稿 - PUBLISHED:发布 - OFF_SHELF:下线 + + :param state: The state of this UpdateEdgeApplicationVersionStateResponse. + :type state: str + """ + self._state = state + + @property + def publish_time(self): + """Gets the publish_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:发布时间。 + + :return: The publish_time of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._publish_time + + @publish_time.setter + def publish_time(self, publish_time): + """Sets the publish_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:发布时间。 + + :param publish_time: The publish_time of this UpdateEdgeApplicationVersionStateResponse. + :type publish_time: str + """ + self._publish_time = publish_time + + @property + def off_shelf_time(self): + """Gets the off_shelf_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:下线时间。 + + :return: The off_shelf_time of this UpdateEdgeApplicationVersionStateResponse. + :rtype: str + """ + return self._off_shelf_time + + @off_shelf_time.setter + def off_shelf_time(self, off_shelf_time): + """Sets the off_shelf_time of this UpdateEdgeApplicationVersionStateResponse. + + **参数说明**:下线时间。 + + :param off_shelf_time: The off_shelf_time of this UpdateEdgeApplicationVersionStateResponse. + :type off_shelf_time: str + """ + self._off_shelf_time = off_shelf_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateEdgeApplicationVersionStateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request.py new file mode 100755 index 0000000000..65b78a55d8 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateForwardingConfigRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'forwarding_type': 'str', + 'forwarding_config_id': 'str', + 'body': 'UpdateForwardingConfigRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'forwarding_type': 'forwarding_type', + 'forwarding_config_id': 'forwarding_config_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, forwarding_type=None, forwarding_config_id=None, body=None): + """UpdateForwardingConfigRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + :type forwarding_type: str + :param forwarding_config_id: **参数说明**:转发配置的唯一ID。 + :type forwarding_config_id: str + :param body: Body of the UpdateForwardingConfigRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigRequestDTO` + """ + + + + self._instance_id = None + self._forwarding_type = None + self._forwarding_config_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.forwarding_type = forwarding_type + self.forwarding_config_id = forwarding_config_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this UpdateForwardingConfigRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateForwardingConfigRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateForwardingConfigRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def forwarding_type(self): + """Gets the forwarding_type of this UpdateForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :return: The forwarding_type of this UpdateForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this UpdateForwardingConfigRequest. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka,mrskafka”。 + + :param forwarding_type: The forwarding_type of this UpdateForwardingConfigRequest. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def forwarding_config_id(self): + """Gets the forwarding_config_id of this UpdateForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :return: The forwarding_config_id of this UpdateForwardingConfigRequest. + :rtype: str + """ + return self._forwarding_config_id + + @forwarding_config_id.setter + def forwarding_config_id(self, forwarding_config_id): + """Sets the forwarding_config_id of this UpdateForwardingConfigRequest. + + **参数说明**:转发配置的唯一ID。 + + :param forwarding_config_id: The forwarding_config_id of this UpdateForwardingConfigRequest. + :type forwarding_config_id: str + """ + self._forwarding_config_id = forwarding_config_id + + @property + def body(self): + """Gets the body of this UpdateForwardingConfigRequest. + + :return: The body of this UpdateForwardingConfigRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateForwardingConfigRequest. + + :param body: The body of this UpdateForwardingConfigRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateForwardingConfigRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateForwardingConfigRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request_dto.py new file mode 100755 index 0000000000..31ff50fe94 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_request_dto.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateForwardingConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'kafka_config': 'UpdateKafkaConfigRequestDTO', + 'mrs_kafka_config': 'UpdateMrsKafkaConfigRequestDTO' + } + + attribute_map = { + 'kafka_config': 'kafka_config', + 'mrs_kafka_config': 'mrs_kafka_config' + } + + def __init__(self, kafka_config=None, mrs_kafka_config=None): + """UpdateForwardingConfigRequestDTO + + The model defined in huaweicloud sdk + + :param kafka_config: + :type kafka_config: :class:`huaweicloudsdkdris.v1.UpdateKafkaConfigRequestDTO` + :param mrs_kafka_config: + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.UpdateMrsKafkaConfigRequestDTO` + """ + + + + self._kafka_config = None + self._mrs_kafka_config = None + self.discriminator = None + + if kafka_config is not None: + self.kafka_config = kafka_config + if mrs_kafka_config is not None: + self.mrs_kafka_config = mrs_kafka_config + + @property + def kafka_config(self): + """Gets the kafka_config of this UpdateForwardingConfigRequestDTO. + + :return: The kafka_config of this UpdateForwardingConfigRequestDTO. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateKafkaConfigRequestDTO` + """ + return self._kafka_config + + @kafka_config.setter + def kafka_config(self, kafka_config): + """Sets the kafka_config of this UpdateForwardingConfigRequestDTO. + + :param kafka_config: The kafka_config of this UpdateForwardingConfigRequestDTO. + :type kafka_config: :class:`huaweicloudsdkdris.v1.UpdateKafkaConfigRequestDTO` + """ + self._kafka_config = kafka_config + + @property + def mrs_kafka_config(self): + """Gets the mrs_kafka_config of this UpdateForwardingConfigRequestDTO. + + :return: The mrs_kafka_config of this UpdateForwardingConfigRequestDTO. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateMrsKafkaConfigRequestDTO` + """ + return self._mrs_kafka_config + + @mrs_kafka_config.setter + def mrs_kafka_config(self, mrs_kafka_config): + """Sets the mrs_kafka_config of this UpdateForwardingConfigRequestDTO. + + :param mrs_kafka_config: The mrs_kafka_config of this UpdateForwardingConfigRequestDTO. + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.UpdateMrsKafkaConfigRequestDTO` + """ + self._mrs_kafka_config = mrs_kafka_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateForwardingConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_response.py new file mode 100755 index 0000000000..94208b816e --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_forwarding_config_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateForwardingConfigResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'forwarding_type': 'str', + 'kafka_config': 'KafkaConfigResponseDTO', + 'mrs_kafka_config': 'MrsKafkaConfigResponseDTO' + } + + attribute_map = { + 'forwarding_type': 'forwarding_type', + 'kafka_config': 'kafka_config', + 'mrs_kafka_config': 'mrs_kafka_config' + } + + def __init__(self, forwarding_type=None, kafka_config=None, mrs_kafka_config=None): + """UpdateForwardingConfigResponse + + The model defined in huaweicloud sdk + + :param forwarding_type: **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + :type forwarding_type: str + :param kafka_config: + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + :param mrs_kafka_config: + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + + super(UpdateForwardingConfigResponse, self).__init__() + + self._forwarding_type = None + self._kafka_config = None + self._mrs_kafka_config = None + self.discriminator = None + + if forwarding_type is not None: + self.forwarding_type = forwarding_type + if kafka_config is not None: + self.kafka_config = kafka_config + if mrs_kafka_config is not None: + self.mrs_kafka_config = mrs_kafka_config + + @property + def forwarding_type(self): + """Gets the forwarding_type of this UpdateForwardingConfigResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :return: The forwarding_type of this UpdateForwardingConfigResponse. + :rtype: str + """ + return self._forwarding_type + + @forwarding_type.setter + def forwarding_type(self, forwarding_type): + """Sets the forwarding_type of this UpdateForwardingConfigResponse. + + **参数说明**:转发配置的类型。 **取值范围**:当前仅支持“kafka、mrskafka”。 + + :param forwarding_type: The forwarding_type of this UpdateForwardingConfigResponse. + :type forwarding_type: str + """ + self._forwarding_type = forwarding_type + + @property + def kafka_config(self): + """Gets the kafka_config of this UpdateForwardingConfigResponse. + + :return: The kafka_config of this UpdateForwardingConfigResponse. + :rtype: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + return self._kafka_config + + @kafka_config.setter + def kafka_config(self, kafka_config): + """Sets the kafka_config of this UpdateForwardingConfigResponse. + + :param kafka_config: The kafka_config of this UpdateForwardingConfigResponse. + :type kafka_config: :class:`huaweicloudsdkdris.v1.KafkaConfigResponseDTO` + """ + self._kafka_config = kafka_config + + @property + def mrs_kafka_config(self): + """Gets the mrs_kafka_config of this UpdateForwardingConfigResponse. + + :return: The mrs_kafka_config of this UpdateForwardingConfigResponse. + :rtype: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + return self._mrs_kafka_config + + @mrs_kafka_config.setter + def mrs_kafka_config(self, mrs_kafka_config): + """Sets the mrs_kafka_config of this UpdateForwardingConfigResponse. + + :param mrs_kafka_config: The mrs_kafka_config of this UpdateForwardingConfigResponse. + :type mrs_kafka_config: :class:`huaweicloudsdkdris.v1.MrsKafkaConfigResponseDTO` + """ + self._mrs_kafka_config = mrs_kafka_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateForwardingConfigResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_kafka_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_kafka_config_request_dto.py new file mode 100755 index 0000000000..1299f92e52 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_kafka_config_request_dto.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateKafkaConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'topic_prefix': 'str', + 'user_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'password': 'str' + } + + attribute_map = { + 'topic_prefix': 'topic_prefix', + 'user_topics': 'user_topics', + 'brokers': 'brokers', + 'username': 'username', + 'password': 'password' + } + + def __init__(self, topic_prefix=None, user_topics=None, brokers=None, username=None, password=None): + """UpdateKafkaConfigRequestDTO + + The model defined in huaweicloud sdk + + :param topic_prefix: **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type topic_prefix: str + :param user_topics: **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type user_topics: list[str] + :param brokers: **参数说明**:用户kafka的brokers列表。 + :type brokers: list[str] + :param username: **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param password: **参数说明**:kafka密码。 + :type password: str + """ + + + + self._topic_prefix = None + self._user_topics = None + self._brokers = None + self._username = None + self._password = None + self.discriminator = None + + if topic_prefix is not None: + self.topic_prefix = topic_prefix + if user_topics is not None: + self.user_topics = user_topics + if brokers is not None: + self.brokers = brokers + if username is not None: + self.username = username + if password is not None: + self.password = password + + @property + def topic_prefix(self): + """Gets the topic_prefix of this UpdateKafkaConfigRequestDTO. + + **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The topic_prefix of this UpdateKafkaConfigRequestDTO. + :rtype: str + """ + return self._topic_prefix + + @topic_prefix.setter + def topic_prefix(self, topic_prefix): + """Sets the topic_prefix of this UpdateKafkaConfigRequestDTO. + + **参数说明**:Topic前缀,不携带时以user_topics中具体Topic为准,携带时前缀将拼接在user_topics中的topic前方,例如:topic_prefixv2x-v1-tracks,topic_prefixv2x-v1-bsm。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param topic_prefix: The topic_prefix of this UpdateKafkaConfigRequestDTO. + :type topic_prefix: str + """ + self._topic_prefix = topic_prefix + + @property + def user_topics(self): + """Gets the user_topics of this UpdateKafkaConfigRequestDTO. + + **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The user_topics of this UpdateKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._user_topics + + @user_topics.setter + def user_topics(self, user_topics): + """Sets the user_topics of this UpdateKafkaConfigRequestDTO. + + **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param user_topics: The user_topics of this UpdateKafkaConfigRequestDTO. + :type user_topics: list[str] + """ + self._user_topics = user_topics + + @property + def brokers(self): + """Gets the brokers of this UpdateKafkaConfigRequestDTO. + + **参数说明**:用户kafka的brokers列表。 + + :return: The brokers of this UpdateKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this UpdateKafkaConfigRequestDTO. + + **参数说明**:用户kafka的brokers列表。 + + :param brokers: The brokers of this UpdateKafkaConfigRequestDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this UpdateKafkaConfigRequestDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this UpdateKafkaConfigRequestDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this UpdateKafkaConfigRequestDTO. + + **参数说明**:kafka用户名。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this UpdateKafkaConfigRequestDTO. + :type username: str + """ + self._username = username + + @property + def password(self): + """Gets the password of this UpdateKafkaConfigRequestDTO. + + **参数说明**:kafka密码。 + + :return: The password of this UpdateKafkaConfigRequestDTO. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this UpdateKafkaConfigRequestDTO. + + **参数说明**:kafka密码。 + + :param password: The password of this UpdateKafkaConfigRequestDTO. + :type password: str + """ + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateKafkaConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_mrs_kafka_config_request_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_mrs_kafka_config_request_dto.py new file mode 100755 index 0000000000..16b94fb2c7 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_mrs_kafka_config_request_dto.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateMrsKafkaConfigRequestDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'user_topics': 'list[str]', + 'brokers': 'list[str]', + 'username': 'str', + 'authentication': 'bool', + 'krb5_content': 'str', + 'keytab_content': 'str' + } + + attribute_map = { + 'user_topics': 'user_topics', + 'brokers': 'brokers', + 'username': 'username', + 'authentication': 'authentication', + 'krb5_content': 'krb5_content', + 'keytab_content': 'keytab_content' + } + + def __init__(self, user_topics=None, brokers=None, username=None, authentication=None, krb5_content=None, keytab_content=None): + """UpdateMrsKafkaConfigRequestDTO + + The model defined in huaweicloud sdk + + :param user_topics: **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + :type user_topics: list[str] + :param brokers: **参数说明**:用户mrskafka的brokers列表。 + :type brokers: list[str] + :param username: **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type username: str + :param authentication: **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + :type authentication: bool + :param krb5_content: **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + :type krb5_content: str + :param keytab_content: **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + :type keytab_content: str + """ + + + + self._user_topics = None + self._brokers = None + self._username = None + self._authentication = None + self._krb5_content = None + self._keytab_content = None + self.discriminator = None + + if user_topics is not None: + self.user_topics = user_topics + if brokers is not None: + self.brokers = brokers + if username is not None: + self.username = username + if authentication is not None: + self.authentication = authentication + if krb5_content is not None: + self.krb5_content = krb5_content + if keytab_content is not None: + self.keytab_content = keytab_content + + @property + def user_topics(self): + """Gets the user_topics of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :return: The user_topics of this UpdateMrsKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._user_topics + + @user_topics.setter + def user_topics(self, user_topics): + """Sets the user_topics of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:用户订阅kafka的主题列表。 **取值范围**: - v2x-v1-tracks:edge上报的车辆轨迹数据 - v2x-v1-bsm:车载T-BOX,mqtt协议接入rsu, websocket协议接入rsu上报的BSM消息数据 - v2x-v1-rsi:mqtt协议接入rsu,edge上报的RSI消息数据 - v2x-v1-rsm: mqtt协议接入rsu,edge上报的RSM消息数据 - v2x-v1-spat:mqtt协议接入rsu, websocket协议接入rsu上报的SPAT消息数据 - v2x-v1-edge-flow:edge上报的车流量统计信息数据 + + :param user_topics: The user_topics of this UpdateMrsKafkaConfigRequestDTO. + :type user_topics: list[str] + """ + self._user_topics = user_topics + + @property + def brokers(self): + """Gets the brokers of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:用户mrskafka的brokers列表。 + + :return: The brokers of this UpdateMrsKafkaConfigRequestDTO. + :rtype: list[str] + """ + return self._brokers + + @brokers.setter + def brokers(self, brokers): + """Sets the brokers of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:用户mrskafka的brokers列表。 + + :param brokers: The brokers of this UpdateMrsKafkaConfigRequestDTO. + :type brokers: list[str] + """ + self._brokers = brokers + + @property + def username(self): + """Gets the username of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The username of this UpdateMrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:mrskafka用户名,若开启安全认证该参数必填。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param username: The username of this UpdateMrsKafkaConfigRequestDTO. + :type username: str + """ + self._username = username + + @property + def authentication(self): + """Gets the authentication of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :return: The authentication of this UpdateMrsKafkaConfigRequestDTO. + :rtype: bool + """ + return self._authentication + + @authentication.setter + def authentication(self, authentication): + """Sets the authentication of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:是否开启kerberos安全认证的开关。若开启安全认证则需要先上传kerberos安全认证的凭证。 + + :param authentication: The authentication of this UpdateMrsKafkaConfigRequestDTO. + :type authentication: bool + """ + self._authentication = authentication + + @property + def krb5_content(self): + """Gets the krb5_content of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + + :return: The krb5_content of this UpdateMrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._krb5_content + + @krb5_content.setter + def krb5_content(self, krb5_content): + """Sets the krb5_content of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的krb5_file的凭证内容。 + + :param krb5_content: The krb5_content of this UpdateMrsKafkaConfigRequestDTO. + :type krb5_content: str + """ + self._krb5_content = krb5_content + + @property + def keytab_content(self): + """Gets the keytab_content of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + + :return: The keytab_content of this UpdateMrsKafkaConfigRequestDTO. + :rtype: str + """ + return self._keytab_content + + @keytab_content.setter + def keytab_content(self, keytab_content): + """Sets the keytab_content of this UpdateMrsKafkaConfigRequestDTO. + + **参数说明**:若开启安全认证则需要先上传kerberos安全认证的keytab_file的凭证内容。 + + :param keytab_content: The keytab_content of this UpdateMrsKafkaConfigRequestDTO. + :type keytab_content: str + """ + self._keytab_content = keytab_content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateMrsKafkaConfigRequestDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model.py new file mode 100755 index 0000000000..178962d8e6 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRsuModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'manufacturer_name': 'str', + 'description': 'str' + } + + attribute_map = { + 'manufacturer_name': 'manufacturer_name', + 'description': 'description' + } + + def __init__(self, manufacturer_name=None, description=None): + """UpdateRsuModel + + The model defined in huaweicloud sdk + + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + """ + + + + self._manufacturer_name = None + self._description = None + self.discriminator = None + + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this UpdateRsuModel. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this UpdateRsuModel. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this UpdateRsuModel. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this UpdateRsuModel. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this UpdateRsuModel. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this UpdateRsuModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateRsuModel. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this UpdateRsuModel. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRsuModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_request.py new file mode 100755 index 0000000000..f64c1e182b --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRsuModelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'rsu_model_id': 'str', + 'body': 'UpdateRsuModel' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'rsu_model_id': 'rsu_model_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, rsu_model_id=None, body=None): + """UpdateRsuModelRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + :param body: Body of the UpdateRsuModelRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateRsuModel` + """ + + + + self._instance_id = None + self._rsu_model_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.rsu_model_id = rsu_model_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateRsuModelRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateRsuModelRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateRsuModelRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this UpdateRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this UpdateRsuModelRequest. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this UpdateRsuModelRequest. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this UpdateRsuModelRequest. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def body(self): + """Gets the body of this UpdateRsuModelRequest. + + :return: The body of this UpdateRsuModelRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateRsuModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateRsuModelRequest. + + :param body: The body of this UpdateRsuModelRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateRsuModel` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRsuModelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_response.py new file mode 100755 index 0000000000..b78f1c1d00 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_model_response.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRsuModelResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_model_id': 'str', + 'name': 'str', + 'manufacturer_name': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime' + } + + attribute_map = { + 'rsu_model_id': 'rsu_model_id', + 'name': 'name', + 'manufacturer_name': 'manufacturer_name', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time' + } + + def __init__(self, rsu_model_id=None, name=None, manufacturer_name=None, description=None, last_modified_time=None, created_time=None): + """UpdateRsuModelResponse + + The model defined in huaweicloud sdk + + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + :type rsu_model_id: str + :param name: **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type name: str + :param manufacturer_name: **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type manufacturer_name: str + :param description: **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + :type description: str + :param last_modified_time: **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type last_modified_time: datetime + :param created_time: **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + :type created_time: datetime + """ + + super(UpdateRsuModelResponse, self).__init__() + + self._rsu_model_id = None + self._name = None + self._manufacturer_name = None + self._description = None + self._last_modified_time = None + self._created_time = None + self.discriminator = None + + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if name is not None: + self.name = name + if manufacturer_name is not None: + self.manufacturer_name = manufacturer_name + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this UpdateRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :return: The rsu_model_id of this UpdateRsuModelResponse. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this UpdateRsuModelResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得。 **取值范围**:长度不小于1不超过36,只允许字母、数字、连接符(-)的组合。 + + :param rsu_model_id: The rsu_model_id of this UpdateRsuModelResponse. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def name(self): + """Gets the name of this UpdateRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The name of this UpdateRsuModelResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateRsuModelResponse. + + **参数说明**: RSU型号名称。 **取值范围**:长度不低于1不超过64,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param name: The name of this UpdateRsuModelResponse. + :type name: str + """ + self._name = name + + @property + def manufacturer_name(self): + """Gets the manufacturer_name of this UpdateRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The manufacturer_name of this UpdateRsuModelResponse. + :rtype: str + """ + return self._manufacturer_name + + @manufacturer_name.setter + def manufacturer_name(self, manufacturer_name): + """Sets the manufacturer_name of this UpdateRsuModelResponse. + + **参数说明**: RSU的厂商名称。 **取值范围**:长度不低于1不超过32,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param manufacturer_name: The manufacturer_name of this UpdateRsuModelResponse. + :type manufacturer_name: str + """ + self._manufacturer_name = manufacturer_name + + @property + def description(self): + """Gets the description of this UpdateRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :return: The description of this UpdateRsuModelResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateRsuModelResponse. + + **参数说明**: RSU型号的描述信息。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、问号(?)、反引号(')、井号(#)、左小括号(()、右小括号())、点(.)、逗号(,)、与(&)、百分号(%)、At(@)、感叹号(!)、连接符(-)的组合。 + + :param description: The description of this UpdateRsuModelResponse. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The last_modified_time of this UpdateRsuModelResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateRsuModelResponse. + + **参数说明**: RSU型号更新的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param last_modified_time: The last_modified_time of this UpdateRsuModelResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this UpdateRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :return: The created_time of this UpdateRsuModelResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateRsuModelResponse. + + **参数说明**: 在平台创建RSU型号的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如:2020-12-07T01:32:17Z + + :param created_time: The created_time of this UpdateRsuModelResponse. + :type created_time: datetime + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRsuModelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_request.py new file mode 100755 index 0000000000..9cc0d1d1e0 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRsuRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'rsu_id': 'str', + 'body': 'ModifyRsuRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'rsu_id': 'rsu_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, rsu_id=None, body=None): + """UpdateRsuRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + :param body: Body of the UpdateRsuRequest + :type body: :class:`huaweicloudsdkdris.v1.ModifyRsuRequestDTO` + """ + + + + self._instance_id = None + self._rsu_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.rsu_id = rsu_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateRsuRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateRsuRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateRsuRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def rsu_id(self): + """Gets the rsu_id of this UpdateRsuRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this UpdateRsuRequest. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this UpdateRsuRequest. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this UpdateRsuRequest. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + @property + def body(self): + """Gets the body of this UpdateRsuRequest. + + :return: The body of this UpdateRsuRequest. + :rtype: :class:`huaweicloudsdkdris.v1.ModifyRsuRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateRsuRequest. + + :param body: The body of this UpdateRsuRequest. + :type body: :class:`huaweicloudsdkdris.v1.ModifyRsuRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRsuRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_response.py new file mode 100755 index 0000000000..d8429ae2b0 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_rsu_response.py @@ -0,0 +1,520 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRsuResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rsu_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'ip': 'str', + 'position_description': 'str', + 'location': 'RsuLocation', + 'status': 'str', + 'rsu_model_id': 'str', + 'intersection_id': 'str', + 'related_edge_num': 'int', + 'software_version': 'str' + } + + attribute_map = { + 'rsu_id': 'rsu_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'ip': 'ip', + 'position_description': 'position_description', + 'location': 'location', + 'status': 'status', + 'rsu_model_id': 'rsu_model_id', + 'intersection_id': 'intersection_id', + 'related_edge_num': 'related_edge_num', + 'software_version': 'software_version' + } + + def __init__(self, rsu_id=None, name=None, description=None, esn=None, last_modified_time=None, created_time=None, last_online_time=None, ip=None, position_description=None, location=None, status=None, rsu_model_id=None, intersection_id=None, related_edge_num=None, software_version=None): + """UpdateRsuResponse + + The model defined in huaweicloud sdk + + :param rsu_id: **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + :type rsu_id: str + :param name: **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + :type esn: str + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param ip: **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + :type ip: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + :param status: **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + :type status: str + :param rsu_model_id: **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + :type rsu_model_id: str + :param intersection_id: **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + :type intersection_id: str + :param related_edge_num: **参数说明**:RSU可关联的Edge的数量。 + :type related_edge_num: int + :param software_version: **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + :type software_version: str + """ + + super(UpdateRsuResponse, self).__init__() + + self._rsu_id = None + self._name = None + self._description = None + self._esn = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._ip = None + self._position_description = None + self._location = None + self._status = None + self._rsu_model_id = None + self._intersection_id = None + self._related_edge_num = None + self._software_version = None + self.discriminator = None + + if rsu_id is not None: + self.rsu_id = rsu_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if ip is not None: + self.ip = ip + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if status is not None: + self.status = status + if rsu_model_id is not None: + self.rsu_model_id = rsu_model_id + if intersection_id is not None: + self.intersection_id = intersection_id + if related_edge_num is not None: + self.related_edge_num = related_edge_num + if software_version is not None: + self.software_version = software_version + + @property + def rsu_id(self): + """Gets the rsu_id of this UpdateRsuResponse. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :return: The rsu_id of this UpdateRsuResponse. + :rtype: str + """ + return self._rsu_id + + @rsu_id.setter + def rsu_id(self, rsu_id): + """Sets the rsu_id of this UpdateRsuResponse. + + **参数说明**:RSU的唯一标识符,在平台创建RSU时由平台生成。 + + :param rsu_id: The rsu_id of this UpdateRsuResponse. + :type rsu_id: str + """ + self._rsu_id = rsu_id + + @property + def name(self): + """Gets the name of this UpdateRsuResponse. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this UpdateRsuResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateRsuResponse. + + **参数说明**:RSU的名字。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this UpdateRsuResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdateRsuResponse. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateRsuResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateRsuResponse. + + **参数说明**:RSU的描述。 **取值范围**:只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文分号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateRsuResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this UpdateRsuResponse. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :return: The esn of this UpdateRsuResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this UpdateRsuResponse. + + **参数说明**:RSU的设备序列号。 **取值范围**:只允许字母、数字、下划线(_)的组合。 + + :param esn: The esn of this UpdateRsuResponse. + :type esn: str + """ + self._esn = esn + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateRsuResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this UpdateRsuResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateRsuResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this UpdateRsuResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this UpdateRsuResponse. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this UpdateRsuResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateRsuResponse. + + **参数说明**:创建的时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this UpdateRsuResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this UpdateRsuResponse. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this UpdateRsuResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this UpdateRsuResponse. + + **参数说明**:最后的在线时间。 格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this UpdateRsuResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def ip(self): + """Gets the ip of this UpdateRsuResponse. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :return: The ip of this UpdateRsuResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this UpdateRsuResponse. + + **参数说明**:RSU的IP。满足IP的格式,例如127.0.0.1。 + + :param ip: The ip of this UpdateRsuResponse. + :type ip: str + """ + self._ip = ip + + @property + def position_description(self): + """Gets the position_description of this UpdateRsuResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this UpdateRsuResponse. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this UpdateRsuResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this UpdateRsuResponse. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this UpdateRsuResponse. + + :return: The location of this UpdateRsuResponse. + :rtype: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this UpdateRsuResponse. + + :param location: The location of this UpdateRsuResponse. + :type location: :class:`huaweicloudsdkdris.v1.RsuLocation` + """ + self._location = location + + @property + def status(self): + """Gets the status of this UpdateRsuResponse. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :return: The status of this UpdateRsuResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateRsuResponse. + + **参数说明**:RSU设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 - UNKNOWN:未知 + + :param status: The status of this UpdateRsuResponse. + :type status: str + """ + self._status = status + + @property + def rsu_model_id(self): + """Gets the rsu_model_id of this UpdateRsuResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :return: The rsu_model_id of this UpdateRsuResponse. + :rtype: str + """ + return self._rsu_model_id + + @rsu_model_id.setter + def rsu_model_id(self, rsu_model_id): + """Sets the rsu_model_id of this UpdateRsuResponse. + + **参数说明**:RSU型号ID,用于唯一标识一个RSU型号,在平台创建RSU型号后由平台分配获得,获取方法可参见 [创建RSU型号](https://support.huaweicloud.com/api-v2x/v2x_04_0020.html)。 **取值范围**:长度不低于1不超过36,只允许字母、数字、连接符(-)的组合。 **该字段仅供使用MQTT协议RSU设备的用户输入。使用websocket协议RSU设备的用户需忽略此字段。** + + :param rsu_model_id: The rsu_model_id of this UpdateRsuResponse. + :type rsu_model_id: str + """ + self._rsu_model_id = rsu_model_id + + @property + def intersection_id(self): + """Gets the intersection_id of this UpdateRsuResponse. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :return: The intersection_id of this UpdateRsuResponse. + :rtype: str + """ + return self._intersection_id + + @intersection_id.setter + def intersection_id(self, intersection_id): + """Sets the intersection_id of this UpdateRsuResponse. + + **参数说明**:在地图中,rsu所在区域对应的路口ID,也即区域ID拼接路口ID,格式为:region-node_id。其中路网最基本的构成即节点和节点之间连接的路段。节点可以是路口,也可以是一条 路的端点。一个节点的ID在同一个区域内是唯一的。 + + :param intersection_id: The intersection_id of this UpdateRsuResponse. + :type intersection_id: str + """ + self._intersection_id = intersection_id + + @property + def related_edge_num(self): + """Gets the related_edge_num of this UpdateRsuResponse. + + **参数说明**:RSU可关联的Edge的数量。 + + :return: The related_edge_num of this UpdateRsuResponse. + :rtype: int + """ + return self._related_edge_num + + @related_edge_num.setter + def related_edge_num(self, related_edge_num): + """Sets the related_edge_num of this UpdateRsuResponse. + + **参数说明**:RSU可关联的Edge的数量。 + + :param related_edge_num: The related_edge_num of this UpdateRsuResponse. + :type related_edge_num: int + """ + self._related_edge_num = related_edge_num + + @property + def software_version(self): + """Gets the software_version of this UpdateRsuResponse. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :return: The software_version of this UpdateRsuResponse. + :rtype: str + """ + return self._software_version + + @software_version.setter + def software_version(self, software_version): + """Sets the software_version of this UpdateRsuResponse. + + **参数说明**:RSU的软件版本,由RSU上报其软件版本。 + + :param software_version: The software_version of this UpdateRsuResponse. + :type software_version: str + """ + self._software_version = software_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRsuResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_request.py new file mode 100755 index 0000000000..8f426bd29d --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTrafficControllerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'traffic_controller_id': 'str', + 'body': 'ModifyTrafficControllerRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'traffic_controller_id': 'traffic_controller_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, traffic_controller_id=None, body=None): + """UpdateTrafficControllerRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 + :type traffic_controller_id: str + :param body: Body of the UpdateTrafficControllerRequest + :type body: :class:`huaweicloudsdkdris.v1.ModifyTrafficControllerRequestDTO` + """ + + + + self._instance_id = None + self._traffic_controller_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.traffic_controller_id = traffic_controller_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateTrafficControllerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateTrafficControllerRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateTrafficControllerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this UpdateTrafficControllerRequest. + + **参数说明**:信号机设备ID,全局唯一。 + + :return: The traffic_controller_id of this UpdateTrafficControllerRequest. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this UpdateTrafficControllerRequest. + + **参数说明**:信号机设备ID,全局唯一。 + + :param traffic_controller_id: The traffic_controller_id of this UpdateTrafficControllerRequest. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def body(self): + """Gets the body of this UpdateTrafficControllerRequest. + + :return: The body of this UpdateTrafficControllerRequest. + :rtype: :class:`huaweicloudsdkdris.v1.ModifyTrafficControllerRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateTrafficControllerRequest. + + :param body: The body of this UpdateTrafficControllerRequest. + :type body: :class:`huaweicloudsdkdris.v1.ModifyTrafficControllerRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTrafficControllerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_response.py new file mode 100755 index 0000000000..4dd5002f4d --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_controller_response.py @@ -0,0 +1,524 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTrafficControllerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'traffic_controller_id': 'str', + 'esn': 'str', + 'name': 'str', + 'description': 'str', + 'lat': 'float', + 'lon': 'float', + 'ele': 'float', + 'pos_description': 'str', + 'installation_mode': 'str', + 'road_name': 'str', + 'link_id': 'str', + 'status': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime' + } + + attribute_map = { + 'traffic_controller_id': 'traffic_controller_id', + 'esn': 'esn', + 'name': 'name', + 'description': 'description', + 'lat': 'lat', + 'lon': 'lon', + 'ele': 'ele', + 'pos_description': 'pos_description', + 'installation_mode': 'installation_mode', + 'road_name': 'road_name', + 'link_id': 'link_id', + 'status': 'status', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time' + } + + def __init__(self, traffic_controller_id=None, esn=None, name=None, description=None, lat=None, lon=None, ele=None, pos_description=None, installation_mode=None, road_name=None, link_id=None, status=None, last_modified_time=None, created_time=None, last_online_time=None): + """UpdateTrafficControllerResponse + + The model defined in huaweicloud sdk + + :param traffic_controller_id: **参数说明**:信号机设备ID,全局唯一。 + :type traffic_controller_id: str + :param esn: \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param name: **参数说明**:名称。 + :type name: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param lat: **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + :type lat: float + :param lon: **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + :type lon: float + :param ele: **参数说明**:定义海拔高程,可选,单位为分米。 + :type ele: float + :param pos_description: **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + :type pos_description: str + :param installation_mode: **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + :type installation_mode: str + :param road_name: **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + :type road_name: str + :param link_id: **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + :type link_id: str + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + :type status: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + """ + + super(UpdateTrafficControllerResponse, self).__init__() + + self._traffic_controller_id = None + self._esn = None + self._name = None + self._description = None + self._lat = None + self._lon = None + self._ele = None + self._pos_description = None + self._installation_mode = None + self._road_name = None + self._link_id = None + self._status = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self.discriminator = None + + if traffic_controller_id is not None: + self.traffic_controller_id = traffic_controller_id + if esn is not None: + self.esn = esn + if name is not None: + self.name = name + if description is not None: + self.description = description + if lat is not None: + self.lat = lat + if lon is not None: + self.lon = lon + if ele is not None: + self.ele = ele + if pos_description is not None: + self.pos_description = pos_description + if installation_mode is not None: + self.installation_mode = installation_mode + if road_name is not None: + self.road_name = road_name + if link_id is not None: + self.link_id = link_id + if status is not None: + self.status = status + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + + @property + def traffic_controller_id(self): + """Gets the traffic_controller_id of this UpdateTrafficControllerResponse. + + **参数说明**:信号机设备ID,全局唯一。 + + :return: The traffic_controller_id of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._traffic_controller_id + + @traffic_controller_id.setter + def traffic_controller_id(self, traffic_controller_id): + """Sets the traffic_controller_id of this UpdateTrafficControllerResponse. + + **参数说明**:信号机设备ID,全局唯一。 + + :param traffic_controller_id: The traffic_controller_id of this UpdateTrafficControllerResponse. + :type traffic_controller_id: str + """ + self._traffic_controller_id = traffic_controller_id + + @property + def esn(self): + """Gets the esn of this UpdateTrafficControllerResponse. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this UpdateTrafficControllerResponse. + + \"**参数说明**:序列号。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this UpdateTrafficControllerResponse. + :type esn: str + """ + self._esn = esn + + @property + def name(self): + """Gets the name of this UpdateTrafficControllerResponse. + + **参数说明**:名称。 + + :return: The name of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateTrafficControllerResponse. + + **参数说明**:名称。 + + :param name: The name of this UpdateTrafficControllerResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdateTrafficControllerResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateTrafficControllerResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this UpdateTrafficControllerResponse. + :type description: str + """ + self._description = description + + @property + def lat(self): + """Gets the lat of this UpdateTrafficControllerResponse. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :return: The lat of this UpdateTrafficControllerResponse. + :rtype: float + """ + return self._lat + + @lat.setter + def lat(self, lat): + """Sets the lat of this UpdateTrafficControllerResponse. + + **参数说明**:定义纬度数值,北纬为正,南纬为负,单位°,精度小数点后7位。 + + :param lat: The lat of this UpdateTrafficControllerResponse. + :type lat: float + """ + self._lat = lat + + @property + def lon(self): + """Gets the lon of this UpdateTrafficControllerResponse. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :return: The lon of this UpdateTrafficControllerResponse. + :rtype: float + """ + return self._lon + + @lon.setter + def lon(self, lon): + """Sets the lon of this UpdateTrafficControllerResponse. + + **参数说明**:定义经度数值。东经为正,西经为负,单位°,精度小数点后7位。 + + :param lon: The lon of this UpdateTrafficControllerResponse. + :type lon: float + """ + self._lon = lon + + @property + def ele(self): + """Gets the ele of this UpdateTrafficControllerResponse. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :return: The ele of this UpdateTrafficControllerResponse. + :rtype: float + """ + return self._ele + + @ele.setter + def ele(self, ele): + """Sets the ele of this UpdateTrafficControllerResponse. + + **参数说明**:定义海拔高程,可选,单位为分米。 + + :param ele: The ele of this UpdateTrafficControllerResponse. + :type ele: float + """ + self._ele = ele + + @property + def pos_description(self): + """Gets the pos_description of this UpdateTrafficControllerResponse. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :return: The pos_description of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._pos_description + + @pos_description.setter + def pos_description(self, pos_description): + """Sets the pos_description of this UpdateTrafficControllerResponse. + + **参数说明**:位置说明。 **取值范围**:长度不超过128,只允许字母、数字、以及_等字符的组合。 + + :param pos_description: The pos_description of this UpdateTrafficControllerResponse. + :type pos_description: str + """ + self._pos_description = pos_description + + @property + def installation_mode(self): + """Gets the installation_mode of this UpdateTrafficControllerResponse. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :return: The installation_mode of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._installation_mode + + @installation_mode.setter + def installation_mode(self, installation_mode): + """Sets the installation_mode of this UpdateTrafficControllerResponse. + + **参数说明**:架设方式。 **取值范围**: - columnar:柱式 - road-side-attach:路侧附着式 - cantilever:悬臂式 - gantry:门架式 - lane-above-attach:车行道上方附着式 + + :param installation_mode: The installation_mode of this UpdateTrafficControllerResponse. + :type installation_mode: str + """ + self._installation_mode = installation_mode + + @property + def road_name(self): + """Gets the road_name of this UpdateTrafficControllerResponse. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :return: The road_name of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._road_name + + @road_name.setter + def road_name(self, road_name): + """Sets the road_name of this UpdateTrafficControllerResponse. + + **参数说明**:所属道路名称,比如高速名称。 **取值范围**:长度不超过64,只允许汉字、字母、数字、以及_-等字符的组合。 + + :param road_name: The road_name of this UpdateTrafficControllerResponse. + :type road_name: str + """ + self._road_name = road_name + + @property + def link_id(self): + """Gets the link_id of this UpdateTrafficControllerResponse. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :return: The link_id of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._link_id + + @link_id.setter + def link_id(self, link_id): + """Sets the link_id of this UpdateTrafficControllerResponse. + + **参数说明**:信号机设备所属路段ID。 **取值范围**:长度等于30,只允许大写字母、数字。 + + :param link_id: The link_id of this UpdateTrafficControllerResponse. + :type link_id: str + """ + self._link_id = link_id + + @property + def status(self): + """Gets the status of this UpdateTrafficControllerResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :return: The status of this UpdateTrafficControllerResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateTrafficControllerResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - INITIAL:初始化 + + :param status: The status of this UpdateTrafficControllerResponse. + :type status: str + """ + self._status = status + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateTrafficControllerResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this UpdateTrafficControllerResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateTrafficControllerResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this UpdateTrafficControllerResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this UpdateTrafficControllerResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this UpdateTrafficControllerResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateTrafficControllerResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this UpdateTrafficControllerResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this UpdateTrafficControllerResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this UpdateTrafficControllerResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this UpdateTrafficControllerResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this UpdateTrafficControllerResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTrafficControllerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_dto.py new file mode 100755 index 0000000000..bb2dead056 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_dto.py @@ -0,0 +1,520 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTrafficEventDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'note': 'str', + 'event_confidence': 'int' + } + + attribute_map = { + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence' + } + + def __init__(self, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None): + """UpdateTrafficEventDTO + + The model defined in huaweicloud sdk + + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: str + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: str + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + """ + + + + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self.discriminator = None + + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if area_code is not None: + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + if reference_paths is not None: + self.reference_paths = reference_paths + if event_position_name is not None: + self.event_position_name = event_position_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + + @property + def event_source_type(self): + """Gets the event_source_type of this UpdateTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this UpdateTrafficEventDTO. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this UpdateTrafficEventDTO. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this UpdateTrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this UpdateTrafficEventDTO. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this UpdateTrafficEventDTO. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this UpdateTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this UpdateTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this UpdateTrafficEventDTO. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this UpdateTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this UpdateTrafficEventDTO. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this UpdateTrafficEventDTO. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this UpdateTrafficEventDTO. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this UpdateTrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this UpdateTrafficEventDTO. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this UpdateTrafficEventDTO. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this UpdateTrafficEventDTO. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this UpdateTrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this UpdateTrafficEventDTO. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this UpdateTrafficEventDTO. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this UpdateTrafficEventDTO. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this UpdateTrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this UpdateTrafficEventDTO. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this UpdateTrafficEventDTO. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this UpdateTrafficEventDTO. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this UpdateTrafficEventDTO. + + :return: The event_position of this UpdateTrafficEventDTO. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this UpdateTrafficEventDTO. + + :param event_position: The event_position of this UpdateTrafficEventDTO. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this UpdateTrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this UpdateTrafficEventDTO. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this UpdateTrafficEventDTO. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this UpdateTrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this UpdateTrafficEventDTO. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this UpdateTrafficEventDTO. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this UpdateTrafficEventDTO. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this UpdateTrafficEventDTO. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this UpdateTrafficEventDTO. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this UpdateTrafficEventDTO. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this UpdateTrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this UpdateTrafficEventDTO. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this UpdateTrafficEventDTO. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this UpdateTrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this UpdateTrafficEventDTO. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this UpdateTrafficEventDTO. + :type end_time: str + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this UpdateTrafficEventDTO. + + **参数说明**:备注。 + + :return: The note of this UpdateTrafficEventDTO. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this UpdateTrafficEventDTO. + + **参数说明**:备注。 + + :param note: The note of this UpdateTrafficEventDTO. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this UpdateTrafficEventDTO. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this UpdateTrafficEventDTO. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this UpdateTrafficEventDTO. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this UpdateTrafficEventDTO. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTrafficEventDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_request.py new file mode 100755 index 0000000000..3bc463f151 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTrafficEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'event_id': 'str', + 'body': 'UpdateTrafficEventDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'event_id': 'event_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, event_id=None, body=None): + """UpdateTrafficEventRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param body: Body of the UpdateTrafficEventRequest + :type body: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventDTO` + """ + + + + self._instance_id = None + self._event_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.event_id = event_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateTrafficEventRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateTrafficEventRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateTrafficEventRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def event_id(self): + """Gets the event_id of this UpdateTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this UpdateTrafficEventRequest. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this UpdateTrafficEventRequest. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this UpdateTrafficEventRequest. + :type event_id: str + """ + self._event_id = event_id + + @property + def body(self): + """Gets the body of this UpdateTrafficEventRequest. + + :return: The body of this UpdateTrafficEventRequest. + :rtype: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateTrafficEventRequest. + + :param body: The body of this UpdateTrafficEventRequest. + :type body: :class:`huaweicloudsdkdris.v1.UpdateTrafficEventDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTrafficEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_response.py new file mode 100755 index 0000000000..4a589cfa81 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_traffic_event_response.py @@ -0,0 +1,636 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTrafficEventResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'event_id': 'str', + 'event_source_type': 'str', + 'event_source_id': 'str', + 'event_class': 'str', + 'event_type': 'int', + 'area_code': 'int', + 'event_level': 'int', + 'event_params': 'dict(str, str)', + 'event_position': 'EventLocation', + 'event_description': 'str', + 'reference_paths': 'list[EventReferencePath]', + 'event_position_name': 'str', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'note': 'str', + 'event_confidence': 'int', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'status': 'status', + 'event_id': 'event_id', + 'event_source_type': 'event_source_type', + 'event_source_id': 'event_source_id', + 'event_class': 'event_class', + 'event_type': 'event_type', + 'area_code': 'area_code', + 'event_level': 'event_level', + 'event_params': 'event_params', + 'event_position': 'event_position', + 'event_description': 'event_description', + 'reference_paths': 'reference_paths', + 'event_position_name': 'event_position_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'note': 'note', + 'event_confidence': 'event_confidence', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, status=None, event_id=None, event_source_type=None, event_source_id=None, event_class=None, event_type=None, area_code=None, event_level=None, event_params=None, event_position=None, event_description=None, reference_paths=None, event_position_name=None, start_time=None, end_time=None, note=None, event_confidence=None, created_time=None, last_modified_time=None): + """UpdateTrafficEventResponse + + The model defined in huaweicloud sdk + + :param status: **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + :type status: str + :param event_id: **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + :type event_id: str + :param event_source_type: **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + :type event_source_type: str + :param event_source_id: **参数说明**:事件来源的ID,由用户自定义。 + :type event_source_id: str + :param event_class: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + :type event_class: str + :param event_type: **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + :type event_type: int + :param area_code: **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + :type area_code: int + :param event_level: **参数说明**:事件优先级,0-7越大优先级越高。 + :type event_level: int + :param event_params: **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + :type event_params: dict(str, str) + :param event_position: + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + :param event_description: **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + :type event_description: str + :param reference_paths: **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + :param event_position_name: **参数说明**:事件所在位置。 + :type event_position_name: str + :param start_time: **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type start_time: datetime + :param end_time: **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type end_time: datetime + :param note: **参数说明**:备注。 + :type note: str + :param event_confidence: **参数说明**:事件可信度。 + :type event_confidence: int + :param created_time: '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(UpdateTrafficEventResponse, self).__init__() + + self._status = None + self._event_id = None + self._event_source_type = None + self._event_source_id = None + self._event_class = None + self._event_type = None + self._area_code = None + self._event_level = None + self._event_params = None + self._event_position = None + self._event_description = None + self._reference_paths = None + self._event_position_name = None + self._start_time = None + self._end_time = None + self._note = None + self._event_confidence = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if status is not None: + self.status = status + if event_id is not None: + self.event_id = event_id + if event_source_type is not None: + self.event_source_type = event_source_type + if event_source_id is not None: + self.event_source_id = event_source_id + if event_class is not None: + self.event_class = event_class + if event_type is not None: + self.event_type = event_type + if area_code is not None: + self.area_code = area_code + if event_level is not None: + self.event_level = event_level + if event_params is not None: + self.event_params = event_params + if event_position is not None: + self.event_position = event_position + if event_description is not None: + self.event_description = event_description + if reference_paths is not None: + self.reference_paths = reference_paths + if event_position_name is not None: + self.event_position_name = event_position_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if note is not None: + self.note = note + if event_confidence is not None: + self.event_confidence = event_confidence + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def status(self): + """Gets the status of this UpdateTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :return: The status of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateTrafficEventResponse. + + **参数说明**:事件状态。 **取值范围**: - Invalid:为过期事件,事件结束时间(end_time)在当前时间之前。 - Active:为活动事件,事件开始时间(start_time)在当前时间之前,并且事件结束时间(end_time)在当前时间之后。 - Future:为未来事件,事件开始时间(start_time)在当前时间之前。 + + :param status: The status of this UpdateTrafficEventResponse. + :type status: str + """ + self._status = status + + @property + def event_id(self): + """Gets the event_id of this UpdateTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :return: The event_id of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_id + + @event_id.setter + def event_id(self, event_id): + """Sets the event_id of this UpdateTrafficEventResponse. + + **参数说明**:事件ID,创建事件后获得。方法参见 [新增交通事件](https://support.huaweicloud.com/api-v2x/v2x_04_0048.html)。 + + :param event_id: The event_id of this UpdateTrafficEventResponse. + :type event_id: str + """ + self._event_id = event_id + + @property + def event_source_type(self): + """Gets the event_source_type of this UpdateTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :return: The event_source_type of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_source_type + + @event_source_type.setter + def event_source_type(self, event_source_type): + """Sets the event_source_type of this UpdateTrafficEventResponse. + + **参数说明**:事件来源类型列表,支持事件来源。 **取值范围**: - unknown:未知数据 - police:警方数据 - government:政府数据 - meteorological:气象数据 - internet:互联网数据 - detection:检测器检测到的数据 - v2xServer:平台上报数据 - rsu:RSU上报数据 - obu:车载终端上报数据 + + :param event_source_type: The event_source_type of this UpdateTrafficEventResponse. + :type event_source_type: str + """ + self._event_source_type = event_source_type + + @property + def event_source_id(self): + """Gets the event_source_id of this UpdateTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :return: The event_source_id of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_source_id + + @event_source_id.setter + def event_source_id(self, event_source_id): + """Sets the event_source_id of this UpdateTrafficEventResponse. + + **参数说明**:事件来源的ID,由用户自定义。 + + :param event_source_id: The event_source_id of this UpdateTrafficEventResponse. + :type event_source_id: str + """ + self._event_source_id = event_source_id + + @property + def event_class(self): + """Gets the event_class of this UpdateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :return: The event_class of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_class + + @event_class.setter + def event_class(self, event_class): + """Sets the event_class of this UpdateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。当填写event_type时,event_class为必选。 + + :param event_class: The event_class of this UpdateTrafficEventResponse. + :type event_class: str + """ + self._event_class = event_class + + @property + def event_type(self): + """Gets the event_type of this UpdateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :return: The event_type of this UpdateTrafficEventResponse. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this UpdateTrafficEventResponse. + + **参数说明**:事件类型,参照附录[《国标交通事件及标志列表》](https://support.huaweicloud.com/api-v2x/v2x_04_0101.html)文件。 + + :param event_type: The event_type of this UpdateTrafficEventResponse. + :type event_type: int + """ + self._event_type = event_type + + @property + def area_code(self): + """Gets the area_code of this UpdateTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :return: The area_code of this UpdateTrafficEventResponse. + :rtype: int + """ + return self._area_code + + @area_code.setter + def area_code(self, area_code): + """Sets the area_code of this UpdateTrafficEventResponse. + + **参数说明**:区域码,参考[区域码查询](http://xzqh.mca.gov.cn/map)。 + + :param area_code: The area_code of this UpdateTrafficEventResponse. + :type area_code: int + """ + self._area_code = area_code + + @property + def event_level(self): + """Gets the event_level of this UpdateTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :return: The event_level of this UpdateTrafficEventResponse. + :rtype: int + """ + return self._event_level + + @event_level.setter + def event_level(self, event_level): + """Sets the event_level of this UpdateTrafficEventResponse. + + **参数说明**:事件优先级,0-7越大优先级越高。 + + :param event_level: The event_level of this UpdateTrafficEventResponse. + :type event_level: int + """ + self._event_level = event_level + + @property + def event_params(self): + """Gets the event_params of this UpdateTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :return: The event_params of this UpdateTrafficEventResponse. + :rtype: dict(str, str) + """ + return self._event_params + + @event_params.setter + def event_params(self, event_params): + """Sets the event_params of this UpdateTrafficEventResponse. + + **参数说明**:事件附加信息。 事件类型为如下数据时生效: - 道路最高限:必选,设置最高限速(整数值)km/h - 道路最低限速:必选,设置最低限速(整数值)km/h - 建议速度:必选,建议速度(整数值)km/h - 急弯路:可选,建议最高限速(整数值)km/h - 雨:可选,请输入1~4:1-细雨,2-小雨,3-中雨,4-大雨 - 雪:可选,请输入1~4:1-小雪,2-中雪,3-大雪,4-暴雪 - 风:可选,设置风速值(整数值)km/h - 雾:可选,请输入1或2:1-薄雾,2-浓雾 - 路面湿滑:可选,设置湿滑系数(0~1) - 路面结冰:可选,请设置冰层厚度(整数值)mm 建议填写方式为:user_defined_param1: \"xx\" + + :param event_params: The event_params of this UpdateTrafficEventResponse. + :type event_params: dict(str, str) + """ + self._event_params = event_params + + @property + def event_position(self): + """Gets the event_position of this UpdateTrafficEventResponse. + + :return: The event_position of this UpdateTrafficEventResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + return self._event_position + + @event_position.setter + def event_position(self, event_position): + """Sets the event_position of this UpdateTrafficEventResponse. + + :param event_position: The event_position of this UpdateTrafficEventResponse. + :type event_position: :class:`huaweicloudsdkdris.v1.EventLocation` + """ + self._event_position = event_position + + @property + def event_description(self): + """Gets the event_description of this UpdateTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :return: The event_description of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_description + + @event_description.setter + def event_description(self, event_description): + """Sets the event_description of this UpdateTrafficEventResponse. + + **参数说明**:事件描述。支持英文字母、数字、下划线、斜杠、中文及中文常用字符:。 ? ! , 、 ; : “ ” + + :param event_description: The event_description of this UpdateTrafficEventResponse. + :type event_description: str + """ + self._event_description = event_description + + @property + def reference_paths(self): + """Gets the reference_paths of this UpdateTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :return: The reference_paths of this UpdateTrafficEventResponse. + :rtype: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + return self._reference_paths + + @reference_paths.setter + def reference_paths(self, reference_paths): + """Sets the reference_paths of this UpdateTrafficEventResponse. + + **参数说明**:事件生效的关联路径,至少需写入起始和终止位置的两个坐标点。 + + :param reference_paths: The reference_paths of this UpdateTrafficEventResponse. + :type reference_paths: list[:class:`huaweicloudsdkdris.v1.EventReferencePath`] + """ + self._reference_paths = reference_paths + + @property + def event_position_name(self): + """Gets the event_position_name of this UpdateTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :return: The event_position_name of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._event_position_name + + @event_position_name.setter + def event_position_name(self, event_position_name): + """Sets the event_position_name of this UpdateTrafficEventResponse. + + **参数说明**:事件所在位置。 + + :param event_position_name: The event_position_name of this UpdateTrafficEventResponse. + :type event_position_name: str + """ + self._event_position_name = event_position_name + + @property + def start_time(self): + """Gets the start_time of this UpdateTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The start_time of this UpdateTrafficEventResponse. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this UpdateTrafficEventResponse. + + **参数说明**:开始时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param start_time: The start_time of this UpdateTrafficEventResponse. + :type start_time: datetime + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this UpdateTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The end_time of this UpdateTrafficEventResponse. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this UpdateTrafficEventResponse. + + **参数说明**:结束时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param end_time: The end_time of this UpdateTrafficEventResponse. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def note(self): + """Gets the note of this UpdateTrafficEventResponse. + + **参数说明**:备注。 + + :return: The note of this UpdateTrafficEventResponse. + :rtype: str + """ + return self._note + + @note.setter + def note(self, note): + """Sets the note of this UpdateTrafficEventResponse. + + **参数说明**:备注。 + + :param note: The note of this UpdateTrafficEventResponse. + :type note: str + """ + self._note = note + + @property + def event_confidence(self): + """Gets the event_confidence of this UpdateTrafficEventResponse. + + **参数说明**:事件可信度。 + + :return: The event_confidence of this UpdateTrafficEventResponse. + :rtype: int + """ + return self._event_confidence + + @event_confidence.setter + def event_confidence(self, event_confidence): + """Sets the event_confidence of this UpdateTrafficEventResponse. + + **参数说明**:事件可信度。 + + :param event_confidence: The event_confidence of this UpdateTrafficEventResponse. + :type event_confidence: int + """ + self._event_confidence = event_confidence + + @property + def created_time(self): + """Gets the created_time of this UpdateTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this UpdateTrafficEventResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateTrafficEventResponse. + + '**参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this UpdateTrafficEventResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this UpdateTrafficEventResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateTrafficEventResponse. + + **参数说明**:最后修改的时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this UpdateTrafficEventResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTrafficEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_request.py new file mode 100755 index 0000000000..f83db9f6ed --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateV2xEdgeAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'edge_app_id': 'str', + 'instance_id': 'str', + 'v2x_edge_id': 'str', + 'body': 'ModifyV2XEdgeAppDTO' + } + + attribute_map = { + 'edge_app_id': 'edge_app_id', + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id', + 'body': 'body' + } + + def __init__(self, edge_app_id=None, instance_id=None, v2x_edge_id=None, body=None): + """UpdateV2xEdgeAppRequest + + The model defined in huaweicloud sdk + + :param edge_app_id: **参数说明**:应用唯一ID,升级边缘应用前应先部署边缘应用,方法参见:[部署边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0112.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + :type edge_app_id: str + :param instance_id: **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + :type v2x_edge_id: str + :param body: Body of the UpdateV2xEdgeAppRequest + :type body: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeAppDTO` + """ + + + + self._edge_app_id = None + self._instance_id = None + self._v2x_edge_id = None + self._body = None + self.discriminator = None + + self.edge_app_id = edge_app_id + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + if body is not None: + self.body = body + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:应用唯一ID,升级边缘应用前应先部署边缘应用,方法参见:[部署边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0112.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :return: The edge_app_id of this UpdateV2xEdgeAppRequest. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:应用唯一ID,升级边缘应用前应先部署边缘应用,方法参见:[部署边缘应用](https://support.huaweicloud.com/api-v2x/v2x_04_0112.html)。 **取值范围**:只允许字母、数字、下划线(_)、连接符(-)、美元符号($)的组合。 + + :param edge_app_id: The edge_app_id of this UpdateV2xEdgeAppRequest. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def instance_id(self): + """Gets the instance_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :return: The instance_id of this UpdateV2xEdgeAppRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和连接符(-)的组合,长度36。 + + :param instance_id: The instance_id of this UpdateV2xEdgeAppRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :return: The v2x_edge_id of this UpdateV2xEdgeAppRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this UpdateV2xEdgeAppRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge,创建Edge后获得。方法参见 [创建Edge](https://support.huaweicloud.com/api-v2x/v2x_04_0078.html)。 + + :param v2x_edge_id: The v2x_edge_id of this UpdateV2xEdgeAppRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def body(self): + """Gets the body of this UpdateV2xEdgeAppRequest. + + :return: The body of this UpdateV2xEdgeAppRequest. + :rtype: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeAppDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateV2xEdgeAppRequest. + + :param body: The body of this UpdateV2xEdgeAppRequest. + :type body: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeAppDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateV2xEdgeAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_response.py new file mode 100755 index 0000000000..b3c9219859 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_app_response.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateV2xEdgeAppResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'edge_app_id': 'str', + 'app_version': 'str', + 'status': 'str' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'edge_app_id': 'edge_app_id', + 'app_version': 'app_version', + 'status': 'status' + } + + def __init__(self, v2x_edge_id=None, edge_app_id=None, app_version=None, status=None): + """UpdateV2xEdgeAppResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param app_version: **参数说明**:应用版本,比如1.0.0。 + :type app_version: str + :param status: **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + :type status: str + """ + + super(UpdateV2xEdgeAppResponse, self).__init__() + + self._v2x_edge_id = None + self._edge_app_id = None + self._app_version = None + self._status = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if app_version is not None: + self.app_version = app_version + if status is not None: + self.status = status + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this UpdateV2xEdgeAppResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this UpdateV2xEdgeAppResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this UpdateV2xEdgeAppResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this UpdateV2xEdgeAppResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this UpdateV2xEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this UpdateV2xEdgeAppResponse. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this UpdateV2xEdgeAppResponse. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this UpdateV2xEdgeAppResponse. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def app_version(self): + """Gets the app_version of this UpdateV2xEdgeAppResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :return: The app_version of this UpdateV2xEdgeAppResponse. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this UpdateV2xEdgeAppResponse. + + **参数说明**:应用版本,比如1.0.0。 + + :param app_version: The app_version of this UpdateV2xEdgeAppResponse. + :type app_version: str + """ + self._app_version = app_version + + @property + def status(self): + """Gets the status of this UpdateV2xEdgeAppResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :return: The status of this UpdateV2xEdgeAppResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateV2xEdgeAppResponse. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :param status: The status of this UpdateV2xEdgeAppResponse. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateV2xEdgeAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_request.py new file mode 100755 index 0000000000..7dadae3e47 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateV2xEdgeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'v2x_edge_id': 'str', + 'body': 'ModifyV2XEdgeDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'v2x_edge_id': 'v2x_edge_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, v2x_edge_id=None, body=None): + """UpdateV2xEdgeRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param body: Body of the UpdateV2xEdgeRequest + :type body: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeDTO` + """ + + + + self._instance_id = None + self._v2x_edge_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.v2x_edge_id = v2x_edge_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateV2xEdgeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateV2xEdgeRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateV2xEdgeRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateV2xEdgeRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this UpdateV2xEdgeRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this UpdateV2xEdgeRequest. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this UpdateV2xEdgeRequest. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this UpdateV2xEdgeRequest. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def body(self): + """Gets the body of this UpdateV2xEdgeRequest. + + :return: The body of this UpdateV2xEdgeRequest. + :rtype: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateV2xEdgeRequest. + + :param body: The body of this UpdateV2xEdgeRequest. + :type body: :class:`huaweicloudsdkdris.v1.ModifyV2XEdgeDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateV2xEdgeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_response.py new file mode 100755 index 0000000000..e2a5f84cca --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_v2x_edge_response.py @@ -0,0 +1,603 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateV2xEdgeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'name': 'str', + 'description': 'str', + 'esn': 'str', + 'ip': 'str', + 'port': 'int', + 'hardware_type': 'str', + 'position_description': 'str', + 'location': 'Location', + 'camera_ids': 'list[str]', + 'radar_ids': 'list[str]', + 'local_rsus': 'list[str]', + 'edge_general_config': 'EdgeGeneralConfigInResponse', + 'edge_advance_config': 'object', + 'status': 'str', + 'node_id': 'str', + 'created_time': 'datetime', + 'last_modified_time': 'datetime' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'description': 'description', + 'esn': 'esn', + 'ip': 'ip', + 'port': 'port', + 'hardware_type': 'hardware_type', + 'position_description': 'position_description', + 'location': 'location', + 'camera_ids': 'camera_ids', + 'radar_ids': 'radar_ids', + 'local_rsus': 'local_rsus', + 'edge_general_config': 'edge_general_config', + 'edge_advance_config': 'edge_advance_config', + 'status': 'status', + 'node_id': 'node_id', + 'created_time': 'created_time', + 'last_modified_time': 'last_modified_time' + } + + def __init__(self, v2x_edge_id=None, name=None, description=None, esn=None, ip=None, port=None, hardware_type=None, position_description=None, location=None, camera_ids=None, radar_ids=None, local_rsus=None, edge_general_config=None, edge_advance_config=None, status=None, node_id=None, created_time=None, last_modified_time=None): + """UpdateV2xEdgeResponse + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge + :type v2x_edge_id: str + :param name: **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type name: str + :param description: **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + :type description: str + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param ip: **参数说明**:网络IP,例如127.0.0.1。 + :type ip: str + :param port: ITS800,ATLAS 端口号 + :type port: int + :param hardware_type: **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + :type hardware_type: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param camera_ids: **参数说明**:摄像头ID列表。 + :type camera_ids: list[str] + :param radar_ids: **参数说明**:雷达ID列表。 + :type radar_ids: list[str] + :param local_rsus: **参数说明**:Edge关联的本地RSU列表。 + :type local_rsus: list[str] + :param edge_general_config: + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + :param edge_advance_config: Edge高级配置,Json格式 + :type edge_advance_config: object + :param status: \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + :type status: str + :param node_id: 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + :type node_id: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + :param last_modified_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type last_modified_time: datetime + """ + + super(UpdateV2xEdgeResponse, self).__init__() + + self._v2x_edge_id = None + self._name = None + self._description = None + self._esn = None + self._ip = None + self._port = None + self._hardware_type = None + self._position_description = None + self._location = None + self._camera_ids = None + self._radar_ids = None + self._local_rsus = None + self._edge_general_config = None + self._edge_advance_config = None + self._status = None + self._node_id = None + self._created_time = None + self._last_modified_time = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if description is not None: + self.description = description + if esn is not None: + self.esn = esn + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if hardware_type is not None: + self.hardware_type = hardware_type + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if camera_ids is not None: + self.camera_ids = camera_ids + if radar_ids is not None: + self.radar_ids = radar_ids + if local_rsus is not None: + self.local_rsus = local_rsus + if edge_general_config is not None: + self.edge_general_config = edge_general_config + if edge_advance_config is not None: + self.edge_advance_config = edge_advance_config + if status is not None: + self.status = status + if node_id is not None: + self.node_id = node_id + if created_time is not None: + self.created_time = created_time + if last_modified_time is not None: + self.last_modified_time = last_modified_time + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this UpdateV2xEdgeResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :return: The v2x_edge_id of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this UpdateV2xEdgeResponse. + + **参数说明**:Edge ID,用于唯一标识一个Edge + + :param v2x_edge_id: The v2x_edge_id of this UpdateV2xEdgeResponse. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this UpdateV2xEdgeResponse. + + **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The name of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateV2xEdgeResponse. + + **参数说明**:名称。 **取值范围**:长度不低于1不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param name: The name of this UpdateV2xEdgeResponse. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdateV2xEdgeResponse. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :return: The description of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateV2xEdgeResponse. + + **参数说明**:Edge描述。 **取值范围**:长度不超过255,只允许中文、字母、数字、下划线(_)、中文分号(;)、中文冒号(:)、中文问号(?)、中文感叹号(!)中文逗号(,)、中文句号(。)、英文引号(;)、英文冒号(:)、英文逗号(,)、英文句号(.)、英文问号(?)、英文感叹号(!)、顿号(、)、连接符(-)的组合。 + + :param description: The description of this UpdateV2xEdgeResponse. + :type description: str + """ + self._description = description + + @property + def esn(self): + """Gets the esn of this UpdateV2xEdgeResponse. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this UpdateV2xEdgeResponse. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this UpdateV2xEdgeResponse. + :type esn: str + """ + self._esn = esn + + @property + def ip(self): + """Gets the ip of this UpdateV2xEdgeResponse. + + **参数说明**:网络IP,例如127.0.0.1。 + + :return: The ip of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this UpdateV2xEdgeResponse. + + **参数说明**:网络IP,例如127.0.0.1。 + + :param ip: The ip of this UpdateV2xEdgeResponse. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this UpdateV2xEdgeResponse. + + ITS800,ATLAS 端口号 + + :return: The port of this UpdateV2xEdgeResponse. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this UpdateV2xEdgeResponse. + + ITS800,ATLAS 端口号 + + :param port: The port of this UpdateV2xEdgeResponse. + :type port: int + """ + self._port = port + + @property + def hardware_type(self): + """Gets the hardware_type of this UpdateV2xEdgeResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :return: The hardware_type of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._hardware_type + + @hardware_type.setter + def hardware_type(self, hardware_type): + """Sets the hardware_type of this UpdateV2xEdgeResponse. + + **参数说明**:硬件类型。 **取值范围**:ITS800 或者 ATLAS + + :param hardware_type: The hardware_type of this UpdateV2xEdgeResponse. + :type hardware_type: str + """ + self._hardware_type = hardware_type + + @property + def position_description(self): + """Gets the position_description of this UpdateV2xEdgeResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this UpdateV2xEdgeResponse. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this UpdateV2xEdgeResponse. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this UpdateV2xEdgeResponse. + + :return: The location of this UpdateV2xEdgeResponse. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this UpdateV2xEdgeResponse. + + :param location: The location of this UpdateV2xEdgeResponse. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def camera_ids(self): + """Gets the camera_ids of this UpdateV2xEdgeResponse. + + **参数说明**:摄像头ID列表。 + + :return: The camera_ids of this UpdateV2xEdgeResponse. + :rtype: list[str] + """ + return self._camera_ids + + @camera_ids.setter + def camera_ids(self, camera_ids): + """Sets the camera_ids of this UpdateV2xEdgeResponse. + + **参数说明**:摄像头ID列表。 + + :param camera_ids: The camera_ids of this UpdateV2xEdgeResponse. + :type camera_ids: list[str] + """ + self._camera_ids = camera_ids + + @property + def radar_ids(self): + """Gets the radar_ids of this UpdateV2xEdgeResponse. + + **参数说明**:雷达ID列表。 + + :return: The radar_ids of this UpdateV2xEdgeResponse. + :rtype: list[str] + """ + return self._radar_ids + + @radar_ids.setter + def radar_ids(self, radar_ids): + """Sets the radar_ids of this UpdateV2xEdgeResponse. + + **参数说明**:雷达ID列表。 + + :param radar_ids: The radar_ids of this UpdateV2xEdgeResponse. + :type radar_ids: list[str] + """ + self._radar_ids = radar_ids + + @property + def local_rsus(self): + """Gets the local_rsus of this UpdateV2xEdgeResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :return: The local_rsus of this UpdateV2xEdgeResponse. + :rtype: list[str] + """ + return self._local_rsus + + @local_rsus.setter + def local_rsus(self, local_rsus): + """Sets the local_rsus of this UpdateV2xEdgeResponse. + + **参数说明**:Edge关联的本地RSU列表。 + + :param local_rsus: The local_rsus of this UpdateV2xEdgeResponse. + :type local_rsus: list[str] + """ + self._local_rsus = local_rsus + + @property + def edge_general_config(self): + """Gets the edge_general_config of this UpdateV2xEdgeResponse. + + :return: The edge_general_config of this UpdateV2xEdgeResponse. + :rtype: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + return self._edge_general_config + + @edge_general_config.setter + def edge_general_config(self, edge_general_config): + """Sets the edge_general_config of this UpdateV2xEdgeResponse. + + :param edge_general_config: The edge_general_config of this UpdateV2xEdgeResponse. + :type edge_general_config: :class:`huaweicloudsdkdris.v1.EdgeGeneralConfigInResponse` + """ + self._edge_general_config = edge_general_config + + @property + def edge_advance_config(self): + """Gets the edge_advance_config of this UpdateV2xEdgeResponse. + + Edge高级配置,Json格式 + + :return: The edge_advance_config of this UpdateV2xEdgeResponse. + :rtype: object + """ + return self._edge_advance_config + + @edge_advance_config.setter + def edge_advance_config(self, edge_advance_config): + """Sets the edge_advance_config of this UpdateV2xEdgeResponse. + + Edge高级配置,Json格式 + + :param edge_advance_config: The edge_advance_config of this UpdateV2xEdgeResponse. + :type edge_advance_config: object + """ + self._edge_advance_config = edge_advance_config + + @property + def status(self): + """Gets the status of this UpdateV2xEdgeResponse. + + \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :return: The status of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateV2xEdgeResponse. + + \"**参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :param status: The status of this UpdateV2xEdgeResponse. + :type status: str + """ + self._status = status + + @property + def node_id(self): + """Gets the node_id of this UpdateV2xEdgeResponse. + + 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + + :return: The node_id of this UpdateV2xEdgeResponse. + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this UpdateV2xEdgeResponse. + + 边缘管理服务返回的node_id,用于关联EdgeManager的资源 + + :param node_id: The node_id of this UpdateV2xEdgeResponse. + :type node_id: str + """ + self._node_id = node_id + + @property + def created_time(self): + """Gets the created_time of this UpdateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this UpdateV2xEdgeResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this UpdateV2xEdgeResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The last_modified_time of this UpdateV2xEdgeResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateV2xEdgeResponse. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param last_modified_time: The last_modified_time of this UpdateV2xEdgeResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateV2xEdgeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_request.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_request.py new file mode 100755 index 0000000000..0cf477fefb --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVehicleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'vehicle_id': 'str', + 'body': 'ModifyVehicleRequestDTO' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'vehicle_id': 'vehicle_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, vehicle_id=None, body=None): + """UpdateVehicleRequest + + The model defined in huaweicloud sdk + + :param instance_id: \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + :type instance_id: str + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param body: Body of the UpdateVehicleRequest + :type body: :class:`huaweicloudsdkdris.v1.ModifyVehicleRequestDTO` + """ + + + + self._instance_id = None + self._vehicle_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.vehicle_id = vehicle_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :return: The instance_id of this UpdateVehicleRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateVehicleRequest. + + \"**参数说明**:实例ID。dris物理实例的唯一标识。获取方法参见[获取Instance-Id](https://support.huaweicloud.com/api-v2x/v2x_04_0030.html)。 **取值范围**:仅支持数字,小写字母和横杠(-)的组合,长度36。\" + + :param instance_id: The instance_id of this UpdateVehicleRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def vehicle_id(self): + """Gets the vehicle_id of this UpdateVehicleRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this UpdateVehicleRequest. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this UpdateVehicleRequest. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this UpdateVehicleRequest. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def body(self): + """Gets the body of this UpdateVehicleRequest. + + :return: The body of this UpdateVehicleRequest. + :rtype: :class:`huaweicloudsdkdris.v1.ModifyVehicleRequestDTO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateVehicleRequest. + + :param body: The body of this UpdateVehicleRequest. + :type body: :class:`huaweicloudsdkdris.v1.ModifyVehicleRequestDTO` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVehicleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_response.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_response.py new file mode 100755 index 0000000000..17618d7b25 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/update_vehicle_response.py @@ -0,0 +1,582 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVehicleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vehicle_id': 'str', + 'plate_no': 'str', + 'vin': 'str', + 'obu_id': 'str', + 'imei': 'str', + 'brand': 'str', + 'model': 'str', + 'style': 'str', + 'fuel_type': 'str', + 'color': 'str', + 'plate_color': 'str', + 'access_type': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'status': 'str' + } + + attribute_map = { + 'vehicle_id': 'vehicle_id', + 'plate_no': 'plate_no', + 'vin': 'vin', + 'obu_id': 'obu_id', + 'imei': 'imei', + 'brand': 'brand', + 'model': 'model', + 'style': 'style', + 'fuel_type': 'fuel_type', + 'color': 'color', + 'plate_color': 'plate_color', + 'access_type': 'access_type', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'status': 'status' + } + + def __init__(self, vehicle_id=None, plate_no=None, vin=None, obu_id=None, imei=None, brand=None, model=None, style=None, fuel_type=None, color=None, plate_color=None, access_type=None, description=None, last_modified_time=None, created_time=None, last_online_time=None, status=None): + """UpdateVehicleResponse + + The model defined in huaweicloud sdk + + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param plate_no: **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type plate_no: str + :param vin: **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + :type vin: str + :param obu_id: \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type obu_id: str + :param imei: **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + :type imei: str + :param brand: **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type brand: str + :param model: **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + :type model: str + :param style: **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + :type style: str + :param fuel_type: **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + :type fuel_type: str + :param color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + :type color: str + :param plate_color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + :type plate_color: str + :param access_type: **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + :type access_type: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + :type status: str + """ + + super(UpdateVehicleResponse, self).__init__() + + self._vehicle_id = None + self._plate_no = None + self._vin = None + self._obu_id = None + self._imei = None + self._brand = None + self._model = None + self._style = None + self._fuel_type = None + self._color = None + self._plate_color = None + self._access_type = None + self._description = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._status = None + self.discriminator = None + + if vehicle_id is not None: + self.vehicle_id = vehicle_id + if plate_no is not None: + self.plate_no = plate_no + if vin is not None: + self.vin = vin + if obu_id is not None: + self.obu_id = obu_id + if imei is not None: + self.imei = imei + if brand is not None: + self.brand = brand + if model is not None: + self.model = model + if style is not None: + self.style = style + if fuel_type is not None: + self.fuel_type = fuel_type + if color is not None: + self.color = color + if plate_color is not None: + self.plate_color = plate_color + if access_type is not None: + self.access_type = access_type + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if status is not None: + self.status = status + + @property + def vehicle_id(self): + """Gets the vehicle_id of this UpdateVehicleResponse. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this UpdateVehicleResponse. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this UpdateVehicleResponse. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this UpdateVehicleResponse. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def plate_no(self): + """Gets the plate_no of this UpdateVehicleResponse. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The plate_no of this UpdateVehicleResponse. + :rtype: str + """ + return self._plate_no + + @plate_no.setter + def plate_no(self, plate_no): + """Sets the plate_no of this UpdateVehicleResponse. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param plate_no: The plate_no of this UpdateVehicleResponse. + :type plate_no: str + """ + self._plate_no = plate_no + + @property + def vin(self): + """Gets the vin of this UpdateVehicleResponse. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :return: The vin of this UpdateVehicleResponse. + :rtype: str + """ + return self._vin + + @vin.setter + def vin(self, vin): + """Sets the vin of this UpdateVehicleResponse. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :param vin: The vin of this UpdateVehicleResponse. + :type vin: str + """ + self._vin = vin + + @property + def obu_id(self): + """Gets the obu_id of this UpdateVehicleResponse. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The obu_id of this UpdateVehicleResponse. + :rtype: str + """ + return self._obu_id + + @obu_id.setter + def obu_id(self, obu_id): + """Sets the obu_id of this UpdateVehicleResponse. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param obu_id: The obu_id of this UpdateVehicleResponse. + :type obu_id: str + """ + self._obu_id = obu_id + + @property + def imei(self): + """Gets the imei of this UpdateVehicleResponse. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :return: The imei of this UpdateVehicleResponse. + :rtype: str + """ + return self._imei + + @imei.setter + def imei(self, imei): + """Sets the imei of this UpdateVehicleResponse. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :param imei: The imei of this UpdateVehicleResponse. + :type imei: str + """ + self._imei = imei + + @property + def brand(self): + """Gets the brand of this UpdateVehicleResponse. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The brand of this UpdateVehicleResponse. + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this UpdateVehicleResponse. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param brand: The brand of this UpdateVehicleResponse. + :type brand: str + """ + self._brand = brand + + @property + def model(self): + """Gets the model of this UpdateVehicleResponse. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The model of this UpdateVehicleResponse. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this UpdateVehicleResponse. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :param model: The model of this UpdateVehicleResponse. + :type model: str + """ + self._model = model + + @property + def style(self): + """Gets the style of this UpdateVehicleResponse. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :return: The style of this UpdateVehicleResponse. + :rtype: str + """ + return self._style + + @style.setter + def style(self, style): + """Sets the style of this UpdateVehicleResponse. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :param style: The style of this UpdateVehicleResponse. + :type style: str + """ + self._style = style + + @property + def fuel_type(self): + """Gets the fuel_type of this UpdateVehicleResponse. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :return: The fuel_type of this UpdateVehicleResponse. + :rtype: str + """ + return self._fuel_type + + @fuel_type.setter + def fuel_type(self, fuel_type): + """Sets the fuel_type of this UpdateVehicleResponse. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :param fuel_type: The fuel_type of this UpdateVehicleResponse. + :type fuel_type: str + """ + self._fuel_type = fuel_type + + @property + def color(self): + """Gets the color of this UpdateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :return: The color of this UpdateVehicleResponse. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this UpdateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :param color: The color of this UpdateVehicleResponse. + :type color: str + """ + self._color = color + + @property + def plate_color(self): + """Gets the plate_color of this UpdateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :return: The plate_color of this UpdateVehicleResponse. + :rtype: str + """ + return self._plate_color + + @plate_color.setter + def plate_color(self, plate_color): + """Sets the plate_color of this UpdateVehicleResponse. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :param plate_color: The plate_color of this UpdateVehicleResponse. + :type plate_color: str + """ + self._plate_color = plate_color + + @property + def access_type(self): + """Gets the access_type of this UpdateVehicleResponse. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :return: The access_type of this UpdateVehicleResponse. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this UpdateVehicleResponse. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :param access_type: The access_type of this UpdateVehicleResponse. + :type access_type: str + """ + self._access_type = access_type + + @property + def description(self): + """Gets the description of this UpdateVehicleResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this UpdateVehicleResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateVehicleResponse. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this UpdateVehicleResponse. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this UpdateVehicleResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this UpdateVehicleResponse. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this UpdateVehicleResponse. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this UpdateVehicleResponse. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this UpdateVehicleResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this UpdateVehicleResponse. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this UpdateVehicleResponse. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this UpdateVehicleResponse. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this UpdateVehicleResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this UpdateVehicleResponse. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this UpdateVehicleResponse. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this UpdateVehicleResponse. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def status(self): + """Gets the status of this UpdateVehicleResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :return: The status of this UpdateVehicleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateVehicleResponse. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :param status: The status of this UpdateVehicleResponse. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVehicleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_app_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_app_response_dto.py new file mode 100755 index 0000000000..0e90d2d38a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_app_response_dto.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class V2XEdgeAppResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'edge_app_id': 'str', + 'app_version': 'str', + 'status': 'str' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'edge_app_id': 'edge_app_id', + 'app_version': 'app_version', + 'status': 'status' + } + + def __init__(self, v2x_edge_id=None, edge_app_id=None, app_version=None, status=None): + """V2XEdgeAppResponseDTO + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param edge_app_id: **参数说明**:用户自定义应用唯一ID。 + :type edge_app_id: str + :param app_version: **参数说明**:应用版本,比如1.0.0。 + :type app_version: str + :param status: **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + :type status: str + """ + + + + self._v2x_edge_id = None + self._edge_app_id = None + self._app_version = None + self._status = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if edge_app_id is not None: + self.edge_app_id = edge_app_id + if app_version is not None: + self.app_version = app_version + if status is not None: + self.status = status + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this V2XEdgeAppResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this V2XEdgeAppResponseDTO. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this V2XEdgeAppResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this V2XEdgeAppResponseDTO. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def edge_app_id(self): + """Gets the edge_app_id of this V2XEdgeAppResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 + + :return: The edge_app_id of this V2XEdgeAppResponseDTO. + :rtype: str + """ + return self._edge_app_id + + @edge_app_id.setter + def edge_app_id(self, edge_app_id): + """Sets the edge_app_id of this V2XEdgeAppResponseDTO. + + **参数说明**:用户自定义应用唯一ID。 + + :param edge_app_id: The edge_app_id of this V2XEdgeAppResponseDTO. + :type edge_app_id: str + """ + self._edge_app_id = edge_app_id + + @property + def app_version(self): + """Gets the app_version of this V2XEdgeAppResponseDTO. + + **参数说明**:应用版本,比如1.0.0。 + + :return: The app_version of this V2XEdgeAppResponseDTO. + :rtype: str + """ + return self._app_version + + @app_version.setter + def app_version(self, app_version): + """Sets the app_version of this V2XEdgeAppResponseDTO. + + **参数说明**:应用版本,比如1.0.0。 + + :param app_version: The app_version of this V2XEdgeAppResponseDTO. + :type app_version: str + """ + self._app_version = app_version + + @property + def status(self): + """Gets the status of this V2XEdgeAppResponseDTO. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :return: The status of this V2XEdgeAppResponseDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V2XEdgeAppResponseDTO. + + **参数说明**:应用部署状态。 **取值范围**: - UNINSTALLED:待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线 - UPGRADING:升级中 - DELETING:删除中 - RUNNING:运行中 + + :param status: The status of this V2XEdgeAppResponseDTO. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V2XEdgeAppResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_list_response_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_list_response_dto.py new file mode 100755 index 0000000000..64a66e9d71 --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/v2_x_edge_list_response_dto.py @@ -0,0 +1,317 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class V2XEdgeListResponseDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'v2x_edge_id': 'str', + 'name': 'str', + 'esn': 'str', + 'position_description': 'str', + 'location': 'Location', + 'status': 'str', + 'channel_status': 'str', + 'created_time': 'datetime' + } + + attribute_map = { + 'v2x_edge_id': 'v2x_edge_id', + 'name': 'name', + 'esn': 'esn', + 'position_description': 'position_description', + 'location': 'location', + 'status': 'status', + 'channel_status': 'channel_status', + 'created_time': 'created_time' + } + + def __init__(self, v2x_edge_id=None, name=None, esn=None, position_description=None, location=None, status=None, channel_status=None, created_time=None): + """V2XEdgeListResponseDTO + + The model defined in huaweicloud sdk + + :param v2x_edge_id: **参数说明**:Edge ID,用于唯一标识一个Edge。 + :type v2x_edge_id: str + :param name: **参数说明**:V2XEdge的名称 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + :type name: str + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str + :param position_description: **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + :type position_description: str + :param location: + :type location: :class:`huaweicloudsdkdris.v1.Location` + :param status: **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + :type status: str + :param channel_status: **参数说明**:业务通道状态。 + :type channel_status: str + :param created_time: **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + :type created_time: datetime + """ + + + + self._v2x_edge_id = None + self._name = None + self._esn = None + self._position_description = None + self._location = None + self._status = None + self._channel_status = None + self._created_time = None + self.discriminator = None + + if v2x_edge_id is not None: + self.v2x_edge_id = v2x_edge_id + if name is not None: + self.name = name + if esn is not None: + self.esn = esn + if position_description is not None: + self.position_description = position_description + if location is not None: + self.location = location + if status is not None: + self.status = status + if channel_status is not None: + self.channel_status = channel_status + if created_time is not None: + self.created_time = created_time + + @property + def v2x_edge_id(self): + """Gets the v2x_edge_id of this V2XEdgeListResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :return: The v2x_edge_id of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._v2x_edge_id + + @v2x_edge_id.setter + def v2x_edge_id(self, v2x_edge_id): + """Sets the v2x_edge_id of this V2XEdgeListResponseDTO. + + **参数说明**:Edge ID,用于唯一标识一个Edge。 + + :param v2x_edge_id: The v2x_edge_id of this V2XEdgeListResponseDTO. + :type v2x_edge_id: str + """ + self._v2x_edge_id = v2x_edge_id + + @property + def name(self): + """Gets the name of this V2XEdgeListResponseDTO. + + **参数说明**:V2XEdge的名称 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :return: The name of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V2XEdgeListResponseDTO. + + **参数说明**:V2XEdge的名称 **取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 + + :param name: The name of this V2XEdgeListResponseDTO. + :type name: str + """ + self._name = name + + @property + def esn(self): + """Gets the esn of this V2XEdgeListResponseDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this V2XEdgeListResponseDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this V2XEdgeListResponseDTO. + :type esn: str + """ + self._esn = esn + + @property + def position_description(self): + """Gets the position_description of this V2XEdgeListResponseDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :return: The position_description of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._position_description + + @position_description.setter + def position_description(self, position_description): + """Sets the position_description of this V2XEdgeListResponseDTO. + + **参数说明**:安装位置编码,由用户自定义。 **取值范围**:长度不低于1不超过128,只允许字母、数字、下划线(_)的组合。 + + :param position_description: The position_description of this V2XEdgeListResponseDTO. + :type position_description: str + """ + self._position_description = position_description + + @property + def location(self): + """Gets the location of this V2XEdgeListResponseDTO. + + :return: The location of this V2XEdgeListResponseDTO. + :rtype: :class:`huaweicloudsdkdris.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this V2XEdgeListResponseDTO. + + :param location: The location of this V2XEdgeListResponseDTO. + :type location: :class:`huaweicloudsdkdris.v1.Location` + """ + self._location = location + + @property + def status(self): + """Gets the status of this V2XEdgeListResponseDTO. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :return: The status of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V2XEdgeListResponseDTO. + + **参数说明**:状态。 **取值范围**: - UNINSTALLED: 待部署 - INSTALLED:部署中 - OFFLINE:离线 - ONLINE:在线: - UPGRADING:升级中 - DELETING:删除中 + + :param status: The status of this V2XEdgeListResponseDTO. + :type status: str + """ + self._status = status + + @property + def channel_status(self): + """Gets the channel_status of this V2XEdgeListResponseDTO. + + **参数说明**:业务通道状态。 + + :return: The channel_status of this V2XEdgeListResponseDTO. + :rtype: str + """ + return self._channel_status + + @channel_status.setter + def channel_status(self, channel_status): + """Sets the channel_status of this V2XEdgeListResponseDTO. + + **参数说明**:业务通道状态。 + + :param channel_status: The channel_status of this V2XEdgeListResponseDTO. + :type channel_status: str + """ + self._channel_status = channel_status + + @property + def created_time(self): + """Gets the created_time of this V2XEdgeListResponseDTO. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :return: The created_time of this V2XEdgeListResponseDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this V2XEdgeListResponseDTO. + + **参数说明**:创建时间。 格式:yyyy-MM-dd''T''HH:mm:ss''Z''。 例如 2020-09-01T01:37:01Z。 + + :param created_time: The created_time of this V2XEdgeListResponseDTO. + :type created_time: datetime + """ + self._created_time = created_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V2XEdgeListResponseDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/vehicle_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/vehicle_dto.py new file mode 100755 index 0000000000..9a1d8d942a --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/vehicle_dto.py @@ -0,0 +1,582 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VehicleDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vehicle_id': 'str', + 'plate_no': 'str', + 'vin': 'str', + 'obu_id': 'str', + 'imei': 'str', + 'brand': 'str', + 'model': 'str', + 'style': 'str', + 'fuel_type': 'str', + 'color': 'str', + 'plate_color': 'str', + 'access_type': 'str', + 'description': 'str', + 'last_modified_time': 'datetime', + 'created_time': 'datetime', + 'last_online_time': 'datetime', + 'status': 'str' + } + + attribute_map = { + 'vehicle_id': 'vehicle_id', + 'plate_no': 'plate_no', + 'vin': 'vin', + 'obu_id': 'obu_id', + 'imei': 'imei', + 'brand': 'brand', + 'model': 'model', + 'style': 'style', + 'fuel_type': 'fuel_type', + 'color': 'color', + 'plate_color': 'plate_color', + 'access_type': 'access_type', + 'description': 'description', + 'last_modified_time': 'last_modified_time', + 'created_time': 'created_time', + 'last_online_time': 'last_online_time', + 'status': 'status' + } + + def __init__(self, vehicle_id=None, plate_no=None, vin=None, obu_id=None, imei=None, brand=None, model=None, style=None, fuel_type=None, color=None, plate_color=None, access_type=None, description=None, last_modified_time=None, created_time=None, last_online_time=None, status=None): + """VehicleDTO + + The model defined in huaweicloud sdk + + :param vehicle_id: **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type vehicle_id: str + :param plate_no: **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type plate_no: str + :param vin: **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + :type vin: str + :param obu_id: \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + :type obu_id: str + :param imei: **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + :type imei: str + :param brand: **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + :type brand: str + :param model: **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + :type model: str + :param style: **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + :type style: str + :param fuel_type: **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + :type fuel_type: str + :param color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + :type color: str + :param plate_color: **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + :type plate_color: str + :param access_type: **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + :type access_type: str + :param description: **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type description: str + :param last_modified_time: **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_modified_time: datetime + :param created_time: **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type created_time: datetime + :param last_online_time: **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + :type last_online_time: datetime + :param status: **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + :type status: str + """ + + + + self._vehicle_id = None + self._plate_no = None + self._vin = None + self._obu_id = None + self._imei = None + self._brand = None + self._model = None + self._style = None + self._fuel_type = None + self._color = None + self._plate_color = None + self._access_type = None + self._description = None + self._last_modified_time = None + self._created_time = None + self._last_online_time = None + self._status = None + self.discriminator = None + + if vehicle_id is not None: + self.vehicle_id = vehicle_id + if plate_no is not None: + self.plate_no = plate_no + if vin is not None: + self.vin = vin + if obu_id is not None: + self.obu_id = obu_id + if imei is not None: + self.imei = imei + if brand is not None: + self.brand = brand + if model is not None: + self.model = model + if style is not None: + self.style = style + if fuel_type is not None: + self.fuel_type = fuel_type + if color is not None: + self.color = color + if plate_color is not None: + self.plate_color = plate_color + if access_type is not None: + self.access_type = access_type + if description is not None: + self.description = description + if last_modified_time is not None: + self.last_modified_time = last_modified_time + if created_time is not None: + self.created_time = created_time + if last_online_time is not None: + self.last_online_time = last_online_time + if status is not None: + self.status = status + + @property + def vehicle_id(self): + """Gets the vehicle_id of this VehicleDTO. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The vehicle_id of this VehicleDTO. + :rtype: str + """ + return self._vehicle_id + + @vehicle_id.setter + def vehicle_id(self, vehicle_id): + """Sets the vehicle_id of this VehicleDTO. + + **参数说明**:车辆唯一标识符。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param vehicle_id: The vehicle_id of this VehicleDTO. + :type vehicle_id: str + """ + self._vehicle_id = vehicle_id + + @property + def plate_no(self): + """Gets the plate_no of this VehicleDTO. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The plate_no of this VehicleDTO. + :rtype: str + """ + return self._plate_no + + @plate_no.setter + def plate_no(self, plate_no): + """Sets the plate_no of this VehicleDTO. + + **参数说明**:车牌号。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param plate_no: The plate_no of this VehicleDTO. + :type plate_no: str + """ + self._plate_no = plate_no + + @property + def vin(self): + """Gets the vin of this VehicleDTO. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :return: The vin of this VehicleDTO. + :rtype: str + """ + return self._vin + + @vin.setter + def vin(self, vin): + """Sets the vin of this VehicleDTO. + + **参数说明**:VIN码,车辆的17位VIN码。 **取值范围**:长度不超过17,只允许字母、数字字符的组合。 + + :param vin: The vin of this VehicleDTO. + :type vin: str + """ + self._vin = vin + + @property + def obu_id(self): + """Gets the obu_id of this VehicleDTO. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :return: The obu_id of this VehicleDTO. + :rtype: str + """ + return self._obu_id + + @obu_id.setter + def obu_id(self, obu_id): + """Sets the obu_id of this VehicleDTO. + + \"**参数说明**:车载OBU的唯一标识。 **取值范围**:长度不超过128,只允许字母、数字、以及_-等字符的组合。 + + :param obu_id: The obu_id of this VehicleDTO. + :type obu_id: str + """ + self._obu_id = obu_id + + @property + def imei(self): + """Gets the imei of this VehicleDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :return: The imei of this VehicleDTO. + :rtype: str + """ + return self._imei + + @imei.setter + def imei(self, imei): + """Sets the imei of this VehicleDTO. + + **参数说明**:IMEI,OBU上电子序列号。 **取值范围**:长度最小1最大255,支持纯数字的组合。 + + :param imei: The imei of this VehicleDTO. + :type imei: str + """ + self._imei = imei + + @property + def brand(self): + """Gets the brand of this VehicleDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The brand of this VehicleDTO. + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this VehicleDTO. + + **参数说明**:车俩品牌。 **取值范围**:长度最小1最大64,支持中文、字母、数字、下划线(_)、横杠(-)的组合。 + + :param brand: The brand of this VehicleDTO. + :type brand: str + """ + self._brand = brand + + @property + def model(self): + """Gets the model of this VehicleDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :return: The model of this VehicleDTO. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this VehicleDTO. + + **参数说明**:车牌型号。 **取值范围**:长度最小1最大64,支持字母、数字、下划线(_)、横杠(-)的组合。 + + :param model: The model of this VehicleDTO. + :type model: str + """ + self._model = model + + @property + def style(self): + """Gets the style of this VehicleDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :return: The style of this VehicleDTO. + :rtype: str + """ + return self._style + + @style.setter + def style(self, style): + """Sets the style of this VehicleDTO. + + **参数说明**:车辆年款。 **取值范围**:长度最小1最大64,支持纯数字的组合。 + + :param style: The style of this VehicleDTO. + :type style: str + """ + self._style = style + + @property + def fuel_type(self): + """Gets the fuel_type of this VehicleDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :return: The fuel_type of this VehicleDTO. + :rtype: str + """ + return self._fuel_type + + @fuel_type.setter + def fuel_type(self, fuel_type): + """Sets the fuel_type of this VehicleDTO. + + **参数说明**:定义车辆的燃料动力类。 **取值范围**: - unknownFuel:未知 - gasoline:汽油 - ethanol:乙醇 - diesel:柴油 - electric:电动 - hybrid:混合燃料类型 - hydrogen:氢气 - natGasLiquid:液化天然气 - natGasComp:压缩天然气 - propane:丙烷\" + + :param fuel_type: The fuel_type of this VehicleDTO. + :type fuel_type: str + """ + self._fuel_type = fuel_type + + @property + def color(self): + """Gets the color of this VehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :return: The color of this VehicleDTO. + :rtype: str + """ + return self._color + + @color.setter + def color(self, color): + """Sets the color of this VehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - gray:灰色 - red:红色 - blue:蓝色 - yellow:黄色 - orange:橙色 - brown:棕色 - green:绿色 - purple:紫色 - cyan:青色 - pink:粉红色 - transparent:透明色 - other:其他\" + + :param color: The color of this VehicleDTO. + :type color: str + """ + self._color = color + + @property + def plate_color(self): + """Gets the plate_color of this VehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :return: The plate_color of this VehicleDTO. + :rtype: str + """ + return self._plate_color + + @plate_color.setter + def plate_color(self, plate_color): + """Sets the plate_color of this VehicleDTO. + + **参数说明**:车辆颜色。 **取值范围**: - black:黑色 - white:白色 - blue:蓝色 - yellow:黄色 - green:绿色 + + :param plate_color: The plate_color of this VehicleDTO. + :type plate_color: str + """ + self._plate_color = plate_color + + @property + def access_type(self): + """Gets the access_type of this VehicleDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :return: The access_type of this VehicleDTO. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this VehicleDTO. + + **参数说明**:车辆接入网络的方式。 **取值范围**: - 5g - 4g - 3g - 2g - pc5Only - pc5And5g - pc5And4g - pc5And3g - pc5And2g + + :param access_type: The access_type of this VehicleDTO. + :type access_type: str + """ + self._access_type = access_type + + @property + def description(self): + """Gets the description of this VehicleDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The description of this VehicleDTO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this VehicleDTO. + + **参数说明**:描述。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param description: The description of this VehicleDTO. + :type description: str + """ + self._description = description + + @property + def last_modified_time(self): + """Gets the last_modified_time of this VehicleDTO. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_modified_time of this VehicleDTO. + :rtype: datetime + """ + return self._last_modified_time + + @last_modified_time.setter + def last_modified_time(self, last_modified_time): + """Sets the last_modified_time of this VehicleDTO. + + **参数说明**:最后修改的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_modified_time: The last_modified_time of this VehicleDTO. + :type last_modified_time: datetime + """ + self._last_modified_time = last_modified_time + + @property + def created_time(self): + """Gets the created_time of this VehicleDTO. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The created_time of this VehicleDTO. + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this VehicleDTO. + + **参数说明**:创建的时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param created_time: The created_time of this VehicleDTO. + :type created_time: datetime + """ + self._created_time = created_time + + @property + def last_online_time(self): + """Gets the last_online_time of this VehicleDTO. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :return: The last_online_time of this VehicleDTO. + :rtype: datetime + """ + return self._last_online_time + + @last_online_time.setter + def last_online_time(self, last_online_time): + """Sets the last_online_time of this VehicleDTO. + + **参数说明**:最后的在线时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' 例如 2020-09-01T01:37:01Z + + :param last_online_time: The last_online_time of this VehicleDTO. + :type last_online_time: datetime + """ + self._last_online_time = last_online_time + + @property + def status(self): + """Gets the status of this VehicleDTO. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :return: The status of this VehicleDTO. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this VehicleDTO. + + **参数说明**:设备状态。 **取值范围**: - ONLINE:在线 - OFFLINE:离线 - UNKNOWN:未知状态 + + :param status: The status of this VehicleDTO. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VehicleDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/volume_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/volume_dto.py new file mode 100755 index 0000000000..aa9823e1fd --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/volume_dto.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VolumeDTO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'type': 'str', + 'source': 'str', + 'destination': 'str', + 'read_only': 'bool' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'source': 'source', + 'destination': 'destination', + 'read_only': 'read_only' + } + + def __init__(self, name=None, type=None, source=None, destination=None, read_only=None): + """VolumeDTO + + The model defined in huaweicloud sdk + + :param name: **参数说明**:卷名称。 + :type name: str + :param type: **参数说明**:挂载类型。 + :type type: str + :param source: **参数说明**:源路径。 + :type source: str + :param destination: **参数说明**:卷挂载路径。 + :type destination: str + :param read_only: **参数说明**:只读,默认只读。 + :type read_only: bool + """ + + + + self._name = None + self._type = None + self._source = None + self._destination = None + self._read_only = None + self.discriminator = None + + self.name = name + if type is not None: + self.type = type + self.source = source + self.destination = destination + if read_only is not None: + self.read_only = read_only + + @property + def name(self): + """Gets the name of this VolumeDTO. + + **参数说明**:卷名称。 + + :return: The name of this VolumeDTO. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VolumeDTO. + + **参数说明**:卷名称。 + + :param name: The name of this VolumeDTO. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this VolumeDTO. + + **参数说明**:挂载类型。 + + :return: The type of this VolumeDTO. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this VolumeDTO. + + **参数说明**:挂载类型。 + + :param type: The type of this VolumeDTO. + :type type: str + """ + self._type = type + + @property + def source(self): + """Gets the source of this VolumeDTO. + + **参数说明**:源路径。 + + :return: The source of this VolumeDTO. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this VolumeDTO. + + **参数说明**:源路径。 + + :param source: The source of this VolumeDTO. + :type source: str + """ + self._source = source + + @property + def destination(self): + """Gets the destination of this VolumeDTO. + + **参数说明**:卷挂载路径。 + + :return: The destination of this VolumeDTO. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """Sets the destination of this VolumeDTO. + + **参数说明**:卷挂载路径。 + + :param destination: The destination of this VolumeDTO. + :type destination: str + """ + self._destination = destination + + @property + def read_only(self): + """Gets the read_only of this VolumeDTO. + + **参数说明**:只读,默认只读。 + + :return: The read_only of this VolumeDTO. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """Sets the read_only of this VolumeDTO. + + **参数说明**:只读,默认只读。 + + :param read_only: The read_only of this VolumeDTO. + :type read_only: bool + """ + self._read_only = read_only + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VolumeDTO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/__init__.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/__init__.py new file mode 100755 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py new file mode 100755 index 0000000000..36704723ce --- /dev/null +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class DrisRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DRIS") + + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ocv2x-api.cn-north-4.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id.") + + fields = static_fields if static_fields else cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("Unexpected region_id: " + region_id) + + diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt new file mode 100755 index 0000000000..6c93fa7fc0 --- /dev/null +++ b/huaweicloud-sdk-dris/requirements.txt @@ -0,0 +1 @@ +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py new file mode 100755 index 0000000000..50263b065e --- /dev/null +++ b/huaweicloud-sdk-dris/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkdris" +VERSION = "3.1.17" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "DRIS" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "DRIS"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-dris/test-requirements.txt b/huaweicloud-sdk-dris/test-requirements.txt new file mode 100755 index 0000000000..2702246c0e --- /dev/null +++ b/huaweicloud-sdk-dris/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 238328a3a8..4c910d3599 100755 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 024e7ff891..e4c482d291 100755 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 6b33789587..78915707de 100755 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 71b52ee2ca..f028639a98 100755 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 8199020111..2bd746c288 100755 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 3898a9afd1..821104233f 100755 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index 0e22ff8c7f..a70d3bd54d 100755 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 5e987d2ede..a13efaf89f 100755 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_healthmonitor_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_healthmonitor_req.py index 16208a9d0c..81168d2a38 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_healthmonitor_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_healthmonitor_req.py @@ -60,7 +60,7 @@ def __init__(self, tenant_id=None, name=None, admin_state_up=None, monitor_port= :type tenant_id: str :param name: 健康检查名称。 :type name: str - :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param monitor_port: 健康检查端口号。默认为空,表示使用后端云服务器组的端口。 :type monitor_port: int @@ -171,7 +171,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this CreateHealthmonitorReq. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this CreateHealthmonitorReq. :rtype: bool @@ -182,7 +182,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateHealthmonitorReq. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this CreateHealthmonitorReq. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_req.py index 6e2881bc42..6d67b0544f 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_req.py @@ -52,7 +52,7 @@ def __init__(self, tenant_id=None, name=None, description=None, vip_subnet_id=No :type name: str :param description: 负载均衡器的描述信息 :type description: str - :param vip_subnet_id: 负载均衡器所在的子网IPv4网络ID + :param vip_subnet_id: 负载均衡器所在的子网IPv4子网ID :type vip_subnet_id: str :param vip_address: 负载均衡器的虚拟IP。 :type vip_address: str @@ -162,7 +162,7 @@ def description(self, description): def vip_subnet_id(self): """Gets the vip_subnet_id of this CreateLoadbalancerReq. - 负载均衡器所在的子网IPv4网络ID + 负载均衡器所在的子网IPv4子网ID :return: The vip_subnet_id of this CreateLoadbalancerReq. :rtype: str @@ -173,7 +173,7 @@ def vip_subnet_id(self): def vip_subnet_id(self, vip_subnet_id): """Sets the vip_subnet_id of this CreateLoadbalancerReq. - 负载均衡器所在的子网IPv4网络ID + 负载均衡器所在的子网IPv4子网ID :param vip_subnet_id: The vip_subnet_id of this CreateLoadbalancerReq. :type vip_subnet_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_member_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_member_req.py index 865e0e78a7..2bee2f010b 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_member_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_member_req.py @@ -48,7 +48,7 @@ def __init__(self, tenant_id=None, name=None, admin_state_up=None, protocol_port :type tenant_id: str :param name: 后端云服务器名称。 :type name: str - :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param protocol_port: 后端端口和协议号 :type protocol_port: int @@ -131,7 +131,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this CreateMemberReq. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this CreateMemberReq. :rtype: bool @@ -142,7 +142,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateMemberReq. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this CreateMemberReq. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/healthmonitor_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/healthmonitor_resp.py index b4a8200955..b7f7e19149 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/healthmonitor_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/healthmonitor_resp.py @@ -68,7 +68,7 @@ def __init__(self, id=None, project_id=None, tenant_id=None, name=None, admin_st :type tenant_id: str :param name: 健康检查名称。 :type name: str - :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param monitor_port: 健康检查端口号。默认为空,表示使用后端云服务器组的端口。 :type monitor_port: int @@ -219,7 +219,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this HealthmonitorResp. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this HealthmonitorResp. :rtype: bool @@ -230,7 +230,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this HealthmonitorResp. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this HealthmonitorResp. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py index 16af447a89..a5cd091775 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py @@ -74,7 +74,7 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_sub :type name: str :param description: 负载均衡器的描述信息 :type description: str - :param vip_subnet_id: 负载均衡器所在的子网的IPv4网络ID。仅支持内网类型。 + :param vip_subnet_id: 负载均衡器所在的子网的IPv4子网ID。仅支持内网类型。 :type vip_subnet_id: str :param vip_port_id: 负载均衡器虚拟IP对应的端口ID :type vip_port_id: str @@ -237,7 +237,7 @@ def description(self, description): def vip_subnet_id(self): """Gets the vip_subnet_id of this LoadbalancerResp. - 负载均衡器所在的子网的IPv4网络ID。仅支持内网类型。 + 负载均衡器所在的子网的IPv4子网ID。仅支持内网类型。 :return: The vip_subnet_id of this LoadbalancerResp. :rtype: str @@ -248,7 +248,7 @@ def vip_subnet_id(self): def vip_subnet_id(self, vip_subnet_id): """Sets the vip_subnet_id of this LoadbalancerResp. - 负载均衡器所在的子网的IPv4网络ID。仅支持内网类型。 + 负载均衡器所在的子网的IPv4子网ID。仅支持内网类型。 :param vip_subnet_id: The vip_subnet_id of this LoadbalancerResp. :type vip_subnet_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/member_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/member_resp.py index a2600b04bd..b6541fff5b 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/member_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/member_resp.py @@ -58,7 +58,7 @@ def __init__(self, id=None, project_id=None, tenant_id=None, name=None, admin_st :type tenant_id: str :param name: 后端云服务器名称。 :type name: str - :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param protocol_port: 后端端口和协议号 :type protocol_port: int @@ -189,7 +189,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this MemberResp. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this MemberResp. :rtype: bool @@ -200,7 +200,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this MemberResp. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this MemberResp. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_healthmonitor_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_healthmonitor_req.py index 2bc1e53496..6ff540d52d 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_healthmonitor_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_healthmonitor_req.py @@ -54,7 +54,7 @@ def __init__(self, name=None, admin_state_up=None, monitor_port=None, timeout=No :param name: 健康检查名称。 :type name: str - :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param monitor_port: 健康检查端口号。默认为空,表示使用后端云服务器组的端口。 :type monitor_port: int @@ -140,7 +140,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this UpdateHealthmonitorReq. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this UpdateHealthmonitorReq. :rtype: bool @@ -151,7 +151,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateHealthmonitorReq. - 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this UpdateHealthmonitorReq. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_member_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_member_req.py index d114c76f06..11a0d215c8 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_member_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/update_member_req.py @@ -38,7 +38,7 @@ def __init__(self, name=None, admin_state_up=None, weight=None): :param name: 后端云服务器名称。 :type name: str - :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool :param weight: 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 :type weight: int @@ -84,7 +84,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this UpdateMemberReq. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :return: The admin_state_up of this UpdateMemberReq. :rtype: bool @@ -95,7 +95,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateMemberReq. - 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :param admin_state_up: The admin_state_up of this UpdateMemberReq. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 421fa3d395..6f58b53bf6 100755 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 53f99f701b..53f53bc85d 100755 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 92aea06789..0d1144ab1d 100755 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index d1fb0747df..2f98710780 100755 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 13ff0ee8fe..29207dc0d7 100755 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 604ed14132..9f4aa889f3 100755 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 8471d8b7bf..cdfd836a48 100755 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index f5d6958006..1ba62192c0 100755 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 2da0fb55ef..84b49284fb 100755 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 3ac9161803..c2a44d62e9 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 2b6c6be001..c5044e54e1 100755 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index c3cf4be515..052056d4eb 100755 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 67000b1077..08ccd3e853 100755 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 08f568c66c..320f249143 100755 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 4ce75307f3..95994b80e7 100755 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index f1adc73015..a0e7bfdadc 100755 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 417d324fb1..8e171e74fe 100755 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ies/requirements.txt b/huaweicloud-sdk-ies/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ies/requirements.txt +++ b/huaweicloud-sdk-ies/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ies/setup.py b/huaweicloud-sdk-ies/setup.py index 66a073ff57..5392ced12f 100755 --- a/huaweicloud-sdk-ies/setup.py +++ b/huaweicloud-sdk-ies/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkies" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 62fafca7f0..3fb52dc0c9 100755 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index a1cdfc1c0a..2a07120968 100755 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index bab0c17326..b0ba9afbd9 100755 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 8e63b41135..0444a6d31c 100755 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 9467393bcb..0d38f848d4 100755 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 346cd0ef3a..0a48d8ed1a 100755 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 0714ef9d19..d575366547 100755 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 0f23618abe..9afd0004ab 100755 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 0947e5a758..5ded808299 100755 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 2aa4600d2c..0c18065f37 100755 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 052be8fa01..4c3437bee7 100755 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 1e6fd7ca80..b999e5594f 100755 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index bb2352b568..5bffd15d4d 100755 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index 592f3dda84..73ca4c27d6 100755 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index f632411275..9e094f255b 100755 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 6f17765362..6740278b73 100755 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index ff40ee81d5..10b9158071 100755 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index b2d7c60eb9..0ff683be7c 100755 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 46b3b5fbae..cb710a2c07 100755 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 848752124c..63714be6f3 100755 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index e39c89208d..bea3037eec 100755 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index f467782584..292da7bee9 100755 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 92dd697d15..be8e6066b1 100755 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 651c5e3f13..c10cda6aaa 100755 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 33c7afdd75..c75e547b89 100755 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 2309eee769..ec30c2f36e 100755 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 36876e3007..8e33451172 100755 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 792d55654a..19c38ea0ef 100755 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 21731998fb..5bf9e40d11 100755 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index de2a6fc6fa..13ac6fde50 100755 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py index e557cfccb7..9ec9ae58b7 100755 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py @@ -12,8 +12,11 @@ class SaRegion: CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") + CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") + static_fields = { "cn-north-4": CN_NORTH_4, + "cn-east-3": CN_EAST_3, } @classmethod diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_async_client.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_async_client.py index a2261f8dd0..3e8e6e87aa 100755 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_async_client.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_async_client.py @@ -43,7 +43,7 @@ def new_builder(cls, clazz=None): return ClientBuilder(clazz) def check_product_healthy_async(self, request): - """检查心跳健康 + """检查心跳健康(仅支持华北-北京四使用) SA提供心跳接口,集成产品定时(每五分钟)发送心跳报文到态势感知,用来确认集成产品与态势感知之间的通路是否健康。 @@ -108,7 +108,7 @@ def check_product_healthy_with_http_info(self, request): request_type=request.__class__.__name__) def import_events_async(self, request): - """上报安全产品数据 + """上报安全产品数据(仅支持华北-北京四使用) 批量数据上报,每批次最多不超过50条。 diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_client.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_client.py index 912656e1a6..2ece28dc45 100755 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_client.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/sa_client.py @@ -43,7 +43,7 @@ def new_builder(cls, clazz=None): return ClientBuilder(clazz) def check_product_healthy(self, request): - """检查心跳健康 + """检查心跳健康(仅支持华北-北京四使用) SA提供心跳接口,集成产品定时(每五分钟)发送心跳报文到态势感知,用来确认集成产品与态势感知之间的通路是否健康。 @@ -107,7 +107,7 @@ def check_product_healthy_with_http_info(self, request): request_type=request.__class__.__name__) def import_events(self, request): - """上报安全产品数据 + """上报安全产品数据(仅支持华北-北京四使用) 批量数据上报,每批次最多不超过50条。 diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/__init__.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/__init__.py new file mode 100755 index 0000000000..9cd97eb6b6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/__init__.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import SaClient +from huaweicloudsdksa.v2.sa_client import SaClient +from huaweicloudsdksa.v2.sa_async_client import SaAsyncClient +# import models into sdk package +from huaweicloudsdksa.v2.model.action_info import ActionInfo +from huaweicloudsdksa.v2.model.action_instance_info import ActionInstanceInfo +from huaweicloudsdksa.v2.model.alert import Alert +from huaweicloudsdksa.v2.model.alert_detail import AlertDetail +from huaweicloudsdksa.v2.model.alert_rule import AlertRule +from huaweicloudsdksa.v2.model.alert_rule_metric import AlertRuleMetric +from huaweicloudsdksa.v2.model.alert_rule_template import AlertRuleTemplate +from huaweicloudsdksa.v2.model.alert_rule_trigger import AlertRuleTrigger +from huaweicloudsdksa.v2.model.approve_opinion_detail import ApproveOpinionDetail +from huaweicloudsdksa.v2.model.approve_playbook_info import ApprovePlaybookInfo +from huaweicloudsdksa.v2.model.audit_log_info import AuditLogInfo +from huaweicloudsdksa.v2.model.batch_order_alert_result import BatchOrderAlertResult +from huaweicloudsdksa.v2.model.change_alert_request import ChangeAlertRequest +from huaweicloudsdksa.v2.model.change_alert_request_body import ChangeAlertRequestBody +from huaweicloudsdksa.v2.model.change_alert_response import ChangeAlertResponse +from huaweicloudsdksa.v2.model.change_incident_request import ChangeIncidentRequest +from huaweicloudsdksa.v2.model.change_incident_request_body import ChangeIncidentRequestBody +from huaweicloudsdksa.v2.model.change_incident_response import ChangeIncidentResponse +from huaweicloudsdksa.v2.model.change_playbook_instance_request import ChangePlaybookInstanceRequest +from huaweicloudsdksa.v2.model.change_playbook_instance_response import ChangePlaybookInstanceResponse +from huaweicloudsdksa.v2.model.condition_info import ConditionInfo +from huaweicloudsdksa.v2.model.condition_item import ConditionItem +from huaweicloudsdksa.v2.model.conditon_info import ConditonInfo +from huaweicloudsdksa.v2.model.copy_playbook_info import CopyPlaybookInfo +from huaweicloudsdksa.v2.model.copy_playbook_version_request import CopyPlaybookVersionRequest +from huaweicloudsdksa.v2.model.copy_playbook_version_response import CopyPlaybookVersionResponse +from huaweicloudsdksa.v2.model.create_alert import CreateAlert +from huaweicloudsdksa.v2.model.create_alert_data_source import CreateAlertDataSource +from huaweicloudsdksa.v2.model.create_alert_request import CreateAlertRequest +from huaweicloudsdksa.v2.model.create_alert_request_body import CreateAlertRequestBody +from huaweicloudsdksa.v2.model.create_alert_response import CreateAlertResponse +from huaweicloudsdksa.v2.model.create_alert_rule_request import CreateAlertRuleRequest +from huaweicloudsdksa.v2.model.create_alert_rule_request_body import CreateAlertRuleRequestBody +from huaweicloudsdksa.v2.model.create_alert_rule_response import CreateAlertRuleResponse +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_request import CreateAlertRuleSimulationRequest +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_request_body import CreateAlertRuleSimulationRequestBody +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_response import CreateAlertRuleSimulationResponse +from huaweicloudsdksa.v2.model.create_batch_order_alerts_request import CreateBatchOrderAlertsRequest +from huaweicloudsdksa.v2.model.create_batch_order_alerts_response import CreateBatchOrderAlertsResponse +from huaweicloudsdksa.v2.model.create_dataobject_relation_request import CreateDataobjectRelationRequest +from huaweicloudsdksa.v2.model.create_dataobject_relation_response import CreateDataobjectRelationResponse +from huaweicloudsdksa.v2.model.create_incident import CreateIncident +from huaweicloudsdksa.v2.model.create_incident_incident_type import CreateIncidentIncidentType +from huaweicloudsdksa.v2.model.create_incident_malware import CreateIncidentMalware +from huaweicloudsdksa.v2.model.create_incident_network_list import CreateIncidentNetworkList +from huaweicloudsdksa.v2.model.create_incident_process import CreateIncidentProcess +from huaweicloudsdksa.v2.model.create_incident_request import CreateIncidentRequest +from huaweicloudsdksa.v2.model.create_incident_request_body import CreateIncidentRequestBody +from huaweicloudsdksa.v2.model.create_incident_resource_list import CreateIncidentResourceList +from huaweicloudsdksa.v2.model.create_incident_response import CreateIncidentResponse +from huaweicloudsdksa.v2.model.create_incident_user_info import CreateIncidentUserInfo +from huaweicloudsdksa.v2.model.create_indicator_detail import CreateIndicatorDetail +from huaweicloudsdksa.v2.model.create_indicator_detail_indicator_type import CreateIndicatorDetailIndicatorType +from huaweicloudsdksa.v2.model.create_indicator_request import CreateIndicatorRequest +from huaweicloudsdksa.v2.model.create_indicator_response import CreateIndicatorResponse +from huaweicloudsdksa.v2.model.create_playbook_action_request import CreatePlaybookActionRequest +from huaweicloudsdksa.v2.model.create_playbook_action_response import CreatePlaybookActionResponse +from huaweicloudsdksa.v2.model.create_playbook_approve_request import CreatePlaybookApproveRequest +from huaweicloudsdksa.v2.model.create_playbook_approve_response import CreatePlaybookApproveResponse +from huaweicloudsdksa.v2.model.create_playbook_info import CreatePlaybookInfo +from huaweicloudsdksa.v2.model.create_playbook_request import CreatePlaybookRequest +from huaweicloudsdksa.v2.model.create_playbook_response import CreatePlaybookResponse +from huaweicloudsdksa.v2.model.create_playbook_rule_request import CreatePlaybookRuleRequest +from huaweicloudsdksa.v2.model.create_playbook_rule_response import CreatePlaybookRuleResponse +from huaweicloudsdksa.v2.model.create_playbook_version_info import CreatePlaybookVersionInfo +from huaweicloudsdksa.v2.model.create_playbook_version_request import CreatePlaybookVersionRequest +from huaweicloudsdksa.v2.model.create_playbook_version_response import CreatePlaybookVersionResponse +from huaweicloudsdksa.v2.model.create_relation import CreateRelation +from huaweicloudsdksa.v2.model.create_rule_info import CreateRuleInfo +from huaweicloudsdksa.v2.model.data_class_ref_pojo import DataClassRefPojo +from huaweicloudsdksa.v2.model.data_class_type_detail_info import DataClassTypeDetailInfo +from huaweicloudsdksa.v2.model.data_response import DataResponse +from huaweicloudsdksa.v2.model.dataclass_info_ref import DataclassInfoRef +from huaweicloudsdksa.v2.model.dataobject_info import DataobjectInfo +from huaweicloudsdksa.v2.model.dataobject_search import DataobjectSearch +from huaweicloudsdksa.v2.model.dataobject_search_condition import DataobjectSearchCondition +from huaweicloudsdksa.v2.model.delete_alert import DeleteAlert +from huaweicloudsdksa.v2.model.delete_alert_request import DeleteAlertRequest +from huaweicloudsdksa.v2.model.delete_alert_response import DeleteAlertResponse +from huaweicloudsdksa.v2.model.delete_alert_rule_request import DeleteAlertRuleRequest +from huaweicloudsdksa.v2.model.delete_alert_rule_response import DeleteAlertRuleResponse +from huaweicloudsdksa.v2.model.delete_dataobject_relation_request import DeleteDataobjectRelationRequest +from huaweicloudsdksa.v2.model.delete_dataobject_relation_response import DeleteDataobjectRelationResponse +from huaweicloudsdksa.v2.model.delete_incident import DeleteIncident +from huaweicloudsdksa.v2.model.delete_incident_request import DeleteIncidentRequest +from huaweicloudsdksa.v2.model.delete_incident_response import DeleteIncidentResponse +from huaweicloudsdksa.v2.model.delete_indicator_request import DeleteIndicatorRequest +from huaweicloudsdksa.v2.model.delete_indicator_request_body import DeleteIndicatorRequestBody +from huaweicloudsdksa.v2.model.delete_indicator_response import DeleteIndicatorResponse +from huaweicloudsdksa.v2.model.delete_playbook_action_request import DeletePlaybookActionRequest +from huaweicloudsdksa.v2.model.delete_playbook_action_response import DeletePlaybookActionResponse +from huaweicloudsdksa.v2.model.delete_playbook_request import DeletePlaybookRequest +from huaweicloudsdksa.v2.model.delete_playbook_response import DeletePlaybookResponse +from huaweicloudsdksa.v2.model.delete_playbook_rule_request import DeletePlaybookRuleRequest +from huaweicloudsdksa.v2.model.delete_playbook_rule_response import DeletePlaybookRuleResponse +from huaweicloudsdksa.v2.model.delete_playbook_version_request import DeletePlaybookVersionRequest +from huaweicloudsdksa.v2.model.delete_playbook_version_response import DeletePlaybookVersionResponse +from huaweicloudsdksa.v2.model.disable_alert_rule_request import DisableAlertRuleRequest +from huaweicloudsdksa.v2.model.disable_alert_rule_response import DisableAlertRuleResponse +from huaweicloudsdksa.v2.model.enable_alert_rule_request import EnableAlertRuleRequest +from huaweicloudsdksa.v2.model.enable_alert_rule_response import EnableAlertRuleResponse +from huaweicloudsdksa.v2.model.incident import Incident +from huaweicloudsdksa.v2.model.incident_datasource import IncidentDatasource +from huaweicloudsdksa.v2.model.incident_detail import IncidentDetail +from huaweicloudsdksa.v2.model.incident_environment import IncidentEnvironment +from huaweicloudsdksa.v2.model.indicator_batch_operate_response import IndicatorBatchOperateResponse +from huaweicloudsdksa.v2.model.indicator_create_request import IndicatorCreateRequest +from huaweicloudsdksa.v2.model.indicator_data_object_detail import IndicatorDataObjectDetail +from huaweicloudsdksa.v2.model.indicator_detail import IndicatorDetail +from huaweicloudsdksa.v2.model.indicator_list_search_request import IndicatorListSearchRequest +from huaweicloudsdksa.v2.model.list_alert_detail import ListAlertDetail +from huaweicloudsdksa.v2.model.list_alert_rsp import ListAlertRsp +from huaweicloudsdksa.v2.model.list_alert_rule_metrics_request import ListAlertRuleMetricsRequest +from huaweicloudsdksa.v2.model.list_alert_rule_metrics_response import ListAlertRuleMetricsResponse +from huaweicloudsdksa.v2.model.list_alert_rule_templates_request import ListAlertRuleTemplatesRequest +from huaweicloudsdksa.v2.model.list_alert_rule_templates_response import ListAlertRuleTemplatesResponse +from huaweicloudsdksa.v2.model.list_alert_rules_request import ListAlertRulesRequest +from huaweicloudsdksa.v2.model.list_alert_rules_response import ListAlertRulesResponse +from huaweicloudsdksa.v2.model.list_alerts_request import ListAlertsRequest +from huaweicloudsdksa.v2.model.list_alerts_response import ListAlertsResponse +from huaweicloudsdksa.v2.model.list_dataobject_relation_request import ListDataobjectRelationRequest +from huaweicloudsdksa.v2.model.list_dataobject_relation_response import ListDataobjectRelationResponse +from huaweicloudsdksa.v2.model.list_incident_detail import ListIncidentDetail +from huaweicloudsdksa.v2.model.list_incident_types_request import ListIncidentTypesRequest +from huaweicloudsdksa.v2.model.list_incident_types_response import ListIncidentTypesResponse +from huaweicloudsdksa.v2.model.list_incidents_request import ListIncidentsRequest +from huaweicloudsdksa.v2.model.list_incidents_response import ListIncidentsResponse +from huaweicloudsdksa.v2.model.list_indicators_request import ListIndicatorsRequest +from huaweicloudsdksa.v2.model.list_indicators_response import ListIndicatorsResponse +from huaweicloudsdksa.v2.model.list_playbook_actions_request import ListPlaybookActionsRequest +from huaweicloudsdksa.v2.model.list_playbook_actions_response import ListPlaybookActionsResponse +from huaweicloudsdksa.v2.model.list_playbook_approves_request import ListPlaybookApprovesRequest +from huaweicloudsdksa.v2.model.list_playbook_approves_response import ListPlaybookApprovesResponse +from huaweicloudsdksa.v2.model.list_playbook_audit_logs_request import ListPlaybookAuditLogsRequest +from huaweicloudsdksa.v2.model.list_playbook_audit_logs_response import ListPlaybookAuditLogsResponse +from huaweicloudsdksa.v2.model.list_playbook_instances_request import ListPlaybookInstancesRequest +from huaweicloudsdksa.v2.model.list_playbook_instances_response import ListPlaybookInstancesResponse +from huaweicloudsdksa.v2.model.list_playbook_versions_request import ListPlaybookVersionsRequest +from huaweicloudsdksa.v2.model.list_playbook_versions_response import ListPlaybookVersionsResponse +from huaweicloudsdksa.v2.model.list_playbooks_request import ListPlaybooksRequest +from huaweicloudsdksa.v2.model.list_playbooks_response import ListPlaybooksResponse +from huaweicloudsdksa.v2.model.modify_action_info import ModifyActionInfo +from huaweicloudsdksa.v2.model.modify_playbook_info import ModifyPlaybookInfo +from huaweicloudsdksa.v2.model.modify_playbook_version_info import ModifyPlaybookVersionInfo +from huaweicloudsdksa.v2.model.modify_rule_info import ModifyRuleInfo +from huaweicloudsdksa.v2.model.operation_playbook_info import OperationPlaybookInfo +from huaweicloudsdksa.v2.model.order_alert import OrderAlert +from huaweicloudsdksa.v2.model.order_alert_event_content import OrderAlertEventContent +from huaweicloudsdksa.v2.model.order_alert_incident_content import OrderAlertIncidentContent +from huaweicloudsdksa.v2.model.order_alert_incident_content_incident_type import OrderAlertIncidentContentIncidentType +from huaweicloudsdksa.v2.model.playbook_info import PlaybookInfo +from huaweicloudsdksa.v2.model.playbook_info_ref import PlaybookInfoRef +from huaweicloudsdksa.v2.model.playbook_instance_info import PlaybookInstanceInfo +from huaweicloudsdksa.v2.model.playbook_instance_monitor_detail import PlaybookInstanceMonitorDetail +from huaweicloudsdksa.v2.model.playbook_instance_run_statistics import PlaybookInstanceRunStatistics +from huaweicloudsdksa.v2.model.playbook_statistic_detail import PlaybookStatisticDetail +from huaweicloudsdksa.v2.model.playbook_version_info import PlaybookVersionInfo +from huaweicloudsdksa.v2.model.playbook_version_list_entity import PlaybookVersionListEntity +from huaweicloudsdksa.v2.model.rule_info import RuleInfo +from huaweicloudsdksa.v2.model.schedule import Schedule +from huaweicloudsdksa.v2.model.show_alert_detail import ShowAlertDetail +from huaweicloudsdksa.v2.model.show_alert_detail_dataclass_ref import ShowAlertDetailDataclassRef +from huaweicloudsdksa.v2.model.show_alert_request import ShowAlertRequest +from huaweicloudsdksa.v2.model.show_alert_response import ShowAlertResponse +from huaweicloudsdksa.v2.model.show_alert_rsp import ShowAlertRsp +from huaweicloudsdksa.v2.model.show_alert_rsp_datasource import ShowAlertRspDatasource +from huaweicloudsdksa.v2.model.show_alert_rsp_environment import ShowAlertRspEnvironment +from huaweicloudsdksa.v2.model.show_alert_rsp_file_info import ShowAlertRspFileInfo +from huaweicloudsdksa.v2.model.show_alert_rsp_malware import ShowAlertRspMalware +from huaweicloudsdksa.v2.model.show_alert_rsp_network_list import ShowAlertRspNetworkList +from huaweicloudsdksa.v2.model.show_alert_rsp_process import ShowAlertRspProcess +from huaweicloudsdksa.v2.model.show_alert_rsp_remediation import ShowAlertRspRemediation +from huaweicloudsdksa.v2.model.show_alert_rsp_resource_list import ShowAlertRspResourceList +from huaweicloudsdksa.v2.model.show_alert_rsp_user_info import ShowAlertRspUserInfo +from huaweicloudsdksa.v2.model.show_alert_rule_request import ShowAlertRuleRequest +from huaweicloudsdksa.v2.model.show_alert_rule_response import ShowAlertRuleResponse +from huaweicloudsdksa.v2.model.show_alert_rule_template_request import ShowAlertRuleTemplateRequest +from huaweicloudsdksa.v2.model.show_alert_rule_template_response import ShowAlertRuleTemplateResponse +from huaweicloudsdksa.v2.model.show_incident import ShowIncident +from huaweicloudsdksa.v2.model.show_incident_detail import ShowIncidentDetail +from huaweicloudsdksa.v2.model.show_incident_request import ShowIncidentRequest +from huaweicloudsdksa.v2.model.show_incident_response import ShowIncidentResponse +from huaweicloudsdksa.v2.model.show_indicator_detail_request import ShowIndicatorDetailRequest +from huaweicloudsdksa.v2.model.show_indicator_detail_response import ShowIndicatorDetailResponse +from huaweicloudsdksa.v2.model.show_playbook_instance_request import ShowPlaybookInstanceRequest +from huaweicloudsdksa.v2.model.show_playbook_instance_response import ShowPlaybookInstanceResponse +from huaweicloudsdksa.v2.model.show_playbook_monitors_request import ShowPlaybookMonitorsRequest +from huaweicloudsdksa.v2.model.show_playbook_monitors_response import ShowPlaybookMonitorsResponse +from huaweicloudsdksa.v2.model.show_playbook_request import ShowPlaybookRequest +from huaweicloudsdksa.v2.model.show_playbook_response import ShowPlaybookResponse +from huaweicloudsdksa.v2.model.show_playbook_rule_request import ShowPlaybookRuleRequest +from huaweicloudsdksa.v2.model.show_playbook_rule_response import ShowPlaybookRuleResponse +from huaweicloudsdksa.v2.model.show_playbook_statistics_request import ShowPlaybookStatisticsRequest +from huaweicloudsdksa.v2.model.show_playbook_statistics_response import ShowPlaybookStatisticsResponse +from huaweicloudsdksa.v2.model.show_playbook_topology_request import ShowPlaybookTopologyRequest +from huaweicloudsdksa.v2.model.show_playbook_topology_response import ShowPlaybookTopologyResponse +from huaweicloudsdksa.v2.model.show_playbook_version_request import ShowPlaybookVersionRequest +from huaweicloudsdksa.v2.model.show_playbook_version_response import ShowPlaybookVersionResponse +from huaweicloudsdksa.v2.model.update_alert_rule_request import UpdateAlertRuleRequest +from huaweicloudsdksa.v2.model.update_alert_rule_request_body import UpdateAlertRuleRequestBody +from huaweicloudsdksa.v2.model.update_alert_rule_response import UpdateAlertRuleResponse +from huaweicloudsdksa.v2.model.update_indicator_request import UpdateIndicatorRequest +from huaweicloudsdksa.v2.model.update_indicator_request_body import UpdateIndicatorRequestBody +from huaweicloudsdksa.v2.model.update_indicator_response import UpdateIndicatorResponse +from huaweicloudsdksa.v2.model.update_playbook_action_request import UpdatePlaybookActionRequest +from huaweicloudsdksa.v2.model.update_playbook_action_response import UpdatePlaybookActionResponse +from huaweicloudsdksa.v2.model.update_playbook_request import UpdatePlaybookRequest +from huaweicloudsdksa.v2.model.update_playbook_response import UpdatePlaybookResponse +from huaweicloudsdksa.v2.model.update_playbook_rule_request import UpdatePlaybookRuleRequest +from huaweicloudsdksa.v2.model.update_playbook_rule_response import UpdatePlaybookRuleResponse +from huaweicloudsdksa.v2.model.update_playbook_version_request import UpdatePlaybookVersionRequest +from huaweicloudsdksa.v2.model.update_playbook_version_response import UpdatePlaybookVersionResponse + diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/__init__.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/__init__.py new file mode 100755 index 0000000000..963ca61792 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/__init__.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdksa.v2.model.action_info import ActionInfo +from huaweicloudsdksa.v2.model.action_instance_info import ActionInstanceInfo +from huaweicloudsdksa.v2.model.alert import Alert +from huaweicloudsdksa.v2.model.alert_detail import AlertDetail +from huaweicloudsdksa.v2.model.alert_rule import AlertRule +from huaweicloudsdksa.v2.model.alert_rule_metric import AlertRuleMetric +from huaweicloudsdksa.v2.model.alert_rule_template import AlertRuleTemplate +from huaweicloudsdksa.v2.model.alert_rule_trigger import AlertRuleTrigger +from huaweicloudsdksa.v2.model.approve_opinion_detail import ApproveOpinionDetail +from huaweicloudsdksa.v2.model.approve_playbook_info import ApprovePlaybookInfo +from huaweicloudsdksa.v2.model.audit_log_info import AuditLogInfo +from huaweicloudsdksa.v2.model.batch_order_alert_result import BatchOrderAlertResult +from huaweicloudsdksa.v2.model.change_alert_request import ChangeAlertRequest +from huaweicloudsdksa.v2.model.change_alert_request_body import ChangeAlertRequestBody +from huaweicloudsdksa.v2.model.change_alert_response import ChangeAlertResponse +from huaweicloudsdksa.v2.model.change_incident_request import ChangeIncidentRequest +from huaweicloudsdksa.v2.model.change_incident_request_body import ChangeIncidentRequestBody +from huaweicloudsdksa.v2.model.change_incident_response import ChangeIncidentResponse +from huaweicloudsdksa.v2.model.change_playbook_instance_request import ChangePlaybookInstanceRequest +from huaweicloudsdksa.v2.model.change_playbook_instance_response import ChangePlaybookInstanceResponse +from huaweicloudsdksa.v2.model.condition_info import ConditionInfo +from huaweicloudsdksa.v2.model.condition_item import ConditionItem +from huaweicloudsdksa.v2.model.conditon_info import ConditonInfo +from huaweicloudsdksa.v2.model.copy_playbook_info import CopyPlaybookInfo +from huaweicloudsdksa.v2.model.copy_playbook_version_request import CopyPlaybookVersionRequest +from huaweicloudsdksa.v2.model.copy_playbook_version_response import CopyPlaybookVersionResponse +from huaweicloudsdksa.v2.model.create_alert import CreateAlert +from huaweicloudsdksa.v2.model.create_alert_data_source import CreateAlertDataSource +from huaweicloudsdksa.v2.model.create_alert_request import CreateAlertRequest +from huaweicloudsdksa.v2.model.create_alert_request_body import CreateAlertRequestBody +from huaweicloudsdksa.v2.model.create_alert_response import CreateAlertResponse +from huaweicloudsdksa.v2.model.create_alert_rule_request import CreateAlertRuleRequest +from huaweicloudsdksa.v2.model.create_alert_rule_request_body import CreateAlertRuleRequestBody +from huaweicloudsdksa.v2.model.create_alert_rule_response import CreateAlertRuleResponse +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_request import CreateAlertRuleSimulationRequest +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_request_body import CreateAlertRuleSimulationRequestBody +from huaweicloudsdksa.v2.model.create_alert_rule_simulation_response import CreateAlertRuleSimulationResponse +from huaweicloudsdksa.v2.model.create_batch_order_alerts_request import CreateBatchOrderAlertsRequest +from huaweicloudsdksa.v2.model.create_batch_order_alerts_response import CreateBatchOrderAlertsResponse +from huaweicloudsdksa.v2.model.create_dataobject_relation_request import CreateDataobjectRelationRequest +from huaweicloudsdksa.v2.model.create_dataobject_relation_response import CreateDataobjectRelationResponse +from huaweicloudsdksa.v2.model.create_incident import CreateIncident +from huaweicloudsdksa.v2.model.create_incident_incident_type import CreateIncidentIncidentType +from huaweicloudsdksa.v2.model.create_incident_malware import CreateIncidentMalware +from huaweicloudsdksa.v2.model.create_incident_network_list import CreateIncidentNetworkList +from huaweicloudsdksa.v2.model.create_incident_process import CreateIncidentProcess +from huaweicloudsdksa.v2.model.create_incident_request import CreateIncidentRequest +from huaweicloudsdksa.v2.model.create_incident_request_body import CreateIncidentRequestBody +from huaweicloudsdksa.v2.model.create_incident_resource_list import CreateIncidentResourceList +from huaweicloudsdksa.v2.model.create_incident_response import CreateIncidentResponse +from huaweicloudsdksa.v2.model.create_incident_user_info import CreateIncidentUserInfo +from huaweicloudsdksa.v2.model.create_indicator_detail import CreateIndicatorDetail +from huaweicloudsdksa.v2.model.create_indicator_detail_indicator_type import CreateIndicatorDetailIndicatorType +from huaweicloudsdksa.v2.model.create_indicator_request import CreateIndicatorRequest +from huaweicloudsdksa.v2.model.create_indicator_response import CreateIndicatorResponse +from huaweicloudsdksa.v2.model.create_playbook_action_request import CreatePlaybookActionRequest +from huaweicloudsdksa.v2.model.create_playbook_action_response import CreatePlaybookActionResponse +from huaweicloudsdksa.v2.model.create_playbook_approve_request import CreatePlaybookApproveRequest +from huaweicloudsdksa.v2.model.create_playbook_approve_response import CreatePlaybookApproveResponse +from huaweicloudsdksa.v2.model.create_playbook_info import CreatePlaybookInfo +from huaweicloudsdksa.v2.model.create_playbook_request import CreatePlaybookRequest +from huaweicloudsdksa.v2.model.create_playbook_response import CreatePlaybookResponse +from huaweicloudsdksa.v2.model.create_playbook_rule_request import CreatePlaybookRuleRequest +from huaweicloudsdksa.v2.model.create_playbook_rule_response import CreatePlaybookRuleResponse +from huaweicloudsdksa.v2.model.create_playbook_version_info import CreatePlaybookVersionInfo +from huaweicloudsdksa.v2.model.create_playbook_version_request import CreatePlaybookVersionRequest +from huaweicloudsdksa.v2.model.create_playbook_version_response import CreatePlaybookVersionResponse +from huaweicloudsdksa.v2.model.create_relation import CreateRelation +from huaweicloudsdksa.v2.model.create_rule_info import CreateRuleInfo +from huaweicloudsdksa.v2.model.data_class_ref_pojo import DataClassRefPojo +from huaweicloudsdksa.v2.model.data_class_type_detail_info import DataClassTypeDetailInfo +from huaweicloudsdksa.v2.model.data_response import DataResponse +from huaweicloudsdksa.v2.model.dataclass_info_ref import DataclassInfoRef +from huaweicloudsdksa.v2.model.dataobject_info import DataobjectInfo +from huaweicloudsdksa.v2.model.dataobject_search import DataobjectSearch +from huaweicloudsdksa.v2.model.dataobject_search_condition import DataobjectSearchCondition +from huaweicloudsdksa.v2.model.delete_alert import DeleteAlert +from huaweicloudsdksa.v2.model.delete_alert_request import DeleteAlertRequest +from huaweicloudsdksa.v2.model.delete_alert_response import DeleteAlertResponse +from huaweicloudsdksa.v2.model.delete_alert_rule_request import DeleteAlertRuleRequest +from huaweicloudsdksa.v2.model.delete_alert_rule_response import DeleteAlertRuleResponse +from huaweicloudsdksa.v2.model.delete_dataobject_relation_request import DeleteDataobjectRelationRequest +from huaweicloudsdksa.v2.model.delete_dataobject_relation_response import DeleteDataobjectRelationResponse +from huaweicloudsdksa.v2.model.delete_incident import DeleteIncident +from huaweicloudsdksa.v2.model.delete_incident_request import DeleteIncidentRequest +from huaweicloudsdksa.v2.model.delete_incident_response import DeleteIncidentResponse +from huaweicloudsdksa.v2.model.delete_indicator_request import DeleteIndicatorRequest +from huaweicloudsdksa.v2.model.delete_indicator_request_body import DeleteIndicatorRequestBody +from huaweicloudsdksa.v2.model.delete_indicator_response import DeleteIndicatorResponse +from huaweicloudsdksa.v2.model.delete_playbook_action_request import DeletePlaybookActionRequest +from huaweicloudsdksa.v2.model.delete_playbook_action_response import DeletePlaybookActionResponse +from huaweicloudsdksa.v2.model.delete_playbook_request import DeletePlaybookRequest +from huaweicloudsdksa.v2.model.delete_playbook_response import DeletePlaybookResponse +from huaweicloudsdksa.v2.model.delete_playbook_rule_request import DeletePlaybookRuleRequest +from huaweicloudsdksa.v2.model.delete_playbook_rule_response import DeletePlaybookRuleResponse +from huaweicloudsdksa.v2.model.delete_playbook_version_request import DeletePlaybookVersionRequest +from huaweicloudsdksa.v2.model.delete_playbook_version_response import DeletePlaybookVersionResponse +from huaweicloudsdksa.v2.model.disable_alert_rule_request import DisableAlertRuleRequest +from huaweicloudsdksa.v2.model.disable_alert_rule_response import DisableAlertRuleResponse +from huaweicloudsdksa.v2.model.enable_alert_rule_request import EnableAlertRuleRequest +from huaweicloudsdksa.v2.model.enable_alert_rule_response import EnableAlertRuleResponse +from huaweicloudsdksa.v2.model.incident import Incident +from huaweicloudsdksa.v2.model.incident_datasource import IncidentDatasource +from huaweicloudsdksa.v2.model.incident_detail import IncidentDetail +from huaweicloudsdksa.v2.model.incident_environment import IncidentEnvironment +from huaweicloudsdksa.v2.model.indicator_batch_operate_response import IndicatorBatchOperateResponse +from huaweicloudsdksa.v2.model.indicator_create_request import IndicatorCreateRequest +from huaweicloudsdksa.v2.model.indicator_data_object_detail import IndicatorDataObjectDetail +from huaweicloudsdksa.v2.model.indicator_detail import IndicatorDetail +from huaweicloudsdksa.v2.model.indicator_list_search_request import IndicatorListSearchRequest +from huaweicloudsdksa.v2.model.list_alert_detail import ListAlertDetail +from huaweicloudsdksa.v2.model.list_alert_rsp import ListAlertRsp +from huaweicloudsdksa.v2.model.list_alert_rule_metrics_request import ListAlertRuleMetricsRequest +from huaweicloudsdksa.v2.model.list_alert_rule_metrics_response import ListAlertRuleMetricsResponse +from huaweicloudsdksa.v2.model.list_alert_rule_templates_request import ListAlertRuleTemplatesRequest +from huaweicloudsdksa.v2.model.list_alert_rule_templates_response import ListAlertRuleTemplatesResponse +from huaweicloudsdksa.v2.model.list_alert_rules_request import ListAlertRulesRequest +from huaweicloudsdksa.v2.model.list_alert_rules_response import ListAlertRulesResponse +from huaweicloudsdksa.v2.model.list_alerts_request import ListAlertsRequest +from huaweicloudsdksa.v2.model.list_alerts_response import ListAlertsResponse +from huaweicloudsdksa.v2.model.list_dataobject_relation_request import ListDataobjectRelationRequest +from huaweicloudsdksa.v2.model.list_dataobject_relation_response import ListDataobjectRelationResponse +from huaweicloudsdksa.v2.model.list_incident_detail import ListIncidentDetail +from huaweicloudsdksa.v2.model.list_incident_types_request import ListIncidentTypesRequest +from huaweicloudsdksa.v2.model.list_incident_types_response import ListIncidentTypesResponse +from huaweicloudsdksa.v2.model.list_incidents_request import ListIncidentsRequest +from huaweicloudsdksa.v2.model.list_incidents_response import ListIncidentsResponse +from huaweicloudsdksa.v2.model.list_indicators_request import ListIndicatorsRequest +from huaweicloudsdksa.v2.model.list_indicators_response import ListIndicatorsResponse +from huaweicloudsdksa.v2.model.list_playbook_actions_request import ListPlaybookActionsRequest +from huaweicloudsdksa.v2.model.list_playbook_actions_response import ListPlaybookActionsResponse +from huaweicloudsdksa.v2.model.list_playbook_approves_request import ListPlaybookApprovesRequest +from huaweicloudsdksa.v2.model.list_playbook_approves_response import ListPlaybookApprovesResponse +from huaweicloudsdksa.v2.model.list_playbook_audit_logs_request import ListPlaybookAuditLogsRequest +from huaweicloudsdksa.v2.model.list_playbook_audit_logs_response import ListPlaybookAuditLogsResponse +from huaweicloudsdksa.v2.model.list_playbook_instances_request import ListPlaybookInstancesRequest +from huaweicloudsdksa.v2.model.list_playbook_instances_response import ListPlaybookInstancesResponse +from huaweicloudsdksa.v2.model.list_playbook_versions_request import ListPlaybookVersionsRequest +from huaweicloudsdksa.v2.model.list_playbook_versions_response import ListPlaybookVersionsResponse +from huaweicloudsdksa.v2.model.list_playbooks_request import ListPlaybooksRequest +from huaweicloudsdksa.v2.model.list_playbooks_response import ListPlaybooksResponse +from huaweicloudsdksa.v2.model.modify_action_info import ModifyActionInfo +from huaweicloudsdksa.v2.model.modify_playbook_info import ModifyPlaybookInfo +from huaweicloudsdksa.v2.model.modify_playbook_version_info import ModifyPlaybookVersionInfo +from huaweicloudsdksa.v2.model.modify_rule_info import ModifyRuleInfo +from huaweicloudsdksa.v2.model.operation_playbook_info import OperationPlaybookInfo +from huaweicloudsdksa.v2.model.order_alert import OrderAlert +from huaweicloudsdksa.v2.model.order_alert_event_content import OrderAlertEventContent +from huaweicloudsdksa.v2.model.order_alert_incident_content import OrderAlertIncidentContent +from huaweicloudsdksa.v2.model.order_alert_incident_content_incident_type import OrderAlertIncidentContentIncidentType +from huaweicloudsdksa.v2.model.playbook_info import PlaybookInfo +from huaweicloudsdksa.v2.model.playbook_info_ref import PlaybookInfoRef +from huaweicloudsdksa.v2.model.playbook_instance_info import PlaybookInstanceInfo +from huaweicloudsdksa.v2.model.playbook_instance_monitor_detail import PlaybookInstanceMonitorDetail +from huaweicloudsdksa.v2.model.playbook_instance_run_statistics import PlaybookInstanceRunStatistics +from huaweicloudsdksa.v2.model.playbook_statistic_detail import PlaybookStatisticDetail +from huaweicloudsdksa.v2.model.playbook_version_info import PlaybookVersionInfo +from huaweicloudsdksa.v2.model.playbook_version_list_entity import PlaybookVersionListEntity +from huaweicloudsdksa.v2.model.rule_info import RuleInfo +from huaweicloudsdksa.v2.model.schedule import Schedule +from huaweicloudsdksa.v2.model.show_alert_detail import ShowAlertDetail +from huaweicloudsdksa.v2.model.show_alert_detail_dataclass_ref import ShowAlertDetailDataclassRef +from huaweicloudsdksa.v2.model.show_alert_request import ShowAlertRequest +from huaweicloudsdksa.v2.model.show_alert_response import ShowAlertResponse +from huaweicloudsdksa.v2.model.show_alert_rsp import ShowAlertRsp +from huaweicloudsdksa.v2.model.show_alert_rsp_datasource import ShowAlertRspDatasource +from huaweicloudsdksa.v2.model.show_alert_rsp_environment import ShowAlertRspEnvironment +from huaweicloudsdksa.v2.model.show_alert_rsp_file_info import ShowAlertRspFileInfo +from huaweicloudsdksa.v2.model.show_alert_rsp_malware import ShowAlertRspMalware +from huaweicloudsdksa.v2.model.show_alert_rsp_network_list import ShowAlertRspNetworkList +from huaweicloudsdksa.v2.model.show_alert_rsp_process import ShowAlertRspProcess +from huaweicloudsdksa.v2.model.show_alert_rsp_remediation import ShowAlertRspRemediation +from huaweicloudsdksa.v2.model.show_alert_rsp_resource_list import ShowAlertRspResourceList +from huaweicloudsdksa.v2.model.show_alert_rsp_user_info import ShowAlertRspUserInfo +from huaweicloudsdksa.v2.model.show_alert_rule_request import ShowAlertRuleRequest +from huaweicloudsdksa.v2.model.show_alert_rule_response import ShowAlertRuleResponse +from huaweicloudsdksa.v2.model.show_alert_rule_template_request import ShowAlertRuleTemplateRequest +from huaweicloudsdksa.v2.model.show_alert_rule_template_response import ShowAlertRuleTemplateResponse +from huaweicloudsdksa.v2.model.show_incident import ShowIncident +from huaweicloudsdksa.v2.model.show_incident_detail import ShowIncidentDetail +from huaweicloudsdksa.v2.model.show_incident_request import ShowIncidentRequest +from huaweicloudsdksa.v2.model.show_incident_response import ShowIncidentResponse +from huaweicloudsdksa.v2.model.show_indicator_detail_request import ShowIndicatorDetailRequest +from huaweicloudsdksa.v2.model.show_indicator_detail_response import ShowIndicatorDetailResponse +from huaweicloudsdksa.v2.model.show_playbook_instance_request import ShowPlaybookInstanceRequest +from huaweicloudsdksa.v2.model.show_playbook_instance_response import ShowPlaybookInstanceResponse +from huaweicloudsdksa.v2.model.show_playbook_monitors_request import ShowPlaybookMonitorsRequest +from huaweicloudsdksa.v2.model.show_playbook_monitors_response import ShowPlaybookMonitorsResponse +from huaweicloudsdksa.v2.model.show_playbook_request import ShowPlaybookRequest +from huaweicloudsdksa.v2.model.show_playbook_response import ShowPlaybookResponse +from huaweicloudsdksa.v2.model.show_playbook_rule_request import ShowPlaybookRuleRequest +from huaweicloudsdksa.v2.model.show_playbook_rule_response import ShowPlaybookRuleResponse +from huaweicloudsdksa.v2.model.show_playbook_statistics_request import ShowPlaybookStatisticsRequest +from huaweicloudsdksa.v2.model.show_playbook_statistics_response import ShowPlaybookStatisticsResponse +from huaweicloudsdksa.v2.model.show_playbook_topology_request import ShowPlaybookTopologyRequest +from huaweicloudsdksa.v2.model.show_playbook_topology_response import ShowPlaybookTopologyResponse +from huaweicloudsdksa.v2.model.show_playbook_version_request import ShowPlaybookVersionRequest +from huaweicloudsdksa.v2.model.show_playbook_version_response import ShowPlaybookVersionResponse +from huaweicloudsdksa.v2.model.update_alert_rule_request import UpdateAlertRuleRequest +from huaweicloudsdksa.v2.model.update_alert_rule_request_body import UpdateAlertRuleRequestBody +from huaweicloudsdksa.v2.model.update_alert_rule_response import UpdateAlertRuleResponse +from huaweicloudsdksa.v2.model.update_indicator_request import UpdateIndicatorRequest +from huaweicloudsdksa.v2.model.update_indicator_request_body import UpdateIndicatorRequestBody +from huaweicloudsdksa.v2.model.update_indicator_response import UpdateIndicatorResponse +from huaweicloudsdksa.v2.model.update_playbook_action_request import UpdatePlaybookActionRequest +from huaweicloudsdksa.v2.model.update_playbook_action_response import UpdatePlaybookActionResponse +from huaweicloudsdksa.v2.model.update_playbook_request import UpdatePlaybookRequest +from huaweicloudsdksa.v2.model.update_playbook_response import UpdatePlaybookResponse +from huaweicloudsdksa.v2.model.update_playbook_rule_request import UpdatePlaybookRuleRequest +from huaweicloudsdksa.v2.model.update_playbook_rule_response import UpdatePlaybookRuleResponse +from huaweicloudsdksa.v2.model.update_playbook_version_request import UpdatePlaybookVersionRequest +from huaweicloudsdksa.v2.model.update_playbook_version_response import UpdatePlaybookVersionResponse diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_info.py new file mode 100755 index 0000000000..bbb708c721 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_info.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ActionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'action_type': 'str', + 'action_id': 'str', + 'sort_order': 'int', + 'playbook_id': 'str', + 'playbook_version_id': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'action_type': 'action_type', + 'action_id': 'action_id', + 'sort_order': 'sort_order', + 'playbook_id': 'playbook_id', + 'playbook_version_id': 'playbook_version_id', + 'project_id': 'project_id' + } + + def __init__(self, id=None, name=None, description=None, action_type=None, action_id=None, sort_order=None, playbook_id=None, playbook_version_id=None, project_id=None): + """ActionInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param description: The description, display only + :type description: str + :param action_type: Type of action, aopworkflow, Script, Task and so on. + :type action_type: str + :param action_id: action id + :type action_id: str + :param sort_order: sort_order + :type sort_order: int + :param playbook_id: 剧本ID + :type playbook_id: str + :param playbook_version_id: 剧本版本ID + :type playbook_version_id: str + :param project_id: project_id + :type project_id: str + """ + + + + self._id = None + self._name = None + self._description = None + self._action_type = None + self._action_id = None + self._sort_order = None + self._playbook_id = None + self._playbook_version_id = None + self._project_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if action_type is not None: + self.action_type = action_type + if action_id is not None: + self.action_id = action_id + if sort_order is not None: + self.sort_order = sort_order + if playbook_id is not None: + self.playbook_id = playbook_id + if playbook_version_id is not None: + self.playbook_version_id = playbook_version_id + if project_id is not None: + self.project_id = project_id + + @property + def id(self): + """Gets the id of this ActionInfo. + + Id value + + :return: The id of this ActionInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ActionInfo. + + Id value + + :param id: The id of this ActionInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ActionInfo. + + The name, display only + + :return: The name of this ActionInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ActionInfo. + + The name, display only + + :param name: The name of this ActionInfo. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ActionInfo. + + The description, display only + + :return: The description of this ActionInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ActionInfo. + + The description, display only + + :param description: The description of this ActionInfo. + :type description: str + """ + self._description = description + + @property + def action_type(self): + """Gets the action_type of this ActionInfo. + + Type of action, aopworkflow, Script, Task and so on. + + :return: The action_type of this ActionInfo. + :rtype: str + """ + return self._action_type + + @action_type.setter + def action_type(self, action_type): + """Sets the action_type of this ActionInfo. + + Type of action, aopworkflow, Script, Task and so on. + + :param action_type: The action_type of this ActionInfo. + :type action_type: str + """ + self._action_type = action_type + + @property + def action_id(self): + """Gets the action_id of this ActionInfo. + + action id + + :return: The action_id of this ActionInfo. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this ActionInfo. + + action id + + :param action_id: The action_id of this ActionInfo. + :type action_id: str + """ + self._action_id = action_id + + @property + def sort_order(self): + """Gets the sort_order of this ActionInfo. + + sort_order + + :return: The sort_order of this ActionInfo. + :rtype: int + """ + return self._sort_order + + @sort_order.setter + def sort_order(self, sort_order): + """Sets the sort_order of this ActionInfo. + + sort_order + + :param sort_order: The sort_order of this ActionInfo. + :type sort_order: int + """ + self._sort_order = sort_order + + @property + def playbook_id(self): + """Gets the playbook_id of this ActionInfo. + + 剧本ID + + :return: The playbook_id of this ActionInfo. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this ActionInfo. + + 剧本ID + + :param playbook_id: The playbook_id of this ActionInfo. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def playbook_version_id(self): + """Gets the playbook_version_id of this ActionInfo. + + 剧本版本ID + + :return: The playbook_version_id of this ActionInfo. + :rtype: str + """ + return self._playbook_version_id + + @playbook_version_id.setter + def playbook_version_id(self, playbook_version_id): + """Sets the playbook_version_id of this ActionInfo. + + 剧本版本ID + + :param playbook_version_id: The playbook_version_id of this ActionInfo. + :type playbook_version_id: str + """ + self._playbook_version_id = playbook_version_id + + @property + def project_id(self): + """Gets the project_id of this ActionInfo. + + project_id + + :return: The project_id of this ActionInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ActionInfo. + + project_id + + :param project_id: The project_id of this ActionInfo. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ActionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_instance_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_instance_info.py new file mode 100755 index 0000000000..b13ea6dafe --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/action_instance_info.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ActionInstanceInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'action': 'ActionInfo', + 'instance_log': 'AuditLogInfo' + } + + attribute_map = { + 'action': 'action', + 'instance_log': 'instance_log' + } + + def __init__(self, action=None, instance_log=None): + """ActionInstanceInfo + + The model defined in huaweicloud sdk + + :param action: + :type action: :class:`huaweicloudsdksa.v2.ActionInfo` + :param instance_log: + :type instance_log: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + + + + self._action = None + self._instance_log = None + self.discriminator = None + + if action is not None: + self.action = action + if instance_log is not None: + self.instance_log = instance_log + + @property + def action(self): + """Gets the action of this ActionInstanceInfo. + + :return: The action of this ActionInstanceInfo. + :rtype: :class:`huaweicloudsdksa.v2.ActionInfo` + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ActionInstanceInfo. + + :param action: The action of this ActionInstanceInfo. + :type action: :class:`huaweicloudsdksa.v2.ActionInfo` + """ + self._action = action + + @property + def instance_log(self): + """Gets the instance_log of this ActionInstanceInfo. + + :return: The instance_log of this ActionInstanceInfo. + :rtype: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + return self._instance_log + + @instance_log.setter + def instance_log(self, instance_log): + """Sets the instance_log of this ActionInstanceInfo. + + :param instance_log: The instance_log of this ActionInstanceInfo. + :type instance_log: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + self._instance_log = instance_log + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ActionInstanceInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert.py new file mode 100755 index 0000000000..653797c269 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert.py @@ -0,0 +1,1233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Alert: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'datasource': 'ShowAlertRspDatasource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'int', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'alert_type': 'object', + 'network_list': 'list[ShowAlertRspNetworkList]', + 'resource_list': 'list[ShowAlertRspResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'bool', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'ShowAlertRspMalware', + 'system_info': 'object', + 'process': 'list[ShowAlertRspProcess]', + 'user_info': 'list[ShowAlertRspUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_alert_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'datasource': 'datasource', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'alert_type': 'alert_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_alert_table': 'system_alert_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, datasource=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, alert_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_alert_table=None, id=None, workspace_id=None): + """Alert + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param datasource: + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: int + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param alert_type: 事件分类 + :type alert_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: bool + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_alert_table: 系统信息 + :type system_alert_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._datasource = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._alert_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_alert_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if datasource is not None: + self.datasource = datasource + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if alert_type is not None: + self.alert_type = alert_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_alert_table is not None: + self.system_alert_table = system_alert_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this Alert. + + 版本 + + :return: The version of this Alert. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Alert. + + 版本 + + :param version: The version of this Alert. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this Alert. + + :return: The environment of this Alert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this Alert. + + :param environment: The environment of this Alert. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def datasource(self): + """Gets the datasource of this Alert. + + :return: The datasource of this Alert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + return self._datasource + + @datasource.setter + def datasource(self, datasource): + """Sets the datasource of this Alert. + + :param datasource: The datasource of this Alert. + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + self._datasource = datasource + + @property + def first_observed_time(self): + """Gets the first_observed_time of this Alert. + + Update time + + :return: The first_observed_time of this Alert. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this Alert. + + Update time + + :param first_observed_time: The first_observed_time of this Alert. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this Alert. + + Update time + + :return: The last_observed_time of this Alert. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this Alert. + + Update time + + :param last_observed_time: The last_observed_time of this Alert. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this Alert. + + Create time + + :return: The create_time of this Alert. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Alert. + + Create time + + :param create_time: The create_time of this Alert. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this Alert. + + Update time + + :return: The arrive_time of this Alert. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this Alert. + + Update time + + :param arrive_time: The arrive_time of this Alert. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this Alert. + + The name, display only + + :return: The title of this Alert. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this Alert. + + The name, display only + + :param title: The title of this Alert. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this Alert. + + The description, display only + + :return: The description of this Alert. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Alert. + + The description, display only + + :param description: The description of this Alert. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this Alert. + + 事件URL链接 + + :return: The source_url of this Alert. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this Alert. + + 事件URL链接 + + :param source_url: The source_url of this Alert. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this Alert. + + 事件发生次数 + + :return: The count of this Alert. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Alert. + + 事件发生次数 + + :param count: The count of this Alert. + :type count: int + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this Alert. + + 置信度 + + :return: The confidence of this Alert. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this Alert. + + 置信度 + + :param confidence: The confidence of this Alert. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this Alert. + + 严重性等级 + + :return: The serverity of this Alert. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this Alert. + + 严重性等级 + + :param serverity: The serverity of this Alert. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this Alert. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this Alert. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this Alert. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this Alert. + :type criticality: int + """ + self._criticality = criticality + + @property + def alert_type(self): + """Gets the alert_type of this Alert. + + 事件分类 + + :return: The alert_type of this Alert. + :rtype: object + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this Alert. + + 事件分类 + + :param alert_type: The alert_type of this Alert. + :type alert_type: object + """ + self._alert_type = alert_type + + @property + def network_list(self): + """Gets the network_list of this Alert. + + network_list + + :return: The network_list of this Alert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this Alert. + + network_list + + :param network_list: The network_list of this Alert. + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this Alert. + + network_list + + :return: The resource_list of this Alert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this Alert. + + network_list + + :param resource_list: The resource_list of this Alert. + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this Alert. + + :return: The remediation of this Alert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this Alert. + + :param remediation: The remediation of this Alert. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this Alert. + + 验证状态 + + :return: The verification_state of this Alert. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this Alert. + + 验证状态 + + :param verification_state: The verification_state of this Alert. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this Alert. + + 事件处理状态 + + :return: The handle_status of this Alert. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this Alert. + + 事件处理状态 + + :param handle_status: The handle_status of this Alert. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this Alert. + + sla + + :return: The sla of this Alert. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this Alert. + + sla + + :param sla: The sla of this Alert. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this Alert. + + Create time + + :return: The update_time of this Alert. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this Alert. + + Create time + + :param update_time: The update_time of this Alert. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this Alert. + + Create time + + :return: The close_time of this Alert. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this Alert. + + Create time + + :param close_time: The close_time of this Alert. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this Alert. + + 周期/处置阶段编号 + + :return: The chop_phase of this Alert. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this Alert. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this Alert. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this Alert. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this Alert. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this Alert. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this Alert. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this Alert. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this Alert. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this Alert. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this Alert. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this Alert. + + 是否为调试事件. + + :return: The simulation of this Alert. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this Alert. + + 是否为调试事件. + + :param simulation: The simulation of this Alert. + :type simulation: bool + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this Alert. + + 委托人 + + :return: The actor of this Alert. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this Alert. + + 委托人 + + :param actor: The actor of this Alert. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this Alert. + + The name, display only + + :return: The owner of this Alert. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this Alert. + + The name, display only + + :param owner: The owner of this Alert. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this Alert. + + The name, display only + + :return: The cteator of this Alert. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this Alert. + + The name, display only + + :param cteator: The cteator of this Alert. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this Alert. + + 关闭原因 + + :return: The close_reason of this Alert. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this Alert. + + 关闭原因 + + :param close_reason: The close_reason of this Alert. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this Alert. + + 关闭原因 + + :return: The close_comment of this Alert. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this Alert. + + 关闭原因 + + :param close_comment: The close_comment of this Alert. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this Alert. + + :return: The malware of this Alert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this Alert. + + :param malware: The malware of this Alert. + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this Alert. + + 系统信息 + + :return: The system_info of this Alert. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this Alert. + + 系统信息 + + :param system_info: The system_info of this Alert. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this Alert. + + 进程信息 + + :return: The process of this Alert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this Alert. + + 进程信息 + + :param process: The process of this Alert. + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this Alert. + + 用户信息 + + :return: The user_info of this Alert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this Alert. + + 用户信息 + + :param user_info: The user_info of this Alert. + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this Alert. + + 文件信息 + + :return: The file_info of this Alert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this Alert. + + 文件信息 + + :param file_info: The file_info of this Alert. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_alert_table(self): + """Gets the system_alert_table of this Alert. + + 系统信息 + + :return: The system_alert_table of this Alert. + :rtype: object + """ + return self._system_alert_table + + @system_alert_table.setter + def system_alert_table(self, system_alert_table): + """Sets the system_alert_table of this Alert. + + 系统信息 + + :param system_alert_table: The system_alert_table of this Alert. + :type system_alert_table: object + """ + self._system_alert_table = system_alert_table + + @property + def id(self): + """Gets the id of this Alert. + + Id value + + :return: The id of this Alert. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Alert. + + Id value + + :param id: The id of this Alert. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this Alert. + + workspace id + + :return: The workspace_id of this Alert. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this Alert. + + workspace id + + :param workspace_id: The workspace_id of this Alert. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Alert): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_detail.py new file mode 100755 index 0000000000..1dc1568803 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlertDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'Alert', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'id': 'str', + 'type': 'str', + 'version': 'int', + 'format_version': 'int', + 'dataclass_ref': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'id': 'id', + 'type': 'type', + 'version': 'version', + 'format_version': 'format_version', + 'dataclass_ref': 'dataclass_ref' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, id=None, type=None, version=None, format_version=None, dataclass_ref=None): + """AlertDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.Alert` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param id: The name, display only + :type id: str + :param type: The name, display only + :type type: str + :param version: The name, display only + :type version: int + :param format_version: The name, display only + :type format_version: int + :param dataclass_ref: + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._id = None + self._type = None + self._version = None + self._format_version = None + self._dataclass_ref = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if id is not None: + self.id = id + if type is not None: + self.type = type + if version is not None: + self.version = version + if format_version is not None: + self.format_version = format_version + if dataclass_ref is not None: + self.dataclass_ref = dataclass_ref + + @property + def data_object(self): + """Gets the data_object of this AlertDetail. + + :return: The data_object of this AlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.Alert` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this AlertDetail. + + :param data_object: The data_object of this AlertDetail. + :type data_object: :class:`huaweicloudsdksa.v2.Alert` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this AlertDetail. + + Create time + + :return: The create_time of this AlertDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AlertDetail. + + Create time + + :param create_time: The create_time of this AlertDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this AlertDetail. + + Update time + + :return: The update_time of this AlertDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this AlertDetail. + + Update time + + :param update_time: The update_time of this AlertDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this AlertDetail. + + Id value + + :return: The project_id of this AlertDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this AlertDetail. + + Id value + + :param project_id: The project_id of this AlertDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this AlertDetail. + + Id value + + :return: The workspace_id of this AlertDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this AlertDetail. + + Id value + + :param workspace_id: The workspace_id of this AlertDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def id(self): + """Gets the id of this AlertDetail. + + The name, display only + + :return: The id of this AlertDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AlertDetail. + + The name, display only + + :param id: The id of this AlertDetail. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this AlertDetail. + + The name, display only + + :return: The type of this AlertDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AlertDetail. + + The name, display only + + :param type: The type of this AlertDetail. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this AlertDetail. + + The name, display only + + :return: The version of this AlertDetail. + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this AlertDetail. + + The name, display only + + :param version: The version of this AlertDetail. + :type version: int + """ + self._version = version + + @property + def format_version(self): + """Gets the format_version of this AlertDetail. + + The name, display only + + :return: The format_version of this AlertDetail. + :rtype: int + """ + return self._format_version + + @format_version.setter + def format_version(self, format_version): + """Sets the format_version of this AlertDetail. + + The name, display only + + :param format_version: The format_version of this AlertDetail. + :type format_version: int + """ + self._format_version = format_version + + @property + def dataclass_ref(self): + """Gets the dataclass_ref of this AlertDetail. + + :return: The dataclass_ref of this AlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass_ref + + @dataclass_ref.setter + def dataclass_ref(self, dataclass_ref): + """Sets the dataclass_ref of this AlertDetail. + + :param dataclass_ref: The dataclass_ref of this AlertDetail. + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass_ref = dataclass_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlertDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule.py new file mode 100755 index 0000000000..6c688cf78b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule.py @@ -0,0 +1,597 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlertRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'pipe_id': 'str', + 'pipe_name': 'str', + 'create_by': 'str', + 'create_time': 'int', + 'update_by': 'str', + 'update_time': 'int', + 'delete_time': 'int', + 'rule_name': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'pipe_id': 'pipe_id', + 'pipe_name': 'pipe_name', + 'create_by': 'create_by', + 'create_time': 'create_time', + 'update_by': 'update_by', + 'update_time': 'update_time', + 'delete_time': 'delete_time', + 'rule_name': 'rule_name', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers' + } + + def __init__(self, rule_id=None, pipe_id=None, pipe_name=None, create_by=None, create_time=None, update_by=None, update_time=None, delete_time=None, rule_name=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None): + """AlertRule + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param pipe_id: pipe_id + :type pipe_id: str + :param pipe_name: pipe_name + :type pipe_name: str + :param create_by: create_by + :type create_by: str + :param create_time: create_time + :type create_time: int + :param update_by: update_by + :type update_by: str + :param update_time: update_time + :type update_time: int + :param delete_time: delete_time + :type delete_time: int + :param rule_name: rule_name + :type rule_name: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + + + + self._rule_id = None + self._pipe_id = None + self._pipe_name = None + self._create_by = None + self._create_time = None + self._update_by = None + self._update_time = None + self._delete_time = None + self._rule_name = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self.discriminator = None + + self.rule_id = rule_id + self.pipe_id = pipe_id + self.pipe_name = pipe_name + self.create_by = create_by + self.create_time = create_time + self.update_by = update_by + self.update_time = update_time + if delete_time is not None: + self.delete_time = delete_time + self.rule_name = rule_name + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + self.status = status + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + + @property + def rule_id(self): + """Gets the rule_id of this AlertRule. + + rule_id + + :return: The rule_id of this AlertRule. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this AlertRule. + + rule_id + + :param rule_id: The rule_id of this AlertRule. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def pipe_id(self): + """Gets the pipe_id of this AlertRule. + + pipe_id + + :return: The pipe_id of this AlertRule. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this AlertRule. + + pipe_id + + :param pipe_id: The pipe_id of this AlertRule. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def pipe_name(self): + """Gets the pipe_name of this AlertRule. + + pipe_name + + :return: The pipe_name of this AlertRule. + :rtype: str + """ + return self._pipe_name + + @pipe_name.setter + def pipe_name(self, pipe_name): + """Sets the pipe_name of this AlertRule. + + pipe_name + + :param pipe_name: The pipe_name of this AlertRule. + :type pipe_name: str + """ + self._pipe_name = pipe_name + + @property + def create_by(self): + """Gets the create_by of this AlertRule. + + create_by + + :return: The create_by of this AlertRule. + :rtype: str + """ + return self._create_by + + @create_by.setter + def create_by(self, create_by): + """Sets the create_by of this AlertRule. + + create_by + + :param create_by: The create_by of this AlertRule. + :type create_by: str + """ + self._create_by = create_by + + @property + def create_time(self): + """Gets the create_time of this AlertRule. + + create_time + + :return: The create_time of this AlertRule. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this AlertRule. + + create_time + + :param create_time: The create_time of this AlertRule. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_by(self): + """Gets the update_by of this AlertRule. + + update_by + + :return: The update_by of this AlertRule. + :rtype: str + """ + return self._update_by + + @update_by.setter + def update_by(self, update_by): + """Sets the update_by of this AlertRule. + + update_by + + :param update_by: The update_by of this AlertRule. + :type update_by: str + """ + self._update_by = update_by + + @property + def update_time(self): + """Gets the update_time of this AlertRule. + + update_time + + :return: The update_time of this AlertRule. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this AlertRule. + + update_time + + :param update_time: The update_time of this AlertRule. + :type update_time: int + """ + self._update_time = update_time + + @property + def delete_time(self): + """Gets the delete_time of this AlertRule. + + delete_time + + :return: The delete_time of this AlertRule. + :rtype: int + """ + return self._delete_time + + @delete_time.setter + def delete_time(self, delete_time): + """Sets the delete_time of this AlertRule. + + delete_time + + :param delete_time: The delete_time of this AlertRule. + :type delete_time: int + """ + self._delete_time = delete_time + + @property + def rule_name(self): + """Gets the rule_name of this AlertRule. + + rule_name + + :return: The rule_name of this AlertRule. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this AlertRule. + + rule_name + + :param rule_name: The rule_name of this AlertRule. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def query(self): + """Gets the query of this AlertRule. + + query + + :return: The query of this AlertRule. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this AlertRule. + + query + + :param query: The query of this AlertRule. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this AlertRule. + + query_type. SQL, CBSL. + + :return: The query_type of this AlertRule. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this AlertRule. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this AlertRule. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this AlertRule. + + status. ENABLED, DISABLED + + :return: The status of this AlertRule. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AlertRule. + + status. ENABLED, DISABLED + + :param status: The status of this AlertRule. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this AlertRule. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this AlertRule. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this AlertRule. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this AlertRule. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this AlertRule. + + accumulated_times + + :return: The accumulated_times of this AlertRule. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this AlertRule. + + accumulated_times + + :param accumulated_times: The accumulated_times of this AlertRule. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this AlertRule. + + custom_properties + + :return: The custom_properties of this AlertRule. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this AlertRule. + + custom_properties + + :param custom_properties: The custom_properties of this AlertRule. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this AlertRule. + + event_grouping + + :return: The event_grouping of this AlertRule. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this AlertRule. + + event_grouping + + :param event_grouping: The event_grouping of this AlertRule. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this AlertRule. + + :return: The schedule of this AlertRule. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this AlertRule. + + :param schedule: The schedule of this AlertRule. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this AlertRule. + + triggers + + :return: The triggers of this AlertRule. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this AlertRule. + + triggers + + :param triggers: The triggers of this AlertRule. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlertRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_metric.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_metric.py new file mode 100755 index 0000000000..c3a3967cd7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_metric.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlertRuleMetric: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'category': 'str', + 'metric': 'dict(str, float)' + } + + attribute_map = { + 'category': 'category', + 'metric': 'metric' + } + + def __init__(self, category=None, metric=None): + """AlertRuleMetric + + The model defined in huaweicloud sdk + + :param category: category. GROUP_COUNT + :type category: str + :param metric: metric + :type metric: dict(str, float) + """ + + + + self._category = None + self._metric = None + self.discriminator = None + + self.category = category + self.metric = metric + + @property + def category(self): + """Gets the category of this AlertRuleMetric. + + category. GROUP_COUNT + + :return: The category of this AlertRuleMetric. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AlertRuleMetric. + + category. GROUP_COUNT + + :param category: The category of this AlertRuleMetric. + :type category: str + """ + self._category = category + + @property + def metric(self): + """Gets the metric of this AlertRuleMetric. + + metric + + :return: The metric of this AlertRuleMetric. + :rtype: dict(str, float) + """ + return self._metric + + @metric.setter + def metric(self, metric): + """Sets the metric of this AlertRuleMetric. + + metric + + :param metric: The metric of this AlertRuleMetric. + :type metric: dict(str, float) + """ + self._metric = metric + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlertRuleMetric): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_template.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_template.py new file mode 100755 index 0000000000..b5c224c004 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_template.py @@ -0,0 +1,427 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlertRuleTemplate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'template_id': 'str', + 'update_time': 'int', + 'template_name': 'str', + 'data_source': 'str', + 'version': 'str', + 'query': 'str', + 'query_type': 'str', + 'severity': 'str', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]' + } + + attribute_map = { + 'template_id': 'template_id', + 'update_time': 'update_time', + 'template_name': 'template_name', + 'data_source': 'data_source', + 'version': 'version', + 'query': 'query', + 'query_type': 'query_type', + 'severity': 'severity', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers' + } + + def __init__(self, template_id=None, update_time=None, template_name=None, data_source=None, version=None, query=None, query_type=None, severity=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None): + """AlertRuleTemplate + + The model defined in huaweicloud sdk + + :param template_id: template_id + :type template_id: str + :param update_time: update_time + :type update_time: int + :param template_name: template_name + :type template_name: str + :param data_source: data_source + :type data_source: str + :param version: version + :type version: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + + + + self._template_id = None + self._update_time = None + self._template_name = None + self._data_source = None + self._version = None + self._query = None + self._query_type = None + self._severity = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self.discriminator = None + + self.template_id = template_id + self.update_time = update_time + self.template_name = template_name + self.data_source = data_source + self.version = version + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + self.severity = severity + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + + @property + def template_id(self): + """Gets the template_id of this AlertRuleTemplate. + + template_id + + :return: The template_id of this AlertRuleTemplate. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this AlertRuleTemplate. + + template_id + + :param template_id: The template_id of this AlertRuleTemplate. + :type template_id: str + """ + self._template_id = template_id + + @property + def update_time(self): + """Gets the update_time of this AlertRuleTemplate. + + update_time + + :return: The update_time of this AlertRuleTemplate. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this AlertRuleTemplate. + + update_time + + :param update_time: The update_time of this AlertRuleTemplate. + :type update_time: int + """ + self._update_time = update_time + + @property + def template_name(self): + """Gets the template_name of this AlertRuleTemplate. + + template_name + + :return: The template_name of this AlertRuleTemplate. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this AlertRuleTemplate. + + template_name + + :param template_name: The template_name of this AlertRuleTemplate. + :type template_name: str + """ + self._template_name = template_name + + @property + def data_source(self): + """Gets the data_source of this AlertRuleTemplate. + + data_source + + :return: The data_source of this AlertRuleTemplate. + :rtype: str + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this AlertRuleTemplate. + + data_source + + :param data_source: The data_source of this AlertRuleTemplate. + :type data_source: str + """ + self._data_source = data_source + + @property + def version(self): + """Gets the version of this AlertRuleTemplate. + + version + + :return: The version of this AlertRuleTemplate. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this AlertRuleTemplate. + + version + + :param version: The version of this AlertRuleTemplate. + :type version: str + """ + self._version = version + + @property + def query(self): + """Gets the query of this AlertRuleTemplate. + + query + + :return: The query of this AlertRuleTemplate. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this AlertRuleTemplate. + + query + + :param query: The query of this AlertRuleTemplate. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this AlertRuleTemplate. + + query_type. SQL, CBSL. + + :return: The query_type of this AlertRuleTemplate. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this AlertRuleTemplate. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this AlertRuleTemplate. + :type query_type: str + """ + self._query_type = query_type + + @property + def severity(self): + """Gets the severity of this AlertRuleTemplate. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this AlertRuleTemplate. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this AlertRuleTemplate. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this AlertRuleTemplate. + :type severity: str + """ + self._severity = severity + + @property + def custom_properties(self): + """Gets the custom_properties of this AlertRuleTemplate. + + custom_properties + + :return: The custom_properties of this AlertRuleTemplate. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this AlertRuleTemplate. + + custom_properties + + :param custom_properties: The custom_properties of this AlertRuleTemplate. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this AlertRuleTemplate. + + event_grouping + + :return: The event_grouping of this AlertRuleTemplate. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this AlertRuleTemplate. + + event_grouping + + :param event_grouping: The event_grouping of this AlertRuleTemplate. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this AlertRuleTemplate. + + :return: The schedule of this AlertRuleTemplate. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this AlertRuleTemplate. + + :param schedule: The schedule of this AlertRuleTemplate. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this AlertRuleTemplate. + + triggers + + :return: The triggers of this AlertRuleTemplate. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this AlertRuleTemplate. + + triggers + + :param triggers: The triggers of this AlertRuleTemplate. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlertRuleTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_trigger.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_trigger.py new file mode 100755 index 0000000000..cff3a5f8c1 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/alert_rule_trigger.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlertRuleTrigger: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'mode': 'str', + 'operator': 'str', + 'expression': 'str', + 'severity': 'str', + 'accumulated_times': 'int' + } + + attribute_map = { + 'mode': 'mode', + 'operator': 'operator', + 'expression': 'expression', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times' + } + + def __init__(self, mode=None, operator=None, expression=None, severity=None, accumulated_times=None): + """AlertRuleTrigger + + The model defined in huaweicloud sdk + + :param mode: mode. COUNT. + :type mode: str + :param operator: operator. EQ equal, NE not equal, GT greater than, LT less than. + :type operator: str + :param expression: expression + :type expression: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + """ + + + + self._mode = None + self._operator = None + self._expression = None + self._severity = None + self._accumulated_times = None + self.discriminator = None + + if mode is not None: + self.mode = mode + if operator is not None: + self.operator = operator + self.expression = expression + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + + @property + def mode(self): + """Gets the mode of this AlertRuleTrigger. + + mode. COUNT. + + :return: The mode of this AlertRuleTrigger. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this AlertRuleTrigger. + + mode. COUNT. + + :param mode: The mode of this AlertRuleTrigger. + :type mode: str + """ + self._mode = mode + + @property + def operator(self): + """Gets the operator of this AlertRuleTrigger. + + operator. EQ equal, NE not equal, GT greater than, LT less than. + + :return: The operator of this AlertRuleTrigger. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this AlertRuleTrigger. + + operator. EQ equal, NE not equal, GT greater than, LT less than. + + :param operator: The operator of this AlertRuleTrigger. + :type operator: str + """ + self._operator = operator + + @property + def expression(self): + """Gets the expression of this AlertRuleTrigger. + + expression + + :return: The expression of this AlertRuleTrigger. + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this AlertRuleTrigger. + + expression + + :param expression: The expression of this AlertRuleTrigger. + :type expression: str + """ + self._expression = expression + + @property + def severity(self): + """Gets the severity of this AlertRuleTrigger. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this AlertRuleTrigger. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this AlertRuleTrigger. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this AlertRuleTrigger. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this AlertRuleTrigger. + + accumulated_times + + :return: The accumulated_times of this AlertRuleTrigger. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this AlertRuleTrigger. + + accumulated_times + + :param accumulated_times: The accumulated_times of this AlertRuleTrigger. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlertRuleTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_opinion_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_opinion_detail.py new file mode 100755 index 0000000000..f78e27a6e7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_opinion_detail.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ApproveOpinionDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'result': 'str', + 'content': 'str' + } + + attribute_map = { + 'result': 'result', + 'content': 'content' + } + + def __init__(self, result=None, content=None): + """ApproveOpinionDetail + + The model defined in huaweicloud sdk + + :param result: Approve Result. + :type result: str + :param content: Approve content. + :type content: str + """ + + + + self._result = None + self._content = None + self.discriminator = None + + if result is not None: + self.result = result + if content is not None: + self.content = content + + @property + def result(self): + """Gets the result of this ApproveOpinionDetail. + + Approve Result. + + :return: The result of this ApproveOpinionDetail. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ApproveOpinionDetail. + + Approve Result. + + :param result: The result of this ApproveOpinionDetail. + :type result: str + """ + self._result = result + + @property + def content(self): + """Gets the content of this ApproveOpinionDetail. + + Approve content. + + :return: The content of this ApproveOpinionDetail. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this ApproveOpinionDetail. + + Approve content. + + :param content: The content of this ApproveOpinionDetail. + :type content: str + """ + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApproveOpinionDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_playbook_info.py new file mode 100755 index 0000000000..58899f5dc1 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/approve_playbook_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ApprovePlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'result': 'str', + 'content': 'str' + } + + attribute_map = { + 'result': 'result', + 'content': 'content' + } + + def __init__(self, result=None, content=None): + """ApprovePlaybookInfo + + The model defined in huaweicloud sdk + + :param result: 审核结果 通过:PASS 不通过:UN_PASS + :type result: str + :param content: 审核意见 + :type content: str + """ + + + + self._result = None + self._content = None + self.discriminator = None + + if result is not None: + self.result = result + if content is not None: + self.content = content + + @property + def result(self): + """Gets the result of this ApprovePlaybookInfo. + + 审核结果 通过:PASS 不通过:UN_PASS + + :return: The result of this ApprovePlaybookInfo. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ApprovePlaybookInfo. + + 审核结果 通过:PASS 不通过:UN_PASS + + :param result: The result of this ApprovePlaybookInfo. + :type result: str + """ + self._result = result + + @property + def content(self): + """Gets the content of this ApprovePlaybookInfo. + + 审核意见 + + :return: The content of this ApprovePlaybookInfo. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this ApprovePlaybookInfo. + + 审核意见 + + :param content: The content of this ApprovePlaybookInfo. + :type content: str + """ + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApprovePlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/audit_log_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/audit_log_info.py new file mode 100755 index 0000000000..9c5ac406fc --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/audit_log_info.py @@ -0,0 +1,466 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuditLogInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_type': 'str', + 'action_id': 'str', + 'action_name': 'str', + 'instance_id': 'str', + 'parent_instance_id': 'str', + 'log_level': 'str', + 'input': 'str', + 'output': 'str', + 'error_msg': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'status': 'str', + 'trigger_type': 'str' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'action_id': 'action_id', + 'action_name': 'action_name', + 'instance_id': 'instance_id', + 'parent_instance_id': 'parent_instance_id', + 'log_level': 'log_level', + 'input': 'input', + 'output': 'output', + 'error_msg': 'error_msg', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'status': 'status', + 'trigger_type': 'trigger_type' + } + + def __init__(self, instance_type=None, action_id=None, action_name=None, instance_id=None, parent_instance_id=None, log_level=None, input=None, output=None, error_msg=None, start_time=None, end_time=None, status=None, trigger_type=None): + """AuditLogInfo + + The model defined in huaweicloud sdk + + :param instance_type: instance type. + :type instance_type: str + :param action_id: Action id. + :type action_id: str + :param action_name: action name. + :type action_name: str + :param instance_id: Instance id. + :type instance_id: str + :param parent_instance_id: parent instance id. + :type parent_instance_id: str + :param log_level: log level. + :type log_level: str + :param input: input. + :type input: str + :param output: output. + :type output: str + :param error_msg: error_msg. + :type error_msg: str + :param start_time: start_time. + :type start_time: str + :param end_time: end_time. + :type end_time: str + :param status: status. + :type status: str + :param trigger_type: trigger type. + :type trigger_type: str + """ + + + + self._instance_type = None + self._action_id = None + self._action_name = None + self._instance_id = None + self._parent_instance_id = None + self._log_level = None + self._input = None + self._output = None + self._error_msg = None + self._start_time = None + self._end_time = None + self._status = None + self._trigger_type = None + self.discriminator = None + + if instance_type is not None: + self.instance_type = instance_type + if action_id is not None: + self.action_id = action_id + if action_name is not None: + self.action_name = action_name + if instance_id is not None: + self.instance_id = instance_id + if parent_instance_id is not None: + self.parent_instance_id = parent_instance_id + if log_level is not None: + self.log_level = log_level + if input is not None: + self.input = input + if output is not None: + self.output = output + if error_msg is not None: + self.error_msg = error_msg + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if trigger_type is not None: + self.trigger_type = trigger_type + + @property + def instance_type(self): + """Gets the instance_type of this AuditLogInfo. + + instance type. + + :return: The instance_type of this AuditLogInfo. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this AuditLogInfo. + + instance type. + + :param instance_type: The instance_type of this AuditLogInfo. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def action_id(self): + """Gets the action_id of this AuditLogInfo. + + Action id. + + :return: The action_id of this AuditLogInfo. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this AuditLogInfo. + + Action id. + + :param action_id: The action_id of this AuditLogInfo. + :type action_id: str + """ + self._action_id = action_id + + @property + def action_name(self): + """Gets the action_name of this AuditLogInfo. + + action name. + + :return: The action_name of this AuditLogInfo. + :rtype: str + """ + return self._action_name + + @action_name.setter + def action_name(self, action_name): + """Sets the action_name of this AuditLogInfo. + + action name. + + :param action_name: The action_name of this AuditLogInfo. + :type action_name: str + """ + self._action_name = action_name + + @property + def instance_id(self): + """Gets the instance_id of this AuditLogInfo. + + Instance id. + + :return: The instance_id of this AuditLogInfo. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this AuditLogInfo. + + Instance id. + + :param instance_id: The instance_id of this AuditLogInfo. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def parent_instance_id(self): + """Gets the parent_instance_id of this AuditLogInfo. + + parent instance id. + + :return: The parent_instance_id of this AuditLogInfo. + :rtype: str + """ + return self._parent_instance_id + + @parent_instance_id.setter + def parent_instance_id(self, parent_instance_id): + """Sets the parent_instance_id of this AuditLogInfo. + + parent instance id. + + :param parent_instance_id: The parent_instance_id of this AuditLogInfo. + :type parent_instance_id: str + """ + self._parent_instance_id = parent_instance_id + + @property + def log_level(self): + """Gets the log_level of this AuditLogInfo. + + log level. + + :return: The log_level of this AuditLogInfo. + :rtype: str + """ + return self._log_level + + @log_level.setter + def log_level(self, log_level): + """Sets the log_level of this AuditLogInfo. + + log level. + + :param log_level: The log_level of this AuditLogInfo. + :type log_level: str + """ + self._log_level = log_level + + @property + def input(self): + """Gets the input of this AuditLogInfo. + + input. + + :return: The input of this AuditLogInfo. + :rtype: str + """ + return self._input + + @input.setter + def input(self, input): + """Sets the input of this AuditLogInfo. + + input. + + :param input: The input of this AuditLogInfo. + :type input: str + """ + self._input = input + + @property + def output(self): + """Gets the output of this AuditLogInfo. + + output. + + :return: The output of this AuditLogInfo. + :rtype: str + """ + return self._output + + @output.setter + def output(self, output): + """Sets the output of this AuditLogInfo. + + output. + + :param output: The output of this AuditLogInfo. + :type output: str + """ + self._output = output + + @property + def error_msg(self): + """Gets the error_msg of this AuditLogInfo. + + error_msg. + + :return: The error_msg of this AuditLogInfo. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this AuditLogInfo. + + error_msg. + + :param error_msg: The error_msg of this AuditLogInfo. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def start_time(self): + """Gets the start_time of this AuditLogInfo. + + start_time. + + :return: The start_time of this AuditLogInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this AuditLogInfo. + + start_time. + + :param start_time: The start_time of this AuditLogInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this AuditLogInfo. + + end_time. + + :return: The end_time of this AuditLogInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this AuditLogInfo. + + end_time. + + :param end_time: The end_time of this AuditLogInfo. + :type end_time: str + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this AuditLogInfo. + + status. + + :return: The status of this AuditLogInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AuditLogInfo. + + status. + + :param status: The status of this AuditLogInfo. + :type status: str + """ + self._status = status + + @property + def trigger_type(self): + """Gets the trigger_type of this AuditLogInfo. + + trigger type. + + :return: The trigger_type of this AuditLogInfo. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this AuditLogInfo. + + trigger type. + + :param trigger_type: The trigger_type of this AuditLogInfo. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AuditLogInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/batch_order_alert_result.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/batch_order_alert_result.py new file mode 100755 index 0000000000..876ed3cd86 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/batch_order_alert_result.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchOrderAlertResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'error_ids': 'list[str]', + 'success_ids': 'list[str]' + } + + attribute_map = { + 'error_ids': 'error_ids', + 'success_ids': 'success_ids' + } + + def __init__(self, error_ids=None, success_ids=None): + """BatchOrderAlertResult + + The model defined in huaweicloud sdk + + :param error_ids: 失败id + :type error_ids: list[str] + :param success_ids: 成功败id + :type success_ids: list[str] + """ + + + + self._error_ids = None + self._success_ids = None + self.discriminator = None + + if error_ids is not None: + self.error_ids = error_ids + if success_ids is not None: + self.success_ids = success_ids + + @property + def error_ids(self): + """Gets the error_ids of this BatchOrderAlertResult. + + 失败id + + :return: The error_ids of this BatchOrderAlertResult. + :rtype: list[str] + """ + return self._error_ids + + @error_ids.setter + def error_ids(self, error_ids): + """Sets the error_ids of this BatchOrderAlertResult. + + 失败id + + :param error_ids: The error_ids of this BatchOrderAlertResult. + :type error_ids: list[str] + """ + self._error_ids = error_ids + + @property + def success_ids(self): + """Gets the success_ids of this BatchOrderAlertResult. + + 成功败id + + :return: The success_ids of this BatchOrderAlertResult. + :rtype: list[str] + """ + return self._success_ids + + @success_ids.setter + def success_ids(self, success_ids): + """Sets the success_ids of this BatchOrderAlertResult. + + 成功败id + + :param success_ids: The success_ids of this BatchOrderAlertResult. + :type success_ids: list[str] + """ + self._success_ids = success_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchOrderAlertResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request.py new file mode 100755 index 0000000000..934636891c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeAlertRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'alert_id': 'str', + 'body': 'ChangeAlertRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'alert_id': 'alert_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, alert_id=None, body=None): + """ChangeAlertRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param alert_id: 告警ID + :type alert_id: str + :param body: Body of the ChangeAlertRequest + :type body: :class:`huaweicloudsdksa.v2.ChangeAlertRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._alert_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.alert_id = alert_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ChangeAlertRequest. + + ID of project + + :return: The project_id of this ChangeAlertRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ChangeAlertRequest. + + ID of project + + :param project_id: The project_id of this ChangeAlertRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ChangeAlertRequest. + + ID of workspace + + :return: The workspace_id of this ChangeAlertRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ChangeAlertRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ChangeAlertRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def alert_id(self): + """Gets the alert_id of this ChangeAlertRequest. + + 告警ID + + :return: The alert_id of this ChangeAlertRequest. + :rtype: str + """ + return self._alert_id + + @alert_id.setter + def alert_id(self, alert_id): + """Sets the alert_id of this ChangeAlertRequest. + + 告警ID + + :param alert_id: The alert_id of this ChangeAlertRequest. + :type alert_id: str + """ + self._alert_id = alert_id + + @property + def body(self): + """Gets the body of this ChangeAlertRequest. + + :return: The body of this ChangeAlertRequest. + :rtype: :class:`huaweicloudsdksa.v2.ChangeAlertRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeAlertRequest. + + :param body: The body of this ChangeAlertRequest. + :type body: :class:`huaweicloudsdksa.v2.ChangeAlertRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeAlertRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request_body.py new file mode 100755 index 0000000000..5029e35794 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeAlertRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'Alert' + } + + attribute_map = { + 'data_object': 'data_object' + } + + def __init__(self, data_object=None): + """ChangeAlertRequestBody + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.Alert` + """ + + + + self._data_object = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + + @property + def data_object(self): + """Gets the data_object of this ChangeAlertRequestBody. + + :return: The data_object of this ChangeAlertRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.Alert` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ChangeAlertRequestBody. + + :param data_object: The data_object of this ChangeAlertRequestBody. + :type data_object: :class:`huaweicloudsdksa.v2.Alert` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeAlertRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_response.py new file mode 100755 index 0000000000..7c6036204d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_alert_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeAlertResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'AlertDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ChangeAlertResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.AlertDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ChangeAlertResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ChangeAlertResponse. + + Id value + + :return: The code of this ChangeAlertResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ChangeAlertResponse. + + Id value + + :param code: The code of this ChangeAlertResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ChangeAlertResponse. + + Error message + + :return: The message of this ChangeAlertResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ChangeAlertResponse. + + Error message + + :param message: The message of this ChangeAlertResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ChangeAlertResponse. + + :return: The data of this ChangeAlertResponse. + :rtype: :class:`huaweicloudsdksa.v2.AlertDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ChangeAlertResponse. + + :param data: The data of this ChangeAlertResponse. + :type data: :class:`huaweicloudsdksa.v2.AlertDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ChangeAlertResponse. + + :return: The x_request_id of this ChangeAlertResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ChangeAlertResponse. + + :param x_request_id: The x_request_id of this ChangeAlertResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeAlertResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request.py new file mode 100755 index 0000000000..348b257d06 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'incident_id': 'str', + 'body': 'ChangeIncidentRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'incident_id': 'incident_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, incident_id=None, body=None): + """ChangeIncidentRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param incident_id: 事件ID + :type incident_id: str + :param body: Body of the ChangeIncidentRequest + :type body: :class:`huaweicloudsdksa.v2.ChangeIncidentRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._incident_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.incident_id = incident_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ChangeIncidentRequest. + + ID of project + + :return: The project_id of this ChangeIncidentRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ChangeIncidentRequest. + + ID of project + + :param project_id: The project_id of this ChangeIncidentRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ChangeIncidentRequest. + + ID of workspace + + :return: The workspace_id of this ChangeIncidentRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ChangeIncidentRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ChangeIncidentRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def incident_id(self): + """Gets the incident_id of this ChangeIncidentRequest. + + 事件ID + + :return: The incident_id of this ChangeIncidentRequest. + :rtype: str + """ + return self._incident_id + + @incident_id.setter + def incident_id(self, incident_id): + """Sets the incident_id of this ChangeIncidentRequest. + + 事件ID + + :param incident_id: The incident_id of this ChangeIncidentRequest. + :type incident_id: str + """ + self._incident_id = incident_id + + @property + def body(self): + """Gets the body of this ChangeIncidentRequest. + + :return: The body of this ChangeIncidentRequest. + :rtype: :class:`huaweicloudsdksa.v2.ChangeIncidentRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeIncidentRequest. + + :param body: The body of this ChangeIncidentRequest. + :type body: :class:`huaweicloudsdksa.v2.ChangeIncidentRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request_body.py new file mode 100755 index 0000000000..99b76d2b92 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeIncidentRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'Incident' + } + + attribute_map = { + 'data_object': 'data_object' + } + + def __init__(self, data_object=None): + """ChangeIncidentRequestBody + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + """ + + + + self._data_object = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + + @property + def data_object(self): + """Gets the data_object of this ChangeIncidentRequestBody. + + :return: The data_object of this ChangeIncidentRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.Incident` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ChangeIncidentRequestBody. + + :param data_object: The data_object of this ChangeIncidentRequestBody. + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeIncidentRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_response.py new file mode 100755 index 0000000000..996f6a0e91 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_incident_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeIncidentResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IncidentDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ChangeIncidentResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IncidentDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ChangeIncidentResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ChangeIncidentResponse. + + Id value + + :return: The code of this ChangeIncidentResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ChangeIncidentResponse. + + Id value + + :param code: The code of this ChangeIncidentResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ChangeIncidentResponse. + + Error message + + :return: The message of this ChangeIncidentResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ChangeIncidentResponse. + + Error message + + :param message: The message of this ChangeIncidentResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ChangeIncidentResponse. + + :return: The data of this ChangeIncidentResponse. + :rtype: :class:`huaweicloudsdksa.v2.IncidentDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ChangeIncidentResponse. + + :param data: The data of this ChangeIncidentResponse. + :type data: :class:`huaweicloudsdksa.v2.IncidentDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ChangeIncidentResponse. + + :return: The x_request_id of this ChangeIncidentResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ChangeIncidentResponse. + + :param x_request_id: The x_request_id of this ChangeIncidentResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_request.py new file mode 100755 index 0000000000..ea21bd82cd --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangePlaybookInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'instance_id': 'str', + 'body': 'OperationPlaybookInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, instance_id=None, body=None): + """ChangePlaybookInstanceRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param instance_id: instance _id + :type instance_id: str + :param body: Body of the ChangePlaybookInstanceRequest + :type body: :class:`huaweicloudsdksa.v2.OperationPlaybookInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._instance_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ChangePlaybookInstanceRequest. + + ID of project + + :return: The project_id of this ChangePlaybookInstanceRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ChangePlaybookInstanceRequest. + + ID of project + + :param project_id: The project_id of this ChangePlaybookInstanceRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ChangePlaybookInstanceRequest. + + ID of workspace + + :return: The workspace_id of this ChangePlaybookInstanceRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ChangePlaybookInstanceRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ChangePlaybookInstanceRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def instance_id(self): + """Gets the instance_id of this ChangePlaybookInstanceRequest. + + instance _id + + :return: The instance_id of this ChangePlaybookInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ChangePlaybookInstanceRequest. + + instance _id + + :param instance_id: The instance_id of this ChangePlaybookInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ChangePlaybookInstanceRequest. + + :return: The body of this ChangePlaybookInstanceRequest. + :rtype: :class:`huaweicloudsdksa.v2.OperationPlaybookInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangePlaybookInstanceRequest. + + :param body: The body of this ChangePlaybookInstanceRequest. + :type body: :class:`huaweicloudsdksa.v2.OperationPlaybookInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangePlaybookInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_response.py new file mode 100755 index 0000000000..b6893f598e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/change_playbook_instance_response.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangePlaybookInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'project_id': 'str', + 'playbook': 'PlaybookInfoRef', + 'dataclass': 'DataclassInfoRef', + 'dataobject': 'DataclassInfoRef', + 'status': 'str', + 'trigger_type': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'project_id': 'project_id', + 'playbook': 'playbook', + 'dataclass': 'dataclass', + 'dataobject': 'dataobject', + 'status': 'status', + 'trigger_type': 'trigger_type', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'x_request_id': 'X-request-id' + } + + def __init__(self, id=None, name=None, project_id=None, playbook=None, dataclass=None, dataobject=None, status=None, trigger_type=None, start_time=None, end_time=None, x_request_id=None): + """ChangePlaybookInstanceResponse + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param project_id: Project id value + :type project_id: str + :param playbook: + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param dataobject: + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param status: Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + :type status: str + :param trigger_type: trigger type. DEBUG, TIMER, EVENT, MANUAL + :type trigger_type: str + :param start_time: Create time + :type start_time: str + :param end_time: Update time + :type end_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(ChangePlaybookInstanceResponse, self).__init__() + + self._id = None + self._name = None + self._project_id = None + self._playbook = None + self._dataclass = None + self._dataobject = None + self._status = None + self._trigger_type = None + self._start_time = None + self._end_time = None + self._x_request_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if project_id is not None: + self.project_id = project_id + if playbook is not None: + self.playbook = playbook + if dataclass is not None: + self.dataclass = dataclass + if dataobject is not None: + self.dataobject = dataobject + if status is not None: + self.status = status + if trigger_type is not None: + self.trigger_type = trigger_type + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def id(self): + """Gets the id of this ChangePlaybookInstanceResponse. + + Id value + + :return: The id of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ChangePlaybookInstanceResponse. + + Id value + + :param id: The id of this ChangePlaybookInstanceResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ChangePlaybookInstanceResponse. + + The name, display only + + :return: The name of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ChangePlaybookInstanceResponse. + + The name, display only + + :param name: The name of this ChangePlaybookInstanceResponse. + :type name: str + """ + self._name = name + + @property + def project_id(self): + """Gets the project_id of this ChangePlaybookInstanceResponse. + + Project id value + + :return: The project_id of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ChangePlaybookInstanceResponse. + + Project id value + + :param project_id: The project_id of this ChangePlaybookInstanceResponse. + :type project_id: str + """ + self._project_id = project_id + + @property + def playbook(self): + """Gets the playbook of this ChangePlaybookInstanceResponse. + + :return: The playbook of this ChangePlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + return self._playbook + + @playbook.setter + def playbook(self, playbook): + """Sets the playbook of this ChangePlaybookInstanceResponse. + + :param playbook: The playbook of this ChangePlaybookInstanceResponse. + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + self._playbook = playbook + + @property + def dataclass(self): + """Gets the dataclass of this ChangePlaybookInstanceResponse. + + :return: The dataclass of this ChangePlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this ChangePlaybookInstanceResponse. + + :param dataclass: The dataclass of this ChangePlaybookInstanceResponse. + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataclass = dataclass + + @property + def dataobject(self): + """Gets the dataobject of this ChangePlaybookInstanceResponse. + + :return: The dataobject of this ChangePlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataobject + + @dataobject.setter + def dataobject(self, dataobject): + """Sets the dataobject of this ChangePlaybookInstanceResponse. + + :param dataobject: The dataobject of this ChangePlaybookInstanceResponse. + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataobject = dataobject + + @property + def status(self): + """Gets the status of this ChangePlaybookInstanceResponse. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :return: The status of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ChangePlaybookInstanceResponse. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :param status: The status of this ChangePlaybookInstanceResponse. + :type status: str + """ + self._status = status + + @property + def trigger_type(self): + """Gets the trigger_type of this ChangePlaybookInstanceResponse. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :return: The trigger_type of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this ChangePlaybookInstanceResponse. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :param trigger_type: The trigger_type of this ChangePlaybookInstanceResponse. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def start_time(self): + """Gets the start_time of this ChangePlaybookInstanceResponse. + + Create time + + :return: The start_time of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ChangePlaybookInstanceResponse. + + Create time + + :param start_time: The start_time of this ChangePlaybookInstanceResponse. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ChangePlaybookInstanceResponse. + + Update time + + :return: The end_time of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ChangePlaybookInstanceResponse. + + Update time + + :param end_time: The end_time of this ChangePlaybookInstanceResponse. + :type end_time: str + """ + self._end_time = end_time + + @property + def x_request_id(self): + """Gets the x_request_id of this ChangePlaybookInstanceResponse. + + :return: The x_request_id of this ChangePlaybookInstanceResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ChangePlaybookInstanceResponse. + + :param x_request_id: The x_request_id of this ChangePlaybookInstanceResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangePlaybookInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_info.py new file mode 100755 index 0000000000..2a83f0ff67 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_info.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConditionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'expression_type': 'str', + 'conditions': 'list[ConditionItem]', + 'logics': 'object', + 'cron': 'str', + 'schedule_type': 'str', + 'repeat_range': 'str', + 'repeat_count': 'str' + } + + attribute_map = { + 'expression_type': 'expression_type', + 'conditions': 'conditions', + 'logics': 'logics', + 'cron': 'cron', + 'schedule_type': 'schedule_type', + 'repeat_range': 'repeat_range', + 'repeat_count': 'repeat_count' + } + + def __init__(self, expression_type=None, conditions=None, logics=None, cron=None, schedule_type=None, repeat_range=None, repeat_count=None): + """ConditionInfo + + The model defined in huaweicloud sdk + + :param expression_type: expression type, all, any, user_define + :type expression_type: str + :param conditions: Information of conditions. + :type conditions: list[:class:`huaweicloudsdksa.v2.ConditionItem`] + :param logics: Logic item of condition. + :type logics: object + :param cron: Cron 表达式 + :type cron: str + :param schedule_type: schedule type, second hours... + :type schedule_type: str + :param repeat_range: 执行时间段 2021-01-30T23:00:00Z+0800 + :type repeat_range: str + :param repeat_count: 重复次数 + :type repeat_count: str + """ + + + + self._expression_type = None + self._conditions = None + self._logics = None + self._cron = None + self._schedule_type = None + self._repeat_range = None + self._repeat_count = None + self.discriminator = None + + if expression_type is not None: + self.expression_type = expression_type + if conditions is not None: + self.conditions = conditions + if logics is not None: + self.logics = logics + if cron is not None: + self.cron = cron + if schedule_type is not None: + self.schedule_type = schedule_type + if repeat_range is not None: + self.repeat_range = repeat_range + if repeat_count is not None: + self.repeat_count = repeat_count + + @property + def expression_type(self): + """Gets the expression_type of this ConditionInfo. + + expression type, all, any, user_define + + :return: The expression_type of this ConditionInfo. + :rtype: str + """ + return self._expression_type + + @expression_type.setter + def expression_type(self, expression_type): + """Sets the expression_type of this ConditionInfo. + + expression type, all, any, user_define + + :param expression_type: The expression_type of this ConditionInfo. + :type expression_type: str + """ + self._expression_type = expression_type + + @property + def conditions(self): + """Gets the conditions of this ConditionInfo. + + Information of conditions. + + :return: The conditions of this ConditionInfo. + :rtype: list[:class:`huaweicloudsdksa.v2.ConditionItem`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this ConditionInfo. + + Information of conditions. + + :param conditions: The conditions of this ConditionInfo. + :type conditions: list[:class:`huaweicloudsdksa.v2.ConditionItem`] + """ + self._conditions = conditions + + @property + def logics(self): + """Gets the logics of this ConditionInfo. + + Logic item of condition. + + :return: The logics of this ConditionInfo. + :rtype: object + """ + return self._logics + + @logics.setter + def logics(self, logics): + """Sets the logics of this ConditionInfo. + + Logic item of condition. + + :param logics: The logics of this ConditionInfo. + :type logics: object + """ + self._logics = logics + + @property + def cron(self): + """Gets the cron of this ConditionInfo. + + Cron 表达式 + + :return: The cron of this ConditionInfo. + :rtype: str + """ + return self._cron + + @cron.setter + def cron(self, cron): + """Sets the cron of this ConditionInfo. + + Cron 表达式 + + :param cron: The cron of this ConditionInfo. + :type cron: str + """ + self._cron = cron + + @property + def schedule_type(self): + """Gets the schedule_type of this ConditionInfo. + + schedule type, second hours... + + :return: The schedule_type of this ConditionInfo. + :rtype: str + """ + return self._schedule_type + + @schedule_type.setter + def schedule_type(self, schedule_type): + """Sets the schedule_type of this ConditionInfo. + + schedule type, second hours... + + :param schedule_type: The schedule_type of this ConditionInfo. + :type schedule_type: str + """ + self._schedule_type = schedule_type + + @property + def repeat_range(self): + """Gets the repeat_range of this ConditionInfo. + + 执行时间段 2021-01-30T23:00:00Z+0800 + + :return: The repeat_range of this ConditionInfo. + :rtype: str + """ + return self._repeat_range + + @repeat_range.setter + def repeat_range(self, repeat_range): + """Sets the repeat_range of this ConditionInfo. + + 执行时间段 2021-01-30T23:00:00Z+0800 + + :param repeat_range: The repeat_range of this ConditionInfo. + :type repeat_range: str + """ + self._repeat_range = repeat_range + + @property + def repeat_count(self): + """Gets the repeat_count of this ConditionInfo. + + 重复次数 + + :return: The repeat_count of this ConditionInfo. + :rtype: str + """ + return self._repeat_count + + @repeat_count.setter + def repeat_count(self, repeat_count): + """Sets the repeat_count of this ConditionInfo. + + 重复次数 + + :param repeat_count: The repeat_count of this ConditionInfo. + :type repeat_count: str + """ + self._repeat_count = repeat_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConditionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_item.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_item.py new file mode 100755 index 0000000000..656e0dab91 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/condition_item.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConditionItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'detail': 'str', + 'data': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'detail': 'detail', + 'data': 'data' + } + + def __init__(self, name=None, detail=None, data=None): + """ConditionItem + + The model defined in huaweicloud sdk + + :param name: Name of the condition. + :type name: str + :param detail: Detail of the condition. + :type detail: str + :param data: Detail of the condition. + :type data: list[str] + """ + + + + self._name = None + self._detail = None + self._data = None + self.discriminator = None + + if name is not None: + self.name = name + if detail is not None: + self.detail = detail + if data is not None: + self.data = data + + @property + def name(self): + """Gets the name of this ConditionItem. + + Name of the condition. + + :return: The name of this ConditionItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConditionItem. + + Name of the condition. + + :param name: The name of this ConditionItem. + :type name: str + """ + self._name = name + + @property + def detail(self): + """Gets the detail of this ConditionItem. + + Detail of the condition. + + :return: The detail of this ConditionItem. + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ConditionItem. + + Detail of the condition. + + :param detail: The detail of this ConditionItem. + :type detail: str + """ + self._detail = detail + + @property + def data(self): + """Gets the data of this ConditionItem. + + Detail of the condition. + + :return: The data of this ConditionItem. + :rtype: list[str] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ConditionItem. + + Detail of the condition. + + :param data: The data of this ConditionItem. + :type data: list[str] + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConditionItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/conditon_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/conditon_info.py new file mode 100755 index 0000000000..313024cd8c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/conditon_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConditonInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'data': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'data': 'data' + } + + def __init__(self, name=None, data=None): + """ConditonInfo + + The model defined in huaweicloud sdk + + :param name: name + :type name: str + :param data: search data + :type data: list[str] + """ + + + + self._name = None + self._data = None + self.discriminator = None + + if name is not None: + self.name = name + if data is not None: + self.data = data + + @property + def name(self): + """Gets the name of this ConditonInfo. + + name + + :return: The name of this ConditonInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ConditonInfo. + + name + + :param name: The name of this ConditonInfo. + :type name: str + """ + self._name = name + + @property + def data(self): + """Gets the data of this ConditonInfo. + + search data + + :return: The data of this ConditonInfo. + :rtype: list[str] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ConditonInfo. + + search data + + :param data: The data of this ConditonInfo. + :type data: list[str] + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConditonInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_info.py new file mode 100755 index 0000000000..5a60d1347b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_info.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CopyPlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """CopyPlaybookInfo + + The model defined in huaweicloud sdk + + :param name: 名称 + :type name: str + """ + + + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this CopyPlaybookInfo. + + 名称 + + :return: The name of this CopyPlaybookInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CopyPlaybookInfo. + + 名称 + + :param name: The name of this CopyPlaybookInfo. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyPlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_request.py new file mode 100755 index 0000000000..6cdc955edb --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CopyPlaybookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'body': 'CopyPlaybookInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, body=None): + """CopyPlaybookVersionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param body: Body of the CopyPlaybookVersionRequest + :type body: :class:`huaweicloudsdksa.v2.CopyPlaybookInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CopyPlaybookVersionRequest. + + ID of project + + :return: The project_id of this CopyPlaybookVersionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CopyPlaybookVersionRequest. + + ID of project + + :param project_id: The project_id of this CopyPlaybookVersionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CopyPlaybookVersionRequest. + + ID of workspace + + :return: The workspace_id of this CopyPlaybookVersionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CopyPlaybookVersionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CopyPlaybookVersionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this CopyPlaybookVersionRequest. + + version Id value + + :return: The version_id of this CopyPlaybookVersionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CopyPlaybookVersionRequest. + + version Id value + + :param version_id: The version_id of this CopyPlaybookVersionRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def body(self): + """Gets the body of this CopyPlaybookVersionRequest. + + :return: The body of this CopyPlaybookVersionRequest. + :rtype: :class:`huaweicloudsdksa.v2.CopyPlaybookInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CopyPlaybookVersionRequest. + + :param body: The body of this CopyPlaybookVersionRequest. + :type body: :class:`huaweicloudsdksa.v2.CopyPlaybookInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyPlaybookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_response.py new file mode 100755 index 0000000000..e1e69283a4 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/copy_playbook_version_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CopyPlaybookVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookVersionInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CopyPlaybookVersionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(CopyPlaybookVersionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CopyPlaybookVersionResponse. + + Error code + + :return: The code of this CopyPlaybookVersionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CopyPlaybookVersionResponse. + + Error code + + :param code: The code of this CopyPlaybookVersionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CopyPlaybookVersionResponse. + + Error message + + :return: The message of this CopyPlaybookVersionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CopyPlaybookVersionResponse. + + Error message + + :param message: The message of this CopyPlaybookVersionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CopyPlaybookVersionResponse. + + :return: The data of this CopyPlaybookVersionResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CopyPlaybookVersionResponse. + + :param data: The data of this CopyPlaybookVersionResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CopyPlaybookVersionResponse. + + :return: The x_request_id of this CopyPlaybookVersionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CopyPlaybookVersionResponse. + + :param x_request_id: The x_request_id of this CopyPlaybookVersionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyPlaybookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert.py new file mode 100755 index 0000000000..427e0d35e2 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert.py @@ -0,0 +1,1262 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlert: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'data_source': 'CreateAlertDataSource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'label': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'int', + 'confidence': 'int', + 'severity': 'str', + 'criticality': 'int', + 'alert_type': 'object', + 'network_list': 'list[ShowAlertRspNetworkList]', + 'resource_list': 'list[ShowAlertRspResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'bool', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'ShowAlertRspMalware', + 'system_info': 'object', + 'process': 'list[ShowAlertRspProcess]', + 'user_info': 'list[ShowAlertRspUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_alert_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'data_source': 'data_source', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'label': 'label', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'severity': 'severity', + 'criticality': 'criticality', + 'alert_type': 'alert_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_alert_table': 'system_alert_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, data_source=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, label=None, description=None, source_url=None, count=None, confidence=None, severity=None, criticality=None, alert_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_alert_table=None, id=None, workspace_id=None): + """CreateAlert + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param data_source: + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param label: The name, display only + :type label: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: int + :param confidence: 置信度 + :type confidence: int + :param severity: 严重性等级 + :type severity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param alert_type: 事件分类 + :type alert_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: bool + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_alert_table: 系统信息 + :type system_alert_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._data_source = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._label = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._severity = None + self._criticality = None + self._alert_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_alert_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if data_source is not None: + self.data_source = data_source + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if label is not None: + self.label = label + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if severity is not None: + self.severity = severity + if criticality is not None: + self.criticality = criticality + if alert_type is not None: + self.alert_type = alert_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_alert_table is not None: + self.system_alert_table = system_alert_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this CreateAlert. + + 版本 + + :return: The version of this CreateAlert. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateAlert. + + 版本 + + :param version: The version of this CreateAlert. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this CreateAlert. + + :return: The environment of this CreateAlert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this CreateAlert. + + :param environment: The environment of this CreateAlert. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def data_source(self): + """Gets the data_source of this CreateAlert. + + :return: The data_source of this CreateAlert. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this CreateAlert. + + :param data_source: The data_source of this CreateAlert. + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + self._data_source = data_source + + @property + def first_observed_time(self): + """Gets the first_observed_time of this CreateAlert. + + Update time + + :return: The first_observed_time of this CreateAlert. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this CreateAlert. + + Update time + + :param first_observed_time: The first_observed_time of this CreateAlert. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this CreateAlert. + + Update time + + :return: The last_observed_time of this CreateAlert. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this CreateAlert. + + Update time + + :param last_observed_time: The last_observed_time of this CreateAlert. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this CreateAlert. + + Create time + + :return: The create_time of this CreateAlert. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateAlert. + + Create time + + :param create_time: The create_time of this CreateAlert. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this CreateAlert. + + Update time + + :return: The arrive_time of this CreateAlert. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this CreateAlert. + + Update time + + :param arrive_time: The arrive_time of this CreateAlert. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this CreateAlert. + + The name, display only + + :return: The title of this CreateAlert. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CreateAlert. + + The name, display only + + :param title: The title of this CreateAlert. + :type title: str + """ + self._title = title + + @property + def label(self): + """Gets the label of this CreateAlert. + + The name, display only + + :return: The label of this CreateAlert. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this CreateAlert. + + The name, display only + + :param label: The label of this CreateAlert. + :type label: str + """ + self._label = label + + @property + def description(self): + """Gets the description of this CreateAlert. + + The description, display only + + :return: The description of this CreateAlert. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateAlert. + + The description, display only + + :param description: The description of this CreateAlert. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this CreateAlert. + + 事件URL链接 + + :return: The source_url of this CreateAlert. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this CreateAlert. + + 事件URL链接 + + :param source_url: The source_url of this CreateAlert. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this CreateAlert. + + 事件发生次数 + + :return: The count of this CreateAlert. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this CreateAlert. + + 事件发生次数 + + :param count: The count of this CreateAlert. + :type count: int + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this CreateAlert. + + 置信度 + + :return: The confidence of this CreateAlert. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this CreateAlert. + + 置信度 + + :param confidence: The confidence of this CreateAlert. + :type confidence: int + """ + self._confidence = confidence + + @property + def severity(self): + """Gets the severity of this CreateAlert. + + 严重性等级 + + :return: The severity of this CreateAlert. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this CreateAlert. + + 严重性等级 + + :param severity: The severity of this CreateAlert. + :type severity: str + """ + self._severity = severity + + @property + def criticality(self): + """Gets the criticality of this CreateAlert. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this CreateAlert. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this CreateAlert. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this CreateAlert. + :type criticality: int + """ + self._criticality = criticality + + @property + def alert_type(self): + """Gets the alert_type of this CreateAlert. + + 事件分类 + + :return: The alert_type of this CreateAlert. + :rtype: object + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this CreateAlert. + + 事件分类 + + :param alert_type: The alert_type of this CreateAlert. + :type alert_type: object + """ + self._alert_type = alert_type + + @property + def network_list(self): + """Gets the network_list of this CreateAlert. + + network_list + + :return: The network_list of this CreateAlert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this CreateAlert. + + network_list + + :param network_list: The network_list of this CreateAlert. + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this CreateAlert. + + network_list + + :return: The resource_list of this CreateAlert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this CreateAlert. + + network_list + + :param resource_list: The resource_list of this CreateAlert. + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this CreateAlert. + + :return: The remediation of this CreateAlert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this CreateAlert. + + :param remediation: The remediation of this CreateAlert. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this CreateAlert. + + 验证状态 + + :return: The verification_state of this CreateAlert. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this CreateAlert. + + 验证状态 + + :param verification_state: The verification_state of this CreateAlert. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this CreateAlert. + + 事件处理状态 + + :return: The handle_status of this CreateAlert. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this CreateAlert. + + 事件处理状态 + + :param handle_status: The handle_status of this CreateAlert. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this CreateAlert. + + sla + + :return: The sla of this CreateAlert. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this CreateAlert. + + sla + + :param sla: The sla of this CreateAlert. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this CreateAlert. + + Create time + + :return: The update_time of this CreateAlert. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateAlert. + + Create time + + :param update_time: The update_time of this CreateAlert. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this CreateAlert. + + Create time + + :return: The close_time of this CreateAlert. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this CreateAlert. + + Create time + + :param close_time: The close_time of this CreateAlert. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this CreateAlert. + + 周期/处置阶段编号 + + :return: The chop_phase of this CreateAlert. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this CreateAlert. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this CreateAlert. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this CreateAlert. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this CreateAlert. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this CreateAlert. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this CreateAlert. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this CreateAlert. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this CreateAlert. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this CreateAlert. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this CreateAlert. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this CreateAlert. + + 是否为调试事件. + + :return: The simulation of this CreateAlert. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this CreateAlert. + + 是否为调试事件. + + :param simulation: The simulation of this CreateAlert. + :type simulation: bool + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this CreateAlert. + + 委托人 + + :return: The actor of this CreateAlert. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this CreateAlert. + + 委托人 + + :param actor: The actor of this CreateAlert. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this CreateAlert. + + The name, display only + + :return: The owner of this CreateAlert. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this CreateAlert. + + The name, display only + + :param owner: The owner of this CreateAlert. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this CreateAlert. + + The name, display only + + :return: The cteator of this CreateAlert. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this CreateAlert. + + The name, display only + + :param cteator: The cteator of this CreateAlert. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this CreateAlert. + + 关闭原因 + + :return: The close_reason of this CreateAlert. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this CreateAlert. + + 关闭原因 + + :param close_reason: The close_reason of this CreateAlert. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this CreateAlert. + + 关闭原因 + + :return: The close_comment of this CreateAlert. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this CreateAlert. + + 关闭原因 + + :param close_comment: The close_comment of this CreateAlert. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this CreateAlert. + + :return: The malware of this CreateAlert. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this CreateAlert. + + :param malware: The malware of this CreateAlert. + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this CreateAlert. + + 系统信息 + + :return: The system_info of this CreateAlert. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this CreateAlert. + + 系统信息 + + :param system_info: The system_info of this CreateAlert. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this CreateAlert. + + 进程信息 + + :return: The process of this CreateAlert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this CreateAlert. + + 进程信息 + + :param process: The process of this CreateAlert. + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this CreateAlert. + + 用户信息 + + :return: The user_info of this CreateAlert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this CreateAlert. + + 用户信息 + + :param user_info: The user_info of this CreateAlert. + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this CreateAlert. + + 文件信息 + + :return: The file_info of this CreateAlert. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this CreateAlert. + + 文件信息 + + :param file_info: The file_info of this CreateAlert. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_alert_table(self): + """Gets the system_alert_table of this CreateAlert. + + 系统信息 + + :return: The system_alert_table of this CreateAlert. + :rtype: object + """ + return self._system_alert_table + + @system_alert_table.setter + def system_alert_table(self, system_alert_table): + """Sets the system_alert_table of this CreateAlert. + + 系统信息 + + :param system_alert_table: The system_alert_table of this CreateAlert. + :type system_alert_table: object + """ + self._system_alert_table = system_alert_table + + @property + def id(self): + """Gets the id of this CreateAlert. + + Id value + + :return: The id of this CreateAlert. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateAlert. + + Id value + + :param id: The id of this CreateAlert. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateAlert. + + workspace id + + :return: The workspace_id of this CreateAlert. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateAlert. + + workspace id + + :param workspace_id: The workspace_id of this CreateAlert. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlert): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_data_source.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_data_source.py new file mode 100755 index 0000000000..9d466dba8c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_data_source.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertDataSource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source_type': 'int', + 'domain_id': 'str', + 'project_id': 'str', + 'region_id': 'str', + 'product_name': 'str', + 'product_feature': 'str' + } + + attribute_map = { + 'source_type': 'source_type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'region_id': 'region_id', + 'product_name': 'product_name', + 'product_feature': 'product_feature' + } + + def __init__(self, source_type=None, domain_id=None, project_id=None, region_id=None, product_name=None, product_feature=None): + """CreateAlertDataSource + + The model defined in huaweicloud sdk + + :param source_type: current page count + :type source_type: int + :param domain_id: Id value + :type domain_id: str + :param project_id: Id value + :type project_id: str + :param region_id: Id value + :type region_id: str + :param product_name: Id value + :type product_name: str + :param product_feature: Id value + :type product_feature: str + """ + + + + self._source_type = None + self._domain_id = None + self._project_id = None + self._region_id = None + self._product_name = None + self._product_feature = None + self.discriminator = None + + if source_type is not None: + self.source_type = source_type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + if product_name is not None: + self.product_name = product_name + if product_feature is not None: + self.product_feature = product_feature + + @property + def source_type(self): + """Gets the source_type of this CreateAlertDataSource. + + current page count + + :return: The source_type of this CreateAlertDataSource. + :rtype: int + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this CreateAlertDataSource. + + current page count + + :param source_type: The source_type of this CreateAlertDataSource. + :type source_type: int + """ + self._source_type = source_type + + @property + def domain_id(self): + """Gets the domain_id of this CreateAlertDataSource. + + Id value + + :return: The domain_id of this CreateAlertDataSource. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CreateAlertDataSource. + + Id value + + :param domain_id: The domain_id of this CreateAlertDataSource. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this CreateAlertDataSource. + + Id value + + :return: The project_id of this CreateAlertDataSource. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateAlertDataSource. + + Id value + + :param project_id: The project_id of this CreateAlertDataSource. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this CreateAlertDataSource. + + Id value + + :return: The region_id of this CreateAlertDataSource. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this CreateAlertDataSource. + + Id value + + :param region_id: The region_id of this CreateAlertDataSource. + :type region_id: str + """ + self._region_id = region_id + + @property + def product_name(self): + """Gets the product_name of this CreateAlertDataSource. + + Id value + + :return: The product_name of this CreateAlertDataSource. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """Sets the product_name of this CreateAlertDataSource. + + Id value + + :param product_name: The product_name of this CreateAlertDataSource. + :type product_name: str + """ + self._product_name = product_name + + @property + def product_feature(self): + """Gets the product_feature of this CreateAlertDataSource. + + Id value + + :return: The product_feature of this CreateAlertDataSource. + :rtype: str + """ + return self._product_feature + + @product_feature.setter + def product_feature(self, product_feature): + """Sets the product_feature of this CreateAlertDataSource. + + Id value + + :param product_feature: The product_feature of this CreateAlertDataSource. + :type product_feature: str + """ + self._product_feature = product_feature + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertDataSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request.py new file mode 100755 index 0000000000..20463e7b86 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'CreateAlertRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateAlertRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the CreateAlertRequest + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateAlertRequest. + + ID of project + + :return: The project_id of this CreateAlertRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateAlertRequest. + + ID of project + + :param project_id: The project_id of this CreateAlertRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateAlertRequest. + + ID of workspace + + :return: The workspace_id of this CreateAlertRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateAlertRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreateAlertRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateAlertRequest. + + :return: The body of this CreateAlertRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAlertRequest. + + :param body: The body of this CreateAlertRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request_body.py new file mode 100755 index 0000000000..6221830b01 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'CreateAlert' + } + + attribute_map = { + 'data_object': 'data_object' + } + + def __init__(self, data_object=None): + """CreateAlertRequestBody + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.CreateAlert` + """ + + + + self._data_object = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + + @property + def data_object(self): + """Gets the data_object of this CreateAlertRequestBody. + + :return: The data_object of this CreateAlertRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlert` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this CreateAlertRequestBody. + + :param data_object: The data_object of this CreateAlertRequestBody. + :type data_object: :class:`huaweicloudsdksa.v2.CreateAlert` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_response.py new file mode 100755 index 0000000000..0b7fbb3cfa --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'AlertDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreateAlertResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.AlertDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(CreateAlertResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreateAlertResponse. + + Id value + + :return: The code of this CreateAlertResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreateAlertResponse. + + Id value + + :param code: The code of this CreateAlertResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreateAlertResponse. + + Error message + + :return: The message of this CreateAlertResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateAlertResponse. + + Error message + + :param message: The message of this CreateAlertResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreateAlertResponse. + + :return: The data of this CreateAlertResponse. + :rtype: :class:`huaweicloudsdksa.v2.AlertDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateAlertResponse. + + :param data: The data of this CreateAlertResponse. + :type data: :class:`huaweicloudsdksa.v2.AlertDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateAlertResponse. + + :return: The x_request_id of this CreateAlertResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateAlertResponse. + + :param x_request_id: The x_request_id of this CreateAlertResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request.py new file mode 100755 index 0000000000..7666abd149 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'CreateAlertRuleRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param body: Body of the CreateAlertRuleRequest + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateAlertRuleRequest. + + project_id + + :return: The project_id of this CreateAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateAlertRuleRequest. + + project_id + + :param project_id: The project_id of this CreateAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this CreateAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this CreateAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateAlertRuleRequest. + + :return: The body of this CreateAlertRuleRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAlertRuleRequest. + + :param body: The body of this CreateAlertRuleRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request_body.py new file mode 100755 index 0000000000..6aa9772444 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_request_body.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pipe_id': 'str', + 'rule_name': 'str', + 'description': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'alert_type': 'dict(str, str)', + 'event_grouping': 'bool', + 'suspression': 'bool', + 'simulation': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]' + } + + attribute_map = { + 'pipe_id': 'pipe_id', + 'rule_name': 'rule_name', + 'description': 'description', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'alert_type': 'alert_type', + 'event_grouping': 'event_grouping', + 'suspression': 'suspression', + 'simulation': 'simulation', + 'schedule': 'schedule', + 'triggers': 'triggers' + } + + def __init__(self, pipe_id=None, rule_name=None, description=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, alert_type=None, event_grouping=None, suspression=None, simulation=None, schedule=None, triggers=None): + """CreateAlertRuleRequestBody + + The model defined in huaweicloud sdk + + :param pipe_id: pipe_id + :type pipe_id: str + :param rule_name: rule_name + :type rule_name: str + :param description: description + :type description: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param alert_type: alert_type + :type alert_type: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param suspression: suspression + :type suspression: bool + :param simulation: simulation + :type simulation: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + + + + self._pipe_id = None + self._rule_name = None + self._description = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._alert_type = None + self._event_grouping = None + self._suspression = None + self._simulation = None + self._schedule = None + self._triggers = None + self.discriminator = None + + self.pipe_id = pipe_id + self.rule_name = rule_name + if description is not None: + self.description = description + self.query = query + if query_type is not None: + self.query_type = query_type + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if alert_type is not None: + self.alert_type = alert_type + if event_grouping is not None: + self.event_grouping = event_grouping + if suspression is not None: + self.suspression = suspression + if simulation is not None: + self.simulation = simulation + self.schedule = schedule + self.triggers = triggers + + @property + def pipe_id(self): + """Gets the pipe_id of this CreateAlertRuleRequestBody. + + pipe_id + + :return: The pipe_id of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this CreateAlertRuleRequestBody. + + pipe_id + + :param pipe_id: The pipe_id of this CreateAlertRuleRequestBody. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def rule_name(self): + """Gets the rule_name of this CreateAlertRuleRequestBody. + + rule_name + + :return: The rule_name of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this CreateAlertRuleRequestBody. + + rule_name + + :param rule_name: The rule_name of this CreateAlertRuleRequestBody. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def description(self): + """Gets the description of this CreateAlertRuleRequestBody. + + description + + :return: The description of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateAlertRuleRequestBody. + + description + + :param description: The description of this CreateAlertRuleRequestBody. + :type description: str + """ + self._description = description + + @property + def query(self): + """Gets the query of this CreateAlertRuleRequestBody. + + query + + :return: The query of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this CreateAlertRuleRequestBody. + + query + + :param query: The query of this CreateAlertRuleRequestBody. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this CreateAlertRuleRequestBody. + + query_type. SQL, CBSL. + + :return: The query_type of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this CreateAlertRuleRequestBody. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this CreateAlertRuleRequestBody. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this CreateAlertRuleRequestBody. + + status. ENABLED, DISABLED + + :return: The status of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateAlertRuleRequestBody. + + status. ENABLED, DISABLED + + :param status: The status of this CreateAlertRuleRequestBody. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this CreateAlertRuleRequestBody. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this CreateAlertRuleRequestBody. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this CreateAlertRuleRequestBody. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this CreateAlertRuleRequestBody. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this CreateAlertRuleRequestBody. + + accumulated_times + + :return: The accumulated_times of this CreateAlertRuleRequestBody. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this CreateAlertRuleRequestBody. + + accumulated_times + + :param accumulated_times: The accumulated_times of this CreateAlertRuleRequestBody. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this CreateAlertRuleRequestBody. + + custom_properties + + :return: The custom_properties of this CreateAlertRuleRequestBody. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this CreateAlertRuleRequestBody. + + custom_properties + + :param custom_properties: The custom_properties of this CreateAlertRuleRequestBody. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def alert_type(self): + """Gets the alert_type of this CreateAlertRuleRequestBody. + + alert_type + + :return: The alert_type of this CreateAlertRuleRequestBody. + :rtype: dict(str, str) + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this CreateAlertRuleRequestBody. + + alert_type + + :param alert_type: The alert_type of this CreateAlertRuleRequestBody. + :type alert_type: dict(str, str) + """ + self._alert_type = alert_type + + @property + def event_grouping(self): + """Gets the event_grouping of this CreateAlertRuleRequestBody. + + event_grouping + + :return: The event_grouping of this CreateAlertRuleRequestBody. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this CreateAlertRuleRequestBody. + + event_grouping + + :param event_grouping: The event_grouping of this CreateAlertRuleRequestBody. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def suspression(self): + """Gets the suspression of this CreateAlertRuleRequestBody. + + suspression + + :return: The suspression of this CreateAlertRuleRequestBody. + :rtype: bool + """ + return self._suspression + + @suspression.setter + def suspression(self, suspression): + """Sets the suspression of this CreateAlertRuleRequestBody. + + suspression + + :param suspression: The suspression of this CreateAlertRuleRequestBody. + :type suspression: bool + """ + self._suspression = suspression + + @property + def simulation(self): + """Gets the simulation of this CreateAlertRuleRequestBody. + + simulation + + :return: The simulation of this CreateAlertRuleRequestBody. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this CreateAlertRuleRequestBody. + + simulation + + :param simulation: The simulation of this CreateAlertRuleRequestBody. + :type simulation: bool + """ + self._simulation = simulation + + @property + def schedule(self): + """Gets the schedule of this CreateAlertRuleRequestBody. + + :return: The schedule of this CreateAlertRuleRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this CreateAlertRuleRequestBody. + + :param schedule: The schedule of this CreateAlertRuleRequestBody. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this CreateAlertRuleRequestBody. + + triggers + + :return: The triggers of this CreateAlertRuleRequestBody. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this CreateAlertRuleRequestBody. + + triggers + + :param triggers: The triggers of this CreateAlertRuleRequestBody. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_response.py new file mode 100755 index 0000000000..8168dbd5de --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_response.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'pipe_id': 'str', + 'pipe_name': 'str', + 'create_by': 'str', + 'create_time': 'int', + 'update_by': 'str', + 'update_time': 'int', + 'delete_time': 'int', + 'rule_name': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'pipe_id': 'pipe_id', + 'pipe_name': 'pipe_name', + 'create_by': 'create_by', + 'create_time': 'create_time', + 'update_by': 'update_by', + 'update_time': 'update_time', + 'delete_time': 'delete_time', + 'rule_name': 'rule_name', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, pipe_id=None, pipe_name=None, create_by=None, create_time=None, update_by=None, update_time=None, delete_time=None, rule_name=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None, x_request_id=None): + """CreateAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param pipe_id: pipe_id + :type pipe_id: str + :param pipe_name: pipe_name + :type pipe_name: str + :param create_by: create_by + :type create_by: str + :param create_time: create_time + :type create_time: int + :param update_by: update_by + :type update_by: str + :param update_time: update_time + :type update_time: int + :param delete_time: delete_time + :type delete_time: int + :param rule_name: rule_name + :type rule_name: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + :param x_request_id: + :type x_request_id: str + """ + + super(CreateAlertRuleResponse, self).__init__() + + self._rule_id = None + self._pipe_id = None + self._pipe_name = None + self._create_by = None + self._create_time = None + self._update_by = None + self._update_time = None + self._delete_time = None + self._rule_name = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if pipe_id is not None: + self.pipe_id = pipe_id + if pipe_name is not None: + self.pipe_name = pipe_name + if create_by is not None: + self.create_by = create_by + if create_time is not None: + self.create_time = create_time + if update_by is not None: + self.update_by = update_by + if update_time is not None: + self.update_time = update_time + if delete_time is not None: + self.delete_time = delete_time + if rule_name is not None: + self.rule_name = rule_name + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this CreateAlertRuleResponse. + + rule_id + + :return: The rule_id of this CreateAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this CreateAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this CreateAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def pipe_id(self): + """Gets the pipe_id of this CreateAlertRuleResponse. + + pipe_id + + :return: The pipe_id of this CreateAlertRuleResponse. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this CreateAlertRuleResponse. + + pipe_id + + :param pipe_id: The pipe_id of this CreateAlertRuleResponse. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def pipe_name(self): + """Gets the pipe_name of this CreateAlertRuleResponse. + + pipe_name + + :return: The pipe_name of this CreateAlertRuleResponse. + :rtype: str + """ + return self._pipe_name + + @pipe_name.setter + def pipe_name(self, pipe_name): + """Sets the pipe_name of this CreateAlertRuleResponse. + + pipe_name + + :param pipe_name: The pipe_name of this CreateAlertRuleResponse. + :type pipe_name: str + """ + self._pipe_name = pipe_name + + @property + def create_by(self): + """Gets the create_by of this CreateAlertRuleResponse. + + create_by + + :return: The create_by of this CreateAlertRuleResponse. + :rtype: str + """ + return self._create_by + + @create_by.setter + def create_by(self, create_by): + """Sets the create_by of this CreateAlertRuleResponse. + + create_by + + :param create_by: The create_by of this CreateAlertRuleResponse. + :type create_by: str + """ + self._create_by = create_by + + @property + def create_time(self): + """Gets the create_time of this CreateAlertRuleResponse. + + create_time + + :return: The create_time of this CreateAlertRuleResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateAlertRuleResponse. + + create_time + + :param create_time: The create_time of this CreateAlertRuleResponse. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_by(self): + """Gets the update_by of this CreateAlertRuleResponse. + + update_by + + :return: The update_by of this CreateAlertRuleResponse. + :rtype: str + """ + return self._update_by + + @update_by.setter + def update_by(self, update_by): + """Sets the update_by of this CreateAlertRuleResponse. + + update_by + + :param update_by: The update_by of this CreateAlertRuleResponse. + :type update_by: str + """ + self._update_by = update_by + + @property + def update_time(self): + """Gets the update_time of this CreateAlertRuleResponse. + + update_time + + :return: The update_time of this CreateAlertRuleResponse. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateAlertRuleResponse. + + update_time + + :param update_time: The update_time of this CreateAlertRuleResponse. + :type update_time: int + """ + self._update_time = update_time + + @property + def delete_time(self): + """Gets the delete_time of this CreateAlertRuleResponse. + + delete_time + + :return: The delete_time of this CreateAlertRuleResponse. + :rtype: int + """ + return self._delete_time + + @delete_time.setter + def delete_time(self, delete_time): + """Sets the delete_time of this CreateAlertRuleResponse. + + delete_time + + :param delete_time: The delete_time of this CreateAlertRuleResponse. + :type delete_time: int + """ + self._delete_time = delete_time + + @property + def rule_name(self): + """Gets the rule_name of this CreateAlertRuleResponse. + + rule_name + + :return: The rule_name of this CreateAlertRuleResponse. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this CreateAlertRuleResponse. + + rule_name + + :param rule_name: The rule_name of this CreateAlertRuleResponse. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def query(self): + """Gets the query of this CreateAlertRuleResponse. + + query + + :return: The query of this CreateAlertRuleResponse. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this CreateAlertRuleResponse. + + query + + :param query: The query of this CreateAlertRuleResponse. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this CreateAlertRuleResponse. + + query_type. SQL, CBSL. + + :return: The query_type of this CreateAlertRuleResponse. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this CreateAlertRuleResponse. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this CreateAlertRuleResponse. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this CreateAlertRuleResponse. + + status. ENABLED, DISABLED + + :return: The status of this CreateAlertRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateAlertRuleResponse. + + status. ENABLED, DISABLED + + :param status: The status of this CreateAlertRuleResponse. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this CreateAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this CreateAlertRuleResponse. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this CreateAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this CreateAlertRuleResponse. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this CreateAlertRuleResponse. + + accumulated_times + + :return: The accumulated_times of this CreateAlertRuleResponse. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this CreateAlertRuleResponse. + + accumulated_times + + :param accumulated_times: The accumulated_times of this CreateAlertRuleResponse. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this CreateAlertRuleResponse. + + custom_properties + + :return: The custom_properties of this CreateAlertRuleResponse. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this CreateAlertRuleResponse. + + custom_properties + + :param custom_properties: The custom_properties of this CreateAlertRuleResponse. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this CreateAlertRuleResponse. + + event_grouping + + :return: The event_grouping of this CreateAlertRuleResponse. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this CreateAlertRuleResponse. + + event_grouping + + :param event_grouping: The event_grouping of this CreateAlertRuleResponse. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this CreateAlertRuleResponse. + + :return: The schedule of this CreateAlertRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this CreateAlertRuleResponse. + + :param schedule: The schedule of this CreateAlertRuleResponse. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this CreateAlertRuleResponse. + + triggers + + :return: The triggers of this CreateAlertRuleResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this CreateAlertRuleResponse. + + triggers + + :param triggers: The triggers of this CreateAlertRuleResponse. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateAlertRuleResponse. + + :return: The x_request_id of this CreateAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateAlertRuleResponse. + + :param x_request_id: The x_request_id of this CreateAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request.py new file mode 100755 index 0000000000..fd6a33a2c9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleSimulationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'CreateAlertRuleSimulationRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateAlertRuleSimulationRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param body: Body of the CreateAlertRuleSimulationRequest + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateAlertRuleSimulationRequest. + + project_id + + :return: The project_id of this CreateAlertRuleSimulationRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateAlertRuleSimulationRequest. + + project_id + + :param project_id: The project_id of this CreateAlertRuleSimulationRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateAlertRuleSimulationRequest. + + workspace_id + + :return: The workspace_id of this CreateAlertRuleSimulationRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateAlertRuleSimulationRequest. + + workspace_id + + :param workspace_id: The workspace_id of this CreateAlertRuleSimulationRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateAlertRuleSimulationRequest. + + :return: The body of this CreateAlertRuleSimulationRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAlertRuleSimulationRequest. + + :param body: The body of this CreateAlertRuleSimulationRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleSimulationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request_body.py new file mode 100755 index 0000000000..2220891dd6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_request_body.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleSimulationRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pipe_id': 'str', + 'query': 'str', + 'query_type': 'str', + '_from': 'int', + 'to': 'int', + 'event_grouping': 'bool', + 'triggers': 'list[AlertRuleTrigger]' + } + + attribute_map = { + 'pipe_id': 'pipe_id', + 'query': 'query', + 'query_type': 'query_type', + '_from': 'from', + 'to': 'to', + 'event_grouping': 'event_grouping', + 'triggers': 'triggers' + } + + def __init__(self, pipe_id=None, query=None, query_type=None, _from=None, to=None, event_grouping=None, triggers=None): + """CreateAlertRuleSimulationRequestBody + + The model defined in huaweicloud sdk + + :param pipe_id: pipe_id + :type pipe_id: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param _from: from + :type _from: int + :param to: from + :type to: int + :param event_grouping: event_grouping + :type event_grouping: bool + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + + + + self._pipe_id = None + self._query = None + self._query_type = None + self.__from = None + self._to = None + self._event_grouping = None + self._triggers = None + self.discriminator = None + + self.pipe_id = pipe_id + self.query = query + if query_type is not None: + self.query_type = query_type + self._from = _from + self.to = to + if event_grouping is not None: + self.event_grouping = event_grouping + self.triggers = triggers + + @property + def pipe_id(self): + """Gets the pipe_id of this CreateAlertRuleSimulationRequestBody. + + pipe_id + + :return: The pipe_id of this CreateAlertRuleSimulationRequestBody. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this CreateAlertRuleSimulationRequestBody. + + pipe_id + + :param pipe_id: The pipe_id of this CreateAlertRuleSimulationRequestBody. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def query(self): + """Gets the query of this CreateAlertRuleSimulationRequestBody. + + query + + :return: The query of this CreateAlertRuleSimulationRequestBody. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this CreateAlertRuleSimulationRequestBody. + + query + + :param query: The query of this CreateAlertRuleSimulationRequestBody. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this CreateAlertRuleSimulationRequestBody. + + query_type. SQL, CBSL. + + :return: The query_type of this CreateAlertRuleSimulationRequestBody. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this CreateAlertRuleSimulationRequestBody. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this CreateAlertRuleSimulationRequestBody. + :type query_type: str + """ + self._query_type = query_type + + @property + def _from(self): + """Gets the _from of this CreateAlertRuleSimulationRequestBody. + + from + + :return: The _from of this CreateAlertRuleSimulationRequestBody. + :rtype: int + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this CreateAlertRuleSimulationRequestBody. + + from + + :param _from: The _from of this CreateAlertRuleSimulationRequestBody. + :type _from: int + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this CreateAlertRuleSimulationRequestBody. + + from + + :return: The to of this CreateAlertRuleSimulationRequestBody. + :rtype: int + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this CreateAlertRuleSimulationRequestBody. + + from + + :param to: The to of this CreateAlertRuleSimulationRequestBody. + :type to: int + """ + self._to = to + + @property + def event_grouping(self): + """Gets the event_grouping of this CreateAlertRuleSimulationRequestBody. + + event_grouping + + :return: The event_grouping of this CreateAlertRuleSimulationRequestBody. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this CreateAlertRuleSimulationRequestBody. + + event_grouping + + :param event_grouping: The event_grouping of this CreateAlertRuleSimulationRequestBody. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def triggers(self): + """Gets the triggers of this CreateAlertRuleSimulationRequestBody. + + triggers + + :return: The triggers of this CreateAlertRuleSimulationRequestBody. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this CreateAlertRuleSimulationRequestBody. + + triggers + + :param triggers: The triggers of this CreateAlertRuleSimulationRequestBody. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleSimulationRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_response.py new file mode 100755 index 0000000000..8309060207 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_alert_rule_simulation_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAlertRuleSimulationResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'alert_count': 'int', + 'severity': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'alert_count': 'alert_count', + 'severity': 'severity', + 'x_request_id': 'X-request-id' + } + + def __init__(self, alert_count=None, severity=None, x_request_id=None): + """CreateAlertRuleSimulationResponse + + The model defined in huaweicloud sdk + + :param alert_count: alert_count + :type alert_count: int + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateAlertRuleSimulationResponse, self).__init__() + + self._alert_count = None + self._severity = None + self._x_request_id = None + self.discriminator = None + + if alert_count is not None: + self.alert_count = alert_count + if severity is not None: + self.severity = severity + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def alert_count(self): + """Gets the alert_count of this CreateAlertRuleSimulationResponse. + + alert_count + + :return: The alert_count of this CreateAlertRuleSimulationResponse. + :rtype: int + """ + return self._alert_count + + @alert_count.setter + def alert_count(self, alert_count): + """Sets the alert_count of this CreateAlertRuleSimulationResponse. + + alert_count + + :param alert_count: The alert_count of this CreateAlertRuleSimulationResponse. + :type alert_count: int + """ + self._alert_count = alert_count + + @property + def severity(self): + """Gets the severity of this CreateAlertRuleSimulationResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this CreateAlertRuleSimulationResponse. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this CreateAlertRuleSimulationResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this CreateAlertRuleSimulationResponse. + :type severity: str + """ + self._severity = severity + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateAlertRuleSimulationResponse. + + :return: The x_request_id of this CreateAlertRuleSimulationResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateAlertRuleSimulationResponse. + + :param x_request_id: The x_request_id of this CreateAlertRuleSimulationResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAlertRuleSimulationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_request.py new file mode 100755 index 0000000000..2abf90946d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBatchOrderAlertsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'OrderAlert' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateBatchOrderAlertsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the CreateBatchOrderAlertsRequest + :type body: :class:`huaweicloudsdksa.v2.OrderAlert` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateBatchOrderAlertsRequest. + + ID of project + + :return: The project_id of this CreateBatchOrderAlertsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateBatchOrderAlertsRequest. + + ID of project + + :param project_id: The project_id of this CreateBatchOrderAlertsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateBatchOrderAlertsRequest. + + ID of workspace + + :return: The workspace_id of this CreateBatchOrderAlertsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateBatchOrderAlertsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreateBatchOrderAlertsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateBatchOrderAlertsRequest. + + :return: The body of this CreateBatchOrderAlertsRequest. + :rtype: :class:`huaweicloudsdksa.v2.OrderAlert` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateBatchOrderAlertsRequest. + + :param body: The body of this CreateBatchOrderAlertsRequest. + :type body: :class:`huaweicloudsdksa.v2.OrderAlert` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBatchOrderAlertsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_response.py new file mode 100755 index 0000000000..f9dc22c46d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_batch_order_alerts_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBatchOrderAlertsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'BatchOrderAlertResult', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreateBatchOrderAlertsResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + :param x_request_id: + :type x_request_id: str + """ + + super(CreateBatchOrderAlertsResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreateBatchOrderAlertsResponse. + + Id value + + :return: The code of this CreateBatchOrderAlertsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreateBatchOrderAlertsResponse. + + Id value + + :param code: The code of this CreateBatchOrderAlertsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreateBatchOrderAlertsResponse. + + Error message + + :return: The message of this CreateBatchOrderAlertsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateBatchOrderAlertsResponse. + + Error message + + :param message: The message of this CreateBatchOrderAlertsResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreateBatchOrderAlertsResponse. + + :return: The data of this CreateBatchOrderAlertsResponse. + :rtype: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateBatchOrderAlertsResponse. + + :param data: The data of this CreateBatchOrderAlertsResponse. + :type data: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateBatchOrderAlertsResponse. + + :return: The x_request_id of this CreateBatchOrderAlertsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateBatchOrderAlertsResponse. + + :param x_request_id: The x_request_id of this CreateBatchOrderAlertsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBatchOrderAlertsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_request.py new file mode 100755 index 0000000000..82b249aa82 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_request.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDataobjectRelationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_type': 'str', + 'data_object_id': 'str', + 'related_dataclass_type': 'str', + 'body': 'CreateRelation' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_type': 'dataclass_type', + 'data_object_id': 'data_object_id', + 'related_dataclass_type': 'related_dataclass_type', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, dataclass_type=None, data_object_id=None, related_dataclass_type=None, body=None): + """CreateDataobjectRelationRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param dataclass_type: type of dataclass + :type dataclass_type: str + :param data_object_id: ID of dataobject + :type data_object_id: str + :param related_dataclass_type: type of related dataclass + :type related_dataclass_type: str + :param body: Body of the CreateDataobjectRelationRequest + :type body: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + + + + self._project_id = None + self._workspace_id = None + self._dataclass_type = None + self._data_object_id = None + self._related_dataclass_type = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.dataclass_type = dataclass_type + self.data_object_id = data_object_id + self.related_dataclass_type = related_dataclass_type + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateDataobjectRelationRequest. + + ID of project + + :return: The project_id of this CreateDataobjectRelationRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateDataobjectRelationRequest. + + ID of project + + :param project_id: The project_id of this CreateDataobjectRelationRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateDataobjectRelationRequest. + + ID of workspace + + :return: The workspace_id of this CreateDataobjectRelationRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateDataobjectRelationRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreateDataobjectRelationRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_type(self): + """Gets the dataclass_type of this CreateDataobjectRelationRequest. + + type of dataclass + + :return: The dataclass_type of this CreateDataobjectRelationRequest. + :rtype: str + """ + return self._dataclass_type + + @dataclass_type.setter + def dataclass_type(self, dataclass_type): + """Sets the dataclass_type of this CreateDataobjectRelationRequest. + + type of dataclass + + :param dataclass_type: The dataclass_type of this CreateDataobjectRelationRequest. + :type dataclass_type: str + """ + self._dataclass_type = dataclass_type + + @property + def data_object_id(self): + """Gets the data_object_id of this CreateDataobjectRelationRequest. + + ID of dataobject + + :return: The data_object_id of this CreateDataobjectRelationRequest. + :rtype: str + """ + return self._data_object_id + + @data_object_id.setter + def data_object_id(self, data_object_id): + """Sets the data_object_id of this CreateDataobjectRelationRequest. + + ID of dataobject + + :param data_object_id: The data_object_id of this CreateDataobjectRelationRequest. + :type data_object_id: str + """ + self._data_object_id = data_object_id + + @property + def related_dataclass_type(self): + """Gets the related_dataclass_type of this CreateDataobjectRelationRequest. + + type of related dataclass + + :return: The related_dataclass_type of this CreateDataobjectRelationRequest. + :rtype: str + """ + return self._related_dataclass_type + + @related_dataclass_type.setter + def related_dataclass_type(self, related_dataclass_type): + """Sets the related_dataclass_type of this CreateDataobjectRelationRequest. + + type of related dataclass + + :param related_dataclass_type: The related_dataclass_type of this CreateDataobjectRelationRequest. + :type related_dataclass_type: str + """ + self._related_dataclass_type = related_dataclass_type + + @property + def body(self): + """Gets the body of this CreateDataobjectRelationRequest. + + :return: The body of this CreateDataobjectRelationRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDataobjectRelationRequest. + + :param body: The body of this CreateDataobjectRelationRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDataobjectRelationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_response.py new file mode 100755 index 0000000000..528c66c98a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_dataobject_relation_response.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDataobjectRelationResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'request_id': 'str', + 'success': 'bool', + 'total': 'int', + 'limit': 'int', + 'offset': 'int', + 'data': 'DataResponse', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'request_id': 'request_id', + 'success': 'success', + 'total': 'total', + 'limit': 'limit', + 'offset': 'offset', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, request_id=None, success=None, total=None, limit=None, offset=None, data=None, x_request_id=None): + """CreateDataobjectRelationResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param request_id: Error message + :type request_id: str + :param success: Error message + :type success: bool + :param total: tatal count + :type total: int + :param limit: current page count + :type limit: int + :param offset: current page size + :type offset: int + :param data: + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + :param x_request_id: + :type x_request_id: str + """ + + super(CreateDataobjectRelationResponse, self).__init__() + + self._code = None + self._message = None + self._request_id = None + self._success = None + self._total = None + self._limit = None + self._offset = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if request_id is not None: + self.request_id = request_id + if success is not None: + self.success = success + if total is not None: + self.total = total + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreateDataobjectRelationResponse. + + Id value + + :return: The code of this CreateDataobjectRelationResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreateDataobjectRelationResponse. + + Id value + + :param code: The code of this CreateDataobjectRelationResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreateDataobjectRelationResponse. + + Error message + + :return: The message of this CreateDataobjectRelationResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateDataobjectRelationResponse. + + Error message + + :param message: The message of this CreateDataobjectRelationResponse. + :type message: str + """ + self._message = message + + @property + def request_id(self): + """Gets the request_id of this CreateDataobjectRelationResponse. + + Error message + + :return: The request_id of this CreateDataobjectRelationResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateDataobjectRelationResponse. + + Error message + + :param request_id: The request_id of this CreateDataobjectRelationResponse. + :type request_id: str + """ + self._request_id = request_id + + @property + def success(self): + """Gets the success of this CreateDataobjectRelationResponse. + + Error message + + :return: The success of this CreateDataobjectRelationResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this CreateDataobjectRelationResponse. + + Error message + + :param success: The success of this CreateDataobjectRelationResponse. + :type success: bool + """ + self._success = success + + @property + def total(self): + """Gets the total of this CreateDataobjectRelationResponse. + + tatal count + + :return: The total of this CreateDataobjectRelationResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this CreateDataobjectRelationResponse. + + tatal count + + :param total: The total of this CreateDataobjectRelationResponse. + :type total: int + """ + self._total = total + + @property + def limit(self): + """Gets the limit of this CreateDataobjectRelationResponse. + + current page count + + :return: The limit of this CreateDataobjectRelationResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this CreateDataobjectRelationResponse. + + current page count + + :param limit: The limit of this CreateDataobjectRelationResponse. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this CreateDataobjectRelationResponse. + + current page size + + :return: The offset of this CreateDataobjectRelationResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this CreateDataobjectRelationResponse. + + current page size + + :param offset: The offset of this CreateDataobjectRelationResponse. + :type offset: int + """ + self._offset = offset + + @property + def data(self): + """Gets the data of this CreateDataobjectRelationResponse. + + :return: The data of this CreateDataobjectRelationResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataResponse` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateDataobjectRelationResponse. + + :param data: The data of this CreateDataobjectRelationResponse. + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateDataobjectRelationResponse. + + :return: The x_request_id of this CreateDataobjectRelationResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateDataobjectRelationResponse. + + :param x_request_id: The x_request_id of this CreateDataobjectRelationResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDataobjectRelationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident.py new file mode 100755 index 0000000000..eb7d158f1e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident.py @@ -0,0 +1,1287 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncident: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'severity': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'data_source': 'CreateAlertDataSource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'labels': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'int', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'incident_type': 'CreateIncidentIncidentType', + 'network_list': 'list[CreateIncidentNetworkList]', + 'resource_list': 'list[CreateIncidentResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'str', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'CreateIncidentMalware', + 'system_info': 'object', + 'process': 'list[CreateIncidentProcess]', + 'user_info': 'list[CreateIncidentUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_incident_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'severity': 'severity', + 'environment': 'environment', + 'data_source': 'data_source', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'labels': 'labels', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'incident_type': 'incident_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_incident_table': 'system_incident_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, severity=None, environment=None, data_source=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, labels=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, incident_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_incident_table=None, id=None, workspace_id=None): + """CreateIncident + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param severity: 严重性等级 + :type severity: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param data_source: + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param labels: The label, display only + :type labels: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: int + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param incident_type: + :type incident_type: :class:`huaweicloudsdksa.v2.CreateIncidentIncidentType` + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: str + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_incident_table: 系统信息 + :type system_incident_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._severity = None + self._environment = None + self._data_source = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._labels = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._incident_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_incident_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if severity is not None: + self.severity = severity + if environment is not None: + self.environment = environment + if data_source is not None: + self.data_source = data_source + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if labels is not None: + self.labels = labels + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if incident_type is not None: + self.incident_type = incident_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_incident_table is not None: + self.system_incident_table = system_incident_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this CreateIncident. + + 版本 + + :return: The version of this CreateIncident. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateIncident. + + 版本 + + :param version: The version of this CreateIncident. + :type version: str + """ + self._version = version + + @property + def severity(self): + """Gets the severity of this CreateIncident. + + 严重性等级 + + :return: The severity of this CreateIncident. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this CreateIncident. + + 严重性等级 + + :param severity: The severity of this CreateIncident. + :type severity: str + """ + self._severity = severity + + @property + def environment(self): + """Gets the environment of this CreateIncident. + + :return: The environment of this CreateIncident. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this CreateIncident. + + :param environment: The environment of this CreateIncident. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def data_source(self): + """Gets the data_source of this CreateIncident. + + :return: The data_source of this CreateIncident. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this CreateIncident. + + :param data_source: The data_source of this CreateIncident. + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + self._data_source = data_source + + @property + def first_observed_time(self): + """Gets the first_observed_time of this CreateIncident. + + Update time + + :return: The first_observed_time of this CreateIncident. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this CreateIncident. + + Update time + + :param first_observed_time: The first_observed_time of this CreateIncident. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this CreateIncident. + + Update time + + :return: The last_observed_time of this CreateIncident. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this CreateIncident. + + Update time + + :param last_observed_time: The last_observed_time of this CreateIncident. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this CreateIncident. + + Create time + + :return: The create_time of this CreateIncident. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateIncident. + + Create time + + :param create_time: The create_time of this CreateIncident. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this CreateIncident. + + Update time + + :return: The arrive_time of this CreateIncident. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this CreateIncident. + + Update time + + :param arrive_time: The arrive_time of this CreateIncident. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this CreateIncident. + + The name, display only + + :return: The title of this CreateIncident. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CreateIncident. + + The name, display only + + :param title: The title of this CreateIncident. + :type title: str + """ + self._title = title + + @property + def labels(self): + """Gets the labels of this CreateIncident. + + The label, display only + + :return: The labels of this CreateIncident. + :rtype: str + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this CreateIncident. + + The label, display only + + :param labels: The labels of this CreateIncident. + :type labels: str + """ + self._labels = labels + + @property + def description(self): + """Gets the description of this CreateIncident. + + The description, display only + + :return: The description of this CreateIncident. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateIncident. + + The description, display only + + :param description: The description of this CreateIncident. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this CreateIncident. + + 事件URL链接 + + :return: The source_url of this CreateIncident. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this CreateIncident. + + 事件URL链接 + + :param source_url: The source_url of this CreateIncident. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this CreateIncident. + + 事件发生次数 + + :return: The count of this CreateIncident. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this CreateIncident. + + 事件发生次数 + + :param count: The count of this CreateIncident. + :type count: int + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this CreateIncident. + + 置信度 + + :return: The confidence of this CreateIncident. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this CreateIncident. + + 置信度 + + :param confidence: The confidence of this CreateIncident. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this CreateIncident. + + 严重性等级 + + :return: The serverity of this CreateIncident. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this CreateIncident. + + 严重性等级 + + :param serverity: The serverity of this CreateIncident. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this CreateIncident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this CreateIncident. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this CreateIncident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this CreateIncident. + :type criticality: int + """ + self._criticality = criticality + + @property + def incident_type(self): + """Gets the incident_type of this CreateIncident. + + :return: The incident_type of this CreateIncident. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentIncidentType` + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this CreateIncident. + + :param incident_type: The incident_type of this CreateIncident. + :type incident_type: :class:`huaweicloudsdksa.v2.CreateIncidentIncidentType` + """ + self._incident_type = incident_type + + @property + def network_list(self): + """Gets the network_list of this CreateIncident. + + network_list + + :return: The network_list of this CreateIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this CreateIncident. + + network_list + + :param network_list: The network_list of this CreateIncident. + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this CreateIncident. + + network_list + + :return: The resource_list of this CreateIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this CreateIncident. + + network_list + + :param resource_list: The resource_list of this CreateIncident. + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this CreateIncident. + + :return: The remediation of this CreateIncident. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this CreateIncident. + + :param remediation: The remediation of this CreateIncident. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this CreateIncident. + + 验证状态 + + :return: The verification_state of this CreateIncident. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this CreateIncident. + + 验证状态 + + :param verification_state: The verification_state of this CreateIncident. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this CreateIncident. + + 事件处理状态 + + :return: The handle_status of this CreateIncident. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this CreateIncident. + + 事件处理状态 + + :param handle_status: The handle_status of this CreateIncident. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this CreateIncident. + + sla + + :return: The sla of this CreateIncident. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this CreateIncident. + + sla + + :param sla: The sla of this CreateIncident. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this CreateIncident. + + Create time + + :return: The update_time of this CreateIncident. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateIncident. + + Create time + + :param update_time: The update_time of this CreateIncident. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this CreateIncident. + + Create time + + :return: The close_time of this CreateIncident. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this CreateIncident. + + Create time + + :param close_time: The close_time of this CreateIncident. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this CreateIncident. + + 周期/处置阶段编号 + + :return: The chop_phase of this CreateIncident. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this CreateIncident. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this CreateIncident. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this CreateIncident. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this CreateIncident. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this CreateIncident. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this CreateIncident. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this CreateIncident. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this CreateIncident. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this CreateIncident. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this CreateIncident. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this CreateIncident. + + 是否为调试事件. + + :return: The simulation of this CreateIncident. + :rtype: str + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this CreateIncident. + + 是否为调试事件. + + :param simulation: The simulation of this CreateIncident. + :type simulation: str + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this CreateIncident. + + 委托人 + + :return: The actor of this CreateIncident. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this CreateIncident. + + 委托人 + + :param actor: The actor of this CreateIncident. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this CreateIncident. + + The name, display only + + :return: The owner of this CreateIncident. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this CreateIncident. + + The name, display only + + :param owner: The owner of this CreateIncident. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this CreateIncident. + + The name, display only + + :return: The cteator of this CreateIncident. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this CreateIncident. + + The name, display only + + :param cteator: The cteator of this CreateIncident. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this CreateIncident. + + 关闭原因 + + :return: The close_reason of this CreateIncident. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this CreateIncident. + + 关闭原因 + + :param close_reason: The close_reason of this CreateIncident. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this CreateIncident. + + 关闭原因 + + :return: The close_comment of this CreateIncident. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this CreateIncident. + + 关闭原因 + + :param close_comment: The close_comment of this CreateIncident. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this CreateIncident. + + :return: The malware of this CreateIncident. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this CreateIncident. + + :param malware: The malware of this CreateIncident. + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this CreateIncident. + + 系统信息 + + :return: The system_info of this CreateIncident. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this CreateIncident. + + 系统信息 + + :param system_info: The system_info of this CreateIncident. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this CreateIncident. + + 进程信息 + + :return: The process of this CreateIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this CreateIncident. + + 进程信息 + + :param process: The process of this CreateIncident. + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this CreateIncident. + + 用户信息 + + :return: The user_info of this CreateIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this CreateIncident. + + 用户信息 + + :param user_info: The user_info of this CreateIncident. + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this CreateIncident. + + 文件信息 + + :return: The file_info of this CreateIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this CreateIncident. + + 文件信息 + + :param file_info: The file_info of this CreateIncident. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_incident_table(self): + """Gets the system_incident_table of this CreateIncident. + + 系统信息 + + :return: The system_incident_table of this CreateIncident. + :rtype: object + """ + return self._system_incident_table + + @system_incident_table.setter + def system_incident_table(self, system_incident_table): + """Sets the system_incident_table of this CreateIncident. + + 系统信息 + + :param system_incident_table: The system_incident_table of this CreateIncident. + :type system_incident_table: object + """ + self._system_incident_table = system_incident_table + + @property + def id(self): + """Gets the id of this CreateIncident. + + Id value + + :return: The id of this CreateIncident. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateIncident. + + Id value + + :param id: The id of this CreateIncident. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateIncident. + + workspace id + + :return: The workspace_id of this CreateIncident. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateIncident. + + workspace id + + :param workspace_id: The workspace_id of this CreateIncident. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncident): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_incident_type.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_incident_type.py new file mode 100755 index 0000000000..2ca33f4e71 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_incident_type.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentIncidentType: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'layout_id': 'str', + 'incident_type': 'str', + 'category': 'str' + } + + attribute_map = { + 'id': 'id', + 'layout_id': 'layoutId', + 'incident_type': 'incident_type', + 'category': 'category' + } + + def __init__(self, id=None, layout_id=None, incident_type=None, category=None): + """CreateIncidentIncidentType + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param layout_id: Id value + :type layout_id: str + :param incident_type: Id value + :type incident_type: str + :param category: Id value + :type category: str + """ + + + + self._id = None + self._layout_id = None + self._incident_type = None + self._category = None + self.discriminator = None + + if id is not None: + self.id = id + if layout_id is not None: + self.layout_id = layout_id + if incident_type is not None: + self.incident_type = incident_type + if category is not None: + self.category = category + + @property + def id(self): + """Gets the id of this CreateIncidentIncidentType. + + Id value + + :return: The id of this CreateIncidentIncidentType. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateIncidentIncidentType. + + Id value + + :param id: The id of this CreateIncidentIncidentType. + :type id: str + """ + self._id = id + + @property + def layout_id(self): + """Gets the layout_id of this CreateIncidentIncidentType. + + Id value + + :return: The layout_id of this CreateIncidentIncidentType. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this CreateIncidentIncidentType. + + Id value + + :param layout_id: The layout_id of this CreateIncidentIncidentType. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def incident_type(self): + """Gets the incident_type of this CreateIncidentIncidentType. + + Id value + + :return: The incident_type of this CreateIncidentIncidentType. + :rtype: str + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this CreateIncidentIncidentType. + + Id value + + :param incident_type: The incident_type of this CreateIncidentIncidentType. + :type incident_type: str + """ + self._incident_type = incident_type + + @property + def category(self): + """Gets the category of this CreateIncidentIncidentType. + + Id value + + :return: The category of this CreateIncidentIncidentType. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CreateIncidentIncidentType. + + Id value + + :param category: The category of this CreateIncidentIncidentType. + :type category: str + """ + self._category = category + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentIncidentType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_malware.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_malware.py new file mode 100755 index 0000000000..49a982f1a3 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_malware.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentMalware: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'malware_family': 'str', + 'malware_class': 'str' + } + + attribute_map = { + 'malware_family': 'malware_family', + 'malware_class': 'malware_class' + } + + def __init__(self, malware_family=None, malware_class=None): + """CreateIncidentMalware + + The model defined in huaweicloud sdk + + :param malware_family: 恶意家族 + :type malware_family: str + :param malware_class: 恶意软件分类 + :type malware_class: str + """ + + + + self._malware_family = None + self._malware_class = None + self.discriminator = None + + if malware_family is not None: + self.malware_family = malware_family + if malware_class is not None: + self.malware_class = malware_class + + @property + def malware_family(self): + """Gets the malware_family of this CreateIncidentMalware. + + 恶意家族 + + :return: The malware_family of this CreateIncidentMalware. + :rtype: str + """ + return self._malware_family + + @malware_family.setter + def malware_family(self, malware_family): + """Sets the malware_family of this CreateIncidentMalware. + + 恶意家族 + + :param malware_family: The malware_family of this CreateIncidentMalware. + :type malware_family: str + """ + self._malware_family = malware_family + + @property + def malware_class(self): + """Gets the malware_class of this CreateIncidentMalware. + + 恶意软件分类 + + :return: The malware_class of this CreateIncidentMalware. + :rtype: str + """ + return self._malware_class + + @malware_class.setter + def malware_class(self, malware_class): + """Sets the malware_class of this CreateIncidentMalware. + + 恶意软件分类 + + :param malware_class: The malware_class of this CreateIncidentMalware. + :type malware_class: str + """ + self._malware_class = malware_class + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentMalware): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_network_list.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_network_list.py new file mode 100755 index 0000000000..08d09b3dd2 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_network_list.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentNetworkList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'direction': 'object', + 'protocol': 'str', + 'src_ip': 'str', + 'src_port': 'str', + 'src_domain': 'str', + 'dest_ip': 'str', + 'dest_port': 'str', + 'dest_domain': 'str', + 'src_geo': 'object', + 'dest_geo': 'object' + } + + attribute_map = { + 'direction': 'direction', + 'protocol': 'protocol', + 'src_ip': 'src_ip', + 'src_port': 'src_port', + 'src_domain': 'src_domain', + 'dest_ip': 'dest_ip', + 'dest_port': 'dest_port', + 'dest_domain': 'dest_domain', + 'src_geo': 'src_geo', + 'dest_geo': 'dest_geo' + } + + def __init__(self, direction=None, protocol=None, src_ip=None, src_port=None, src_domain=None, dest_ip=None, dest_port=None, dest_domain=None, src_geo=None, dest_geo=None): + """CreateIncidentNetworkList + + The model defined in huaweicloud sdk + + :param direction: 方向,取值范围:IN | OUT + :type direction: object + :param protocol: 协议,参考:IANA registered name + :type protocol: str + :param src_ip: 源IP地址 + :type src_ip: str + :param src_port: 源端口,0–65535 + :type src_port: str + :param src_domain: 源域名,最大128个字符 + :type src_domain: str + :param dest_ip: 目的IP地址 + :type dest_ip: str + :param dest_port: 目的端口,0–65535 + :type dest_port: str + :param dest_domain: 目的域名,最大128个字符 + :type dest_domain: str + :param src_geo: 源IP的地理位置信息 + :type src_geo: object + :param dest_geo: 目的IP的地理位置信息 + :type dest_geo: object + """ + + + + self._direction = None + self._protocol = None + self._src_ip = None + self._src_port = None + self._src_domain = None + self._dest_ip = None + self._dest_port = None + self._dest_domain = None + self._src_geo = None + self._dest_geo = None + self.discriminator = None + + if direction is not None: + self.direction = direction + if protocol is not None: + self.protocol = protocol + if src_ip is not None: + self.src_ip = src_ip + if src_port is not None: + self.src_port = src_port + if src_domain is not None: + self.src_domain = src_domain + if dest_ip is not None: + self.dest_ip = dest_ip + if dest_port is not None: + self.dest_port = dest_port + if dest_domain is not None: + self.dest_domain = dest_domain + if src_geo is not None: + self.src_geo = src_geo + if dest_geo is not None: + self.dest_geo = dest_geo + + @property + def direction(self): + """Gets the direction of this CreateIncidentNetworkList. + + 方向,取值范围:IN | OUT + + :return: The direction of this CreateIncidentNetworkList. + :rtype: object + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this CreateIncidentNetworkList. + + 方向,取值范围:IN | OUT + + :param direction: The direction of this CreateIncidentNetworkList. + :type direction: object + """ + self._direction = direction + + @property + def protocol(self): + """Gets the protocol of this CreateIncidentNetworkList. + + 协议,参考:IANA registered name + + :return: The protocol of this CreateIncidentNetworkList. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this CreateIncidentNetworkList. + + 协议,参考:IANA registered name + + :param protocol: The protocol of this CreateIncidentNetworkList. + :type protocol: str + """ + self._protocol = protocol + + @property + def src_ip(self): + """Gets the src_ip of this CreateIncidentNetworkList. + + 源IP地址 + + :return: The src_ip of this CreateIncidentNetworkList. + :rtype: str + """ + return self._src_ip + + @src_ip.setter + def src_ip(self, src_ip): + """Sets the src_ip of this CreateIncidentNetworkList. + + 源IP地址 + + :param src_ip: The src_ip of this CreateIncidentNetworkList. + :type src_ip: str + """ + self._src_ip = src_ip + + @property + def src_port(self): + """Gets the src_port of this CreateIncidentNetworkList. + + 源端口,0–65535 + + :return: The src_port of this CreateIncidentNetworkList. + :rtype: str + """ + return self._src_port + + @src_port.setter + def src_port(self, src_port): + """Sets the src_port of this CreateIncidentNetworkList. + + 源端口,0–65535 + + :param src_port: The src_port of this CreateIncidentNetworkList. + :type src_port: str + """ + self._src_port = src_port + + @property + def src_domain(self): + """Gets the src_domain of this CreateIncidentNetworkList. + + 源域名,最大128个字符 + + :return: The src_domain of this CreateIncidentNetworkList. + :rtype: str + """ + return self._src_domain + + @src_domain.setter + def src_domain(self, src_domain): + """Sets the src_domain of this CreateIncidentNetworkList. + + 源域名,最大128个字符 + + :param src_domain: The src_domain of this CreateIncidentNetworkList. + :type src_domain: str + """ + self._src_domain = src_domain + + @property + def dest_ip(self): + """Gets the dest_ip of this CreateIncidentNetworkList. + + 目的IP地址 + + :return: The dest_ip of this CreateIncidentNetworkList. + :rtype: str + """ + return self._dest_ip + + @dest_ip.setter + def dest_ip(self, dest_ip): + """Sets the dest_ip of this CreateIncidentNetworkList. + + 目的IP地址 + + :param dest_ip: The dest_ip of this CreateIncidentNetworkList. + :type dest_ip: str + """ + self._dest_ip = dest_ip + + @property + def dest_port(self): + """Gets the dest_port of this CreateIncidentNetworkList. + + 目的端口,0–65535 + + :return: The dest_port of this CreateIncidentNetworkList. + :rtype: str + """ + return self._dest_port + + @dest_port.setter + def dest_port(self, dest_port): + """Sets the dest_port of this CreateIncidentNetworkList. + + 目的端口,0–65535 + + :param dest_port: The dest_port of this CreateIncidentNetworkList. + :type dest_port: str + """ + self._dest_port = dest_port + + @property + def dest_domain(self): + """Gets the dest_domain of this CreateIncidentNetworkList. + + 目的域名,最大128个字符 + + :return: The dest_domain of this CreateIncidentNetworkList. + :rtype: str + """ + return self._dest_domain + + @dest_domain.setter + def dest_domain(self, dest_domain): + """Sets the dest_domain of this CreateIncidentNetworkList. + + 目的域名,最大128个字符 + + :param dest_domain: The dest_domain of this CreateIncidentNetworkList. + :type dest_domain: str + """ + self._dest_domain = dest_domain + + @property + def src_geo(self): + """Gets the src_geo of this CreateIncidentNetworkList. + + 源IP的地理位置信息 + + :return: The src_geo of this CreateIncidentNetworkList. + :rtype: object + """ + return self._src_geo + + @src_geo.setter + def src_geo(self, src_geo): + """Sets the src_geo of this CreateIncidentNetworkList. + + 源IP的地理位置信息 + + :param src_geo: The src_geo of this CreateIncidentNetworkList. + :type src_geo: object + """ + self._src_geo = src_geo + + @property + def dest_geo(self): + """Gets the dest_geo of this CreateIncidentNetworkList. + + 目的IP的地理位置信息 + + :return: The dest_geo of this CreateIncidentNetworkList. + :rtype: object + """ + return self._dest_geo + + @dest_geo.setter + def dest_geo(self, dest_geo): + """Sets the dest_geo of this CreateIncidentNetworkList. + + 目的IP的地理位置信息 + + :param dest_geo: The dest_geo of this CreateIncidentNetworkList. + :type dest_geo: object + """ + self._dest_geo = dest_geo + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentNetworkList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_process.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_process.py new file mode 100755 index 0000000000..356a243d37 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_process.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentProcess: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'process_name': 'str', + 'process_path': 'str', + 'process_pid': 'str', + 'process_uid': 'str', + 'process_cmdline': 'str' + } + + attribute_map = { + 'process_name': 'process_name', + 'process_path': 'process_path', + 'process_pid': 'process_pid', + 'process_uid': 'process_uid', + 'process_cmdline': 'process_cmdline' + } + + def __init__(self, process_name=None, process_path=None, process_pid=None, process_uid=None, process_cmdline=None): + """CreateIncidentProcess + + The model defined in huaweicloud sdk + + :param process_name: The name, display only + :type process_name: str + :param process_path: The name, display only + :type process_path: str + :param process_pid: Id value + :type process_pid: str + :param process_uid: Id value + :type process_uid: str + :param process_cmdline: The name, display only + :type process_cmdline: str + """ + + + + self._process_name = None + self._process_path = None + self._process_pid = None + self._process_uid = None + self._process_cmdline = None + self.discriminator = None + + if process_name is not None: + self.process_name = process_name + if process_path is not None: + self.process_path = process_path + if process_pid is not None: + self.process_pid = process_pid + if process_uid is not None: + self.process_uid = process_uid + if process_cmdline is not None: + self.process_cmdline = process_cmdline + + @property + def process_name(self): + """Gets the process_name of this CreateIncidentProcess. + + The name, display only + + :return: The process_name of this CreateIncidentProcess. + :rtype: str + """ + return self._process_name + + @process_name.setter + def process_name(self, process_name): + """Sets the process_name of this CreateIncidentProcess. + + The name, display only + + :param process_name: The process_name of this CreateIncidentProcess. + :type process_name: str + """ + self._process_name = process_name + + @property + def process_path(self): + """Gets the process_path of this CreateIncidentProcess. + + The name, display only + + :return: The process_path of this CreateIncidentProcess. + :rtype: str + """ + return self._process_path + + @process_path.setter + def process_path(self, process_path): + """Sets the process_path of this CreateIncidentProcess. + + The name, display only + + :param process_path: The process_path of this CreateIncidentProcess. + :type process_path: str + """ + self._process_path = process_path + + @property + def process_pid(self): + """Gets the process_pid of this CreateIncidentProcess. + + Id value + + :return: The process_pid of this CreateIncidentProcess. + :rtype: str + """ + return self._process_pid + + @process_pid.setter + def process_pid(self, process_pid): + """Sets the process_pid of this CreateIncidentProcess. + + Id value + + :param process_pid: The process_pid of this CreateIncidentProcess. + :type process_pid: str + """ + self._process_pid = process_pid + + @property + def process_uid(self): + """Gets the process_uid of this CreateIncidentProcess. + + Id value + + :return: The process_uid of this CreateIncidentProcess. + :rtype: str + """ + return self._process_uid + + @process_uid.setter + def process_uid(self, process_uid): + """Sets the process_uid of this CreateIncidentProcess. + + Id value + + :param process_uid: The process_uid of this CreateIncidentProcess. + :type process_uid: str + """ + self._process_uid = process_uid + + @property + def process_cmdline(self): + """Gets the process_cmdline of this CreateIncidentProcess. + + The name, display only + + :return: The process_cmdline of this CreateIncidentProcess. + :rtype: str + """ + return self._process_cmdline + + @process_cmdline.setter + def process_cmdline(self, process_cmdline): + """Sets the process_cmdline of this CreateIncidentProcess. + + The name, display only + + :param process_cmdline: The process_cmdline of this CreateIncidentProcess. + :type process_cmdline: str + """ + self._process_cmdline = process_cmdline + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentProcess): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request.py new file mode 100755 index 0000000000..0c162e9ebd --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'CreateIncidentRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateIncidentRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the CreateIncidentRequest + :type body: :class:`huaweicloudsdksa.v2.CreateIncidentRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateIncidentRequest. + + ID of project + + :return: The project_id of this CreateIncidentRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateIncidentRequest. + + ID of project + + :param project_id: The project_id of this CreateIncidentRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateIncidentRequest. + + ID of workspace + + :return: The workspace_id of this CreateIncidentRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateIncidentRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreateIncidentRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateIncidentRequest. + + :return: The body of this CreateIncidentRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateIncidentRequest. + + :param body: The body of this CreateIncidentRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateIncidentRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request_body.py new file mode 100755 index 0000000000..67109e474f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'CreateIncident' + } + + attribute_map = { + 'data_object': 'data_object' + } + + def __init__(self, data_object=None): + """CreateIncidentRequestBody + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.CreateIncident` + """ + + + + self._data_object = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + + @property + def data_object(self): + """Gets the data_object of this CreateIncidentRequestBody. + + :return: The data_object of this CreateIncidentRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncident` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this CreateIncidentRequestBody. + + :param data_object: The data_object of this CreateIncidentRequestBody. + :type data_object: :class:`huaweicloudsdksa.v2.CreateIncident` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_resource_list.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_resource_list.py new file mode 100755 index 0000000000..beee07d652 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_resource_list.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentResourceList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'type': 'str', + 'domain_id': 'str', + 'project_id': 'str', + 'region_id': 'str', + 'ep_id': 'str', + 'ep_name': 'str', + 'tags': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'ep_name': 'ep_name', + 'tags': 'tags' + } + + def __init__(self, id=None, name=None, type=None, domain_id=None, project_id=None, region_id=None, ep_id=None, ep_name=None, tags=None): + """CreateIncidentResourceList + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param type: The name, display only + :type type: str + :param domain_id: Id value + :type domain_id: str + :param project_id: Id value + :type project_id: str + :param region_id: Id value + :type region_id: str + :param ep_id: Id value + :type ep_id: str + :param ep_name: The name, display only + :type ep_name: str + :param tags: Id value + :type tags: str + """ + + + + self._id = None + self._name = None + self._type = None + self._domain_id = None + self._project_id = None + self._region_id = None + self._ep_id = None + self._ep_name = None + self._tags = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if ep_name is not None: + self.ep_name = ep_name + if tags is not None: + self.tags = tags + + @property + def id(self): + """Gets the id of this CreateIncidentResourceList. + + Id value + + :return: The id of this CreateIncidentResourceList. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateIncidentResourceList. + + Id value + + :param id: The id of this CreateIncidentResourceList. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreateIncidentResourceList. + + The name, display only + + :return: The name of this CreateIncidentResourceList. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateIncidentResourceList. + + The name, display only + + :param name: The name of this CreateIncidentResourceList. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CreateIncidentResourceList. + + The name, display only + + :return: The type of this CreateIncidentResourceList. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateIncidentResourceList. + + The name, display only + + :param type: The type of this CreateIncidentResourceList. + :type type: str + """ + self._type = type + + @property + def domain_id(self): + """Gets the domain_id of this CreateIncidentResourceList. + + Id value + + :return: The domain_id of this CreateIncidentResourceList. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CreateIncidentResourceList. + + Id value + + :param domain_id: The domain_id of this CreateIncidentResourceList. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this CreateIncidentResourceList. + + Id value + + :return: The project_id of this CreateIncidentResourceList. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateIncidentResourceList. + + Id value + + :param project_id: The project_id of this CreateIncidentResourceList. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this CreateIncidentResourceList. + + Id value + + :return: The region_id of this CreateIncidentResourceList. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this CreateIncidentResourceList. + + Id value + + :param region_id: The region_id of this CreateIncidentResourceList. + :type region_id: str + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this CreateIncidentResourceList. + + Id value + + :return: The ep_id of this CreateIncidentResourceList. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this CreateIncidentResourceList. + + Id value + + :param ep_id: The ep_id of this CreateIncidentResourceList. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def ep_name(self): + """Gets the ep_name of this CreateIncidentResourceList. + + The name, display only + + :return: The ep_name of this CreateIncidentResourceList. + :rtype: str + """ + return self._ep_name + + @ep_name.setter + def ep_name(self, ep_name): + """Sets the ep_name of this CreateIncidentResourceList. + + The name, display only + + :param ep_name: The ep_name of this CreateIncidentResourceList. + :type ep_name: str + """ + self._ep_name = ep_name + + @property + def tags(self): + """Gets the tags of this CreateIncidentResourceList. + + Id value + + :return: The tags of this CreateIncidentResourceList. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateIncidentResourceList. + + Id value + + :param tags: The tags of this CreateIncidentResourceList. + :type tags: str + """ + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentResourceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_response.py new file mode 100755 index 0000000000..7e93be95e6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IncidentDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreateIncidentResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IncidentDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(CreateIncidentResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreateIncidentResponse. + + Id value + + :return: The code of this CreateIncidentResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreateIncidentResponse. + + Id value + + :param code: The code of this CreateIncidentResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreateIncidentResponse. + + Error message + + :return: The message of this CreateIncidentResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateIncidentResponse. + + Error message + + :param message: The message of this CreateIncidentResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreateIncidentResponse. + + :return: The data of this CreateIncidentResponse. + :rtype: :class:`huaweicloudsdksa.v2.IncidentDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateIncidentResponse. + + :param data: The data of this CreateIncidentResponse. + :type data: :class:`huaweicloudsdksa.v2.IncidentDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateIncidentResponse. + + :return: The x_request_id of this CreateIncidentResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateIncidentResponse. + + :param x_request_id: The x_request_id of this CreateIncidentResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_user_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_user_info.py new file mode 100755 index 0000000000..69d3f1d5ab --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_incident_user_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIncidentUserInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'user_id': 'str', + 'user_name': 'str' + } + + attribute_map = { + 'user_id': 'user_id', + 'user_name': 'user_name' + } + + def __init__(self, user_id=None, user_name=None): + """CreateIncidentUserInfo + + The model defined in huaweicloud sdk + + :param user_id: Id value + :type user_id: str + :param user_name: The name, display only + :type user_name: str + """ + + + + self._user_id = None + self._user_name = None + self.discriminator = None + + if user_id is not None: + self.user_id = user_id + if user_name is not None: + self.user_name = user_name + + @property + def user_id(self): + """Gets the user_id of this CreateIncidentUserInfo. + + Id value + + :return: The user_id of this CreateIncidentUserInfo. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this CreateIncidentUserInfo. + + Id value + + :param user_id: The user_id of this CreateIncidentUserInfo. + :type user_id: str + """ + self._user_id = user_id + + @property + def user_name(self): + """Gets the user_name of this CreateIncidentUserInfo. + + The name, display only + + :return: The user_name of this CreateIncidentUserInfo. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this CreateIncidentUserInfo. + + The name, display only + + :param user_name: The user_name of this CreateIncidentUserInfo. + :type user_name: str + """ + self._user_name = user_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIncidentUserInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail.py new file mode 100755 index 0000000000..d7acc48c48 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail.py @@ -0,0 +1,735 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIndicatorDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_source': 'CreateAlertDataSource', + 'verdict': 'str', + 'confidence': 'int', + 'status': 'str', + 'labels': 'str', + 'value': 'str', + 'granular_marking': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'defanged': 'bool', + 'first_report_time': 'str', + 'last_report_time': 'str', + 'id': 'str', + 'indicator_type': 'CreateIndicatorDetailIndicatorType', + 'name': 'str', + 'dataclass_id': 'str', + 'type': 'str', + 'data_object': 'IndicatorDataObjectDetail', + 'workspace_id': 'str', + 'project_id': 'str', + 'layout_id': 'str', + 'dataclass': 'DataClassRefPojo', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'data_source': 'data_source', + 'verdict': 'verdict', + 'confidence': 'confidence', + 'status': 'status', + 'labels': 'labels', + 'value': 'value', + 'granular_marking': 'granular_marking', + 'environment': 'environment', + 'defanged': 'defanged', + 'first_report_time': 'first_report_time', + 'last_report_time': 'last_report_time', + 'id': 'id', + 'indicator_type': 'indicator_type', + 'name': 'name', + 'dataclass_id': 'dataclass_id', + 'type': 'type', + 'data_object': 'data_object', + 'workspace_id': 'workspace_id', + 'project_id': 'project_id', + 'layout_id': 'layout_id', + 'dataclass': 'dataclass', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, data_source=None, verdict=None, confidence=None, status=None, labels=None, value=None, granular_marking=None, environment=None, defanged=None, first_report_time=None, last_report_time=None, id=None, indicator_type=None, name=None, dataclass_id=None, type=None, data_object=None, workspace_id=None, project_id=None, layout_id=None, dataclass=None, create_time=None, update_time=None): + """CreateIndicatorDetail + + The model defined in huaweicloud sdk + + :param data_source: + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + :param verdict: 威胁度 + :type verdict: str + :param confidence: 置信度 + :type confidence: int + :param status: 状态 + :type status: str + :param labels: 标签 + :type labels: str + :param value: 值 + :type value: str + :param granular_marking: 粒度(保密等级),由高到低:1(首次发现)、2(自产数据)、3(需购买)、4(外网直接查询) + :type granular_marking: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param defanged: 是否失效 + :type defanged: bool + :param first_report_time: Create time + :type first_report_time: str + :param last_report_time: Update time + :type last_report_time: str + :param id: 指标ID + :type id: str + :param indicator_type: + :type indicator_type: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + :param name: 指标名称 + :type name: str + :param dataclass_id: 数据类ID + :type dataclass_id: str + :param type: 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + :type type: str + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + :param workspace_id: workspace id + :type workspace_id: str + :param project_id: Project id value + :type project_id: str + :param layout_id: 布局ID + :type layout_id: str + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + """ + + + + self._data_source = None + self._verdict = None + self._confidence = None + self._status = None + self._labels = None + self._value = None + self._granular_marking = None + self._environment = None + self._defanged = None + self._first_report_time = None + self._last_report_time = None + self._id = None + self._indicator_type = None + self._name = None + self._dataclass_id = None + self._type = None + self._data_object = None + self._workspace_id = None + self._project_id = None + self._layout_id = None + self._dataclass = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if data_source is not None: + self.data_source = data_source + if verdict is not None: + self.verdict = verdict + if confidence is not None: + self.confidence = confidence + if status is not None: + self.status = status + if labels is not None: + self.labels = labels + if value is not None: + self.value = value + if granular_marking is not None: + self.granular_marking = granular_marking + if environment is not None: + self.environment = environment + if defanged is not None: + self.defanged = defanged + if first_report_time is not None: + self.first_report_time = first_report_time + if last_report_time is not None: + self.last_report_time = last_report_time + if id is not None: + self.id = id + if indicator_type is not None: + self.indicator_type = indicator_type + self.name = name + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if type is not None: + self.type = type + if data_object is not None: + self.data_object = data_object + if workspace_id is not None: + self.workspace_id = workspace_id + if project_id is not None: + self.project_id = project_id + if layout_id is not None: + self.layout_id = layout_id + if dataclass is not None: + self.dataclass = dataclass + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def data_source(self): + """Gets the data_source of this CreateIndicatorDetail. + + :return: The data_source of this CreateIndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this CreateIndicatorDetail. + + :param data_source: The data_source of this CreateIndicatorDetail. + :type data_source: :class:`huaweicloudsdksa.v2.CreateAlertDataSource` + """ + self._data_source = data_source + + @property + def verdict(self): + """Gets the verdict of this CreateIndicatorDetail. + + 威胁度 + + :return: The verdict of this CreateIndicatorDetail. + :rtype: str + """ + return self._verdict + + @verdict.setter + def verdict(self, verdict): + """Sets the verdict of this CreateIndicatorDetail. + + 威胁度 + + :param verdict: The verdict of this CreateIndicatorDetail. + :type verdict: str + """ + self._verdict = verdict + + @property + def confidence(self): + """Gets the confidence of this CreateIndicatorDetail. + + 置信度 + + :return: The confidence of this CreateIndicatorDetail. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this CreateIndicatorDetail. + + 置信度 + + :param confidence: The confidence of this CreateIndicatorDetail. + :type confidence: int + """ + self._confidence = confidence + + @property + def status(self): + """Gets the status of this CreateIndicatorDetail. + + 状态 + + :return: The status of this CreateIndicatorDetail. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateIndicatorDetail. + + 状态 + + :param status: The status of this CreateIndicatorDetail. + :type status: str + """ + self._status = status + + @property + def labels(self): + """Gets the labels of this CreateIndicatorDetail. + + 标签 + + :return: The labels of this CreateIndicatorDetail. + :rtype: str + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this CreateIndicatorDetail. + + 标签 + + :param labels: The labels of this CreateIndicatorDetail. + :type labels: str + """ + self._labels = labels + + @property + def value(self): + """Gets the value of this CreateIndicatorDetail. + + 值 + + :return: The value of this CreateIndicatorDetail. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CreateIndicatorDetail. + + 值 + + :param value: The value of this CreateIndicatorDetail. + :type value: str + """ + self._value = value + + @property + def granular_marking(self): + """Gets the granular_marking of this CreateIndicatorDetail. + + 粒度(保密等级),由高到低:1(首次发现)、2(自产数据)、3(需购买)、4(外网直接查询) + + :return: The granular_marking of this CreateIndicatorDetail. + :rtype: str + """ + return self._granular_marking + + @granular_marking.setter + def granular_marking(self, granular_marking): + """Sets the granular_marking of this CreateIndicatorDetail. + + 粒度(保密等级),由高到低:1(首次发现)、2(自产数据)、3(需购买)、4(外网直接查询) + + :param granular_marking: The granular_marking of this CreateIndicatorDetail. + :type granular_marking: str + """ + self._granular_marking = granular_marking + + @property + def environment(self): + """Gets the environment of this CreateIndicatorDetail. + + :return: The environment of this CreateIndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this CreateIndicatorDetail. + + :param environment: The environment of this CreateIndicatorDetail. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def defanged(self): + """Gets the defanged of this CreateIndicatorDetail. + + 是否失效 + + :return: The defanged of this CreateIndicatorDetail. + :rtype: bool + """ + return self._defanged + + @defanged.setter + def defanged(self, defanged): + """Sets the defanged of this CreateIndicatorDetail. + + 是否失效 + + :param defanged: The defanged of this CreateIndicatorDetail. + :type defanged: bool + """ + self._defanged = defanged + + @property + def first_report_time(self): + """Gets the first_report_time of this CreateIndicatorDetail. + + Create time + + :return: The first_report_time of this CreateIndicatorDetail. + :rtype: str + """ + return self._first_report_time + + @first_report_time.setter + def first_report_time(self, first_report_time): + """Sets the first_report_time of this CreateIndicatorDetail. + + Create time + + :param first_report_time: The first_report_time of this CreateIndicatorDetail. + :type first_report_time: str + """ + self._first_report_time = first_report_time + + @property + def last_report_time(self): + """Gets the last_report_time of this CreateIndicatorDetail. + + Update time + + :return: The last_report_time of this CreateIndicatorDetail. + :rtype: str + """ + return self._last_report_time + + @last_report_time.setter + def last_report_time(self, last_report_time): + """Sets the last_report_time of this CreateIndicatorDetail. + + Update time + + :param last_report_time: The last_report_time of this CreateIndicatorDetail. + :type last_report_time: str + """ + self._last_report_time = last_report_time + + @property + def id(self): + """Gets the id of this CreateIndicatorDetail. + + 指标ID + + :return: The id of this CreateIndicatorDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateIndicatorDetail. + + 指标ID + + :param id: The id of this CreateIndicatorDetail. + :type id: str + """ + self._id = id + + @property + def indicator_type(self): + """Gets the indicator_type of this CreateIndicatorDetail. + + :return: The indicator_type of this CreateIndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + """ + return self._indicator_type + + @indicator_type.setter + def indicator_type(self, indicator_type): + """Sets the indicator_type of this CreateIndicatorDetail. + + :param indicator_type: The indicator_type of this CreateIndicatorDetail. + :type indicator_type: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + """ + self._indicator_type = indicator_type + + @property + def name(self): + """Gets the name of this CreateIndicatorDetail. + + 指标名称 + + :return: The name of this CreateIndicatorDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateIndicatorDetail. + + 指标名称 + + :param name: The name of this CreateIndicatorDetail. + :type name: str + """ + self._name = name + + @property + def dataclass_id(self): + """Gets the dataclass_id of this CreateIndicatorDetail. + + 数据类ID + + :return: The dataclass_id of this CreateIndicatorDetail. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this CreateIndicatorDetail. + + 数据类ID + + :param dataclass_id: The dataclass_id of this CreateIndicatorDetail. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def type(self): + """Gets the type of this CreateIndicatorDetail. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :return: The type of this CreateIndicatorDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateIndicatorDetail. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :param type: The type of this CreateIndicatorDetail. + :type type: str + """ + self._type = type + + @property + def data_object(self): + """Gets the data_object of this CreateIndicatorDetail. + + :return: The data_object of this CreateIndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this CreateIndicatorDetail. + + :param data_object: The data_object of this CreateIndicatorDetail. + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + self._data_object = data_object + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateIndicatorDetail. + + workspace id + + :return: The workspace_id of this CreateIndicatorDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateIndicatorDetail. + + workspace id + + :param workspace_id: The workspace_id of this CreateIndicatorDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def project_id(self): + """Gets the project_id of this CreateIndicatorDetail. + + Project id value + + :return: The project_id of this CreateIndicatorDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateIndicatorDetail. + + Project id value + + :param project_id: The project_id of this CreateIndicatorDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def layout_id(self): + """Gets the layout_id of this CreateIndicatorDetail. + + 布局ID + + :return: The layout_id of this CreateIndicatorDetail. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this CreateIndicatorDetail. + + 布局ID + + :param layout_id: The layout_id of this CreateIndicatorDetail. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def dataclass(self): + """Gets the dataclass of this CreateIndicatorDetail. + + :return: The dataclass of this CreateIndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this CreateIndicatorDetail. + + :param dataclass: The dataclass of this CreateIndicatorDetail. + :type dataclass: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + """ + self._dataclass = dataclass + + @property + def create_time(self): + """Gets the create_time of this CreateIndicatorDetail. + + Create time + + :return: The create_time of this CreateIndicatorDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateIndicatorDetail. + + Create time + + :param create_time: The create_time of this CreateIndicatorDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this CreateIndicatorDetail. + + Update time + + :return: The update_time of this CreateIndicatorDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateIndicatorDetail. + + Update time + + :param update_time: The update_time of this CreateIndicatorDetail. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIndicatorDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail_indicator_type.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail_indicator_type.py new file mode 100755 index 0000000000..0aa8f2481a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_detail_indicator_type.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIndicatorDetailIndicatorType: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'indicator_type': 'str', + 'id': 'str', + 'category': 'str', + 'layout_id': 'str' + } + + attribute_map = { + 'indicator_type': 'indicator_type', + 'id': 'id', + 'category': 'category', + 'layout_id': 'layoutId' + } + + def __init__(self, indicator_type=None, id=None, category=None, layout_id=None): + """CreateIndicatorDetailIndicatorType + + The model defined in huaweicloud sdk + + :param indicator_type: indicator_type + :type indicator_type: str + :param id: id + :type id: str + :param category: category + :type category: str + :param layout_id: layoutId + :type layout_id: str + """ + + + + self._indicator_type = None + self._id = None + self._category = None + self._layout_id = None + self.discriminator = None + + if indicator_type is not None: + self.indicator_type = indicator_type + if id is not None: + self.id = id + if category is not None: + self.category = category + if layout_id is not None: + self.layout_id = layout_id + + @property + def indicator_type(self): + """Gets the indicator_type of this CreateIndicatorDetailIndicatorType. + + indicator_type + + :return: The indicator_type of this CreateIndicatorDetailIndicatorType. + :rtype: str + """ + return self._indicator_type + + @indicator_type.setter + def indicator_type(self, indicator_type): + """Sets the indicator_type of this CreateIndicatorDetailIndicatorType. + + indicator_type + + :param indicator_type: The indicator_type of this CreateIndicatorDetailIndicatorType. + :type indicator_type: str + """ + self._indicator_type = indicator_type + + @property + def id(self): + """Gets the id of this CreateIndicatorDetailIndicatorType. + + id + + :return: The id of this CreateIndicatorDetailIndicatorType. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateIndicatorDetailIndicatorType. + + id + + :param id: The id of this CreateIndicatorDetailIndicatorType. + :type id: str + """ + self._id = id + + @property + def category(self): + """Gets the category of this CreateIndicatorDetailIndicatorType. + + category + + :return: The category of this CreateIndicatorDetailIndicatorType. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this CreateIndicatorDetailIndicatorType. + + category + + :param category: The category of this CreateIndicatorDetailIndicatorType. + :type category: str + """ + self._category = category + + @property + def layout_id(self): + """Gets the layout_id of this CreateIndicatorDetailIndicatorType. + + layoutId + + :return: The layout_id of this CreateIndicatorDetailIndicatorType. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this CreateIndicatorDetailIndicatorType. + + layoutId + + :param layout_id: The layout_id of this CreateIndicatorDetailIndicatorType. + :type layout_id: str + """ + self._layout_id = layout_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIndicatorDetailIndicatorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_request.py new file mode 100755 index 0000000000..07730575c7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIndicatorRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'IndicatorCreateRequest' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreateIndicatorRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: workspace id + :type workspace_id: str + :param body: Body of the CreateIndicatorRequest + :type body: :class:`huaweicloudsdksa.v2.IndicatorCreateRequest` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreateIndicatorRequest. + + ID of project + + :return: The project_id of this CreateIndicatorRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateIndicatorRequest. + + ID of project + + :param project_id: The project_id of this CreateIndicatorRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreateIndicatorRequest. + + workspace id + + :return: The workspace_id of this CreateIndicatorRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreateIndicatorRequest. + + workspace id + + :param workspace_id: The workspace_id of this CreateIndicatorRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreateIndicatorRequest. + + :return: The body of this CreateIndicatorRequest. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorCreateRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateIndicatorRequest. + + :param body: The body of this CreateIndicatorRequest. + :type body: :class:`huaweicloudsdksa.v2.IndicatorCreateRequest` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIndicatorRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_response.py new file mode 100755 index 0000000000..fa87a56828 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_indicator_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateIndicatorResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IndicatorDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreateIndicatorResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(CreateIndicatorResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreateIndicatorResponse. + + Id value + + :return: The code of this CreateIndicatorResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreateIndicatorResponse. + + Id value + + :param code: The code of this CreateIndicatorResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreateIndicatorResponse. + + Error message + + :return: The message of this CreateIndicatorResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreateIndicatorResponse. + + Error message + + :param message: The message of this CreateIndicatorResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreateIndicatorResponse. + + :return: The data of this CreateIndicatorResponse. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateIndicatorResponse. + + :param data: The data of this CreateIndicatorResponse. + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateIndicatorResponse. + + :return: The x_request_id of this CreateIndicatorResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreateIndicatorResponse. + + :param x_request_id: The x_request_id of this CreateIndicatorResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateIndicatorResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_request.py new file mode 100755 index 0000000000..0b29fca791 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_request.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookActionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'body': 'list[object]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, body=None): + """CreatePlaybookActionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param body: Create actions + :type body: list[object] + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreatePlaybookActionRequest. + + ID of project + + :return: The project_id of this CreatePlaybookActionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePlaybookActionRequest. + + ID of project + + :param project_id: The project_id of this CreatePlaybookActionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookActionRequest. + + ID of workspace + + :return: The workspace_id of this CreatePlaybookActionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookActionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreatePlaybookActionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this CreatePlaybookActionRequest. + + version Id value + + :return: The version_id of this CreatePlaybookActionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CreatePlaybookActionRequest. + + version Id value + + :param version_id: The version_id of this CreatePlaybookActionRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def body(self): + """Gets the body of this CreatePlaybookActionRequest. + + Create actions + + :return: The body of this CreatePlaybookActionRequest. + :rtype: list[object] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePlaybookActionRequest. + + Create actions + + :param body: The body of this CreatePlaybookActionRequest. + :type body: list[object] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookActionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_response.py new file mode 100755 index 0000000000..45e021d2d7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_action_response.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookActionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'list[ActionInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreatePlaybookActionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: list of informations of playbook action + :type data: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePlaybookActionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreatePlaybookActionResponse. + + Error code + + :return: The code of this CreatePlaybookActionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreatePlaybookActionResponse. + + Error code + + :param code: The code of this CreatePlaybookActionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreatePlaybookActionResponse. + + Error message + + :return: The message of this CreatePlaybookActionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreatePlaybookActionResponse. + + Error message + + :param message: The message of this CreatePlaybookActionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreatePlaybookActionResponse. + + list of informations of playbook action + + :return: The data of this CreatePlaybookActionResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreatePlaybookActionResponse. + + list of informations of playbook action + + :param data: The data of this CreatePlaybookActionResponse. + :type data: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePlaybookActionResponse. + + :return: The x_request_id of this CreatePlaybookActionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePlaybookActionResponse. + + :param x_request_id: The x_request_id of this CreatePlaybookActionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookActionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_request.py new file mode 100755 index 0000000000..38121342ad --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookApproveRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'body': 'ApprovePlaybookInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, body=None): + """CreatePlaybookApproveRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param body: Body of the CreatePlaybookApproveRequest + :type body: :class:`huaweicloudsdksa.v2.ApprovePlaybookInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreatePlaybookApproveRequest. + + ID of project + + :return: The project_id of this CreatePlaybookApproveRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePlaybookApproveRequest. + + ID of project + + :param project_id: The project_id of this CreatePlaybookApproveRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookApproveRequest. + + ID of workspace + + :return: The workspace_id of this CreatePlaybookApproveRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookApproveRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreatePlaybookApproveRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this CreatePlaybookApproveRequest. + + version Id value + + :return: The version_id of this CreatePlaybookApproveRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CreatePlaybookApproveRequest. + + version Id value + + :param version_id: The version_id of this CreatePlaybookApproveRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def body(self): + """Gets the body of this CreatePlaybookApproveRequest. + + :return: The body of this CreatePlaybookApproveRequest. + :rtype: :class:`huaweicloudsdksa.v2.ApprovePlaybookInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePlaybookApproveRequest. + + :param body: The body of this CreatePlaybookApproveRequest. + :type body: :class:`huaweicloudsdksa.v2.ApprovePlaybookInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookApproveRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_response.py new file mode 100755 index 0000000000..ba6f1fa963 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_approve_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookApproveResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'ApproveOpinionDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreatePlaybookApproveResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.ApproveOpinionDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePlaybookApproveResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreatePlaybookApproveResponse. + + Error code + + :return: The code of this CreatePlaybookApproveResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreatePlaybookApproveResponse. + + Error code + + :param code: The code of this CreatePlaybookApproveResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreatePlaybookApproveResponse. + + Error message + + :return: The message of this CreatePlaybookApproveResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreatePlaybookApproveResponse. + + Error message + + :param message: The message of this CreatePlaybookApproveResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreatePlaybookApproveResponse. + + :return: The data of this CreatePlaybookApproveResponse. + :rtype: :class:`huaweicloudsdksa.v2.ApproveOpinionDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreatePlaybookApproveResponse. + + :param data: The data of this CreatePlaybookApproveResponse. + :type data: :class:`huaweicloudsdksa.v2.ApproveOpinionDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePlaybookApproveResponse. + + :return: The x_request_id of this CreatePlaybookApproveResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePlaybookApproveResponse. + + :param x_request_id: The x_request_id of this CreatePlaybookApproveResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookApproveResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_info.py new file mode 100755 index 0000000000..9e7cf18dab --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_info.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'workspace_id': 'str', + 'approve_role': 'str', + 'user_role': 'str', + 'edit_role': 'str', + 'owner_id': 'str', + 'enabled': 'bool' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'workspace_id': 'workspace_id', + 'approve_role': 'approve_role', + 'user_role': 'user_role', + 'edit_role': 'edit_role', + 'owner_id': 'owner_id', + 'enabled': 'enabled' + } + + def __init__(self, name=None, description=None, workspace_id=None, approve_role=None, user_role=None, edit_role=None, owner_id=None, enabled=None): + """CreatePlaybookInfo + + The model defined in huaweicloud sdk + + :param name: The name, display only + :type name: str + :param description: The description, display only + :type description: str + :param workspace_id: 工作空间id + :type workspace_id: str + :param approve_role: Role required for approve + :type approve_role: str + :param user_role: Role required for use + :type user_role: str + :param edit_role: Role required for edit + :type edit_role: str + :param owner_id: Owner id + :type owner_id: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + """ + + + + self._name = None + self._description = None + self._workspace_id = None + self._approve_role = None + self._user_role = None + self._edit_role = None + self._owner_id = None + self._enabled = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if workspace_id is not None: + self.workspace_id = workspace_id + if approve_role is not None: + self.approve_role = approve_role + if user_role is not None: + self.user_role = user_role + if edit_role is not None: + self.edit_role = edit_role + if owner_id is not None: + self.owner_id = owner_id + if enabled is not None: + self.enabled = enabled + + @property + def name(self): + """Gets the name of this CreatePlaybookInfo. + + The name, display only + + :return: The name of this CreatePlaybookInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreatePlaybookInfo. + + The name, display only + + :param name: The name of this CreatePlaybookInfo. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreatePlaybookInfo. + + The description, display only + + :return: The description of this CreatePlaybookInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreatePlaybookInfo. + + The description, display only + + :param description: The description of this CreatePlaybookInfo. + :type description: str + """ + self._description = description + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookInfo. + + 工作空间id + + :return: The workspace_id of this CreatePlaybookInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookInfo. + + 工作空间id + + :param workspace_id: The workspace_id of this CreatePlaybookInfo. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def approve_role(self): + """Gets the approve_role of this CreatePlaybookInfo. + + Role required for approve + + :return: The approve_role of this CreatePlaybookInfo. + :rtype: str + """ + return self._approve_role + + @approve_role.setter + def approve_role(self, approve_role): + """Sets the approve_role of this CreatePlaybookInfo. + + Role required for approve + + :param approve_role: The approve_role of this CreatePlaybookInfo. + :type approve_role: str + """ + self._approve_role = approve_role + + @property + def user_role(self): + """Gets the user_role of this CreatePlaybookInfo. + + Role required for use + + :return: The user_role of this CreatePlaybookInfo. + :rtype: str + """ + return self._user_role + + @user_role.setter + def user_role(self, user_role): + """Sets the user_role of this CreatePlaybookInfo. + + Role required for use + + :param user_role: The user_role of this CreatePlaybookInfo. + :type user_role: str + """ + self._user_role = user_role + + @property + def edit_role(self): + """Gets the edit_role of this CreatePlaybookInfo. + + Role required for edit + + :return: The edit_role of this CreatePlaybookInfo. + :rtype: str + """ + return self._edit_role + + @edit_role.setter + def edit_role(self, edit_role): + """Sets the edit_role of this CreatePlaybookInfo. + + Role required for edit + + :param edit_role: The edit_role of this CreatePlaybookInfo. + :type edit_role: str + """ + self._edit_role = edit_role + + @property + def owner_id(self): + """Gets the owner_id of this CreatePlaybookInfo. + + Owner id + + :return: The owner_id of this CreatePlaybookInfo. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """Sets the owner_id of this CreatePlaybookInfo. + + Owner id + + :param owner_id: The owner_id of this CreatePlaybookInfo. + :type owner_id: str + """ + self._owner_id = owner_id + + @property + def enabled(self): + """Gets the enabled of this CreatePlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this CreatePlaybookInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this CreatePlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this CreatePlaybookInfo. + :type enabled: bool + """ + self._enabled = enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_request.py new file mode 100755 index 0000000000..232ae1fa16 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'CreatePlaybookInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """CreatePlaybookRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the CreatePlaybookRequest + :type body: :class:`huaweicloudsdksa.v2.CreatePlaybookInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreatePlaybookRequest. + + ID of project + + :return: The project_id of this CreatePlaybookRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePlaybookRequest. + + ID of project + + :param project_id: The project_id of this CreatePlaybookRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookRequest. + + ID of workspace + + :return: The workspace_id of this CreatePlaybookRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreatePlaybookRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this CreatePlaybookRequest. + + :return: The body of this CreatePlaybookRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePlaybookRequest. + + :param body: The body of this CreatePlaybookRequest. + :type body: :class:`huaweicloudsdksa.v2.CreatePlaybookInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_response.py new file mode 100755 index 0000000000..034f44543e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreatePlaybookResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePlaybookResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreatePlaybookResponse. + + Error code + + :return: The code of this CreatePlaybookResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreatePlaybookResponse. + + Error code + + :param code: The code of this CreatePlaybookResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreatePlaybookResponse. + + Error message + + :return: The message of this CreatePlaybookResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreatePlaybookResponse. + + Error message + + :param message: The message of this CreatePlaybookResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreatePlaybookResponse. + + :return: The data of this CreatePlaybookResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreatePlaybookResponse. + + :param data: The data of this CreatePlaybookResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePlaybookResponse. + + :return: The x_request_id of this CreatePlaybookResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePlaybookResponse. + + :param x_request_id: The x_request_id of this CreatePlaybookResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_request.py new file mode 100755 index 0000000000..c5f9092094 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'body': 'CreateRuleInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, body=None): + """CreatePlaybookRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param body: Body of the CreatePlaybookRuleRequest + :type body: :class:`huaweicloudsdksa.v2.CreateRuleInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreatePlaybookRuleRequest. + + ID of project + + :return: The project_id of this CreatePlaybookRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePlaybookRuleRequest. + + ID of project + + :param project_id: The project_id of this CreatePlaybookRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookRuleRequest. + + ID of workspace + + :return: The workspace_id of this CreatePlaybookRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookRuleRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreatePlaybookRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this CreatePlaybookRuleRequest. + + version Id value + + :return: The version_id of this CreatePlaybookRuleRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CreatePlaybookRuleRequest. + + version Id value + + :param version_id: The version_id of this CreatePlaybookRuleRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def body(self): + """Gets the body of this CreatePlaybookRuleRequest. + + :return: The body of this CreatePlaybookRuleRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateRuleInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePlaybookRuleRequest. + + :param body: The body of this CreatePlaybookRuleRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateRuleInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_response.py new file mode 100755 index 0000000000..bb17c57492 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_rule_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'RuleInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreatePlaybookRuleResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePlaybookRuleResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreatePlaybookRuleResponse. + + Error code + + :return: The code of this CreatePlaybookRuleResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreatePlaybookRuleResponse. + + Error code + + :param code: The code of this CreatePlaybookRuleResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreatePlaybookRuleResponse. + + Error message + + :return: The message of this CreatePlaybookRuleResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreatePlaybookRuleResponse. + + Error message + + :param message: The message of this CreatePlaybookRuleResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreatePlaybookRuleResponse. + + :return: The data of this CreatePlaybookRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreatePlaybookRuleResponse. + + :param data: The data of this CreatePlaybookRuleResponse. + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePlaybookRuleResponse. + + :return: The x_request_id of this CreatePlaybookRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePlaybookRuleResponse. + + :param x_request_id: The x_request_id of this CreatePlaybookRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_info.py new file mode 100755 index 0000000000..b06eefcd75 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_info.py @@ -0,0 +1,437 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookVersionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'description': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'actions': 'list[ActionInfo]', + 'dataclass_id': 'str', + 'rule_enable': 'bool', + 'rule_id': 'str', + 'trigger_type': 'str', + 'dataobject_create': 'bool', + 'dataobject_update': 'bool', + 'dataobject_delete': 'bool', + 'action_strategy': 'str' + } + + attribute_map = { + 'description': 'description', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'actions': 'actions', + 'dataclass_id': 'dataclass_id', + 'rule_enable': 'rule_enable', + 'rule_id': 'rule_id', + 'trigger_type': 'trigger_type', + 'dataobject_create': 'dataobject_create', + 'dataobject_update': 'dataobject_update', + 'dataobject_delete': 'dataobject_delete', + 'action_strategy': 'action_strategy' + } + + def __init__(self, description=None, workspace_id=None, playbook_id=None, actions=None, dataclass_id=None, rule_enable=None, rule_id=None, trigger_type=None, dataobject_create=None, dataobject_update=None, dataobject_delete=None, action_strategy=None): + """CreatePlaybookVersionInfo + + The model defined in huaweicloud sdk + + :param description: The description, display only + :type description: str + :param workspace_id: 工作空间id + :type workspace_id: str + :param playbook_id: Playbook id. + :type playbook_id: str + :param actions: Information of actions. + :type actions: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + :param dataclass_id: dataclass id. + :type dataclass_id: str + :param rule_enable: 过滤规则是否启用 + :type rule_enable: bool + :param rule_id: 过滤规则ID + :type rule_id: str + :param trigger_type: Strategy of action. event, timer + :type trigger_type: str + :param dataobject_create: if trigger when dataobject is created + :type dataobject_create: bool + :param dataobject_update: if trigger when dataobject is updated + :type dataobject_update: bool + :param dataobject_delete: if trigger when dataobject is deleted + :type dataobject_delete: bool + :param action_strategy: Strategy of action. sync or async + :type action_strategy: str + """ + + + + self._description = None + self._workspace_id = None + self._playbook_id = None + self._actions = None + self._dataclass_id = None + self._rule_enable = None + self._rule_id = None + self._trigger_type = None + self._dataobject_create = None + self._dataobject_update = None + self._dataobject_delete = None + self._action_strategy = None + self.discriminator = None + + if description is not None: + self.description = description + if workspace_id is not None: + self.workspace_id = workspace_id + if playbook_id is not None: + self.playbook_id = playbook_id + if actions is not None: + self.actions = actions + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if rule_enable is not None: + self.rule_enable = rule_enable + if rule_id is not None: + self.rule_id = rule_id + if trigger_type is not None: + self.trigger_type = trigger_type + if dataobject_create is not None: + self.dataobject_create = dataobject_create + if dataobject_update is not None: + self.dataobject_update = dataobject_update + if dataobject_delete is not None: + self.dataobject_delete = dataobject_delete + if action_strategy is not None: + self.action_strategy = action_strategy + + @property + def description(self): + """Gets the description of this CreatePlaybookVersionInfo. + + The description, display only + + :return: The description of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreatePlaybookVersionInfo. + + The description, display only + + :param description: The description of this CreatePlaybookVersionInfo. + :type description: str + """ + self._description = description + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookVersionInfo. + + 工作空间id + + :return: The workspace_id of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookVersionInfo. + + 工作空间id + + :param workspace_id: The workspace_id of this CreatePlaybookVersionInfo. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this CreatePlaybookVersionInfo. + + Playbook id. + + :return: The playbook_id of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this CreatePlaybookVersionInfo. + + Playbook id. + + :param playbook_id: The playbook_id of this CreatePlaybookVersionInfo. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def actions(self): + """Gets the actions of this CreatePlaybookVersionInfo. + + Information of actions. + + :return: The actions of this CreatePlaybookVersionInfo. + :rtype: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + return self._actions + + @actions.setter + def actions(self, actions): + """Sets the actions of this CreatePlaybookVersionInfo. + + Information of actions. + + :param actions: The actions of this CreatePlaybookVersionInfo. + :type actions: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + self._actions = actions + + @property + def dataclass_id(self): + """Gets the dataclass_id of this CreatePlaybookVersionInfo. + + dataclass id. + + :return: The dataclass_id of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this CreatePlaybookVersionInfo. + + dataclass id. + + :param dataclass_id: The dataclass_id of this CreatePlaybookVersionInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def rule_enable(self): + """Gets the rule_enable of this CreatePlaybookVersionInfo. + + 过滤规则是否启用 + + :return: The rule_enable of this CreatePlaybookVersionInfo. + :rtype: bool + """ + return self._rule_enable + + @rule_enable.setter + def rule_enable(self, rule_enable): + """Sets the rule_enable of this CreatePlaybookVersionInfo. + + 过滤规则是否启用 + + :param rule_enable: The rule_enable of this CreatePlaybookVersionInfo. + :type rule_enable: bool + """ + self._rule_enable = rule_enable + + @property + def rule_id(self): + """Gets the rule_id of this CreatePlaybookVersionInfo. + + 过滤规则ID + + :return: The rule_id of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this CreatePlaybookVersionInfo. + + 过滤规则ID + + :param rule_id: The rule_id of this CreatePlaybookVersionInfo. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def trigger_type(self): + """Gets the trigger_type of this CreatePlaybookVersionInfo. + + Strategy of action. event, timer + + :return: The trigger_type of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this CreatePlaybookVersionInfo. + + Strategy of action. event, timer + + :param trigger_type: The trigger_type of this CreatePlaybookVersionInfo. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def dataobject_create(self): + """Gets the dataobject_create of this CreatePlaybookVersionInfo. + + if trigger when dataobject is created + + :return: The dataobject_create of this CreatePlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_create + + @dataobject_create.setter + def dataobject_create(self, dataobject_create): + """Sets the dataobject_create of this CreatePlaybookVersionInfo. + + if trigger when dataobject is created + + :param dataobject_create: The dataobject_create of this CreatePlaybookVersionInfo. + :type dataobject_create: bool + """ + self._dataobject_create = dataobject_create + + @property + def dataobject_update(self): + """Gets the dataobject_update of this CreatePlaybookVersionInfo. + + if trigger when dataobject is updated + + :return: The dataobject_update of this CreatePlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_update + + @dataobject_update.setter + def dataobject_update(self, dataobject_update): + """Sets the dataobject_update of this CreatePlaybookVersionInfo. + + if trigger when dataobject is updated + + :param dataobject_update: The dataobject_update of this CreatePlaybookVersionInfo. + :type dataobject_update: bool + """ + self._dataobject_update = dataobject_update + + @property + def dataobject_delete(self): + """Gets the dataobject_delete of this CreatePlaybookVersionInfo. + + if trigger when dataobject is deleted + + :return: The dataobject_delete of this CreatePlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_delete + + @dataobject_delete.setter + def dataobject_delete(self, dataobject_delete): + """Sets the dataobject_delete of this CreatePlaybookVersionInfo. + + if trigger when dataobject is deleted + + :param dataobject_delete: The dataobject_delete of this CreatePlaybookVersionInfo. + :type dataobject_delete: bool + """ + self._dataobject_delete = dataobject_delete + + @property + def action_strategy(self): + """Gets the action_strategy of this CreatePlaybookVersionInfo. + + Strategy of action. sync or async + + :return: The action_strategy of this CreatePlaybookVersionInfo. + :rtype: str + """ + return self._action_strategy + + @action_strategy.setter + def action_strategy(self, action_strategy): + """Sets the action_strategy of this CreatePlaybookVersionInfo. + + Strategy of action. sync or async + + :param action_strategy: The action_strategy of this CreatePlaybookVersionInfo. + :type action_strategy: str + """ + self._action_strategy = action_strategy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookVersionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_request.py new file mode 100755 index 0000000000..ac947d8fd9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'body': 'CreatePlaybookVersionInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None, body=None): + """CreatePlaybookVersionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + :param body: Body of the CreatePlaybookVersionRequest + :type body: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this CreatePlaybookVersionRequest. + + ID of project + + :return: The project_id of this CreatePlaybookVersionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePlaybookVersionRequest. + + ID of project + + :param project_id: The project_id of this CreatePlaybookVersionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this CreatePlaybookVersionRequest. + + ID of workspace + + :return: The workspace_id of this CreatePlaybookVersionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this CreatePlaybookVersionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this CreatePlaybookVersionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this CreatePlaybookVersionRequest. + + ID of playbook + + :return: The playbook_id of this CreatePlaybookVersionRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this CreatePlaybookVersionRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this CreatePlaybookVersionRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def body(self): + """Gets the body of this CreatePlaybookVersionRequest. + + :return: The body of this CreatePlaybookVersionRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePlaybookVersionRequest. + + :param body: The body of this CreatePlaybookVersionRequest. + :type body: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_response.py new file mode 100755 index 0000000000..c7d8fa53e9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_playbook_version_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePlaybookVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookVersionInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """CreatePlaybookVersionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(CreatePlaybookVersionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this CreatePlaybookVersionResponse. + + Error code + + :return: The code of this CreatePlaybookVersionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CreatePlaybookVersionResponse. + + Error code + + :param code: The code of this CreatePlaybookVersionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this CreatePlaybookVersionResponse. + + Error message + + :return: The message of this CreatePlaybookVersionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CreatePlaybookVersionResponse. + + Error message + + :param message: The message of this CreatePlaybookVersionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this CreatePlaybookVersionResponse. + + :return: The data of this CreatePlaybookVersionResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreatePlaybookVersionResponse. + + :param data: The data of this CreatePlaybookVersionResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this CreatePlaybookVersionResponse. + + :return: The x_request_id of this CreatePlaybookVersionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this CreatePlaybookVersionResponse. + + :param x_request_id: The x_request_id of this CreatePlaybookVersionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePlaybookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_relation.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_relation.py new file mode 100755 index 0000000000..70829d2787 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_relation.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRelation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): + """CreateRelation + + The model defined in huaweicloud sdk + + :param ids: search ids + :type ids: list[str] + """ + + + + self._ids = None + self.discriminator = None + + if ids is not None: + self.ids = ids + + @property + def ids(self): + """Gets the ids of this CreateRelation. + + search ids + + :return: The ids of this CreateRelation. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this CreateRelation. + + search ids + + :param ids: The ids of this CreateRelation. + :type ids: list[str] + """ + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRelation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_rule_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_rule_info.py new file mode 100755 index 0000000000..50ff5a85f3 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/create_rule_info.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRuleInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule': 'ConditionInfo' + } + + attribute_map = { + 'rule': 'rule' + } + + def __init__(self, rule=None): + """CreateRuleInfo + + The model defined in huaweicloud sdk + + :param rule: + :type rule: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + + + + self._rule = None + self.discriminator = None + + if rule is not None: + self.rule = rule + + @property + def rule(self): + """Gets the rule of this CreateRuleInfo. + + :return: The rule of this CreateRuleInfo. + :rtype: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this CreateRuleInfo. + + :param rule: The rule of this CreateRuleInfo. + :type rule: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + self._rule = rule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRuleInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_ref_pojo.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_ref_pojo.py new file mode 100755 index 0000000000..26ddcc7298 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_ref_pojo.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataClassRefPojo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """DataClassRefPojo + + The model defined in huaweicloud sdk + + :param id: 唯一标识ID + :type id: str + :param name: 唯一标识ID + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this DataClassRefPojo. + + 唯一标识ID + + :return: The id of this DataClassRefPojo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DataClassRefPojo. + + 唯一标识ID + + :param id: The id of this DataClassRefPojo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this DataClassRefPojo. + + 唯一标识ID + + :return: The name of this DataClassRefPojo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DataClassRefPojo. + + 唯一标识ID + + :param name: The name of this DataClassRefPojo. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataClassRefPojo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_type_detail_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_type_detail_info.py new file mode 100755 index 0000000000..c42a763079 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_class_type_detail_info.py @@ -0,0 +1,495 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataClassTypeDetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'parent_name': 'str', + 'parent_business_code': 'str', + 'name': 'str', + 'business_code': 'str', + 'description': 'str', + 'workspace_id': 'str', + 'project_id': 'str', + 'enabled': 'bool', + 'is_built_in': 'bool', + 'layout_id': 'str', + 'layout_name': 'str', + 'dataclass_id': 'str', + 'sla': 'int' + } + + attribute_map = { + 'id': 'id', + 'parent_name': 'parent_name', + 'parent_business_code': 'parent_business_code', + 'name': 'name', + 'business_code': 'business_code', + 'description': 'description', + 'workspace_id': 'workspace_id', + 'project_id': 'project_id', + 'enabled': 'enabled', + 'is_built_in': 'is_built_in', + 'layout_id': 'layout_id', + 'layout_name': 'layout_name', + 'dataclass_id': 'dataclass_id', + 'sla': 'sla' + } + + def __init__(self, id=None, parent_name=None, parent_business_code=None, name=None, business_code=None, description=None, workspace_id=None, project_id=None, enabled=None, is_built_in=None, layout_id=None, layout_name=None, dataclass_id=None, sla=None): + """DataClassTypeDetailInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param parent_name: The name, display only + :type parent_name: str + :param parent_business_code: 类型标识码 + :type parent_business_code: str + :param name: The name, display only + :type name: str + :param business_code: 类型标识码 + :type business_code: str + :param description: The description, display only + :type description: str + :param workspace_id: workspace id + :type workspace_id: str + :param project_id: Project id value + :type project_id: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param is_built_in: 是否内置 + :type is_built_in: bool + :param layout_id: 布局ID + :type layout_id: str + :param layout_name: The name, display only + :type layout_name: str + :param dataclass_id: dataclass id. + :type dataclass_id: str + :param sla: sla + :type sla: int + """ + + + + self._id = None + self._parent_name = None + self._parent_business_code = None + self._name = None + self._business_code = None + self._description = None + self._workspace_id = None + self._project_id = None + self._enabled = None + self._is_built_in = None + self._layout_id = None + self._layout_name = None + self._dataclass_id = None + self._sla = None + self.discriminator = None + + if id is not None: + self.id = id + if parent_name is not None: + self.parent_name = parent_name + if parent_business_code is not None: + self.parent_business_code = parent_business_code + if name is not None: + self.name = name + if business_code is not None: + self.business_code = business_code + if description is not None: + self.description = description + if workspace_id is not None: + self.workspace_id = workspace_id + if project_id is not None: + self.project_id = project_id + if enabled is not None: + self.enabled = enabled + if is_built_in is not None: + self.is_built_in = is_built_in + if layout_id is not None: + self.layout_id = layout_id + if layout_name is not None: + self.layout_name = layout_name + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if sla is not None: + self.sla = sla + + @property + def id(self): + """Gets the id of this DataClassTypeDetailInfo. + + Id value + + :return: The id of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DataClassTypeDetailInfo. + + Id value + + :param id: The id of this DataClassTypeDetailInfo. + :type id: str + """ + self._id = id + + @property + def parent_name(self): + """Gets the parent_name of this DataClassTypeDetailInfo. + + The name, display only + + :return: The parent_name of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._parent_name + + @parent_name.setter + def parent_name(self, parent_name): + """Sets the parent_name of this DataClassTypeDetailInfo. + + The name, display only + + :param parent_name: The parent_name of this DataClassTypeDetailInfo. + :type parent_name: str + """ + self._parent_name = parent_name + + @property + def parent_business_code(self): + """Gets the parent_business_code of this DataClassTypeDetailInfo. + + 类型标识码 + + :return: The parent_business_code of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._parent_business_code + + @parent_business_code.setter + def parent_business_code(self, parent_business_code): + """Sets the parent_business_code of this DataClassTypeDetailInfo. + + 类型标识码 + + :param parent_business_code: The parent_business_code of this DataClassTypeDetailInfo. + :type parent_business_code: str + """ + self._parent_business_code = parent_business_code + + @property + def name(self): + """Gets the name of this DataClassTypeDetailInfo. + + The name, display only + + :return: The name of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DataClassTypeDetailInfo. + + The name, display only + + :param name: The name of this DataClassTypeDetailInfo. + :type name: str + """ + self._name = name + + @property + def business_code(self): + """Gets the business_code of this DataClassTypeDetailInfo. + + 类型标识码 + + :return: The business_code of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._business_code + + @business_code.setter + def business_code(self, business_code): + """Sets the business_code of this DataClassTypeDetailInfo. + + 类型标识码 + + :param business_code: The business_code of this DataClassTypeDetailInfo. + :type business_code: str + """ + self._business_code = business_code + + @property + def description(self): + """Gets the description of this DataClassTypeDetailInfo. + + The description, display only + + :return: The description of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DataClassTypeDetailInfo. + + The description, display only + + :param description: The description of this DataClassTypeDetailInfo. + :type description: str + """ + self._description = description + + @property + def workspace_id(self): + """Gets the workspace_id of this DataClassTypeDetailInfo. + + workspace id + + :return: The workspace_id of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DataClassTypeDetailInfo. + + workspace id + + :param workspace_id: The workspace_id of this DataClassTypeDetailInfo. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def project_id(self): + """Gets the project_id of this DataClassTypeDetailInfo. + + Project id value + + :return: The project_id of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DataClassTypeDetailInfo. + + Project id value + + :param project_id: The project_id of this DataClassTypeDetailInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def enabled(self): + """Gets the enabled of this DataClassTypeDetailInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this DataClassTypeDetailInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this DataClassTypeDetailInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this DataClassTypeDetailInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def is_built_in(self): + """Gets the is_built_in of this DataClassTypeDetailInfo. + + 是否内置 + + :return: The is_built_in of this DataClassTypeDetailInfo. + :rtype: bool + """ + return self._is_built_in + + @is_built_in.setter + def is_built_in(self, is_built_in): + """Sets the is_built_in of this DataClassTypeDetailInfo. + + 是否内置 + + :param is_built_in: The is_built_in of this DataClassTypeDetailInfo. + :type is_built_in: bool + """ + self._is_built_in = is_built_in + + @property + def layout_id(self): + """Gets the layout_id of this DataClassTypeDetailInfo. + + 布局ID + + :return: The layout_id of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this DataClassTypeDetailInfo. + + 布局ID + + :param layout_id: The layout_id of this DataClassTypeDetailInfo. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def layout_name(self): + """Gets the layout_name of this DataClassTypeDetailInfo. + + The name, display only + + :return: The layout_name of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._layout_name + + @layout_name.setter + def layout_name(self, layout_name): + """Sets the layout_name of this DataClassTypeDetailInfo. + + The name, display only + + :param layout_name: The layout_name of this DataClassTypeDetailInfo. + :type layout_name: str + """ + self._layout_name = layout_name + + @property + def dataclass_id(self): + """Gets the dataclass_id of this DataClassTypeDetailInfo. + + dataclass id. + + :return: The dataclass_id of this DataClassTypeDetailInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this DataClassTypeDetailInfo. + + dataclass id. + + :param dataclass_id: The dataclass_id of this DataClassTypeDetailInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def sla(self): + """Gets the sla of this DataClassTypeDetailInfo. + + sla + + :return: The sla of this DataClassTypeDetailInfo. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this DataClassTypeDetailInfo. + + sla + + :param sla: The sla of this DataClassTypeDetailInfo. + :type sla: int + """ + self._sla = sla + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataClassTypeDetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_response.py new file mode 100755 index 0000000000..3350629893 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/data_response.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'success_ids': 'list[str]', + 'error_ids': 'list[str]' + } + + attribute_map = { + 'success_ids': 'success_ids', + 'error_ids': 'error_ids' + } + + def __init__(self, success_ids=None, error_ids=None): + """DataResponse + + The model defined in huaweicloud sdk + + :param success_ids: id list + :type success_ids: list[str] + :param error_ids: id list + :type error_ids: list[str] + """ + + + + self._success_ids = None + self._error_ids = None + self.discriminator = None + + self.success_ids = success_ids + if error_ids is not None: + self.error_ids = error_ids + + @property + def success_ids(self): + """Gets the success_ids of this DataResponse. + + id list + + :return: The success_ids of this DataResponse. + :rtype: list[str] + """ + return self._success_ids + + @success_ids.setter + def success_ids(self, success_ids): + """Sets the success_ids of this DataResponse. + + id list + + :param success_ids: The success_ids of this DataResponse. + :type success_ids: list[str] + """ + self._success_ids = success_ids + + @property + def error_ids(self): + """Gets the error_ids of this DataResponse. + + id list + + :return: The error_ids of this DataResponse. + :rtype: list[str] + """ + return self._error_ids + + @error_ids.setter + def error_ids(self, error_ids): + """Sets the error_ids of this DataResponse. + + id list + + :param error_ids: The error_ids of this DataResponse. + :type error_ids: list[str] + """ + self._error_ids = error_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataclass_info_ref.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataclass_info_ref.py new file mode 100755 index 0000000000..3d64b7f5b5 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataclass_info_ref.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataclassInfoRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """DataclassInfoRef + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: Id value + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this DataclassInfoRef. + + Id value + + :return: The id of this DataclassInfoRef. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DataclassInfoRef. + + Id value + + :param id: The id of this DataclassInfoRef. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this DataclassInfoRef. + + Id value + + :return: The name of this DataclassInfoRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DataclassInfoRef. + + Id value + + :param name: The name of this DataclassInfoRef. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataclassInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_info.py new file mode 100755 index 0000000000..715753a66b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_info.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataobjectInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'dataclass_id': 'str', + 'name': 'str', + 'type': 'str', + 'content': 'str' + } + + attribute_map = { + 'id': 'id', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'dataclass_id': 'dataclass_id', + 'name': 'name', + 'type': 'type', + 'content': 'content' + } + + def __init__(self, id=None, create_time=None, update_time=None, project_id=None, dataclass_id=None, name=None, type=None, content=None): + """DataobjectInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Project id value + :type project_id: str + :param dataclass_id: dataclass id. + :type dataclass_id: str + :param name: The name, display only + :type name: str + :param type: SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE + :type type: str + :param content: data + :type content: str + """ + + + + self._id = None + self._create_time = None + self._update_time = None + self._project_id = None + self._dataclass_id = None + self._name = None + self._type = None + self._content = None + self.discriminator = None + + if id is not None: + self.id = id + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if name is not None: + self.name = name + if type is not None: + self.type = type + if content is not None: + self.content = content + + @property + def id(self): + """Gets the id of this DataobjectInfo. + + Id value + + :return: The id of this DataobjectInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DataobjectInfo. + + Id value + + :param id: The id of this DataobjectInfo. + :type id: str + """ + self._id = id + + @property + def create_time(self): + """Gets the create_time of this DataobjectInfo. + + Create time + + :return: The create_time of this DataobjectInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this DataobjectInfo. + + Create time + + :param create_time: The create_time of this DataobjectInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this DataobjectInfo. + + Update time + + :return: The update_time of this DataobjectInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this DataobjectInfo. + + Update time + + :param update_time: The update_time of this DataobjectInfo. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this DataobjectInfo. + + Project id value + + :return: The project_id of this DataobjectInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DataobjectInfo. + + Project id value + + :param project_id: The project_id of this DataobjectInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def dataclass_id(self): + """Gets the dataclass_id of this DataobjectInfo. + + dataclass id. + + :return: The dataclass_id of this DataobjectInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this DataobjectInfo. + + dataclass id. + + :param dataclass_id: The dataclass_id of this DataobjectInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def name(self): + """Gets the name of this DataobjectInfo. + + The name, display only + + :return: The name of this DataobjectInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DataobjectInfo. + + The name, display only + + :param name: The name of this DataobjectInfo. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this DataobjectInfo. + + SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE + + :return: The type of this DataobjectInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DataobjectInfo. + + SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE + + :param type: The type of this DataobjectInfo. + :type type: str + """ + self._type = type + + @property + def content(self): + """Gets the content of this DataobjectInfo. + + data + + :return: The content of this DataobjectInfo. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this DataobjectInfo. + + data + + :param content: The content of this DataobjectInfo. + :type content: str + """ + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataobjectInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search.py new file mode 100755 index 0000000000..9dafb36dde --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataobjectSearch: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int', + 'sort_by': 'str', + 'order': 'str', + 'from_date': 'str', + 'to_date': 'str', + 'condition': 'DataobjectSearchCondition' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'sort_by': 'sort_by', + 'order': 'order', + 'from_date': 'from_date', + 'to_date': 'to_date', + 'condition': 'condition' + } + + def __init__(self, limit=None, offset=None, sort_by=None, order=None, from_date=None, to_date=None, condition=None): + """DataobjectSearch + + The model defined in huaweicloud sdk + + :param limit: limit + :type limit: int + :param offset: offset + :type offset: int + :param sort_by: sortby + :type sort_by: str + :param order: order + :type order: str + :param from_date: search start time + :type from_date: str + :param to_date: search end time + :type to_date: str + :param condition: + :type condition: :class:`huaweicloudsdksa.v2.DataobjectSearchCondition` + """ + + + + self._limit = None + self._offset = None + self._sort_by = None + self._order = None + self._from_date = None + self._to_date = None + self._condition = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if sort_by is not None: + self.sort_by = sort_by + if order is not None: + self.order = order + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + if condition is not None: + self.condition = condition + + @property + def limit(self): + """Gets the limit of this DataobjectSearch. + + limit + + :return: The limit of this DataobjectSearch. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this DataobjectSearch. + + limit + + :param limit: The limit of this DataobjectSearch. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this DataobjectSearch. + + offset + + :return: The offset of this DataobjectSearch. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this DataobjectSearch. + + offset + + :param offset: The offset of this DataobjectSearch. + :type offset: int + """ + self._offset = offset + + @property + def sort_by(self): + """Gets the sort_by of this DataobjectSearch. + + sortby + + :return: The sort_by of this DataobjectSearch. + :rtype: str + """ + return self._sort_by + + @sort_by.setter + def sort_by(self, sort_by): + """Sets the sort_by of this DataobjectSearch. + + sortby + + :param sort_by: The sort_by of this DataobjectSearch. + :type sort_by: str + """ + self._sort_by = sort_by + + @property + def order(self): + """Gets the order of this DataobjectSearch. + + order + + :return: The order of this DataobjectSearch. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this DataobjectSearch. + + order + + :param order: The order of this DataobjectSearch. + :type order: str + """ + self._order = order + + @property + def from_date(self): + """Gets the from_date of this DataobjectSearch. + + search start time + + :return: The from_date of this DataobjectSearch. + :rtype: str + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this DataobjectSearch. + + search start time + + :param from_date: The from_date of this DataobjectSearch. + :type from_date: str + """ + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this DataobjectSearch. + + search end time + + :return: The to_date of this DataobjectSearch. + :rtype: str + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this DataobjectSearch. + + search end time + + :param to_date: The to_date of this DataobjectSearch. + :type to_date: str + """ + self._to_date = to_date + + @property + def condition(self): + """Gets the condition of this DataobjectSearch. + + :return: The condition of this DataobjectSearch. + :rtype: :class:`huaweicloudsdksa.v2.DataobjectSearchCondition` + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this DataobjectSearch. + + :param condition: The condition of this DataobjectSearch. + :type condition: :class:`huaweicloudsdksa.v2.DataobjectSearchCondition` + """ + self._condition = condition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataobjectSearch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search_condition.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search_condition.py new file mode 100755 index 0000000000..04f9ec8e30 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/dataobject_search_condition.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DataobjectSearchCondition: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'conditions': 'list[ConditonInfo]', + 'logics': 'list[str]' + } + + attribute_map = { + 'conditions': 'conditions', + 'logics': 'logics' + } + + def __init__(self, conditions=None, logics=None): + """DataobjectSearchCondition + + The model defined in huaweicloud sdk + + :param conditions: conditions + :type conditions: list[:class:`huaweicloudsdksa.v2.ConditonInfo`] + :param logics: conditions + :type logics: list[str] + """ + + + + self._conditions = None + self._logics = None + self.discriminator = None + + if conditions is not None: + self.conditions = conditions + if logics is not None: + self.logics = logics + + @property + def conditions(self): + """Gets the conditions of this DataobjectSearchCondition. + + conditions + + :return: The conditions of this DataobjectSearchCondition. + :rtype: list[:class:`huaweicloudsdksa.v2.ConditonInfo`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this DataobjectSearchCondition. + + conditions + + :param conditions: The conditions of this DataobjectSearchCondition. + :type conditions: list[:class:`huaweicloudsdksa.v2.ConditonInfo`] + """ + self._conditions = conditions + + @property + def logics(self): + """Gets the logics of this DataobjectSearchCondition. + + conditions + + :return: The logics of this DataobjectSearchCondition. + :rtype: list[str] + """ + return self._logics + + @logics.setter + def logics(self, logics): + """Sets the logics of this DataobjectSearchCondition. + + conditions + + :param logics: The logics of this DataobjectSearchCondition. + :type logics: list[str] + """ + self._logics = logics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataobjectSearchCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert.py new file mode 100755 index 0000000000..9a2377423c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteAlert: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): + """DeleteAlert + + The model defined in huaweicloud sdk + + :param ids: 删除事件的ID列表 + :type ids: list[str] + """ + + + + self._ids = None + self.discriminator = None + + if ids is not None: + self.ids = ids + + @property + def ids(self): + """Gets the ids of this DeleteAlert. + + 删除事件的ID列表 + + :return: The ids of this DeleteAlert. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this DeleteAlert. + + 删除事件的ID列表 + + :param ids: The ids of this DeleteAlert. + :type ids: list[str] + """ + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAlert): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_request.py new file mode 100755 index 0000000000..70c93ec469 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteAlertRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'DeleteAlert' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """DeleteAlertRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the DeleteAlertRequest + :type body: :class:`huaweicloudsdksa.v2.DeleteAlert` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DeleteAlertRequest. + + ID of project + + :return: The project_id of this DeleteAlertRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeleteAlertRequest. + + ID of project + + :param project_id: The project_id of this DeleteAlertRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeleteAlertRequest. + + ID of workspace + + :return: The workspace_id of this DeleteAlertRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeleteAlertRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeleteAlertRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this DeleteAlertRequest. + + :return: The body of this DeleteAlertRequest. + :rtype: :class:`huaweicloudsdksa.v2.DeleteAlert` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteAlertRequest. + + :param body: The body of this DeleteAlertRequest. + :type body: :class:`huaweicloudsdksa.v2.DeleteAlert` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAlertRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_response.py new file mode 100755 index 0000000000..e7c2203e03 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteAlertResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'DataResponse', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """DeleteAlertResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteAlertResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeleteAlertResponse. + + Id value + + :return: The code of this DeleteAlertResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeleteAlertResponse. + + Id value + + :param code: The code of this DeleteAlertResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeleteAlertResponse. + + Error message + + :return: The message of this DeleteAlertResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteAlertResponse. + + Error message + + :param message: The message of this DeleteAlertResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this DeleteAlertResponse. + + :return: The data of this DeleteAlertResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataResponse` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteAlertResponse. + + :param data: The data of this DeleteAlertResponse. + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteAlertResponse. + + :return: The x_request_id of this DeleteAlertResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteAlertResponse. + + :param x_request_id: The x_request_id of this DeleteAlertResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAlertResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_request.py new file mode 100755 index 0000000000..d011bfb73d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """DeleteAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param body: Body of the DeleteAlertRuleRequest + :type body: list[str] + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DeleteAlertRuleRequest. + + project_id + + :return: The project_id of this DeleteAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeleteAlertRuleRequest. + + project_id + + :param project_id: The project_id of this DeleteAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeleteAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this DeleteAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeleteAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this DeleteAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this DeleteAlertRuleRequest. + + :return: The body of this DeleteAlertRuleRequest. + :rtype: list[str] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteAlertRuleRequest. + + :param body: The body of this DeleteAlertRuleRequest. + :type body: list[str] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_response.py new file mode 100755 index 0000000000..d88b7277f6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_alert_rule_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'delete_time': 'int', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'delete_time': 'delete_time', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, delete_time=None, x_request_id=None): + """DeleteAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param delete_time: delete_time + :type delete_time: int + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteAlertRuleResponse, self).__init__() + + self._rule_id = None + self._delete_time = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if delete_time is not None: + self.delete_time = delete_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this DeleteAlertRuleResponse. + + rule_id + + :return: The rule_id of this DeleteAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeleteAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this DeleteAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def delete_time(self): + """Gets the delete_time of this DeleteAlertRuleResponse. + + delete_time + + :return: The delete_time of this DeleteAlertRuleResponse. + :rtype: int + """ + return self._delete_time + + @delete_time.setter + def delete_time(self, delete_time): + """Sets the delete_time of this DeleteAlertRuleResponse. + + delete_time + + :param delete_time: The delete_time of this DeleteAlertRuleResponse. + :type delete_time: int + """ + self._delete_time = delete_time + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteAlertRuleResponse. + + :return: The x_request_id of this DeleteAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteAlertRuleResponse. + + :param x_request_id: The x_request_id of this DeleteAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_request.py new file mode 100755 index 0000000000..694aed636f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_request.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDataobjectRelationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_type': 'str', + 'data_object_id': 'str', + 'related_dataclass_type': 'str', + 'body': 'CreateRelation' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_type': 'dataclass_type', + 'data_object_id': 'data_object_id', + 'related_dataclass_type': 'related_dataclass_type', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, dataclass_type=None, data_object_id=None, related_dataclass_type=None, body=None): + """DeleteDataobjectRelationRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param dataclass_type: type of dataclass + :type dataclass_type: str + :param data_object_id: ID of dataobject + :type data_object_id: str + :param related_dataclass_type: type of related dataclass + :type related_dataclass_type: str + :param body: Body of the DeleteDataobjectRelationRequest + :type body: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + + + + self._project_id = None + self._workspace_id = None + self._dataclass_type = None + self._data_object_id = None + self._related_dataclass_type = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.dataclass_type = dataclass_type + self.data_object_id = data_object_id + self.related_dataclass_type = related_dataclass_type + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DeleteDataobjectRelationRequest. + + ID of project + + :return: The project_id of this DeleteDataobjectRelationRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeleteDataobjectRelationRequest. + + ID of project + + :param project_id: The project_id of this DeleteDataobjectRelationRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeleteDataobjectRelationRequest. + + ID of workspace + + :return: The workspace_id of this DeleteDataobjectRelationRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeleteDataobjectRelationRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeleteDataobjectRelationRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_type(self): + """Gets the dataclass_type of this DeleteDataobjectRelationRequest. + + type of dataclass + + :return: The dataclass_type of this DeleteDataobjectRelationRequest. + :rtype: str + """ + return self._dataclass_type + + @dataclass_type.setter + def dataclass_type(self, dataclass_type): + """Sets the dataclass_type of this DeleteDataobjectRelationRequest. + + type of dataclass + + :param dataclass_type: The dataclass_type of this DeleteDataobjectRelationRequest. + :type dataclass_type: str + """ + self._dataclass_type = dataclass_type + + @property + def data_object_id(self): + """Gets the data_object_id of this DeleteDataobjectRelationRequest. + + ID of dataobject + + :return: The data_object_id of this DeleteDataobjectRelationRequest. + :rtype: str + """ + return self._data_object_id + + @data_object_id.setter + def data_object_id(self, data_object_id): + """Sets the data_object_id of this DeleteDataobjectRelationRequest. + + ID of dataobject + + :param data_object_id: The data_object_id of this DeleteDataobjectRelationRequest. + :type data_object_id: str + """ + self._data_object_id = data_object_id + + @property + def related_dataclass_type(self): + """Gets the related_dataclass_type of this DeleteDataobjectRelationRequest. + + type of related dataclass + + :return: The related_dataclass_type of this DeleteDataobjectRelationRequest. + :rtype: str + """ + return self._related_dataclass_type + + @related_dataclass_type.setter + def related_dataclass_type(self, related_dataclass_type): + """Sets the related_dataclass_type of this DeleteDataobjectRelationRequest. + + type of related dataclass + + :param related_dataclass_type: The related_dataclass_type of this DeleteDataobjectRelationRequest. + :type related_dataclass_type: str + """ + self._related_dataclass_type = related_dataclass_type + + @property + def body(self): + """Gets the body of this DeleteDataobjectRelationRequest. + + :return: The body of this DeleteDataobjectRelationRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDataobjectRelationRequest. + + :param body: The body of this DeleteDataobjectRelationRequest. + :type body: :class:`huaweicloudsdksa.v2.CreateRelation` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDataobjectRelationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_response.py new file mode 100755 index 0000000000..cda25dca62 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_dataobject_relation_response.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDataobjectRelationResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'request_id': 'str', + 'success': 'bool', + 'total': 'int', + 'limit': 'int', + 'offset': 'int', + 'data': 'DataResponse', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'request_id': 'request_id', + 'success': 'success', + 'total': 'total', + 'limit': 'limit', + 'offset': 'offset', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, request_id=None, success=None, total=None, limit=None, offset=None, data=None, x_request_id=None): + """DeleteDataobjectRelationResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param request_id: Error message + :type request_id: str + :param success: Error message + :type success: bool + :param total: tatal count + :type total: int + :param limit: current page count + :type limit: int + :param offset: current page size + :type offset: int + :param data: + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteDataobjectRelationResponse, self).__init__() + + self._code = None + self._message = None + self._request_id = None + self._success = None + self._total = None + self._limit = None + self._offset = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if request_id is not None: + self.request_id = request_id + if success is not None: + self.success = success + if total is not None: + self.total = total + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeleteDataobjectRelationResponse. + + Id value + + :return: The code of this DeleteDataobjectRelationResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeleteDataobjectRelationResponse. + + Id value + + :param code: The code of this DeleteDataobjectRelationResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeleteDataobjectRelationResponse. + + Error message + + :return: The message of this DeleteDataobjectRelationResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteDataobjectRelationResponse. + + Error message + + :param message: The message of this DeleteDataobjectRelationResponse. + :type message: str + """ + self._message = message + + @property + def request_id(self): + """Gets the request_id of this DeleteDataobjectRelationResponse. + + Error message + + :return: The request_id of this DeleteDataobjectRelationResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this DeleteDataobjectRelationResponse. + + Error message + + :param request_id: The request_id of this DeleteDataobjectRelationResponse. + :type request_id: str + """ + self._request_id = request_id + + @property + def success(self): + """Gets the success of this DeleteDataobjectRelationResponse. + + Error message + + :return: The success of this DeleteDataobjectRelationResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this DeleteDataobjectRelationResponse. + + Error message + + :param success: The success of this DeleteDataobjectRelationResponse. + :type success: bool + """ + self._success = success + + @property + def total(self): + """Gets the total of this DeleteDataobjectRelationResponse. + + tatal count + + :return: The total of this DeleteDataobjectRelationResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this DeleteDataobjectRelationResponse. + + tatal count + + :param total: The total of this DeleteDataobjectRelationResponse. + :type total: int + """ + self._total = total + + @property + def limit(self): + """Gets the limit of this DeleteDataobjectRelationResponse. + + current page count + + :return: The limit of this DeleteDataobjectRelationResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this DeleteDataobjectRelationResponse. + + current page count + + :param limit: The limit of this DeleteDataobjectRelationResponse. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this DeleteDataobjectRelationResponse. + + current page size + + :return: The offset of this DeleteDataobjectRelationResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this DeleteDataobjectRelationResponse. + + current page size + + :param offset: The offset of this DeleteDataobjectRelationResponse. + :type offset: int + """ + self._offset = offset + + @property + def data(self): + """Gets the data of this DeleteDataobjectRelationResponse. + + :return: The data of this DeleteDataobjectRelationResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataResponse` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteDataobjectRelationResponse. + + :param data: The data of this DeleteDataobjectRelationResponse. + :type data: :class:`huaweicloudsdksa.v2.DataResponse` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteDataobjectRelationResponse. + + :return: The x_request_id of this DeleteDataobjectRelationResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteDataobjectRelationResponse. + + :param x_request_id: The x_request_id of this DeleteDataobjectRelationResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDataobjectRelationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident.py new file mode 100755 index 0000000000..e22d439d96 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIncident: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): + """DeleteIncident + + The model defined in huaweicloud sdk + + :param ids: 删除事件的ID列表 + :type ids: list[str] + """ + + + + self._ids = None + self.discriminator = None + + if ids is not None: + self.ids = ids + + @property + def ids(self): + """Gets the ids of this DeleteIncident. + + 删除事件的ID列表 + + :return: The ids of this DeleteIncident. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this DeleteIncident. + + 删除事件的ID列表 + + :param ids: The ids of this DeleteIncident. + :type ids: list[str] + """ + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIncident): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_request.py new file mode 100755 index 0000000000..d896efd849 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'DeleteIncident' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """DeleteIncidentRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the DeleteIncidentRequest + :type body: :class:`huaweicloudsdksa.v2.DeleteIncident` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DeleteIncidentRequest. + + ID of project + + :return: The project_id of this DeleteIncidentRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeleteIncidentRequest. + + ID of project + + :param project_id: The project_id of this DeleteIncidentRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeleteIncidentRequest. + + ID of workspace + + :return: The workspace_id of this DeleteIncidentRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeleteIncidentRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeleteIncidentRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this DeleteIncidentRequest. + + :return: The body of this DeleteIncidentRequest. + :rtype: :class:`huaweicloudsdksa.v2.DeleteIncident` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteIncidentRequest. + + :param body: The body of this DeleteIncidentRequest. + :type body: :class:`huaweicloudsdksa.v2.DeleteIncident` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_response.py new file mode 100755 index 0000000000..eb9ebbe681 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_incident_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIncidentResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'BatchOrderAlertResult', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """DeleteIncidentResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteIncidentResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeleteIncidentResponse. + + Id value + + :return: The code of this DeleteIncidentResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeleteIncidentResponse. + + Id value + + :param code: The code of this DeleteIncidentResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeleteIncidentResponse. + + Error message + + :return: The message of this DeleteIncidentResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteIncidentResponse. + + Error message + + :param message: The message of this DeleteIncidentResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this DeleteIncidentResponse. + + :return: The data of this DeleteIncidentResponse. + :rtype: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteIncidentResponse. + + :param data: The data of this DeleteIncidentResponse. + :type data: :class:`huaweicloudsdksa.v2.BatchOrderAlertResult` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteIncidentResponse. + + :return: The x_request_id of this DeleteIncidentResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteIncidentResponse. + + :param x_request_id: The x_request_id of this DeleteIncidentResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request.py new file mode 100755 index 0000000000..028371b196 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIndicatorRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'DeleteIndicatorRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """DeleteIndicatorRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: workspace id + :type workspace_id: str + :param body: Body of the DeleteIndicatorRequest + :type body: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DeleteIndicatorRequest. + + ID of project + + :return: The project_id of this DeleteIndicatorRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeleteIndicatorRequest. + + ID of project + + :param project_id: The project_id of this DeleteIndicatorRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeleteIndicatorRequest. + + workspace id + + :return: The workspace_id of this DeleteIndicatorRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeleteIndicatorRequest. + + workspace id + + :param workspace_id: The workspace_id of this DeleteIndicatorRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this DeleteIndicatorRequest. + + :return: The body of this DeleteIndicatorRequest. + :rtype: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteIndicatorRequest. + + :param body: The body of this DeleteIndicatorRequest. + :type body: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIndicatorRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request_body.py new file mode 100755 index 0000000000..905bf1e2b3 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_request_body.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIndicatorRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_ids': 'list[str]' + } + + attribute_map = { + 'batch_ids': 'batch_ids' + } + + def __init__(self, batch_ids=None): + """DeleteIndicatorRequestBody + + The model defined in huaweicloud sdk + + :param batch_ids: id list + :type batch_ids: list[str] + """ + + + + self._batch_ids = None + self.discriminator = None + + if batch_ids is not None: + self.batch_ids = batch_ids + + @property + def batch_ids(self): + """Gets the batch_ids of this DeleteIndicatorRequestBody. + + id list + + :return: The batch_ids of this DeleteIndicatorRequestBody. + :rtype: list[str] + """ + return self._batch_ids + + @batch_ids.setter + def batch_ids(self, batch_ids): + """Sets the batch_ids of this DeleteIndicatorRequestBody. + + id list + + :param batch_ids: The batch_ids of this DeleteIndicatorRequestBody. + :type batch_ids: list[str] + """ + self._batch_ids = batch_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIndicatorRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_response.py new file mode 100755 index 0000000000..fc9db3721e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_indicator_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIndicatorResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IndicatorBatchOperateResponse', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """DeleteIndicatorResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IndicatorBatchOperateResponse` + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteIndicatorResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeleteIndicatorResponse. + + Id value + + :return: The code of this DeleteIndicatorResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeleteIndicatorResponse. + + Id value + + :param code: The code of this DeleteIndicatorResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeleteIndicatorResponse. + + Error message + + :return: The message of this DeleteIndicatorResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteIndicatorResponse. + + Error message + + :param message: The message of this DeleteIndicatorResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this DeleteIndicatorResponse. + + :return: The data of this DeleteIndicatorResponse. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorBatchOperateResponse` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteIndicatorResponse. + + :param data: The data of this DeleteIndicatorResponse. + :type data: :class:`huaweicloudsdksa.v2.IndicatorBatchOperateResponse` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteIndicatorResponse. + + :return: The x_request_id of this DeleteIndicatorResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeleteIndicatorResponse. + + :param x_request_id: The x_request_id of this DeleteIndicatorResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIndicatorResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_request.py new file mode 100755 index 0000000000..1315d24d64 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookActionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'action_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'action_id': 'action_id' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, action_id=None): + """DeletePlaybookActionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param action_id: ID of action + :type action_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._action_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + self.action_id = action_id + + @property + def project_id(self): + """Gets the project_id of this DeletePlaybookActionRequest. + + ID of project + + :return: The project_id of this DeletePlaybookActionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeletePlaybookActionRequest. + + ID of project + + :param project_id: The project_id of this DeletePlaybookActionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeletePlaybookActionRequest. + + ID of workspace + + :return: The workspace_id of this DeletePlaybookActionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeletePlaybookActionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeletePlaybookActionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this DeletePlaybookActionRequest. + + version Id value + + :return: The version_id of this DeletePlaybookActionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeletePlaybookActionRequest. + + version Id value + + :param version_id: The version_id of this DeletePlaybookActionRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def action_id(self): + """Gets the action_id of this DeletePlaybookActionRequest. + + ID of action + + :return: The action_id of this DeletePlaybookActionRequest. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this DeletePlaybookActionRequest. + + ID of action + + :param action_id: The action_id of this DeletePlaybookActionRequest. + :type action_id: str + """ + self._action_id = action_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookActionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_response.py new file mode 100755 index 0000000000..c0b85a4111 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_action_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookActionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, x_request_id=None): + """DeletePlaybookActionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param x_request_id: + :type x_request_id: str + """ + + super(DeletePlaybookActionResponse, self).__init__() + + self._code = None + self._message = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeletePlaybookActionResponse. + + Error code + + :return: The code of this DeletePlaybookActionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeletePlaybookActionResponse. + + Error code + + :param code: The code of this DeletePlaybookActionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeletePlaybookActionResponse. + + Error message + + :return: The message of this DeletePlaybookActionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeletePlaybookActionResponse. + + Error message + + :param message: The message of this DeletePlaybookActionResponse. + :type message: str + """ + self._message = message + + @property + def x_request_id(self): + """Gets the x_request_id of this DeletePlaybookActionResponse. + + :return: The x_request_id of this DeletePlaybookActionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeletePlaybookActionResponse. + + :param x_request_id: The x_request_id of this DeletePlaybookActionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookActionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_request.py new file mode 100755 index 0000000000..d148d7bf17 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None): + """DeletePlaybookRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + + @property + def project_id(self): + """Gets the project_id of this DeletePlaybookRequest. + + ID of project + + :return: The project_id of this DeletePlaybookRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeletePlaybookRequest. + + ID of project + + :param project_id: The project_id of this DeletePlaybookRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeletePlaybookRequest. + + ID of workspace + + :return: The workspace_id of this DeletePlaybookRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeletePlaybookRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeletePlaybookRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this DeletePlaybookRequest. + + ID of playbook + + :return: The playbook_id of this DeletePlaybookRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this DeletePlaybookRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this DeletePlaybookRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_response.py new file mode 100755 index 0000000000..d96faa20b8 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """DeletePlaybookResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(DeletePlaybookResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeletePlaybookResponse. + + Error code + + :return: The code of this DeletePlaybookResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeletePlaybookResponse. + + Error code + + :param code: The code of this DeletePlaybookResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeletePlaybookResponse. + + Error message + + :return: The message of this DeletePlaybookResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeletePlaybookResponse. + + Error message + + :param message: The message of this DeletePlaybookResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this DeletePlaybookResponse. + + :return: The data of this DeletePlaybookResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeletePlaybookResponse. + + :param data: The data of this DeletePlaybookResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this DeletePlaybookResponse. + + :return: The x_request_id of this DeletePlaybookResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeletePlaybookResponse. + + :param x_request_id: The x_request_id of this DeletePlaybookResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_request.py new file mode 100755 index 0000000000..900d714d23 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'rule_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'rule_id': 'rule_id' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, rule_id=None): + """DeletePlaybookRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param rule_id: rule_id + :type rule_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._rule_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + self.rule_id = rule_id + + @property + def project_id(self): + """Gets the project_id of this DeletePlaybookRuleRequest. + + ID of project + + :return: The project_id of this DeletePlaybookRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeletePlaybookRuleRequest. + + ID of project + + :param project_id: The project_id of this DeletePlaybookRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeletePlaybookRuleRequest. + + ID of workspace + + :return: The workspace_id of this DeletePlaybookRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeletePlaybookRuleRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeletePlaybookRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this DeletePlaybookRuleRequest. + + version Id value + + :return: The version_id of this DeletePlaybookRuleRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeletePlaybookRuleRequest. + + version Id value + + :param version_id: The version_id of this DeletePlaybookRuleRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def rule_id(self): + """Gets the rule_id of this DeletePlaybookRuleRequest. + + rule_id + + :return: The rule_id of this DeletePlaybookRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DeletePlaybookRuleRequest. + + rule_id + + :param rule_id: The rule_id of this DeletePlaybookRuleRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_response.py new file mode 100755 index 0000000000..0714893a03 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_rule_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, x_request_id=None): + """DeletePlaybookRuleResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param x_request_id: + :type x_request_id: str + """ + + super(DeletePlaybookRuleResponse, self).__init__() + + self._code = None + self._message = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeletePlaybookRuleResponse. + + Error code + + :return: The code of this DeletePlaybookRuleResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeletePlaybookRuleResponse. + + Error code + + :param code: The code of this DeletePlaybookRuleResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeletePlaybookRuleResponse. + + Error message + + :return: The message of this DeletePlaybookRuleResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeletePlaybookRuleResponse. + + Error message + + :param message: The message of this DeletePlaybookRuleResponse. + :type message: str + """ + self._message = message + + @property + def x_request_id(self): + """Gets the x_request_id of this DeletePlaybookRuleResponse. + + :return: The x_request_id of this DeletePlaybookRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeletePlaybookRuleResponse. + + :param x_request_id: The x_request_id of this DeletePlaybookRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_request.py new file mode 100755 index 0000000000..67958bfc3b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None): + """DeletePlaybookVersionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + + @property + def project_id(self): + """Gets the project_id of this DeletePlaybookVersionRequest. + + ID of project + + :return: The project_id of this DeletePlaybookVersionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DeletePlaybookVersionRequest. + + ID of project + + :param project_id: The project_id of this DeletePlaybookVersionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DeletePlaybookVersionRequest. + + ID of workspace + + :return: The workspace_id of this DeletePlaybookVersionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DeletePlaybookVersionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this DeletePlaybookVersionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this DeletePlaybookVersionRequest. + + version Id value + + :return: The version_id of this DeletePlaybookVersionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeletePlaybookVersionRequest. + + version Id value + + :param version_id: The version_id of this DeletePlaybookVersionRequest. + :type version_id: str + """ + self._version_id = version_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_response.py new file mode 100755 index 0000000000..ac2aec7a16 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/delete_playbook_version_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePlaybookVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, x_request_id=None): + """DeletePlaybookVersionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param x_request_id: + :type x_request_id: str + """ + + super(DeletePlaybookVersionResponse, self).__init__() + + self._code = None + self._message = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this DeletePlaybookVersionResponse. + + Error code + + :return: The code of this DeletePlaybookVersionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeletePlaybookVersionResponse. + + Error code + + :param code: The code of this DeletePlaybookVersionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeletePlaybookVersionResponse. + + Error message + + :return: The message of this DeletePlaybookVersionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeletePlaybookVersionResponse. + + Error message + + :param message: The message of this DeletePlaybookVersionResponse. + :type message: str + """ + self._message = message + + @property + def x_request_id(self): + """Gets the x_request_id of this DeletePlaybookVersionResponse. + + :return: The x_request_id of this DeletePlaybookVersionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DeletePlaybookVersionResponse. + + :param x_request_id: The x_request_id of this DeletePlaybookVersionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeletePlaybookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_request.py new file mode 100755 index 0000000000..724a92341e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DisableAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """DisableAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param body: Body of the DisableAlertRuleRequest + :type body: list[str] + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this DisableAlertRuleRequest. + + project_id + + :return: The project_id of this DisableAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this DisableAlertRuleRequest. + + project_id + + :param project_id: The project_id of this DisableAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this DisableAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this DisableAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this DisableAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this DisableAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this DisableAlertRuleRequest. + + :return: The body of this DisableAlertRuleRequest. + :rtype: list[str] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DisableAlertRuleRequest. + + :param body: The body of this DisableAlertRuleRequest. + :type body: list[str] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisableAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_response.py new file mode 100755 index 0000000000..fed0ecec62 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/disable_alert_rule_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DisableAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'status': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'status': 'status', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, status=None, x_request_id=None): + """DisableAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param status: status. ENABLED, DISABLED + :type status: str + :param x_request_id: + :type x_request_id: str + """ + + super(DisableAlertRuleResponse, self).__init__() + + self._rule_id = None + self._status = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if status is not None: + self.status = status + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this DisableAlertRuleResponse. + + rule_id + + :return: The rule_id of this DisableAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this DisableAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this DisableAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def status(self): + """Gets the status of this DisableAlertRuleResponse. + + status. ENABLED, DISABLED + + :return: The status of this DisableAlertRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DisableAlertRuleResponse. + + status. ENABLED, DISABLED + + :param status: The status of this DisableAlertRuleResponse. + :type status: str + """ + self._status = status + + @property + def x_request_id(self): + """Gets the x_request_id of this DisableAlertRuleResponse. + + :return: The x_request_id of this DisableAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this DisableAlertRuleResponse. + + :param x_request_id: The x_request_id of this DisableAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DisableAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_request.py new file mode 100755 index 0000000000..a8fb73b28a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """EnableAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param body: Body of the EnableAlertRuleRequest + :type body: list[str] + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this EnableAlertRuleRequest. + + project_id + + :return: The project_id of this EnableAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this EnableAlertRuleRequest. + + project_id + + :param project_id: The project_id of this EnableAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this EnableAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this EnableAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this EnableAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this EnableAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this EnableAlertRuleRequest. + + :return: The body of this EnableAlertRuleRequest. + :rtype: list[str] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this EnableAlertRuleRequest. + + :param body: The body of this EnableAlertRuleRequest. + :type body: list[str] + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnableAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_response.py new file mode 100755 index 0000000000..93c2fa9569 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/enable_alert_rule_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnableAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'status': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'status': 'status', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, status=None, x_request_id=None): + """EnableAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param status: status. ENABLED, DISABLED + :type status: str + :param x_request_id: + :type x_request_id: str + """ + + super(EnableAlertRuleResponse, self).__init__() + + self._rule_id = None + self._status = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if status is not None: + self.status = status + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this EnableAlertRuleResponse. + + rule_id + + :return: The rule_id of this EnableAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this EnableAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this EnableAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def status(self): + """Gets the status of this EnableAlertRuleResponse. + + status. ENABLED, DISABLED + + :return: The status of this EnableAlertRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this EnableAlertRuleResponse. + + status. ENABLED, DISABLED + + :param status: The status of this EnableAlertRuleResponse. + :type status: str + """ + self._status = status + + @property + def x_request_id(self): + """Gets the x_request_id of this EnableAlertRuleResponse. + + :return: The x_request_id of this EnableAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this EnableAlertRuleResponse. + + :param x_request_id: The x_request_id of this EnableAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnableAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident.py new file mode 100755 index 0000000000..61466696c0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident.py @@ -0,0 +1,1233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Incident: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'IncidentEnvironment', + 'datasource': 'IncidentDatasource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'int', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'incident_type': 'object', + 'network_list': 'list[CreateIncidentNetworkList]', + 'resource_list': 'list[CreateIncidentResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'str', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'CreateIncidentMalware', + 'system_info': 'object', + 'process': 'list[CreateIncidentProcess]', + 'user_info': 'list[CreateIncidentUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_incident_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'datasource': 'datasource', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'incident_type': 'incident_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_incident_table': 'system_incident_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, datasource=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, incident_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_incident_table=None, id=None, workspace_id=None): + """Incident + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + :param datasource: + :type datasource: :class:`huaweicloudsdksa.v2.IncidentDatasource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: int + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param incident_type: 事件分类 + :type incident_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: str + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_incident_table: 系统信息 + :type system_incident_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._datasource = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._incident_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_incident_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if datasource is not None: + self.datasource = datasource + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if incident_type is not None: + self.incident_type = incident_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_incident_table is not None: + self.system_incident_table = system_incident_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this Incident. + + 版本 + + :return: The version of this Incident. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Incident. + + 版本 + + :param version: The version of this Incident. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this Incident. + + :return: The environment of this Incident. + :rtype: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this Incident. + + :param environment: The environment of this Incident. + :type environment: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + """ + self._environment = environment + + @property + def datasource(self): + """Gets the datasource of this Incident. + + :return: The datasource of this Incident. + :rtype: :class:`huaweicloudsdksa.v2.IncidentDatasource` + """ + return self._datasource + + @datasource.setter + def datasource(self, datasource): + """Sets the datasource of this Incident. + + :param datasource: The datasource of this Incident. + :type datasource: :class:`huaweicloudsdksa.v2.IncidentDatasource` + """ + self._datasource = datasource + + @property + def first_observed_time(self): + """Gets the first_observed_time of this Incident. + + Update time + + :return: The first_observed_time of this Incident. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this Incident. + + Update time + + :param first_observed_time: The first_observed_time of this Incident. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this Incident. + + Update time + + :return: The last_observed_time of this Incident. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this Incident. + + Update time + + :param last_observed_time: The last_observed_time of this Incident. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this Incident. + + Create time + + :return: The create_time of this Incident. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Incident. + + Create time + + :param create_time: The create_time of this Incident. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this Incident. + + Update time + + :return: The arrive_time of this Incident. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this Incident. + + Update time + + :param arrive_time: The arrive_time of this Incident. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this Incident. + + The name, display only + + :return: The title of this Incident. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this Incident. + + The name, display only + + :param title: The title of this Incident. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this Incident. + + The description, display only + + :return: The description of this Incident. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Incident. + + The description, display only + + :param description: The description of this Incident. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this Incident. + + 事件URL链接 + + :return: The source_url of this Incident. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this Incident. + + 事件URL链接 + + :param source_url: The source_url of this Incident. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this Incident. + + 事件发生次数 + + :return: The count of this Incident. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Incident. + + 事件发生次数 + + :param count: The count of this Incident. + :type count: int + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this Incident. + + 置信度 + + :return: The confidence of this Incident. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this Incident. + + 置信度 + + :param confidence: The confidence of this Incident. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this Incident. + + 严重性等级 + + :return: The serverity of this Incident. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this Incident. + + 严重性等级 + + :param serverity: The serverity of this Incident. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this Incident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this Incident. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this Incident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this Incident. + :type criticality: int + """ + self._criticality = criticality + + @property + def incident_type(self): + """Gets the incident_type of this Incident. + + 事件分类 + + :return: The incident_type of this Incident. + :rtype: object + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this Incident. + + 事件分类 + + :param incident_type: The incident_type of this Incident. + :type incident_type: object + """ + self._incident_type = incident_type + + @property + def network_list(self): + """Gets the network_list of this Incident. + + network_list + + :return: The network_list of this Incident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this Incident. + + network_list + + :param network_list: The network_list of this Incident. + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this Incident. + + network_list + + :return: The resource_list of this Incident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this Incident. + + network_list + + :param resource_list: The resource_list of this Incident. + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this Incident. + + :return: The remediation of this Incident. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this Incident. + + :param remediation: The remediation of this Incident. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this Incident. + + 验证状态 + + :return: The verification_state of this Incident. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this Incident. + + 验证状态 + + :param verification_state: The verification_state of this Incident. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this Incident. + + 事件处理状态 + + :return: The handle_status of this Incident. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this Incident. + + 事件处理状态 + + :param handle_status: The handle_status of this Incident. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this Incident. + + sla + + :return: The sla of this Incident. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this Incident. + + sla + + :param sla: The sla of this Incident. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this Incident. + + Create time + + :return: The update_time of this Incident. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this Incident. + + Create time + + :param update_time: The update_time of this Incident. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this Incident. + + Create time + + :return: The close_time of this Incident. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this Incident. + + Create time + + :param close_time: The close_time of this Incident. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this Incident. + + 周期/处置阶段编号 + + :return: The chop_phase of this Incident. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this Incident. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this Incident. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this Incident. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this Incident. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this Incident. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this Incident. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this Incident. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this Incident. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this Incident. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this Incident. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this Incident. + + 是否为调试事件. + + :return: The simulation of this Incident. + :rtype: str + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this Incident. + + 是否为调试事件. + + :param simulation: The simulation of this Incident. + :type simulation: str + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this Incident. + + 委托人 + + :return: The actor of this Incident. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this Incident. + + 委托人 + + :param actor: The actor of this Incident. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this Incident. + + The name, display only + + :return: The owner of this Incident. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this Incident. + + The name, display only + + :param owner: The owner of this Incident. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this Incident. + + The name, display only + + :return: The cteator of this Incident. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this Incident. + + The name, display only + + :param cteator: The cteator of this Incident. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this Incident. + + 关闭原因 + + :return: The close_reason of this Incident. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this Incident. + + 关闭原因 + + :param close_reason: The close_reason of this Incident. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this Incident. + + 关闭原因 + + :return: The close_comment of this Incident. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this Incident. + + 关闭原因 + + :param close_comment: The close_comment of this Incident. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this Incident. + + :return: The malware of this Incident. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this Incident. + + :param malware: The malware of this Incident. + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this Incident. + + 系统信息 + + :return: The system_info of this Incident. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this Incident. + + 系统信息 + + :param system_info: The system_info of this Incident. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this Incident. + + 进程信息 + + :return: The process of this Incident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this Incident. + + 进程信息 + + :param process: The process of this Incident. + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this Incident. + + 用户信息 + + :return: The user_info of this Incident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this Incident. + + 用户信息 + + :param user_info: The user_info of this Incident. + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this Incident. + + 文件信息 + + :return: The file_info of this Incident. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this Incident. + + 文件信息 + + :param file_info: The file_info of this Incident. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_incident_table(self): + """Gets the system_incident_table of this Incident. + + 系统信息 + + :return: The system_incident_table of this Incident. + :rtype: object + """ + return self._system_incident_table + + @system_incident_table.setter + def system_incident_table(self, system_incident_table): + """Sets the system_incident_table of this Incident. + + 系统信息 + + :param system_incident_table: The system_incident_table of this Incident. + :type system_incident_table: object + """ + self._system_incident_table = system_incident_table + + @property + def id(self): + """Gets the id of this Incident. + + Id value + + :return: The id of this Incident. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Incident. + + Id value + + :param id: The id of this Incident. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this Incident. + + workspace id + + :return: The workspace_id of this Incident. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this Incident. + + workspace id + + :param workspace_id: The workspace_id of this Incident. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Incident): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_datasource.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_datasource.py new file mode 100755 index 0000000000..f32b97561c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_datasource.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IncidentDatasource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source_type': 'int', + 'domain_id': 'str', + 'project_id': 'str', + 'region_id': 'str' + } + + attribute_map = { + 'source_type': 'source_type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'region_id': 'region_id' + } + + def __init__(self, source_type=None, domain_id=None, project_id=None, region_id=None): + """IncidentDatasource + + The model defined in huaweicloud sdk + + :param source_type: current page count + :type source_type: int + :param domain_id: Id value + :type domain_id: str + :param project_id: Id value + :type project_id: str + :param region_id: Id value + :type region_id: str + """ + + + + self._source_type = None + self._domain_id = None + self._project_id = None + self._region_id = None + self.discriminator = None + + if source_type is not None: + self.source_type = source_type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + + @property + def source_type(self): + """Gets the source_type of this IncidentDatasource. + + current page count + + :return: The source_type of this IncidentDatasource. + :rtype: int + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this IncidentDatasource. + + current page count + + :param source_type: The source_type of this IncidentDatasource. + :type source_type: int + """ + self._source_type = source_type + + @property + def domain_id(self): + """Gets the domain_id of this IncidentDatasource. + + Id value + + :return: The domain_id of this IncidentDatasource. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this IncidentDatasource. + + Id value + + :param domain_id: The domain_id of this IncidentDatasource. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this IncidentDatasource. + + Id value + + :return: The project_id of this IncidentDatasource. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IncidentDatasource. + + Id value + + :param project_id: The project_id of this IncidentDatasource. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this IncidentDatasource. + + Id value + + :return: The region_id of this IncidentDatasource. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this IncidentDatasource. + + Id value + + :param region_id: The region_id of this IncidentDatasource. + :type region_id: str + """ + self._region_id = region_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IncidentDatasource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_detail.py new file mode 100755 index 0000000000..9a4e59da09 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IncidentDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'Incident', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_id': 'str', + 'layout_id': 'str', + 'name': 'str', + 'type': 'str', + 'dataclass': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_id': 'dataclass_id', + 'layout_id': 'layout_id', + 'name': 'name', + 'type': 'type', + 'dataclass': 'dataclass' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, dataclass_id=None, layout_id=None, name=None, type=None, dataclass=None): + """IncidentDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param dataclass_id: Id value + :type dataclass_id: str + :param layout_id: Id value + :type layout_id: str + :param name: The name, display only + :type name: str + :param type: The name, display only + :type type: str + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._dataclass_id = None + self._layout_id = None + self._name = None + self._type = None + self._dataclass = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if layout_id is not None: + self.layout_id = layout_id + if name is not None: + self.name = name + if type is not None: + self.type = type + if dataclass is not None: + self.dataclass = dataclass + + @property + def data_object(self): + """Gets the data_object of this IncidentDetail. + + :return: The data_object of this IncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.Incident` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this IncidentDetail. + + :param data_object: The data_object of this IncidentDetail. + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this IncidentDetail. + + Create time + + :return: The create_time of this IncidentDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this IncidentDetail. + + Create time + + :param create_time: The create_time of this IncidentDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this IncidentDetail. + + Update time + + :return: The update_time of this IncidentDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this IncidentDetail. + + Update time + + :param update_time: The update_time of this IncidentDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this IncidentDetail. + + Id value + + :return: The project_id of this IncidentDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IncidentDetail. + + Id value + + :param project_id: The project_id of this IncidentDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this IncidentDetail. + + Id value + + :return: The workspace_id of this IncidentDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this IncidentDetail. + + Id value + + :param workspace_id: The workspace_id of this IncidentDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_id(self): + """Gets the dataclass_id of this IncidentDetail. + + Id value + + :return: The dataclass_id of this IncidentDetail. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this IncidentDetail. + + Id value + + :param dataclass_id: The dataclass_id of this IncidentDetail. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def layout_id(self): + """Gets the layout_id of this IncidentDetail. + + Id value + + :return: The layout_id of this IncidentDetail. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this IncidentDetail. + + Id value + + :param layout_id: The layout_id of this IncidentDetail. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def name(self): + """Gets the name of this IncidentDetail. + + The name, display only + + :return: The name of this IncidentDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IncidentDetail. + + The name, display only + + :param name: The name of this IncidentDetail. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this IncidentDetail. + + The name, display only + + :return: The type of this IncidentDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this IncidentDetail. + + The name, display only + + :param type: The type of this IncidentDetail. + :type type: str + """ + self._type = type + + @property + def dataclass(self): + """Gets the dataclass of this IncidentDetail. + + :return: The dataclass of this IncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this IncidentDetail. + + :param dataclass: The dataclass of this IncidentDetail. + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass = dataclass + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IncidentDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_environment.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_environment.py new file mode 100755 index 0000000000..4c5430641b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/incident_environment.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IncidentEnvironment: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vendor_type': 'str', + 'domain_id': 'str', + 'region_id': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'vendor_type': 'vendor_type', + 'domain_id': 'domain_id', + 'region_id': 'region_id', + 'project_id': 'project_id' + } + + def __init__(self, vendor_type=None, domain_id=None, region_id=None, project_id=None): + """IncidentEnvironment + + The model defined in huaweicloud sdk + + :param vendor_type: The name, display only + :type vendor_type: str + :param domain_id: Id value + :type domain_id: str + :param region_id: Id value + :type region_id: str + :param project_id: Id value + :type project_id: str + """ + + + + self._vendor_type = None + self._domain_id = None + self._region_id = None + self._project_id = None + self.discriminator = None + + if vendor_type is not None: + self.vendor_type = vendor_type + if domain_id is not None: + self.domain_id = domain_id + if region_id is not None: + self.region_id = region_id + if project_id is not None: + self.project_id = project_id + + @property + def vendor_type(self): + """Gets the vendor_type of this IncidentEnvironment. + + The name, display only + + :return: The vendor_type of this IncidentEnvironment. + :rtype: str + """ + return self._vendor_type + + @vendor_type.setter + def vendor_type(self, vendor_type): + """Sets the vendor_type of this IncidentEnvironment. + + The name, display only + + :param vendor_type: The vendor_type of this IncidentEnvironment. + :type vendor_type: str + """ + self._vendor_type = vendor_type + + @property + def domain_id(self): + """Gets the domain_id of this IncidentEnvironment. + + Id value + + :return: The domain_id of this IncidentEnvironment. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this IncidentEnvironment. + + Id value + + :param domain_id: The domain_id of this IncidentEnvironment. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def region_id(self): + """Gets the region_id of this IncidentEnvironment. + + Id value + + :return: The region_id of this IncidentEnvironment. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this IncidentEnvironment. + + Id value + + :param region_id: The region_id of this IncidentEnvironment. + :type region_id: str + """ + self._region_id = region_id + + @property + def project_id(self): + """Gets the project_id of this IncidentEnvironment. + + Id value + + :return: The project_id of this IncidentEnvironment. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IncidentEnvironment. + + Id value + + :param project_id: The project_id of this IncidentEnvironment. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IncidentEnvironment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_batch_operate_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_batch_operate_response.py new file mode 100755 index 0000000000..20135adf17 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_batch_operate_response.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndicatorBatchOperateResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'success_ids': 'list[str]', + 'error_ids': 'list[str]' + } + + attribute_map = { + 'success_ids': 'success_ids', + 'error_ids': 'error_ids' + } + + def __init__(self, success_ids=None, error_ids=None): + """IndicatorBatchOperateResponse + + The model defined in huaweicloud sdk + + :param success_ids: id list + :type success_ids: list[str] + :param error_ids: id list + :type error_ids: list[str] + """ + + + + self._success_ids = None + self._error_ids = None + self.discriminator = None + + self.success_ids = success_ids + if error_ids is not None: + self.error_ids = error_ids + + @property + def success_ids(self): + """Gets the success_ids of this IndicatorBatchOperateResponse. + + id list + + :return: The success_ids of this IndicatorBatchOperateResponse. + :rtype: list[str] + """ + return self._success_ids + + @success_ids.setter + def success_ids(self, success_ids): + """Sets the success_ids of this IndicatorBatchOperateResponse. + + id list + + :param success_ids: The success_ids of this IndicatorBatchOperateResponse. + :type success_ids: list[str] + """ + self._success_ids = success_ids + + @property + def error_ids(self): + """Gets the error_ids of this IndicatorBatchOperateResponse. + + id list + + :return: The error_ids of this IndicatorBatchOperateResponse. + :rtype: list[str] + """ + return self._error_ids + + @error_ids.setter + def error_ids(self, error_ids): + """Sets the error_ids of this IndicatorBatchOperateResponse. + + id list + + :param error_ids: The error_ids of this IndicatorBatchOperateResponse. + :type error_ids: list[str] + """ + self._error_ids = error_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IndicatorBatchOperateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_create_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_create_request.py new file mode 100755 index 0000000000..d10881e736 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_create_request.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndicatorCreateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'format_version': 'int', + 'type': 'str', + 'trigger_flag': 'bool', + 'data_object': 'CreateIndicatorDetail' + } + + attribute_map = { + 'name': 'name', + 'format_version': 'format_version', + 'type': 'type', + 'trigger_flag': 'trigger_flag', + 'data_object': 'data_object' + } + + def __init__(self, name=None, format_version=None, type=None, trigger_flag=None, data_object=None): + """IndicatorCreateRequest + + The model defined in huaweicloud sdk + + :param name: 指标名称 + :type name: str + :param format_version: 版本号 + :type format_version: int + :param type: 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + :type type: str + :param trigger_flag: 触发标志 + :type trigger_flag: bool + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.CreateIndicatorDetail` + """ + + + + self._name = None + self._format_version = None + self._type = None + self._trigger_flag = None + self._data_object = None + self.discriminator = None + + if name is not None: + self.name = name + if format_version is not None: + self.format_version = format_version + if type is not None: + self.type = type + if trigger_flag is not None: + self.trigger_flag = trigger_flag + if data_object is not None: + self.data_object = data_object + + @property + def name(self): + """Gets the name of this IndicatorCreateRequest. + + 指标名称 + + :return: The name of this IndicatorCreateRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IndicatorCreateRequest. + + 指标名称 + + :param name: The name of this IndicatorCreateRequest. + :type name: str + """ + self._name = name + + @property + def format_version(self): + """Gets the format_version of this IndicatorCreateRequest. + + 版本号 + + :return: The format_version of this IndicatorCreateRequest. + :rtype: int + """ + return self._format_version + + @format_version.setter + def format_version(self, format_version): + """Sets the format_version of this IndicatorCreateRequest. + + 版本号 + + :param format_version: The format_version of this IndicatorCreateRequest. + :type format_version: int + """ + self._format_version = format_version + + @property + def type(self): + """Gets the type of this IndicatorCreateRequest. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :return: The type of this IndicatorCreateRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this IndicatorCreateRequest. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :param type: The type of this IndicatorCreateRequest. + :type type: str + """ + self._type = type + + @property + def trigger_flag(self): + """Gets the trigger_flag of this IndicatorCreateRequest. + + 触发标志 + + :return: The trigger_flag of this IndicatorCreateRequest. + :rtype: bool + """ + return self._trigger_flag + + @trigger_flag.setter + def trigger_flag(self, trigger_flag): + """Sets the trigger_flag of this IndicatorCreateRequest. + + 触发标志 + + :param trigger_flag: The trigger_flag of this IndicatorCreateRequest. + :type trigger_flag: bool + """ + self._trigger_flag = trigger_flag + + @property + def data_object(self): + """Gets the data_object of this IndicatorCreateRequest. + + :return: The data_object of this IndicatorCreateRequest. + :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorDetail` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this IndicatorCreateRequest. + + :param data_object: The data_object of this IndicatorCreateRequest. + :type data_object: :class:`huaweicloudsdksa.v2.CreateIndicatorDetail` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IndicatorCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_data_object_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_data_object_detail.py new file mode 100755 index 0000000000..0db6520caf --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_data_object_detail.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndicatorDataObjectDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'indicator_type': 'CreateIndicatorDetailIndicatorType', + 'value': 'str' + } + + attribute_map = { + 'indicator_type': 'indicator_type', + 'value': 'value' + } + + def __init__(self, indicator_type=None, value=None): + """IndicatorDataObjectDetail + + The model defined in huaweicloud sdk + + :param indicator_type: + :type indicator_type: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + :param value: 值,如:ip url domain等 + :type value: str + """ + + + + self._indicator_type = None + self._value = None + self.discriminator = None + + if indicator_type is not None: + self.indicator_type = indicator_type + if value is not None: + self.value = value + + @property + def indicator_type(self): + """Gets the indicator_type of this IndicatorDataObjectDetail. + + :return: The indicator_type of this IndicatorDataObjectDetail. + :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + """ + return self._indicator_type + + @indicator_type.setter + def indicator_type(self, indicator_type): + """Sets the indicator_type of this IndicatorDataObjectDetail. + + :param indicator_type: The indicator_type of this IndicatorDataObjectDetail. + :type indicator_type: :class:`huaweicloudsdksa.v2.CreateIndicatorDetailIndicatorType` + """ + self._indicator_type = indicator_type + + @property + def value(self): + """Gets the value of this IndicatorDataObjectDetail. + + 值,如:ip url domain等 + + :return: The value of this IndicatorDataObjectDetail. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this IndicatorDataObjectDetail. + + 值,如:ip url domain等 + + :param value: The value of this IndicatorDataObjectDetail. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IndicatorDataObjectDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_detail.py new file mode 100755 index 0000000000..12998beb88 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_detail.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndicatorDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'dataclass_id': 'str', + 'type': 'str', + 'data_object': 'IndicatorDataObjectDetail', + 'workspace_id': 'str', + 'project_id': 'str', + 'layout_id': 'str', + 'dataclass': 'DataClassRefPojo', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'dataclass_id': 'dataclass_id', + 'type': 'type', + 'data_object': 'data_object', + 'workspace_id': 'workspace_id', + 'project_id': 'project_id', + 'layout_id': 'layout_id', + 'dataclass': 'dataclass', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, id=None, name=None, dataclass_id=None, type=None, data_object=None, workspace_id=None, project_id=None, layout_id=None, dataclass=None, create_time=None, update_time=None): + """IndicatorDetail + + The model defined in huaweicloud sdk + + :param id: 指标ID + :type id: str + :param name: 指标名称 + :type name: str + :param dataclass_id: 数据类ID + :type dataclass_id: str + :param type: 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + :type type: str + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + :param workspace_id: workspace id + :type workspace_id: str + :param project_id: Project id value + :type project_id: str + :param layout_id: 布局ID + :type layout_id: str + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + """ + + + + self._id = None + self._name = None + self._dataclass_id = None + self._type = None + self._data_object = None + self._workspace_id = None + self._project_id = None + self._layout_id = None + self._dataclass = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if id is not None: + self.id = id + self.name = name + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if type is not None: + self.type = type + if data_object is not None: + self.data_object = data_object + if workspace_id is not None: + self.workspace_id = workspace_id + if project_id is not None: + self.project_id = project_id + if layout_id is not None: + self.layout_id = layout_id + if dataclass is not None: + self.dataclass = dataclass + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def id(self): + """Gets the id of this IndicatorDetail. + + 指标ID + + :return: The id of this IndicatorDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IndicatorDetail. + + 指标ID + + :param id: The id of this IndicatorDetail. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this IndicatorDetail. + + 指标名称 + + :return: The name of this IndicatorDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IndicatorDetail. + + 指标名称 + + :param name: The name of this IndicatorDetail. + :type name: str + """ + self._name = name + + @property + def dataclass_id(self): + """Gets the dataclass_id of this IndicatorDetail. + + 数据类ID + + :return: The dataclass_id of this IndicatorDetail. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this IndicatorDetail. + + 数据类ID + + :param dataclass_id: The dataclass_id of this IndicatorDetail. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def type(self): + """Gets the type of this IndicatorDetail. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :return: The type of this IndicatorDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this IndicatorDetail. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :param type: The type of this IndicatorDetail. + :type type: str + """ + self._type = type + + @property + def data_object(self): + """Gets the data_object of this IndicatorDetail. + + :return: The data_object of this IndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this IndicatorDetail. + + :param data_object: The data_object of this IndicatorDetail. + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + self._data_object = data_object + + @property + def workspace_id(self): + """Gets the workspace_id of this IndicatorDetail. + + workspace id + + :return: The workspace_id of this IndicatorDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this IndicatorDetail. + + workspace id + + :param workspace_id: The workspace_id of this IndicatorDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def project_id(self): + """Gets the project_id of this IndicatorDetail. + + Project id value + + :return: The project_id of this IndicatorDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IndicatorDetail. + + Project id value + + :param project_id: The project_id of this IndicatorDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def layout_id(self): + """Gets the layout_id of this IndicatorDetail. + + 布局ID + + :return: The layout_id of this IndicatorDetail. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this IndicatorDetail. + + 布局ID + + :param layout_id: The layout_id of this IndicatorDetail. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def dataclass(self): + """Gets the dataclass of this IndicatorDetail. + + :return: The dataclass of this IndicatorDetail. + :rtype: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this IndicatorDetail. + + :param dataclass: The dataclass of this IndicatorDetail. + :type dataclass: :class:`huaweicloudsdksa.v2.DataClassRefPojo` + """ + self._dataclass = dataclass + + @property + def create_time(self): + """Gets the create_time of this IndicatorDetail. + + Create time + + :return: The create_time of this IndicatorDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this IndicatorDetail. + + Create time + + :param create_time: The create_time of this IndicatorDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this IndicatorDetail. + + Update time + + :return: The update_time of this IndicatorDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this IndicatorDetail. + + Update time + + :param update_time: The update_time of this IndicatorDetail. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IndicatorDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_list_search_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_list_search_request.py new file mode 100755 index 0000000000..5a0620f151 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/indicator_list_search_request.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndicatorListSearchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]', + 'name': 'str', + 'type': 'str', + 'dataclass_id': 'str', + 'condition': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort_by': 'str' + } + + attribute_map = { + 'ids': 'ids', + 'name': 'name', + 'type': 'type', + 'dataclass_id': 'dataclass_id', + 'condition': 'condition', + 'offset': 'offset', + 'limit': 'limit', + 'sort_by': 'sort_by' + } + + def __init__(self, ids=None, name=None, type=None, dataclass_id=None, condition=None, offset=None, limit=None, sort_by=None): + """IndicatorListSearchRequest + + The model defined in huaweicloud sdk + + :param ids: id list + :type ids: list[str] + :param name: 指标名称 + :type name: str + :param type: 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + :type type: str + :param dataclass_id: 数据类ID + :type dataclass_id: str + :param condition: search condition + :type condition: str + :param offset: request offset, from 0 + :type offset: int + :param limit: request limit size + :type limit: int + :param sort_by: sort by property, create_time. + :type sort_by: str + """ + + + + self._ids = None + self._name = None + self._type = None + self._dataclass_id = None + self._condition = None + self._offset = None + self._limit = None + self._sort_by = None + self.discriminator = None + + if ids is not None: + self.ids = ids + if name is not None: + self.name = name + if type is not None: + self.type = type + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if condition is not None: + self.condition = condition + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if sort_by is not None: + self.sort_by = sort_by + + @property + def ids(self): + """Gets the ids of this IndicatorListSearchRequest. + + id list + + :return: The ids of this IndicatorListSearchRequest. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this IndicatorListSearchRequest. + + id list + + :param ids: The ids of this IndicatorListSearchRequest. + :type ids: list[str] + """ + self._ids = ids + + @property + def name(self): + """Gets the name of this IndicatorListSearchRequest. + + 指标名称 + + :return: The name of this IndicatorListSearchRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this IndicatorListSearchRequest. + + 指标名称 + + :param name: The name of this IndicatorListSearchRequest. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this IndicatorListSearchRequest. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :return: The type of this IndicatorListSearchRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this IndicatorListSearchRequest. + + 类型(SIMULATION,PLAYBOOK,MANUAL,INSTANCE,DATA_SOURCE) + + :param type: The type of this IndicatorListSearchRequest. + :type type: str + """ + self._type = type + + @property + def dataclass_id(self): + """Gets the dataclass_id of this IndicatorListSearchRequest. + + 数据类ID + + :return: The dataclass_id of this IndicatorListSearchRequest. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this IndicatorListSearchRequest. + + 数据类ID + + :param dataclass_id: The dataclass_id of this IndicatorListSearchRequest. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def condition(self): + """Gets the condition of this IndicatorListSearchRequest. + + search condition + + :return: The condition of this IndicatorListSearchRequest. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this IndicatorListSearchRequest. + + search condition + + :param condition: The condition of this IndicatorListSearchRequest. + :type condition: str + """ + self._condition = condition + + @property + def offset(self): + """Gets the offset of this IndicatorListSearchRequest. + + request offset, from 0 + + :return: The offset of this IndicatorListSearchRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this IndicatorListSearchRequest. + + request offset, from 0 + + :param offset: The offset of this IndicatorListSearchRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this IndicatorListSearchRequest. + + request limit size + + :return: The limit of this IndicatorListSearchRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this IndicatorListSearchRequest. + + request limit size + + :param limit: The limit of this IndicatorListSearchRequest. + :type limit: int + """ + self._limit = limit + + @property + def sort_by(self): + """Gets the sort_by of this IndicatorListSearchRequest. + + sort by property, create_time. + + :return: The sort_by of this IndicatorListSearchRequest. + :rtype: str + """ + return self._sort_by + + @sort_by.setter + def sort_by(self, sort_by): + """Sets the sort_by of this IndicatorListSearchRequest. + + sort by property, create_time. + + :param sort_by: The sort_by of this IndicatorListSearchRequest. + :type sort_by: str + """ + self._sort_by = sort_by + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IndicatorListSearchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_detail.py new file mode 100755 index 0000000000..556c373260 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'ListAlertRsp', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'id': 'str', + 'type': 'str', + 'version': 'int', + 'format_version': 'int', + 'dataclass_ref': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'id': 'id', + 'type': 'type', + 'version': 'version', + 'format_version': 'format_version', + 'dataclass_ref': 'dataclass_ref' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, id=None, type=None, version=None, format_version=None, dataclass_ref=None): + """ListAlertDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.ListAlertRsp` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param id: The name, display only + :type id: str + :param type: The name, display only + :type type: str + :param version: The name, display only + :type version: int + :param format_version: The name, display only + :type format_version: int + :param dataclass_ref: + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._id = None + self._type = None + self._version = None + self._format_version = None + self._dataclass_ref = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if id is not None: + self.id = id + if type is not None: + self.type = type + if version is not None: + self.version = version + if format_version is not None: + self.format_version = format_version + if dataclass_ref is not None: + self.dataclass_ref = dataclass_ref + + @property + def data_object(self): + """Gets the data_object of this ListAlertDetail. + + :return: The data_object of this ListAlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRsp` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ListAlertDetail. + + :param data_object: The data_object of this ListAlertDetail. + :type data_object: :class:`huaweicloudsdksa.v2.ListAlertRsp` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this ListAlertDetail. + + Create time + + :return: The create_time of this ListAlertDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListAlertDetail. + + Create time + + :param create_time: The create_time of this ListAlertDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ListAlertDetail. + + Update time + + :return: The update_time of this ListAlertDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ListAlertDetail. + + Update time + + :param update_time: The update_time of this ListAlertDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this ListAlertDetail. + + Id value + + :return: The project_id of this ListAlertDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAlertDetail. + + Id value + + :param project_id: The project_id of this ListAlertDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertDetail. + + Id value + + :return: The workspace_id of this ListAlertDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertDetail. + + Id value + + :param workspace_id: The workspace_id of this ListAlertDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def id(self): + """Gets the id of this ListAlertDetail. + + The name, display only + + :return: The id of this ListAlertDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListAlertDetail. + + The name, display only + + :param id: The id of this ListAlertDetail. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this ListAlertDetail. + + The name, display only + + :return: The type of this ListAlertDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListAlertDetail. + + The name, display only + + :param type: The type of this ListAlertDetail. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this ListAlertDetail. + + The name, display only + + :return: The version of this ListAlertDetail. + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListAlertDetail. + + The name, display only + + :param version: The version of this ListAlertDetail. + :type version: int + """ + self._version = version + + @property + def format_version(self): + """Gets the format_version of this ListAlertDetail. + + The name, display only + + :return: The format_version of this ListAlertDetail. + :rtype: int + """ + return self._format_version + + @format_version.setter + def format_version(self, format_version): + """Sets the format_version of this ListAlertDetail. + + The name, display only + + :param format_version: The format_version of this ListAlertDetail. + :type format_version: int + """ + self._format_version = format_version + + @property + def dataclass_ref(self): + """Gets the dataclass_ref of this ListAlertDetail. + + :return: The dataclass_ref of this ListAlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass_ref + + @dataclass_ref.setter + def dataclass_ref(self, dataclass_ref): + """Sets the dataclass_ref of this ListAlertDetail. + + :param dataclass_ref: The dataclass_ref of this ListAlertDetail. + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass_ref = dataclass_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rsp.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rsp.py new file mode 100755 index 0000000000..8ff78ae545 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rsp.py @@ -0,0 +1,1233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRsp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'datasource': 'ShowAlertRspDatasource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'int', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'alert_type': 'object', + 'network_list': 'list[ShowAlertRspNetworkList]', + 'resource_list': 'list[ShowAlertRspResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'bool', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'ShowAlertRspMalware', + 'system_info': 'object', + 'process': 'list[ShowAlertRspProcess]', + 'user_info': 'list[ShowAlertRspUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_alert_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'datasource': 'datasource', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'alert_type': 'alert_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_alert_table': 'system_alert_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, datasource=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, alert_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_alert_table=None, id=None, workspace_id=None): + """ListAlertRsp + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param datasource: + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: int + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param alert_type: 事件分类 + :type alert_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: bool + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_alert_table: 系统信息 + :type system_alert_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._datasource = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._alert_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_alert_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if datasource is not None: + self.datasource = datasource + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if alert_type is not None: + self.alert_type = alert_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_alert_table is not None: + self.system_alert_table = system_alert_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this ListAlertRsp. + + 版本 + + :return: The version of this ListAlertRsp. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListAlertRsp. + + 版本 + + :param version: The version of this ListAlertRsp. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this ListAlertRsp. + + :return: The environment of this ListAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this ListAlertRsp. + + :param environment: The environment of this ListAlertRsp. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def datasource(self): + """Gets the datasource of this ListAlertRsp. + + :return: The datasource of this ListAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + return self._datasource + + @datasource.setter + def datasource(self, datasource): + """Sets the datasource of this ListAlertRsp. + + :param datasource: The datasource of this ListAlertRsp. + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + self._datasource = datasource + + @property + def first_observed_time(self): + """Gets the first_observed_time of this ListAlertRsp. + + Update time + + :return: The first_observed_time of this ListAlertRsp. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this ListAlertRsp. + + Update time + + :param first_observed_time: The first_observed_time of this ListAlertRsp. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this ListAlertRsp. + + Update time + + :return: The last_observed_time of this ListAlertRsp. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this ListAlertRsp. + + Update time + + :param last_observed_time: The last_observed_time of this ListAlertRsp. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this ListAlertRsp. + + Create time + + :return: The create_time of this ListAlertRsp. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListAlertRsp. + + Create time + + :param create_time: The create_time of this ListAlertRsp. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this ListAlertRsp. + + Update time + + :return: The arrive_time of this ListAlertRsp. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this ListAlertRsp. + + Update time + + :param arrive_time: The arrive_time of this ListAlertRsp. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this ListAlertRsp. + + The name, display only + + :return: The title of this ListAlertRsp. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ListAlertRsp. + + The name, display only + + :param title: The title of this ListAlertRsp. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this ListAlertRsp. + + The description, display only + + :return: The description of this ListAlertRsp. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListAlertRsp. + + The description, display only + + :param description: The description of this ListAlertRsp. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this ListAlertRsp. + + 事件URL链接 + + :return: The source_url of this ListAlertRsp. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this ListAlertRsp. + + 事件URL链接 + + :param source_url: The source_url of this ListAlertRsp. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this ListAlertRsp. + + 事件发生次数 + + :return: The count of this ListAlertRsp. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListAlertRsp. + + 事件发生次数 + + :param count: The count of this ListAlertRsp. + :type count: int + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this ListAlertRsp. + + 置信度 + + :return: The confidence of this ListAlertRsp. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this ListAlertRsp. + + 置信度 + + :param confidence: The confidence of this ListAlertRsp. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this ListAlertRsp. + + 严重性等级 + + :return: The serverity of this ListAlertRsp. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this ListAlertRsp. + + 严重性等级 + + :param serverity: The serverity of this ListAlertRsp. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this ListAlertRsp. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this ListAlertRsp. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this ListAlertRsp. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this ListAlertRsp. + :type criticality: int + """ + self._criticality = criticality + + @property + def alert_type(self): + """Gets the alert_type of this ListAlertRsp. + + 事件分类 + + :return: The alert_type of this ListAlertRsp. + :rtype: object + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this ListAlertRsp. + + 事件分类 + + :param alert_type: The alert_type of this ListAlertRsp. + :type alert_type: object + """ + self._alert_type = alert_type + + @property + def network_list(self): + """Gets the network_list of this ListAlertRsp. + + network_list + + :return: The network_list of this ListAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this ListAlertRsp. + + network_list + + :param network_list: The network_list of this ListAlertRsp. + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this ListAlertRsp. + + network_list + + :return: The resource_list of this ListAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this ListAlertRsp. + + network_list + + :param resource_list: The resource_list of this ListAlertRsp. + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this ListAlertRsp. + + :return: The remediation of this ListAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this ListAlertRsp. + + :param remediation: The remediation of this ListAlertRsp. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this ListAlertRsp. + + 验证状态 + + :return: The verification_state of this ListAlertRsp. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this ListAlertRsp. + + 验证状态 + + :param verification_state: The verification_state of this ListAlertRsp. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this ListAlertRsp. + + 事件处理状态 + + :return: The handle_status of this ListAlertRsp. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this ListAlertRsp. + + 事件处理状态 + + :param handle_status: The handle_status of this ListAlertRsp. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this ListAlertRsp. + + sla + + :return: The sla of this ListAlertRsp. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this ListAlertRsp. + + sla + + :param sla: The sla of this ListAlertRsp. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this ListAlertRsp. + + Create time + + :return: The update_time of this ListAlertRsp. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ListAlertRsp. + + Create time + + :param update_time: The update_time of this ListAlertRsp. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this ListAlertRsp. + + Create time + + :return: The close_time of this ListAlertRsp. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this ListAlertRsp. + + Create time + + :param close_time: The close_time of this ListAlertRsp. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :return: The chop_phase of this ListAlertRsp. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this ListAlertRsp. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this ListAlertRsp. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this ListAlertRsp. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this ListAlertRsp. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this ListAlertRsp. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this ListAlertRsp. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this ListAlertRsp. + + 是否为调试事件. + + :return: The simulation of this ListAlertRsp. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this ListAlertRsp. + + 是否为调试事件. + + :param simulation: The simulation of this ListAlertRsp. + :type simulation: bool + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this ListAlertRsp. + + 委托人 + + :return: The actor of this ListAlertRsp. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this ListAlertRsp. + + 委托人 + + :param actor: The actor of this ListAlertRsp. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this ListAlertRsp. + + The name, display only + + :return: The owner of this ListAlertRsp. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ListAlertRsp. + + The name, display only + + :param owner: The owner of this ListAlertRsp. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this ListAlertRsp. + + The name, display only + + :return: The cteator of this ListAlertRsp. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this ListAlertRsp. + + The name, display only + + :param cteator: The cteator of this ListAlertRsp. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this ListAlertRsp. + + 关闭原因 + + :return: The close_reason of this ListAlertRsp. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this ListAlertRsp. + + 关闭原因 + + :param close_reason: The close_reason of this ListAlertRsp. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this ListAlertRsp. + + 关闭原因 + + :return: The close_comment of this ListAlertRsp. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this ListAlertRsp. + + 关闭原因 + + :param close_comment: The close_comment of this ListAlertRsp. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this ListAlertRsp. + + :return: The malware of this ListAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this ListAlertRsp. + + :param malware: The malware of this ListAlertRsp. + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this ListAlertRsp. + + 系统信息 + + :return: The system_info of this ListAlertRsp. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this ListAlertRsp. + + 系统信息 + + :param system_info: The system_info of this ListAlertRsp. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this ListAlertRsp. + + 进程信息 + + :return: The process of this ListAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this ListAlertRsp. + + 进程信息 + + :param process: The process of this ListAlertRsp. + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this ListAlertRsp. + + 用户信息 + + :return: The user_info of this ListAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this ListAlertRsp. + + 用户信息 + + :param user_info: The user_info of this ListAlertRsp. + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this ListAlertRsp. + + 文件信息 + + :return: The file_info of this ListAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this ListAlertRsp. + + 文件信息 + + :param file_info: The file_info of this ListAlertRsp. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_alert_table(self): + """Gets the system_alert_table of this ListAlertRsp. + + 系统信息 + + :return: The system_alert_table of this ListAlertRsp. + :rtype: object + """ + return self._system_alert_table + + @system_alert_table.setter + def system_alert_table(self, system_alert_table): + """Sets the system_alert_table of this ListAlertRsp. + + 系统信息 + + :param system_alert_table: The system_alert_table of this ListAlertRsp. + :type system_alert_table: object + """ + self._system_alert_table = system_alert_table + + @property + def id(self): + """Gets the id of this ListAlertRsp. + + Id value + + :return: The id of this ListAlertRsp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListAlertRsp. + + Id value + + :param id: The id of this ListAlertRsp. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertRsp. + + workspace id + + :return: The workspace_id of this ListAlertRsp. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertRsp. + + workspace id + + :param workspace_id: The workspace_id of this ListAlertRsp. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRsp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_request.py new file mode 100755 index 0000000000..93a1a3a4c4 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRuleMetricsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, project_id=None, workspace_id=None): + """ListAlertRuleMetricsRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + + @property + def project_id(self): + """Gets the project_id of this ListAlertRuleMetricsRequest. + + project_id + + :return: The project_id of this ListAlertRuleMetricsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAlertRuleMetricsRequest. + + project_id + + :param project_id: The project_id of this ListAlertRuleMetricsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertRuleMetricsRequest. + + workspace_id + + :return: The workspace_id of this ListAlertRuleMetricsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertRuleMetricsRequest. + + workspace_id + + :param workspace_id: The workspace_id of this ListAlertRuleMetricsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRuleMetricsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_response.py new file mode 100755 index 0000000000..b88fb56a71 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_metrics_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRuleMetricsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'dict(str, AlertRuleMetric)', + 'x_request_id': 'str' + } + + attribute_map = { + 'body': 'body', + 'x_request_id': 'X-request-id' + } + + def __init__(self, body=None, x_request_id=None): + """ListAlertRuleMetricsResponse + + The model defined in huaweicloud sdk + + :param body: ListAlertRuleMetricsResponseBody + :type body: dict(str, AlertRuleMetric) + :param x_request_id: + :type x_request_id: str + """ + + super(ListAlertRuleMetricsResponse, self).__init__() + + self._body = None + self._x_request_id = None + self.discriminator = None + + if body is not None: + self.body = body + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def body(self): + """Gets the body of this ListAlertRuleMetricsResponse. + + ListAlertRuleMetricsResponseBody + + :return: The body of this ListAlertRuleMetricsResponse. + :rtype: dict(str, AlertRuleMetric) + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListAlertRuleMetricsResponse. + + ListAlertRuleMetricsResponseBody + + :param body: The body of this ListAlertRuleMetricsResponse. + :type body: dict(str, AlertRuleMetric) + """ + self._body = body + + @property + def x_request_id(self): + """Gets the x_request_id of this ListAlertRuleMetricsResponse. + + :return: The x_request_id of this ListAlertRuleMetricsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListAlertRuleMetricsResponse. + + :param x_request_id: The x_request_id of this ListAlertRuleMetricsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRuleMetricsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_request.py new file mode 100755 index 0000000000..74edca1673 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_request.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRuleTemplatesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort_key': 'str', + 'sort_dir': 'str', + 'severity': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'offset': 'offset', + 'limit': 'limit', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir', + 'severity': 'severity' + } + + def __init__(self, project_id=None, workspace_id=None, offset=None, limit=None, sort_key=None, sort_dir=None, severity=None): + """ListAlertRuleTemplatesRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param offset: offset + :type offset: int + :param limit: limit + :type limit: int + :param sort_key: sort_key + :type sort_key: str + :param sort_dir: sort_dir. asc, desc + :type sort_dir: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: list[str] + """ + + + + self._project_id = None + self._workspace_id = None + self._offset = None + self._limit = None + self._sort_key = None + self._sort_dir = None + self._severity = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.offset = offset + self.limit = limit + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + if severity is not None: + self.severity = severity + + @property + def project_id(self): + """Gets the project_id of this ListAlertRuleTemplatesRequest. + + project_id + + :return: The project_id of this ListAlertRuleTemplatesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAlertRuleTemplatesRequest. + + project_id + + :param project_id: The project_id of this ListAlertRuleTemplatesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertRuleTemplatesRequest. + + workspace_id + + :return: The workspace_id of this ListAlertRuleTemplatesRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertRuleTemplatesRequest. + + workspace_id + + :param workspace_id: The workspace_id of this ListAlertRuleTemplatesRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def offset(self): + """Gets the offset of this ListAlertRuleTemplatesRequest. + + offset + + :return: The offset of this ListAlertRuleTemplatesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListAlertRuleTemplatesRequest. + + offset + + :param offset: The offset of this ListAlertRuleTemplatesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListAlertRuleTemplatesRequest. + + limit + + :return: The limit of this ListAlertRuleTemplatesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListAlertRuleTemplatesRequest. + + limit + + :param limit: The limit of this ListAlertRuleTemplatesRequest. + :type limit: int + """ + self._limit = limit + + @property + def sort_key(self): + """Gets the sort_key of this ListAlertRuleTemplatesRequest. + + sort_key + + :return: The sort_key of this ListAlertRuleTemplatesRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListAlertRuleTemplatesRequest. + + sort_key + + :param sort_key: The sort_key of this ListAlertRuleTemplatesRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListAlertRuleTemplatesRequest. + + sort_dir. asc, desc + + :return: The sort_dir of this ListAlertRuleTemplatesRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListAlertRuleTemplatesRequest. + + sort_dir. asc, desc + + :param sort_dir: The sort_dir of this ListAlertRuleTemplatesRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def severity(self): + """Gets the severity of this ListAlertRuleTemplatesRequest. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this ListAlertRuleTemplatesRequest. + :rtype: list[str] + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this ListAlertRuleTemplatesRequest. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this ListAlertRuleTemplatesRequest. + :type severity: list[str] + """ + self._severity = severity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRuleTemplatesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_response.py new file mode 100755 index 0000000000..bbdbb16c5d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rule_templates_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRuleTemplatesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'records': 'list[AlertRuleTemplate]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'records': 'records', + 'x_request_id': 'X-request-id' + } + + def __init__(self, count=None, records=None, x_request_id=None): + """ListAlertRuleTemplatesResponse + + The model defined in huaweicloud sdk + + :param count: total count + :type count: int + :param records: templates + :type records: list[:class:`huaweicloudsdksa.v2.AlertRuleTemplate`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListAlertRuleTemplatesResponse, self).__init__() + + self._count = None + self._records = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if records is not None: + self.records = records + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListAlertRuleTemplatesResponse. + + total count + + :return: The count of this ListAlertRuleTemplatesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListAlertRuleTemplatesResponse. + + total count + + :param count: The count of this ListAlertRuleTemplatesResponse. + :type count: int + """ + self._count = count + + @property + def records(self): + """Gets the records of this ListAlertRuleTemplatesResponse. + + templates + + :return: The records of this ListAlertRuleTemplatesResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTemplate`] + """ + return self._records + + @records.setter + def records(self, records): + """Sets the records of this ListAlertRuleTemplatesResponse. + + templates + + :param records: The records of this ListAlertRuleTemplatesResponse. + :type records: list[:class:`huaweicloudsdksa.v2.AlertRuleTemplate`] + """ + self._records = records + + @property + def x_request_id(self): + """Gets the x_request_id of this ListAlertRuleTemplatesResponse. + + :return: The x_request_id of this ListAlertRuleTemplatesResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListAlertRuleTemplatesResponse. + + :param x_request_id: The x_request_id of this ListAlertRuleTemplatesResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRuleTemplatesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_request.py new file mode 100755 index 0000000000..3f32ecb652 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_request.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRulesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort_key': 'str', + 'sort_dir': 'str', + 'pipe_id': 'str', + 'rule_name': 'str', + 'rule_id': 'str', + 'status': 'list[str]', + 'severity': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'offset': 'offset', + 'limit': 'limit', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir', + 'pipe_id': 'pipe_id', + 'rule_name': 'rule_name', + 'rule_id': 'rule_id', + 'status': 'status', + 'severity': 'severity' + } + + def __init__(self, project_id=None, workspace_id=None, offset=None, limit=None, sort_key=None, sort_dir=None, pipe_id=None, rule_name=None, rule_id=None, status=None, severity=None): + """ListAlertRulesRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param offset: offset + :type offset: int + :param limit: limit + :type limit: int + :param sort_key: sort_key + :type sort_key: str + :param sort_dir: sort_dir. asc, desc + :type sort_dir: str + :param pipe_id: pipe_id + :type pipe_id: str + :param rule_name: rule_name + :type rule_name: str + :param rule_id: rule_id + :type rule_id: str + :param status: status. ENABLED, DISABLED + :type status: list[str] + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: list[str] + """ + + + + self._project_id = None + self._workspace_id = None + self._offset = None + self._limit = None + self._sort_key = None + self._sort_dir = None + self._pipe_id = None + self._rule_name = None + self._rule_id = None + self._status = None + self._severity = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.offset = offset + self.limit = limit + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + if pipe_id is not None: + self.pipe_id = pipe_id + if rule_name is not None: + self.rule_name = rule_name + if rule_id is not None: + self.rule_id = rule_id + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + + @property + def project_id(self): + """Gets the project_id of this ListAlertRulesRequest. + + project_id + + :return: The project_id of this ListAlertRulesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAlertRulesRequest. + + project_id + + :param project_id: The project_id of this ListAlertRulesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertRulesRequest. + + workspace_id + + :return: The workspace_id of this ListAlertRulesRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertRulesRequest. + + workspace_id + + :param workspace_id: The workspace_id of this ListAlertRulesRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def offset(self): + """Gets the offset of this ListAlertRulesRequest. + + offset + + :return: The offset of this ListAlertRulesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListAlertRulesRequest. + + offset + + :param offset: The offset of this ListAlertRulesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListAlertRulesRequest. + + limit + + :return: The limit of this ListAlertRulesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListAlertRulesRequest. + + limit + + :param limit: The limit of this ListAlertRulesRequest. + :type limit: int + """ + self._limit = limit + + @property + def sort_key(self): + """Gets the sort_key of this ListAlertRulesRequest. + + sort_key + + :return: The sort_key of this ListAlertRulesRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListAlertRulesRequest. + + sort_key + + :param sort_key: The sort_key of this ListAlertRulesRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListAlertRulesRequest. + + sort_dir. asc, desc + + :return: The sort_dir of this ListAlertRulesRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListAlertRulesRequest. + + sort_dir. asc, desc + + :param sort_dir: The sort_dir of this ListAlertRulesRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def pipe_id(self): + """Gets the pipe_id of this ListAlertRulesRequest. + + pipe_id + + :return: The pipe_id of this ListAlertRulesRequest. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this ListAlertRulesRequest. + + pipe_id + + :param pipe_id: The pipe_id of this ListAlertRulesRequest. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def rule_name(self): + """Gets the rule_name of this ListAlertRulesRequest. + + rule_name + + :return: The rule_name of this ListAlertRulesRequest. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this ListAlertRulesRequest. + + rule_name + + :param rule_name: The rule_name of this ListAlertRulesRequest. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def rule_id(self): + """Gets the rule_id of this ListAlertRulesRequest. + + rule_id + + :return: The rule_id of this ListAlertRulesRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ListAlertRulesRequest. + + rule_id + + :param rule_id: The rule_id of this ListAlertRulesRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def status(self): + """Gets the status of this ListAlertRulesRequest. + + status. ENABLED, DISABLED + + :return: The status of this ListAlertRulesRequest. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListAlertRulesRequest. + + status. ENABLED, DISABLED + + :param status: The status of this ListAlertRulesRequest. + :type status: list[str] + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this ListAlertRulesRequest. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this ListAlertRulesRequest. + :rtype: list[str] + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this ListAlertRulesRequest. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this ListAlertRulesRequest. + :type severity: list[str] + """ + self._severity = severity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRulesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_response.py new file mode 100755 index 0000000000..e219b7110f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alert_rules_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertRulesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'records': 'list[AlertRule]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'records': 'records', + 'x_request_id': 'X-request-id' + } + + def __init__(self, count=None, records=None, x_request_id=None): + """ListAlertRulesResponse + + The model defined in huaweicloud sdk + + :param count: total count + :type count: int + :param records: rules + :type records: list[:class:`huaweicloudsdksa.v2.AlertRule`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListAlertRulesResponse, self).__init__() + + self._count = None + self._records = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if records is not None: + self.records = records + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListAlertRulesResponse. + + total count + + :return: The count of this ListAlertRulesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListAlertRulesResponse. + + total count + + :param count: The count of this ListAlertRulesResponse. + :type count: int + """ + self._count = count + + @property + def records(self): + """Gets the records of this ListAlertRulesResponse. + + rules + + :return: The records of this ListAlertRulesResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRule`] + """ + return self._records + + @records.setter + def records(self, records): + """Sets the records of this ListAlertRulesResponse. + + rules + + :param records: The records of this ListAlertRulesResponse. + :type records: list[:class:`huaweicloudsdksa.v2.AlertRule`] + """ + self._records = records + + @property + def x_request_id(self): + """Gets the x_request_id of this ListAlertRulesResponse. + + :return: The x_request_id of this ListAlertRulesResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListAlertRulesResponse. + + :param x_request_id: The x_request_id of this ListAlertRulesResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertRulesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_request.py new file mode 100755 index 0000000000..4d9a6dd5c3 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'DataobjectSearch' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """ListAlertsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the ListAlertsRequest + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ListAlertsRequest. + + ID of project + + :return: The project_id of this ListAlertsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAlertsRequest. + + ID of project + + :param project_id: The project_id of this ListAlertsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListAlertsRequest. + + ID of workspace + + :return: The workspace_id of this ListAlertsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListAlertsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListAlertsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this ListAlertsRequest. + + :return: The body of this ListAlertsRequest. + :rtype: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListAlertsRequest. + + :param body: The body of this ListAlertsRequest. + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_response.py new file mode 100755 index 0000000000..2311c01a44 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_alerts_response.py @@ -0,0 +1,317 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAlertsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'limit': 'int', + 'offset': 'int', + 'success': 'bool', + 'data': 'list[ListAlertDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'limit': 'limit', + 'offset': 'offset', + 'success': 'success', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, limit=None, offset=None, success=None, data=None, x_request_id=None): + """ListAlertsResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param limit: 当前页大小 + :type limit: int + :param offset: 当前页码 + :type offset: int + :param success: success + :type success: bool + :param data: 告警列表 + :type data: list[:class:`huaweicloudsdksa.v2.ListAlertDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListAlertsResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._limit = None + self._offset = None + self._success = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if success is not None: + self.success = success + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListAlertsResponse. + + Id value + + :return: The code of this ListAlertsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListAlertsResponse. + + Id value + + :param code: The code of this ListAlertsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListAlertsResponse. + + Error message + + :return: The message of this ListAlertsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListAlertsResponse. + + Error message + + :param message: The message of this ListAlertsResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListAlertsResponse. + + tatal count + + :return: The total of this ListAlertsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListAlertsResponse. + + tatal count + + :param total: The total of this ListAlertsResponse. + :type total: int + """ + self._total = total + + @property + def limit(self): + """Gets the limit of this ListAlertsResponse. + + 当前页大小 + + :return: The limit of this ListAlertsResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListAlertsResponse. + + 当前页大小 + + :param limit: The limit of this ListAlertsResponse. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListAlertsResponse. + + 当前页码 + + :return: The offset of this ListAlertsResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListAlertsResponse. + + 当前页码 + + :param offset: The offset of this ListAlertsResponse. + :type offset: int + """ + self._offset = offset + + @property + def success(self): + """Gets the success of this ListAlertsResponse. + + success + + :return: The success of this ListAlertsResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this ListAlertsResponse. + + success + + :param success: The success of this ListAlertsResponse. + :type success: bool + """ + self._success = success + + @property + def data(self): + """Gets the data of this ListAlertsResponse. + + 告警列表 + + :return: The data of this ListAlertsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ListAlertDetail`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListAlertsResponse. + + 告警列表 + + :param data: The data of this ListAlertsResponse. + :type data: list[:class:`huaweicloudsdksa.v2.ListAlertDetail`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListAlertsResponse. + + :return: The x_request_id of this ListAlertsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListAlertsResponse. + + :param x_request_id: The x_request_id of this ListAlertsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAlertsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_request.py new file mode 100755 index 0000000000..d96e7d4317 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_request.py @@ -0,0 +1,254 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDataobjectRelationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_type': 'str', + 'data_object_id': 'str', + 'related_dataclass_type': 'str', + 'body': 'DataobjectSearch' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_type': 'dataclass_type', + 'data_object_id': 'data_object_id', + 'related_dataclass_type': 'related_dataclass_type', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, dataclass_type=None, data_object_id=None, related_dataclass_type=None, body=None): + """ListDataobjectRelationRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param dataclass_type: type of dataclass + :type dataclass_type: str + :param data_object_id: ID of dataobject + :type data_object_id: str + :param related_dataclass_type: type of related dataclass + :type related_dataclass_type: str + :param body: Body of the ListDataobjectRelationRequest + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + + + + self._project_id = None + self._workspace_id = None + self._dataclass_type = None + self._data_object_id = None + self._related_dataclass_type = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.dataclass_type = dataclass_type + self.data_object_id = data_object_id + self.related_dataclass_type = related_dataclass_type + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ListDataobjectRelationRequest. + + ID of project + + :return: The project_id of this ListDataobjectRelationRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListDataobjectRelationRequest. + + ID of project + + :param project_id: The project_id of this ListDataobjectRelationRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListDataobjectRelationRequest. + + ID of workspace + + :return: The workspace_id of this ListDataobjectRelationRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListDataobjectRelationRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListDataobjectRelationRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_type(self): + """Gets the dataclass_type of this ListDataobjectRelationRequest. + + type of dataclass + + :return: The dataclass_type of this ListDataobjectRelationRequest. + :rtype: str + """ + return self._dataclass_type + + @dataclass_type.setter + def dataclass_type(self, dataclass_type): + """Sets the dataclass_type of this ListDataobjectRelationRequest. + + type of dataclass + + :param dataclass_type: The dataclass_type of this ListDataobjectRelationRequest. + :type dataclass_type: str + """ + self._dataclass_type = dataclass_type + + @property + def data_object_id(self): + """Gets the data_object_id of this ListDataobjectRelationRequest. + + ID of dataobject + + :return: The data_object_id of this ListDataobjectRelationRequest. + :rtype: str + """ + return self._data_object_id + + @data_object_id.setter + def data_object_id(self, data_object_id): + """Sets the data_object_id of this ListDataobjectRelationRequest. + + ID of dataobject + + :param data_object_id: The data_object_id of this ListDataobjectRelationRequest. + :type data_object_id: str + """ + self._data_object_id = data_object_id + + @property + def related_dataclass_type(self): + """Gets the related_dataclass_type of this ListDataobjectRelationRequest. + + type of related dataclass + + :return: The related_dataclass_type of this ListDataobjectRelationRequest. + :rtype: str + """ + return self._related_dataclass_type + + @related_dataclass_type.setter + def related_dataclass_type(self, related_dataclass_type): + """Sets the related_dataclass_type of this ListDataobjectRelationRequest. + + type of related dataclass + + :param related_dataclass_type: The related_dataclass_type of this ListDataobjectRelationRequest. + :type related_dataclass_type: str + """ + self._related_dataclass_type = related_dataclass_type + + @property + def body(self): + """Gets the body of this ListDataobjectRelationRequest. + + :return: The body of this ListDataobjectRelationRequest. + :rtype: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListDataobjectRelationRequest. + + :param body: The body of this ListDataobjectRelationRequest. + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDataobjectRelationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_response.py new file mode 100755 index 0000000000..1504a4d14d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_dataobject_relation_response.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDataobjectRelationResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'limit': 'int', + 'offset': 'int', + 'data': 'list[DataobjectInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'limit': 'limit', + 'offset': 'offset', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, limit=None, offset=None, data=None, x_request_id=None): + """ListDataobjectRelationResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param limit: current page count + :type limit: int + :param offset: current page size + :type offset: int + :param data: list of informations of dataobject + :type data: list[:class:`huaweicloudsdksa.v2.DataobjectInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListDataobjectRelationResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._limit = None + self._offset = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListDataobjectRelationResponse. + + Id value + + :return: The code of this ListDataobjectRelationResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListDataobjectRelationResponse. + + Id value + + :param code: The code of this ListDataobjectRelationResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListDataobjectRelationResponse. + + Error message + + :return: The message of this ListDataobjectRelationResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListDataobjectRelationResponse. + + Error message + + :param message: The message of this ListDataobjectRelationResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListDataobjectRelationResponse. + + tatal count + + :return: The total of this ListDataobjectRelationResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListDataobjectRelationResponse. + + tatal count + + :param total: The total of this ListDataobjectRelationResponse. + :type total: int + """ + self._total = total + + @property + def limit(self): + """Gets the limit of this ListDataobjectRelationResponse. + + current page count + + :return: The limit of this ListDataobjectRelationResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDataobjectRelationResponse. + + current page count + + :param limit: The limit of this ListDataobjectRelationResponse. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListDataobjectRelationResponse. + + current page size + + :return: The offset of this ListDataobjectRelationResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDataobjectRelationResponse. + + current page size + + :param offset: The offset of this ListDataobjectRelationResponse. + :type offset: int + """ + self._offset = offset + + @property + def data(self): + """Gets the data of this ListDataobjectRelationResponse. + + list of informations of dataobject + + :return: The data of this ListDataobjectRelationResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.DataobjectInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListDataobjectRelationResponse. + + list of informations of dataobject + + :param data: The data of this ListDataobjectRelationResponse. + :type data: list[:class:`huaweicloudsdksa.v2.DataobjectInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListDataobjectRelationResponse. + + :return: The x_request_id of this ListDataobjectRelationResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListDataobjectRelationResponse. + + :param x_request_id: The x_request_id of this ListDataobjectRelationResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDataobjectRelationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_detail.py new file mode 100755 index 0000000000..3bdac4ca7a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIncidentDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'Incident', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_id': 'str', + 'layout_id': 'str', + 'name': 'str', + 'type': 'str', + 'dataclass': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_id': 'dataclass_id', + 'layout_id': 'layout_id', + 'name': 'name', + 'type': 'type', + 'dataclass': 'dataclass' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, dataclass_id=None, layout_id=None, name=None, type=None, dataclass=None): + """ListIncidentDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param dataclass_id: Id value + :type dataclass_id: str + :param layout_id: Id value + :type layout_id: str + :param name: The name, display only + :type name: str + :param type: The name, display only + :type type: str + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._dataclass_id = None + self._layout_id = None + self._name = None + self._type = None + self._dataclass = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if layout_id is not None: + self.layout_id = layout_id + if name is not None: + self.name = name + if type is not None: + self.type = type + if dataclass is not None: + self.dataclass = dataclass + + @property + def data_object(self): + """Gets the data_object of this ListIncidentDetail. + + :return: The data_object of this ListIncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.Incident` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ListIncidentDetail. + + :param data_object: The data_object of this ListIncidentDetail. + :type data_object: :class:`huaweicloudsdksa.v2.Incident` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this ListIncidentDetail. + + Create time + + :return: The create_time of this ListIncidentDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListIncidentDetail. + + Create time + + :param create_time: The create_time of this ListIncidentDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ListIncidentDetail. + + Update time + + :return: The update_time of this ListIncidentDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ListIncidentDetail. + + Update time + + :param update_time: The update_time of this ListIncidentDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this ListIncidentDetail. + + Id value + + :return: The project_id of this ListIncidentDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListIncidentDetail. + + Id value + + :param project_id: The project_id of this ListIncidentDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListIncidentDetail. + + Id value + + :return: The workspace_id of this ListIncidentDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListIncidentDetail. + + Id value + + :param workspace_id: The workspace_id of this ListIncidentDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_id(self): + """Gets the dataclass_id of this ListIncidentDetail. + + Id value + + :return: The dataclass_id of this ListIncidentDetail. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this ListIncidentDetail. + + Id value + + :param dataclass_id: The dataclass_id of this ListIncidentDetail. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def layout_id(self): + """Gets the layout_id of this ListIncidentDetail. + + Id value + + :return: The layout_id of this ListIncidentDetail. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this ListIncidentDetail. + + Id value + + :param layout_id: The layout_id of this ListIncidentDetail. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def name(self): + """Gets the name of this ListIncidentDetail. + + The name, display only + + :return: The name of this ListIncidentDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListIncidentDetail. + + The name, display only + + :param name: The name of this ListIncidentDetail. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ListIncidentDetail. + + The name, display only + + :return: The type of this ListIncidentDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListIncidentDetail. + + The name, display only + + :param type: The type of this ListIncidentDetail. + :type type: str + """ + self._type = type + + @property + def dataclass(self): + """Gets the dataclass of this ListIncidentDetail. + + :return: The dataclass of this ListIncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this ListIncidentDetail. + + :param dataclass: The dataclass of this ListIncidentDetail. + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass = dataclass + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIncidentDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_request.py new file mode 100755 index 0000000000..b44f774e1d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_request.py @@ -0,0 +1,406 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIncidentTypesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'parent_business_code': 'str', + 'offset': 'int', + 'limit': 'int', + 'order': 'str', + 'sortby': 'str', + 'name': 'str', + 'enabled': 'bool', + 'layout_name': 'str', + 'is_built_in': 'bool' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'parent_business_code': 'parent_business_code', + 'offset': 'offset', + 'limit': 'limit', + 'order': 'order', + 'sortby': 'sortby', + 'name': 'name', + 'enabled': 'enabled', + 'layout_name': 'layout_name', + 'is_built_in': 'is_built_in' + } + + def __init__(self, project_id=None, workspace_id=None, parent_business_code=None, offset=None, limit=None, order=None, sortby=None, name=None, enabled=None, layout_name=None, is_built_in=None): + """ListIncidentTypesRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目ID + :type project_id: str + :param workspace_id: 工作空间ID + :type workspace_id: str + :param parent_business_code: 子类类型标识码 + :type parent_business_code: str + :param offset: request offset, from 0 + :type offset: int + :param limit: request limit size + :type limit: int + :param order: sort order, ASC, DESC. + :type order: str + :param sortby: sort by property, create_time. + :type sortby: str + :param name: name + :type name: str + :param enabled: 是否启用 + :type enabled: bool + :param layout_name: 布局名称 + :type layout_name: str + :param is_built_in: 是否内置 + :type is_built_in: bool + """ + + + + self._project_id = None + self._workspace_id = None + self._parent_business_code = None + self._offset = None + self._limit = None + self._order = None + self._sortby = None + self._name = None + self._enabled = None + self._layout_name = None + self._is_built_in = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if parent_business_code is not None: + self.parent_business_code = parent_business_code + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if order is not None: + self.order = order + if sortby is not None: + self.sortby = sortby + if name is not None: + self.name = name + if enabled is not None: + self.enabled = enabled + if layout_name is not None: + self.layout_name = layout_name + if is_built_in is not None: + self.is_built_in = is_built_in + + @property + def project_id(self): + """Gets the project_id of this ListIncidentTypesRequest. + + 项目ID + + :return: The project_id of this ListIncidentTypesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListIncidentTypesRequest. + + 项目ID + + :param project_id: The project_id of this ListIncidentTypesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListIncidentTypesRequest. + + 工作空间ID + + :return: The workspace_id of this ListIncidentTypesRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListIncidentTypesRequest. + + 工作空间ID + + :param workspace_id: The workspace_id of this ListIncidentTypesRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def parent_business_code(self): + """Gets the parent_business_code of this ListIncidentTypesRequest. + + 子类类型标识码 + + :return: The parent_business_code of this ListIncidentTypesRequest. + :rtype: str + """ + return self._parent_business_code + + @parent_business_code.setter + def parent_business_code(self, parent_business_code): + """Sets the parent_business_code of this ListIncidentTypesRequest. + + 子类类型标识码 + + :param parent_business_code: The parent_business_code of this ListIncidentTypesRequest. + :type parent_business_code: str + """ + self._parent_business_code = parent_business_code + + @property + def offset(self): + """Gets the offset of this ListIncidentTypesRequest. + + request offset, from 0 + + :return: The offset of this ListIncidentTypesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListIncidentTypesRequest. + + request offset, from 0 + + :param offset: The offset of this ListIncidentTypesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListIncidentTypesRequest. + + request limit size + + :return: The limit of this ListIncidentTypesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListIncidentTypesRequest. + + request limit size + + :param limit: The limit of this ListIncidentTypesRequest. + :type limit: int + """ + self._limit = limit + + @property + def order(self): + """Gets the order of this ListIncidentTypesRequest. + + sort order, ASC, DESC. + + :return: The order of this ListIncidentTypesRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ListIncidentTypesRequest. + + sort order, ASC, DESC. + + :param order: The order of this ListIncidentTypesRequest. + :type order: str + """ + self._order = order + + @property + def sortby(self): + """Gets the sortby of this ListIncidentTypesRequest. + + sort by property, create_time. + + :return: The sortby of this ListIncidentTypesRequest. + :rtype: str + """ + return self._sortby + + @sortby.setter + def sortby(self, sortby): + """Sets the sortby of this ListIncidentTypesRequest. + + sort by property, create_time. + + :param sortby: The sortby of this ListIncidentTypesRequest. + :type sortby: str + """ + self._sortby = sortby + + @property + def name(self): + """Gets the name of this ListIncidentTypesRequest. + + name + + :return: The name of this ListIncidentTypesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListIncidentTypesRequest. + + name + + :param name: The name of this ListIncidentTypesRequest. + :type name: str + """ + self._name = name + + @property + def enabled(self): + """Gets the enabled of this ListIncidentTypesRequest. + + 是否启用 + + :return: The enabled of this ListIncidentTypesRequest. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ListIncidentTypesRequest. + + 是否启用 + + :param enabled: The enabled of this ListIncidentTypesRequest. + :type enabled: bool + """ + self._enabled = enabled + + @property + def layout_name(self): + """Gets the layout_name of this ListIncidentTypesRequest. + + 布局名称 + + :return: The layout_name of this ListIncidentTypesRequest. + :rtype: str + """ + return self._layout_name + + @layout_name.setter + def layout_name(self, layout_name): + """Sets the layout_name of this ListIncidentTypesRequest. + + 布局名称 + + :param layout_name: The layout_name of this ListIncidentTypesRequest. + :type layout_name: str + """ + self._layout_name = layout_name + + @property + def is_built_in(self): + """Gets the is_built_in of this ListIncidentTypesRequest. + + 是否内置 + + :return: The is_built_in of this ListIncidentTypesRequest. + :rtype: bool + """ + return self._is_built_in + + @is_built_in.setter + def is_built_in(self, is_built_in): + """Sets the is_built_in of this ListIncidentTypesRequest. + + 是否内置 + + :param is_built_in: The is_built_in of this ListIncidentTypesRequest. + :type is_built_in: bool + """ + self._is_built_in = is_built_in + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIncidentTypesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_response.py new file mode 100755 index 0000000000..36351373e5 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incident_types_response.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIncidentTypesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'list[DataClassTypeDetailInfo]', + 'total': 'int', + 'size': 'int', + 'page': 'int', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'total': 'total', + 'size': 'size', + 'page': 'page', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, total=None, size=None, page=None, x_request_id=None): + """ListIncidentTypesResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: Response of dataclass detail + :type data: list[:class:`huaweicloudsdksa.v2.DataClassTypeDetailInfo`] + :param total: tatal count + :type total: int + :param size: current page size + :type size: int + :param page: current page count + :type page: int + :param x_request_id: + :type x_request_id: str + """ + + super(ListIncidentTypesResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._total = None + self._size = None + self._page = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if total is not None: + self.total = total + if size is not None: + self.size = size + if page is not None: + self.page = page + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListIncidentTypesResponse. + + Error code + + :return: The code of this ListIncidentTypesResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListIncidentTypesResponse. + + Error code + + :param code: The code of this ListIncidentTypesResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListIncidentTypesResponse. + + Error message + + :return: The message of this ListIncidentTypesResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListIncidentTypesResponse. + + Error message + + :param message: The message of this ListIncidentTypesResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ListIncidentTypesResponse. + + Response of dataclass detail + + :return: The data of this ListIncidentTypesResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.DataClassTypeDetailInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListIncidentTypesResponse. + + Response of dataclass detail + + :param data: The data of this ListIncidentTypesResponse. + :type data: list[:class:`huaweicloudsdksa.v2.DataClassTypeDetailInfo`] + """ + self._data = data + + @property + def total(self): + """Gets the total of this ListIncidentTypesResponse. + + tatal count + + :return: The total of this ListIncidentTypesResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListIncidentTypesResponse. + + tatal count + + :param total: The total of this ListIncidentTypesResponse. + :type total: int + """ + self._total = total + + @property + def size(self): + """Gets the size of this ListIncidentTypesResponse. + + current page size + + :return: The size of this ListIncidentTypesResponse. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListIncidentTypesResponse. + + current page size + + :param size: The size of this ListIncidentTypesResponse. + :type size: int + """ + self._size = size + + @property + def page(self): + """Gets the page of this ListIncidentTypesResponse. + + current page count + + :return: The page of this ListIncidentTypesResponse. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListIncidentTypesResponse. + + current page count + + :param page: The page of this ListIncidentTypesResponse. + :type page: int + """ + self._page = page + + @property + def x_request_id(self): + """Gets the x_request_id of this ListIncidentTypesResponse. + + :return: The x_request_id of this ListIncidentTypesResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListIncidentTypesResponse. + + :param x_request_id: The x_request_id of this ListIncidentTypesResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIncidentTypesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_request.py new file mode 100755 index 0000000000..b7379d0a09 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIncidentsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'body': 'DataobjectSearch' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, body=None): + """ListIncidentsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param body: Body of the ListIncidentsRequest + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + + + + self._project_id = None + self._workspace_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ListIncidentsRequest. + + ID of project + + :return: The project_id of this ListIncidentsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListIncidentsRequest. + + ID of project + + :param project_id: The project_id of this ListIncidentsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListIncidentsRequest. + + ID of workspace + + :return: The workspace_id of this ListIncidentsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListIncidentsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListIncidentsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def body(self): + """Gets the body of this ListIncidentsRequest. + + :return: The body of this ListIncidentsRequest. + :rtype: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListIncidentsRequest. + + :param body: The body of this ListIncidentsRequest. + :type body: :class:`huaweicloudsdksa.v2.DataobjectSearch` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIncidentsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_response.py new file mode 100755 index 0000000000..818ec1f1d9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_incidents_response.py @@ -0,0 +1,317 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIncidentsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'limit': 'int', + 'offset': 'int', + 'success': 'bool', + 'data': 'list[ListIncidentDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'limit': 'limit', + 'offset': 'offset', + 'success': 'success', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, limit=None, offset=None, success=None, data=None, x_request_id=None): + """ListIncidentsResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param limit: 当前页大小 + :type limit: int + :param offset: 当前页码 + :type offset: int + :param success: success + :type success: bool + :param data: 事件列表 + :type data: list[:class:`huaweicloudsdksa.v2.ListIncidentDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListIncidentsResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._limit = None + self._offset = None + self._success = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if success is not None: + self.success = success + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListIncidentsResponse. + + Id value + + :return: The code of this ListIncidentsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListIncidentsResponse. + + Id value + + :param code: The code of this ListIncidentsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListIncidentsResponse. + + Error message + + :return: The message of this ListIncidentsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListIncidentsResponse. + + Error message + + :param message: The message of this ListIncidentsResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListIncidentsResponse. + + tatal count + + :return: The total of this ListIncidentsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListIncidentsResponse. + + tatal count + + :param total: The total of this ListIncidentsResponse. + :type total: int + """ + self._total = total + + @property + def limit(self): + """Gets the limit of this ListIncidentsResponse. + + 当前页大小 + + :return: The limit of this ListIncidentsResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListIncidentsResponse. + + 当前页大小 + + :param limit: The limit of this ListIncidentsResponse. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListIncidentsResponse. + + 当前页码 + + :return: The offset of this ListIncidentsResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListIncidentsResponse. + + 当前页码 + + :param offset: The offset of this ListIncidentsResponse. + :type offset: int + """ + self._offset = offset + + @property + def success(self): + """Gets the success of this ListIncidentsResponse. + + success + + :return: The success of this ListIncidentsResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this ListIncidentsResponse. + + success + + :param success: The success of this ListIncidentsResponse. + :type success: bool + """ + self._success = success + + @property + def data(self): + """Gets the data of this ListIncidentsResponse. + + 事件列表 + + :return: The data of this ListIncidentsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ListIncidentDetail`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListIncidentsResponse. + + 事件列表 + + :param data: The data of this ListIncidentsResponse. + :type data: list[:class:`huaweicloudsdksa.v2.ListIncidentDetail`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListIncidentsResponse. + + :return: The x_request_id of this ListIncidentsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListIncidentsResponse. + + :param x_request_id: The x_request_id of this ListIncidentsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIncidentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_request.py new file mode 100755 index 0000000000..f089567172 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_request.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIndicatorsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'order': 'str', + 'from_date': 'str', + 'to_date': 'str', + 'body': 'IndicatorListSearchRequest' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'order': 'order', + 'from_date': 'from_date', + 'to_date': 'to_date', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, order=None, from_date=None, to_date=None, body=None): + """ListIndicatorsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: workspace id + :type workspace_id: str + :param order: sort order, ASC, DESC. + :type order: str + :param from_date: 起始时间 + :type from_date: str + :param to_date: 结束时间 + :type to_date: str + :param body: Body of the ListIndicatorsRequest + :type body: :class:`huaweicloudsdksa.v2.IndicatorListSearchRequest` + """ + + + + self._project_id = None + self._workspace_id = None + self._order = None + self._from_date = None + self._to_date = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if order is not None: + self.order = order + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ListIndicatorsRequest. + + ID of project + + :return: The project_id of this ListIndicatorsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListIndicatorsRequest. + + ID of project + + :param project_id: The project_id of this ListIndicatorsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListIndicatorsRequest. + + workspace id + + :return: The workspace_id of this ListIndicatorsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListIndicatorsRequest. + + workspace id + + :param workspace_id: The workspace_id of this ListIndicatorsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def order(self): + """Gets the order of this ListIndicatorsRequest. + + sort order, ASC, DESC. + + :return: The order of this ListIndicatorsRequest. + :rtype: str + """ + return self._order + + @order.setter + def order(self, order): + """Sets the order of this ListIndicatorsRequest. + + sort order, ASC, DESC. + + :param order: The order of this ListIndicatorsRequest. + :type order: str + """ + self._order = order + + @property + def from_date(self): + """Gets the from_date of this ListIndicatorsRequest. + + 起始时间 + + :return: The from_date of this ListIndicatorsRequest. + :rtype: str + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ListIndicatorsRequest. + + 起始时间 + + :param from_date: The from_date of this ListIndicatorsRequest. + :type from_date: str + """ + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ListIndicatorsRequest. + + 结束时间 + + :return: The to_date of this ListIndicatorsRequest. + :rtype: str + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ListIndicatorsRequest. + + 结束时间 + + :param to_date: The to_date of this ListIndicatorsRequest. + :type to_date: str + """ + self._to_date = to_date + + @property + def body(self): + """Gets the body of this ListIndicatorsRequest. + + :return: The body of this ListIndicatorsRequest. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorListSearchRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListIndicatorsRequest. + + :param body: The body of this ListIndicatorsRequest. + :type body: :class:`huaweicloudsdksa.v2.IndicatorListSearchRequest` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIndicatorsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_response.py new file mode 100755 index 0000000000..7941beb2a2 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_indicators_response.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListIndicatorsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'data': 'list[IndicatorDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, data=None, x_request_id=None): + """ListIndicatorsResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param data: list of informations of indicator + :type data: list[:class:`huaweicloudsdksa.v2.IndicatorDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListIndicatorsResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListIndicatorsResponse. + + Id value + + :return: The code of this ListIndicatorsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListIndicatorsResponse. + + Id value + + :param code: The code of this ListIndicatorsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListIndicatorsResponse. + + Error message + + :return: The message of this ListIndicatorsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListIndicatorsResponse. + + Error message + + :param message: The message of this ListIndicatorsResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListIndicatorsResponse. + + tatal count + + :return: The total of this ListIndicatorsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListIndicatorsResponse. + + tatal count + + :param total: The total of this ListIndicatorsResponse. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this ListIndicatorsResponse. + + list of informations of indicator + + :return: The data of this ListIndicatorsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.IndicatorDetail`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListIndicatorsResponse. + + list of informations of indicator + + :param data: The data of this ListIndicatorsResponse. + :type data: list[:class:`huaweicloudsdksa.v2.IndicatorDetail`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListIndicatorsResponse. + + :return: The x_request_id of this ListIndicatorsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListIndicatorsResponse. + + :param x_request_id: The x_request_id of this ListIndicatorsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListIndicatorsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_request.py new file mode 100755 index 0000000000..975ed9983b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookActionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, limit=None, offset=None): + """ListPlaybookActionsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param limit: request limit size + :type limit: int + :param offset: request offset, from 0 + :type offset: int + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._limit = None + self._offset = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def project_id(self): + """Gets the project_id of this ListPlaybookActionsRequest. + + ID of project + + :return: The project_id of this ListPlaybookActionsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybookActionsRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybookActionsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybookActionsRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybookActionsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybookActionsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybookActionsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this ListPlaybookActionsRequest. + + version Id value + + :return: The version_id of this ListPlaybookActionsRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this ListPlaybookActionsRequest. + + version Id value + + :param version_id: The version_id of this ListPlaybookActionsRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def limit(self): + """Gets the limit of this ListPlaybookActionsRequest. + + request limit size + + :return: The limit of this ListPlaybookActionsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPlaybookActionsRequest. + + request limit size + + :param limit: The limit of this ListPlaybookActionsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListPlaybookActionsRequest. + + request offset, from 0 + + :return: The offset of this ListPlaybookActionsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPlaybookActionsRequest. + + request offset, from 0 + + :param offset: The offset of this ListPlaybookActionsRequest. + :type offset: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookActionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_response.py new file mode 100755 index 0000000000..4f212b955b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_actions_response.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookActionsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'size': 'int', + 'page': 'int', + 'data': 'list[ActionInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'size': 'size', + 'page': 'page', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, size=None, page=None, data=None, x_request_id=None): + """ListPlaybookActionsResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param size: current page count + :type size: int + :param page: current page size + :type page: int + :param data: list of informations of playbook action + :type data: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybookActionsResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._size = None + self._page = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if size is not None: + self.size = size + if page is not None: + self.page = page + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListPlaybookActionsResponse. + + Error code + + :return: The code of this ListPlaybookActionsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListPlaybookActionsResponse. + + Error code + + :param code: The code of this ListPlaybookActionsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListPlaybookActionsResponse. + + Error message + + :return: The message of this ListPlaybookActionsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListPlaybookActionsResponse. + + Error message + + :param message: The message of this ListPlaybookActionsResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListPlaybookActionsResponse. + + tatal count + + :return: The total of this ListPlaybookActionsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPlaybookActionsResponse. + + tatal count + + :param total: The total of this ListPlaybookActionsResponse. + :type total: int + """ + self._total = total + + @property + def size(self): + """Gets the size of this ListPlaybookActionsResponse. + + current page count + + :return: The size of this ListPlaybookActionsResponse. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListPlaybookActionsResponse. + + current page count + + :param size: The size of this ListPlaybookActionsResponse. + :type size: int + """ + self._size = size + + @property + def page(self): + """Gets the page of this ListPlaybookActionsResponse. + + current page size + + :return: The page of this ListPlaybookActionsResponse. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPlaybookActionsResponse. + + current page size + + :param page: The page of this ListPlaybookActionsResponse. + :type page: int + """ + self._page = page + + @property + def data(self): + """Gets the data of this ListPlaybookActionsResponse. + + list of informations of playbook action + + :return: The data of this ListPlaybookActionsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPlaybookActionsResponse. + + list of informations of playbook action + + :param data: The data of this ListPlaybookActionsResponse. + :type data: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybookActionsResponse. + + :return: The x_request_id of this ListPlaybookActionsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybookActionsResponse. + + :param x_request_id: The x_request_id of this ListPlaybookActionsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookActionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_request.py new file mode 100755 index 0000000000..ebd0209cff --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_request.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookApprovesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'resource_id': 'str', + 'approve_type': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'resource_id': 'resource_id', + 'approve_type': 'approve_type' + } + + def __init__(self, project_id=None, workspace_id=None, resource_id=None, approve_type=None): + """ListPlaybookApprovesRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param resource_id: Resource Id, PlaybookId or AopworkflowId + :type resource_id: str + :param approve_type: PLAYBOOK, AOP_WORKFLOW + :type approve_type: str + """ + + + + self._project_id = None + self._workspace_id = None + self._resource_id = None + self._approve_type = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if resource_id is not None: + self.resource_id = resource_id + if approve_type is not None: + self.approve_type = approve_type + + @property + def project_id(self): + """Gets the project_id of this ListPlaybookApprovesRequest. + + ID of project + + :return: The project_id of this ListPlaybookApprovesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybookApprovesRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybookApprovesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybookApprovesRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybookApprovesRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybookApprovesRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybookApprovesRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def resource_id(self): + """Gets the resource_id of this ListPlaybookApprovesRequest. + + Resource Id, PlaybookId or AopworkflowId + + :return: The resource_id of this ListPlaybookApprovesRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ListPlaybookApprovesRequest. + + Resource Id, PlaybookId or AopworkflowId + + :param resource_id: The resource_id of this ListPlaybookApprovesRequest. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def approve_type(self): + """Gets the approve_type of this ListPlaybookApprovesRequest. + + PLAYBOOK, AOP_WORKFLOW + + :return: The approve_type of this ListPlaybookApprovesRequest. + :rtype: str + """ + return self._approve_type + + @approve_type.setter + def approve_type(self, approve_type): + """Sets the approve_type of this ListPlaybookApprovesRequest. + + PLAYBOOK, AOP_WORKFLOW + + :param approve_type: The approve_type of this ListPlaybookApprovesRequest. + :type approve_type: str + """ + self._approve_type = approve_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookApprovesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_response.py new file mode 100755 index 0000000000..190fbf87bd --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_approves_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookApprovesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'list[ApproveOpinionDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ListPlaybookApprovesResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: list[:class:`huaweicloudsdksa.v2.ApproveOpinionDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybookApprovesResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListPlaybookApprovesResponse. + + Error code + + :return: The code of this ListPlaybookApprovesResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListPlaybookApprovesResponse. + + Error code + + :param code: The code of this ListPlaybookApprovesResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListPlaybookApprovesResponse. + + Error message + + :return: The message of this ListPlaybookApprovesResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListPlaybookApprovesResponse. + + Error message + + :param message: The message of this ListPlaybookApprovesResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ListPlaybookApprovesResponse. + + :return: The data of this ListPlaybookApprovesResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ApproveOpinionDetail`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPlaybookApprovesResponse. + + :param data: The data of this ListPlaybookApprovesResponse. + :type data: list[:class:`huaweicloudsdksa.v2.ApproveOpinionDetail`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybookApprovesResponse. + + :return: The x_request_id of this ListPlaybookApprovesResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybookApprovesResponse. + + :param x_request_id: The x_request_id of this ListPlaybookApprovesResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookApprovesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_request.py new file mode 100755 index 0000000000..777070b54c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_request.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookAuditLogsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort_key': 'str', + 'sort_dir': 'str', + 'body': 'AuditLogInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'offset': 'offset', + 'limit': 'limit', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, offset=None, limit=None, sort_key=None, sort_dir=None, body=None): + """ListPlaybookAuditLogsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param offset: offset + :type offset: int + :param limit: limit + :type limit: int + :param sort_key: sort_key + :type sort_key: str + :param sort_dir: sort_dir. asc, desc + :type sort_dir: str + :param body: Body of the ListPlaybookAuditLogsRequest + :type body: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._offset = None + self._limit = None + self._sort_key = None + self._sort_dir = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.offset = offset + self.limit = limit + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this ListPlaybookAuditLogsRequest. + + ID of project + + :return: The project_id of this ListPlaybookAuditLogsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybookAuditLogsRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybookAuditLogsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybookAuditLogsRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybookAuditLogsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybookAuditLogsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybookAuditLogsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def offset(self): + """Gets the offset of this ListPlaybookAuditLogsRequest. + + offset + + :return: The offset of this ListPlaybookAuditLogsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPlaybookAuditLogsRequest. + + offset + + :param offset: The offset of this ListPlaybookAuditLogsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListPlaybookAuditLogsRequest. + + limit + + :return: The limit of this ListPlaybookAuditLogsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPlaybookAuditLogsRequest. + + limit + + :param limit: The limit of this ListPlaybookAuditLogsRequest. + :type limit: int + """ + self._limit = limit + + @property + def sort_key(self): + """Gets the sort_key of this ListPlaybookAuditLogsRequest. + + sort_key + + :return: The sort_key of this ListPlaybookAuditLogsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListPlaybookAuditLogsRequest. + + sort_key + + :param sort_key: The sort_key of this ListPlaybookAuditLogsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListPlaybookAuditLogsRequest. + + sort_dir. asc, desc + + :return: The sort_dir of this ListPlaybookAuditLogsRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListPlaybookAuditLogsRequest. + + sort_dir. asc, desc + + :param sort_dir: The sort_dir of this ListPlaybookAuditLogsRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def body(self): + """Gets the body of this ListPlaybookAuditLogsRequest. + + :return: The body of this ListPlaybookAuditLogsRequest. + :rtype: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListPlaybookAuditLogsRequest. + + :param body: The body of this ListPlaybookAuditLogsRequest. + :type body: :class:`huaweicloudsdksa.v2.AuditLogInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookAuditLogsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_response.py new file mode 100755 index 0000000000..5c003237ac --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_audit_logs_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookAuditLogsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'audit_logs': 'list[AuditLogInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'audit_logs': 'audit_logs', + 'x_request_id': 'X-request-id' + } + + def __init__(self, count=None, audit_logs=None, x_request_id=None): + """ListPlaybookAuditLogsResponse + + The model defined in huaweicloud sdk + + :param count: tatal count + :type count: int + :param audit_logs: list of informations of Audit Log Info + :type audit_logs: list[:class:`huaweicloudsdksa.v2.AuditLogInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybookAuditLogsResponse, self).__init__() + + self._count = None + self._audit_logs = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if audit_logs is not None: + self.audit_logs = audit_logs + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListPlaybookAuditLogsResponse. + + tatal count + + :return: The count of this ListPlaybookAuditLogsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListPlaybookAuditLogsResponse. + + tatal count + + :param count: The count of this ListPlaybookAuditLogsResponse. + :type count: int + """ + self._count = count + + @property + def audit_logs(self): + """Gets the audit_logs of this ListPlaybookAuditLogsResponse. + + list of informations of Audit Log Info + + :return: The audit_logs of this ListPlaybookAuditLogsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AuditLogInfo`] + """ + return self._audit_logs + + @audit_logs.setter + def audit_logs(self, audit_logs): + """Sets the audit_logs of this ListPlaybookAuditLogsResponse. + + list of informations of Audit Log Info + + :param audit_logs: The audit_logs of this ListPlaybookAuditLogsResponse. + :type audit_logs: list[:class:`huaweicloudsdksa.v2.AuditLogInfo`] + """ + self._audit_logs = audit_logs + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybookAuditLogsResponse. + + :return: The x_request_id of this ListPlaybookAuditLogsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybookAuditLogsResponse. + + :param x_request_id: The x_request_id of this ListPlaybookAuditLogsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookAuditLogsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_request.py new file mode 100755 index 0000000000..fef762a712 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_request.py @@ -0,0 +1,464 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookInstancesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'status': 'str', + 'date_type': 'str', + 'name': 'str', + 'playbook_name': 'str', + 'dataclass_name': 'str', + 'dataobject_name': 'str', + 'trigger_type': 'str', + 'from_date': 'str', + 'to_date': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'status': 'status', + 'date_type': 'date_type', + 'name': 'name', + 'playbook_name': 'playbook_name', + 'dataclass_name': 'dataclass_name', + 'dataobject_name': 'dataobject_name', + 'trigger_type': 'trigger_type', + 'from_date': 'from_date', + 'to_date': 'to_date', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, project_id=None, workspace_id=None, status=None, date_type=None, name=None, playbook_name=None, dataclass_name=None, dataobject_name=None, trigger_type=None, from_date=None, to_date=None, limit=None, offset=None): + """ListPlaybookInstancesRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param status: Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + :type status: str + :param date_type: date type, START END + :type date_type: str + :param name: name + :type name: str + :param playbook_name: Playbook name. + :type playbook_name: str + :param dataclass_name: Dataclass name. + :type dataclass_name: str + :param dataobject_name: Dataobject name. + :type dataobject_name: str + :param trigger_type: trigger type. DEBUG, TIMER, EVENT, MANUAL + :type trigger_type: str + :param from_date: 起始时间 + :type from_date: str + :param to_date: 结束时间 + :type to_date: str + :param limit: request limit size + :type limit: int + :param offset: request offset, from 0 + :type offset: int + """ + + + + self._project_id = None + self._workspace_id = None + self._status = None + self._date_type = None + self._name = None + self._playbook_name = None + self._dataclass_name = None + self._dataobject_name = None + self._trigger_type = None + self._from_date = None + self._to_date = None + self._limit = None + self._offset = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if status is not None: + self.status = status + if date_type is not None: + self.date_type = date_type + if name is not None: + self.name = name + if playbook_name is not None: + self.playbook_name = playbook_name + if dataclass_name is not None: + self.dataclass_name = dataclass_name + if dataobject_name is not None: + self.dataobject_name = dataobject_name + if trigger_type is not None: + self.trigger_type = trigger_type + if from_date is not None: + self.from_date = from_date + if to_date is not None: + self.to_date = to_date + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def project_id(self): + """Gets the project_id of this ListPlaybookInstancesRequest. + + ID of project + + :return: The project_id of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybookInstancesRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybookInstancesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybookInstancesRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybookInstancesRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybookInstancesRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def status(self): + """Gets the status of this ListPlaybookInstancesRequest. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :return: The status of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListPlaybookInstancesRequest. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :param status: The status of this ListPlaybookInstancesRequest. + :type status: str + """ + self._status = status + + @property + def date_type(self): + """Gets the date_type of this ListPlaybookInstancesRequest. + + date type, START END + + :return: The date_type of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._date_type + + @date_type.setter + def date_type(self, date_type): + """Sets the date_type of this ListPlaybookInstancesRequest. + + date type, START END + + :param date_type: The date_type of this ListPlaybookInstancesRequest. + :type date_type: str + """ + self._date_type = date_type + + @property + def name(self): + """Gets the name of this ListPlaybookInstancesRequest. + + name + + :return: The name of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListPlaybookInstancesRequest. + + name + + :param name: The name of this ListPlaybookInstancesRequest. + :type name: str + """ + self._name = name + + @property + def playbook_name(self): + """Gets the playbook_name of this ListPlaybookInstancesRequest. + + Playbook name. + + :return: The playbook_name of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._playbook_name + + @playbook_name.setter + def playbook_name(self, playbook_name): + """Sets the playbook_name of this ListPlaybookInstancesRequest. + + Playbook name. + + :param playbook_name: The playbook_name of this ListPlaybookInstancesRequest. + :type playbook_name: str + """ + self._playbook_name = playbook_name + + @property + def dataclass_name(self): + """Gets the dataclass_name of this ListPlaybookInstancesRequest. + + Dataclass name. + + :return: The dataclass_name of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._dataclass_name + + @dataclass_name.setter + def dataclass_name(self, dataclass_name): + """Sets the dataclass_name of this ListPlaybookInstancesRequest. + + Dataclass name. + + :param dataclass_name: The dataclass_name of this ListPlaybookInstancesRequest. + :type dataclass_name: str + """ + self._dataclass_name = dataclass_name + + @property + def dataobject_name(self): + """Gets the dataobject_name of this ListPlaybookInstancesRequest. + + Dataobject name. + + :return: The dataobject_name of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._dataobject_name + + @dataobject_name.setter + def dataobject_name(self, dataobject_name): + """Sets the dataobject_name of this ListPlaybookInstancesRequest. + + Dataobject name. + + :param dataobject_name: The dataobject_name of this ListPlaybookInstancesRequest. + :type dataobject_name: str + """ + self._dataobject_name = dataobject_name + + @property + def trigger_type(self): + """Gets the trigger_type of this ListPlaybookInstancesRequest. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :return: The trigger_type of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this ListPlaybookInstancesRequest. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :param trigger_type: The trigger_type of this ListPlaybookInstancesRequest. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def from_date(self): + """Gets the from_date of this ListPlaybookInstancesRequest. + + 起始时间 + + :return: The from_date of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._from_date + + @from_date.setter + def from_date(self, from_date): + """Sets the from_date of this ListPlaybookInstancesRequest. + + 起始时间 + + :param from_date: The from_date of this ListPlaybookInstancesRequest. + :type from_date: str + """ + self._from_date = from_date + + @property + def to_date(self): + """Gets the to_date of this ListPlaybookInstancesRequest. + + 结束时间 + + :return: The to_date of this ListPlaybookInstancesRequest. + :rtype: str + """ + return self._to_date + + @to_date.setter + def to_date(self, to_date): + """Sets the to_date of this ListPlaybookInstancesRequest. + + 结束时间 + + :param to_date: The to_date of this ListPlaybookInstancesRequest. + :type to_date: str + """ + self._to_date = to_date + + @property + def limit(self): + """Gets the limit of this ListPlaybookInstancesRequest. + + request limit size + + :return: The limit of this ListPlaybookInstancesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPlaybookInstancesRequest. + + request limit size + + :param limit: The limit of this ListPlaybookInstancesRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListPlaybookInstancesRequest. + + request offset, from 0 + + :return: The offset of this ListPlaybookInstancesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPlaybookInstancesRequest. + + request offset, from 0 + + :param offset: The offset of this ListPlaybookInstancesRequest. + :type offset: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookInstancesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_response.py new file mode 100755 index 0000000000..dad709056d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_instances_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookInstancesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'instances': 'list[PlaybookInstanceInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'instances': 'instances', + 'x_request_id': 'X-request-id' + } + + def __init__(self, count=None, instances=None, x_request_id=None): + """ListPlaybookInstancesResponse + + The model defined in huaweicloud sdk + + :param count: tatal count + :type count: int + :param instances: list of informations of PlaybookInstanceInfo + :type instances: list[:class:`huaweicloudsdksa.v2.PlaybookInstanceInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybookInstancesResponse, self).__init__() + + self._count = None + self._instances = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if instances is not None: + self.instances = instances + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListPlaybookInstancesResponse. + + tatal count + + :return: The count of this ListPlaybookInstancesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListPlaybookInstancesResponse. + + tatal count + + :param count: The count of this ListPlaybookInstancesResponse. + :type count: int + """ + self._count = count + + @property + def instances(self): + """Gets the instances of this ListPlaybookInstancesResponse. + + list of informations of PlaybookInstanceInfo + + :return: The instances of this ListPlaybookInstancesResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.PlaybookInstanceInfo`] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListPlaybookInstancesResponse. + + list of informations of PlaybookInstanceInfo + + :param instances: The instances of this ListPlaybookInstancesResponse. + :type instances: list[:class:`huaweicloudsdksa.v2.PlaybookInstanceInfo`] + """ + self._instances = instances + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybookInstancesResponse. + + :return: The x_request_id of this ListPlaybookInstancesResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybookInstancesResponse. + + :param x_request_id: The x_request_id of this ListPlaybookInstancesResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookInstancesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_request.py new file mode 100755 index 0000000000..971ea1d3bb --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_request.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookVersionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'status': 'str', + 'enabled': 'int', + 'version_type': 'int', + 'approve_role': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'status': 'status', + 'enabled': 'enabled', + 'version_type': 'version_type', + 'approve_role': 'approve_role', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None, status=None, enabled=None, version_type=None, approve_role=None, offset=None, limit=None): + """ListPlaybookVersionsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + :param status: 剧本版本状态,编辑中:EDITING 审核中:APPROVING 不通过:UNPASSED 已发布:PUBLISHED + :type status: str + :param enabled: 启用/禁用 + :type enabled: int + :param version_type: 版本类型, 草稿版本:0 正式版本:1 + :type version_type: int + :param approve_role: 审核角色 + :type approve_role: str + :param offset: request offset, from 0 + :type offset: int + :param limit: request limit size + :type limit: int + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self._status = None + self._enabled = None + self._version_type = None + self._approve_role = None + self._offset = None + self._limit = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + if status is not None: + self.status = status + if enabled is not None: + self.enabled = enabled + if version_type is not None: + self.version_type = version_type + if approve_role is not None: + self.approve_role = approve_role + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def project_id(self): + """Gets the project_id of this ListPlaybookVersionsRequest. + + ID of project + + :return: The project_id of this ListPlaybookVersionsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybookVersionsRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybookVersionsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybookVersionsRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybookVersionsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybookVersionsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybookVersionsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this ListPlaybookVersionsRequest. + + ID of playbook + + :return: The playbook_id of this ListPlaybookVersionsRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this ListPlaybookVersionsRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this ListPlaybookVersionsRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def status(self): + """Gets the status of this ListPlaybookVersionsRequest. + + 剧本版本状态,编辑中:EDITING 审核中:APPROVING 不通过:UNPASSED 已发布:PUBLISHED + + :return: The status of this ListPlaybookVersionsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListPlaybookVersionsRequest. + + 剧本版本状态,编辑中:EDITING 审核中:APPROVING 不通过:UNPASSED 已发布:PUBLISHED + + :param status: The status of this ListPlaybookVersionsRequest. + :type status: str + """ + self._status = status + + @property + def enabled(self): + """Gets the enabled of this ListPlaybookVersionsRequest. + + 启用/禁用 + + :return: The enabled of this ListPlaybookVersionsRequest. + :rtype: int + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ListPlaybookVersionsRequest. + + 启用/禁用 + + :param enabled: The enabled of this ListPlaybookVersionsRequest. + :type enabled: int + """ + self._enabled = enabled + + @property + def version_type(self): + """Gets the version_type of this ListPlaybookVersionsRequest. + + 版本类型, 草稿版本:0 正式版本:1 + + :return: The version_type of this ListPlaybookVersionsRequest. + :rtype: int + """ + return self._version_type + + @version_type.setter + def version_type(self, version_type): + """Sets the version_type of this ListPlaybookVersionsRequest. + + 版本类型, 草稿版本:0 正式版本:1 + + :param version_type: The version_type of this ListPlaybookVersionsRequest. + :type version_type: int + """ + self._version_type = version_type + + @property + def approve_role(self): + """Gets the approve_role of this ListPlaybookVersionsRequest. + + 审核角色 + + :return: The approve_role of this ListPlaybookVersionsRequest. + :rtype: str + """ + return self._approve_role + + @approve_role.setter + def approve_role(self, approve_role): + """Sets the approve_role of this ListPlaybookVersionsRequest. + + 审核角色 + + :param approve_role: The approve_role of this ListPlaybookVersionsRequest. + :type approve_role: str + """ + self._approve_role = approve_role + + @property + def offset(self): + """Gets the offset of this ListPlaybookVersionsRequest. + + request offset, from 0 + + :return: The offset of this ListPlaybookVersionsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPlaybookVersionsRequest. + + request offset, from 0 + + :param offset: The offset of this ListPlaybookVersionsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListPlaybookVersionsRequest. + + request limit size + + :return: The limit of this ListPlaybookVersionsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPlaybookVersionsRequest. + + request limit size + + :param limit: The limit of this ListPlaybookVersionsRequest. + :type limit: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookVersionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_response.py new file mode 100755 index 0000000000..30be7ec952 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbook_versions_response.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybookVersionsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'size': 'int', + 'page': 'int', + 'total': 'int', + 'data': 'list[PlaybookVersionListEntity]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'size': 'size', + 'page': 'page', + 'total': 'total', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, size=None, page=None, total=None, data=None, x_request_id=None): + """ListPlaybookVersionsResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param size: current page count + :type size: int + :param page: current page size + :type page: int + :param total: tatal count + :type total: int + :param data: list of informations of playbook version + :type data: list[:class:`huaweicloudsdksa.v2.PlaybookVersionListEntity`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybookVersionsResponse, self).__init__() + + self._code = None + self._message = None + self._size = None + self._page = None + self._total = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if size is not None: + self.size = size + if page is not None: + self.page = page + if total is not None: + self.total = total + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListPlaybookVersionsResponse. + + Error code + + :return: The code of this ListPlaybookVersionsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListPlaybookVersionsResponse. + + Error code + + :param code: The code of this ListPlaybookVersionsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListPlaybookVersionsResponse. + + Error message + + :return: The message of this ListPlaybookVersionsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListPlaybookVersionsResponse. + + Error message + + :param message: The message of this ListPlaybookVersionsResponse. + :type message: str + """ + self._message = message + + @property + def size(self): + """Gets the size of this ListPlaybookVersionsResponse. + + current page count + + :return: The size of this ListPlaybookVersionsResponse. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListPlaybookVersionsResponse. + + current page count + + :param size: The size of this ListPlaybookVersionsResponse. + :type size: int + """ + self._size = size + + @property + def page(self): + """Gets the page of this ListPlaybookVersionsResponse. + + current page size + + :return: The page of this ListPlaybookVersionsResponse. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPlaybookVersionsResponse. + + current page size + + :param page: The page of this ListPlaybookVersionsResponse. + :type page: int + """ + self._page = page + + @property + def total(self): + """Gets the total of this ListPlaybookVersionsResponse. + + tatal count + + :return: The total of this ListPlaybookVersionsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPlaybookVersionsResponse. + + tatal count + + :param total: The total of this ListPlaybookVersionsResponse. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this ListPlaybookVersionsResponse. + + list of informations of playbook version + + :return: The data of this ListPlaybookVersionsResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.PlaybookVersionListEntity`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPlaybookVersionsResponse. + + list of informations of playbook version + + :param data: The data of this ListPlaybookVersionsResponse. + :type data: list[:class:`huaweicloudsdksa.v2.PlaybookVersionListEntity`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybookVersionsResponse. + + :return: The x_request_id of this ListPlaybookVersionsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybookVersionsResponse. + + :param x_request_id: The x_request_id of this ListPlaybookVersionsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybookVersionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_request.py new file mode 100755 index 0000000000..50826b8762 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_request.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybooksRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'search_txt': 'str', + 'component_id': 'str', + 'enabled': 'bool', + 'offset': 'int', + 'limit': 'int', + 'description': 'str', + 'dataclass_name': 'str', + 'name': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'search_txt': 'search_txt', + 'component_id': 'component_id', + 'enabled': 'enabled', + 'offset': 'offset', + 'limit': 'limit', + 'description': 'description', + 'dataclass_name': 'dataclass_name', + 'name': 'name' + } + + def __init__(self, project_id=None, workspace_id=None, search_txt=None, component_id=None, enabled=None, offset=None, limit=None, description=None, dataclass_name=None, name=None): + """ListPlaybooksRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param search_txt: 搜索关键字 + :type search_txt: str + :param component_id: component id. + :type component_id: str + :param enabled: 是否启用 + :type enabled: bool + :param offset: request offset, from 0 + :type offset: int + :param limit: request limit size + :type limit: int + :param description: 剧本描述 + :type description: str + :param dataclass_name: 数据类名称 + :type dataclass_name: str + :param name: 剧本名称 + :type name: str + """ + + + + self._project_id = None + self._workspace_id = None + self._search_txt = None + self._component_id = None + self._enabled = None + self._offset = None + self._limit = None + self._description = None + self._dataclass_name = None + self._name = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + if search_txt is not None: + self.search_txt = search_txt + if component_id is not None: + self.component_id = component_id + if enabled is not None: + self.enabled = enabled + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if description is not None: + self.description = description + if dataclass_name is not None: + self.dataclass_name = dataclass_name + if name is not None: + self.name = name + + @property + def project_id(self): + """Gets the project_id of this ListPlaybooksRequest. + + ID of project + + :return: The project_id of this ListPlaybooksRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListPlaybooksRequest. + + ID of project + + :param project_id: The project_id of this ListPlaybooksRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ListPlaybooksRequest. + + ID of workspace + + :return: The workspace_id of this ListPlaybooksRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ListPlaybooksRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ListPlaybooksRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def search_txt(self): + """Gets the search_txt of this ListPlaybooksRequest. + + 搜索关键字 + + :return: The search_txt of this ListPlaybooksRequest. + :rtype: str + """ + return self._search_txt + + @search_txt.setter + def search_txt(self, search_txt): + """Sets the search_txt of this ListPlaybooksRequest. + + 搜索关键字 + + :param search_txt: The search_txt of this ListPlaybooksRequest. + :type search_txt: str + """ + self._search_txt = search_txt + + @property + def component_id(self): + """Gets the component_id of this ListPlaybooksRequest. + + component id. + + :return: The component_id of this ListPlaybooksRequest. + :rtype: str + """ + return self._component_id + + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this ListPlaybooksRequest. + + component id. + + :param component_id: The component_id of this ListPlaybooksRequest. + :type component_id: str + """ + self._component_id = component_id + + @property + def enabled(self): + """Gets the enabled of this ListPlaybooksRequest. + + 是否启用 + + :return: The enabled of this ListPlaybooksRequest. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ListPlaybooksRequest. + + 是否启用 + + :param enabled: The enabled of this ListPlaybooksRequest. + :type enabled: bool + """ + self._enabled = enabled + + @property + def offset(self): + """Gets the offset of this ListPlaybooksRequest. + + request offset, from 0 + + :return: The offset of this ListPlaybooksRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListPlaybooksRequest. + + request offset, from 0 + + :param offset: The offset of this ListPlaybooksRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListPlaybooksRequest. + + request limit size + + :return: The limit of this ListPlaybooksRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPlaybooksRequest. + + request limit size + + :param limit: The limit of this ListPlaybooksRequest. + :type limit: int + """ + self._limit = limit + + @property + def description(self): + """Gets the description of this ListPlaybooksRequest. + + 剧本描述 + + :return: The description of this ListPlaybooksRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListPlaybooksRequest. + + 剧本描述 + + :param description: The description of this ListPlaybooksRequest. + :type description: str + """ + self._description = description + + @property + def dataclass_name(self): + """Gets the dataclass_name of this ListPlaybooksRequest. + + 数据类名称 + + :return: The dataclass_name of this ListPlaybooksRequest. + :rtype: str + """ + return self._dataclass_name + + @dataclass_name.setter + def dataclass_name(self, dataclass_name): + """Sets the dataclass_name of this ListPlaybooksRequest. + + 数据类名称 + + :param dataclass_name: The dataclass_name of this ListPlaybooksRequest. + :type dataclass_name: str + """ + self._dataclass_name = dataclass_name + + @property + def name(self): + """Gets the name of this ListPlaybooksRequest. + + 剧本名称 + + :return: The name of this ListPlaybooksRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListPlaybooksRequest. + + 剧本名称 + + :param name: The name of this ListPlaybooksRequest. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybooksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_response.py new file mode 100755 index 0000000000..b32b291489 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/list_playbooks_response.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPlaybooksResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'total': 'int', + 'size': 'int', + 'page': 'int', + 'data': 'list[PlaybookInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'total': 'total', + 'size': 'size', + 'page': 'page', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, total=None, size=None, page=None, data=None, x_request_id=None): + """ListPlaybooksResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param total: tatal count + :type total: int + :param size: current page count + :type size: int + :param page: current page size + :type page: int + :param data: list of informations of playbook + :type data: list[:class:`huaweicloudsdksa.v2.PlaybookInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListPlaybooksResponse, self).__init__() + + self._code = None + self._message = None + self._total = None + self._size = None + self._page = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if total is not None: + self.total = total + if size is not None: + self.size = size + if page is not None: + self.page = page + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ListPlaybooksResponse. + + Error code + + :return: The code of this ListPlaybooksResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListPlaybooksResponse. + + Error code + + :param code: The code of this ListPlaybooksResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ListPlaybooksResponse. + + Error message + + :return: The message of this ListPlaybooksResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ListPlaybooksResponse. + + Error message + + :param message: The message of this ListPlaybooksResponse. + :type message: str + """ + self._message = message + + @property + def total(self): + """Gets the total of this ListPlaybooksResponse. + + tatal count + + :return: The total of this ListPlaybooksResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListPlaybooksResponse. + + tatal count + + :param total: The total of this ListPlaybooksResponse. + :type total: int + """ + self._total = total + + @property + def size(self): + """Gets the size of this ListPlaybooksResponse. + + current page count + + :return: The size of this ListPlaybooksResponse. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListPlaybooksResponse. + + current page count + + :param size: The size of this ListPlaybooksResponse. + :type size: int + """ + self._size = size + + @property + def page(self): + """Gets the page of this ListPlaybooksResponse. + + current page size + + :return: The page of this ListPlaybooksResponse. + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListPlaybooksResponse. + + current page size + + :param page: The page of this ListPlaybooksResponse. + :type page: int + """ + self._page = page + + @property + def data(self): + """Gets the data of this ListPlaybooksResponse. + + list of informations of playbook + + :return: The data of this ListPlaybooksResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.PlaybookInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPlaybooksResponse. + + list of informations of playbook + + :param data: The data of this ListPlaybooksResponse. + :type data: list[:class:`huaweicloudsdksa.v2.PlaybookInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListPlaybooksResponse. + + :return: The x_request_id of this ListPlaybooksResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListPlaybooksResponse. + + :param x_request_id: The x_request_id of this ListPlaybooksResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPlaybooksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_action_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_action_info.py new file mode 100755 index 0000000000..548a5b4ef4 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_action_info.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyActionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'action_type': 'str', + 'action_id': 'str', + 'sort_order': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'action_type': 'action_type', + 'action_id': 'action_id', + 'sort_order': 'sort_order' + } + + def __init__(self, name=None, description=None, action_type=None, action_id=None, sort_order=None): + """ModifyActionInfo + + The model defined in huaweicloud sdk + + :param name: The name, display only + :type name: str + :param description: The description, display only + :type description: str + :param action_type: Type of this action, script or aopworkflow. + :type action_type: str + :param action_id: action id. + :type action_id: str + :param sort_order: sort_order + :type sort_order: str + """ + + + + self._name = None + self._description = None + self._action_type = None + self._action_id = None + self._sort_order = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if action_type is not None: + self.action_type = action_type + if action_id is not None: + self.action_id = action_id + if sort_order is not None: + self.sort_order = sort_order + + @property + def name(self): + """Gets the name of this ModifyActionInfo. + + The name, display only + + :return: The name of this ModifyActionInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyActionInfo. + + The name, display only + + :param name: The name of this ModifyActionInfo. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyActionInfo. + + The description, display only + + :return: The description of this ModifyActionInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyActionInfo. + + The description, display only + + :param description: The description of this ModifyActionInfo. + :type description: str + """ + self._description = description + + @property + def action_type(self): + """Gets the action_type of this ModifyActionInfo. + + Type of this action, script or aopworkflow. + + :return: The action_type of this ModifyActionInfo. + :rtype: str + """ + return self._action_type + + @action_type.setter + def action_type(self, action_type): + """Sets the action_type of this ModifyActionInfo. + + Type of this action, script or aopworkflow. + + :param action_type: The action_type of this ModifyActionInfo. + :type action_type: str + """ + self._action_type = action_type + + @property + def action_id(self): + """Gets the action_id of this ModifyActionInfo. + + action id. + + :return: The action_id of this ModifyActionInfo. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this ModifyActionInfo. + + action id. + + :param action_id: The action_id of this ModifyActionInfo. + :type action_id: str + """ + self._action_id = action_id + + @property + def sort_order(self): + """Gets the sort_order of this ModifyActionInfo. + + sort_order + + :return: The sort_order of this ModifyActionInfo. + :rtype: str + """ + return self._sort_order + + @sort_order.setter + def sort_order(self, sort_order): + """Sets the sort_order of this ModifyActionInfo. + + sort_order + + :param sort_order: The sort_order of this ModifyActionInfo. + :type sort_order: str + """ + self._sort_order = sort_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyActionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_info.py new file mode 100755 index 0000000000..c88a6c302b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_info.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyPlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'enabled': 'bool', + 'active_version_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'enabled': 'enabled', + 'active_version_id': 'active_version_id' + } + + def __init__(self, name=None, description=None, enabled=None, active_version_id=None): + """ModifyPlaybookInfo + + The model defined in huaweicloud sdk + + :param name: The name, display only + :type name: str + :param description: The description, display only + :type description: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param active_version_id: 启用的剧本版本ID + :type active_version_id: str + """ + + + + self._name = None + self._description = None + self._enabled = None + self._active_version_id = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if enabled is not None: + self.enabled = enabled + if active_version_id is not None: + self.active_version_id = active_version_id + + @property + def name(self): + """Gets the name of this ModifyPlaybookInfo. + + The name, display only + + :return: The name of this ModifyPlaybookInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModifyPlaybookInfo. + + The name, display only + + :param name: The name of this ModifyPlaybookInfo. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ModifyPlaybookInfo. + + The description, display only + + :return: The description of this ModifyPlaybookInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyPlaybookInfo. + + The description, display only + + :param description: The description of this ModifyPlaybookInfo. + :type description: str + """ + self._description = description + + @property + def enabled(self): + """Gets the enabled of this ModifyPlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this ModifyPlaybookInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ModifyPlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this ModifyPlaybookInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def active_version_id(self): + """Gets the active_version_id of this ModifyPlaybookInfo. + + 启用的剧本版本ID + + :return: The active_version_id of this ModifyPlaybookInfo. + :rtype: str + """ + return self._active_version_id + + @active_version_id.setter + def active_version_id(self, active_version_id): + """Sets the active_version_id of this ModifyPlaybookInfo. + + 启用的剧本版本ID + + :param active_version_id: The active_version_id of this ModifyPlaybookInfo. + :type active_version_id: str + """ + self._active_version_id = active_version_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyPlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_version_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_version_info.py new file mode 100755 index 0000000000..61e752bb75 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_playbook_version_info.py @@ -0,0 +1,466 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyPlaybookVersionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'description': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'dataclass_id': 'str', + 'rule_enable': 'bool', + 'enabled': 'bool', + 'status': 'str', + 'rule_id': 'str', + 'trigger_type': 'str', + 'dataobject_create': 'bool', + 'dataobject_update': 'bool', + 'dataobject_delete': 'bool', + 'action_strategy': 'str' + } + + attribute_map = { + 'description': 'description', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'dataclass_id': 'dataclass_id', + 'rule_enable': 'rule_enable', + 'enabled': 'enabled', + 'status': 'status', + 'rule_id': 'rule_id', + 'trigger_type': 'trigger_type', + 'dataobject_create': 'dataobject_create', + 'dataobject_update': 'dataobject_update', + 'dataobject_delete': 'dataobject_delete', + 'action_strategy': 'action_strategy' + } + + def __init__(self, description=None, workspace_id=None, playbook_id=None, dataclass_id=None, rule_enable=None, enabled=None, status=None, rule_id=None, trigger_type=None, dataobject_create=None, dataobject_update=None, dataobject_delete=None, action_strategy=None): + """ModifyPlaybookVersionInfo + + The model defined in huaweicloud sdk + + :param description: The description, display only + :type description: str + :param workspace_id: 工作空间id + :type workspace_id: str + :param playbook_id: Playbook id. + :type playbook_id: str + :param dataclass_id: dataclass id. + :type dataclass_id: str + :param rule_enable: If the condition filter is enabled. + :type rule_enable: bool + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param status: 状态 + :type status: str + :param rule_id: 规则ID + :type rule_id: str + :param trigger_type: Strategy of action. event, timer + :type trigger_type: str + :param dataobject_create: if trigger when dataobject is created + :type dataobject_create: bool + :param dataobject_update: if trigger when dataobject is updated + :type dataobject_update: bool + :param dataobject_delete: if trigger when dataobject is deleted + :type dataobject_delete: bool + :param action_strategy: Strategy of action. sync or async + :type action_strategy: str + """ + + + + self._description = None + self._workspace_id = None + self._playbook_id = None + self._dataclass_id = None + self._rule_enable = None + self._enabled = None + self._status = None + self._rule_id = None + self._trigger_type = None + self._dataobject_create = None + self._dataobject_update = None + self._dataobject_delete = None + self._action_strategy = None + self.discriminator = None + + if description is not None: + self.description = description + if workspace_id is not None: + self.workspace_id = workspace_id + if playbook_id is not None: + self.playbook_id = playbook_id + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if rule_enable is not None: + self.rule_enable = rule_enable + if enabled is not None: + self.enabled = enabled + if status is not None: + self.status = status + if rule_id is not None: + self.rule_id = rule_id + if trigger_type is not None: + self.trigger_type = trigger_type + if dataobject_create is not None: + self.dataobject_create = dataobject_create + if dataobject_update is not None: + self.dataobject_update = dataobject_update + if dataobject_delete is not None: + self.dataobject_delete = dataobject_delete + if action_strategy is not None: + self.action_strategy = action_strategy + + @property + def description(self): + """Gets the description of this ModifyPlaybookVersionInfo. + + The description, display only + + :return: The description of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ModifyPlaybookVersionInfo. + + The description, display only + + :param description: The description of this ModifyPlaybookVersionInfo. + :type description: str + """ + self._description = description + + @property + def workspace_id(self): + """Gets the workspace_id of this ModifyPlaybookVersionInfo. + + 工作空间id + + :return: The workspace_id of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ModifyPlaybookVersionInfo. + + 工作空间id + + :param workspace_id: The workspace_id of this ModifyPlaybookVersionInfo. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this ModifyPlaybookVersionInfo. + + Playbook id. + + :return: The playbook_id of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this ModifyPlaybookVersionInfo. + + Playbook id. + + :param playbook_id: The playbook_id of this ModifyPlaybookVersionInfo. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def dataclass_id(self): + """Gets the dataclass_id of this ModifyPlaybookVersionInfo. + + dataclass id. + + :return: The dataclass_id of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this ModifyPlaybookVersionInfo. + + dataclass id. + + :param dataclass_id: The dataclass_id of this ModifyPlaybookVersionInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def rule_enable(self): + """Gets the rule_enable of this ModifyPlaybookVersionInfo. + + If the condition filter is enabled. + + :return: The rule_enable of this ModifyPlaybookVersionInfo. + :rtype: bool + """ + return self._rule_enable + + @rule_enable.setter + def rule_enable(self, rule_enable): + """Sets the rule_enable of this ModifyPlaybookVersionInfo. + + If the condition filter is enabled. + + :param rule_enable: The rule_enable of this ModifyPlaybookVersionInfo. + :type rule_enable: bool + """ + self._rule_enable = rule_enable + + @property + def enabled(self): + """Gets the enabled of this ModifyPlaybookVersionInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this ModifyPlaybookVersionInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ModifyPlaybookVersionInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this ModifyPlaybookVersionInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def status(self): + """Gets the status of this ModifyPlaybookVersionInfo. + + 状态 + + :return: The status of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ModifyPlaybookVersionInfo. + + 状态 + + :param status: The status of this ModifyPlaybookVersionInfo. + :type status: str + """ + self._status = status + + @property + def rule_id(self): + """Gets the rule_id of this ModifyPlaybookVersionInfo. + + 规则ID + + :return: The rule_id of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ModifyPlaybookVersionInfo. + + 规则ID + + :param rule_id: The rule_id of this ModifyPlaybookVersionInfo. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def trigger_type(self): + """Gets the trigger_type of this ModifyPlaybookVersionInfo. + + Strategy of action. event, timer + + :return: The trigger_type of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this ModifyPlaybookVersionInfo. + + Strategy of action. event, timer + + :param trigger_type: The trigger_type of this ModifyPlaybookVersionInfo. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def dataobject_create(self): + """Gets the dataobject_create of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is created + + :return: The dataobject_create of this ModifyPlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_create + + @dataobject_create.setter + def dataobject_create(self, dataobject_create): + """Sets the dataobject_create of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is created + + :param dataobject_create: The dataobject_create of this ModifyPlaybookVersionInfo. + :type dataobject_create: bool + """ + self._dataobject_create = dataobject_create + + @property + def dataobject_update(self): + """Gets the dataobject_update of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is updated + + :return: The dataobject_update of this ModifyPlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_update + + @dataobject_update.setter + def dataobject_update(self, dataobject_update): + """Sets the dataobject_update of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is updated + + :param dataobject_update: The dataobject_update of this ModifyPlaybookVersionInfo. + :type dataobject_update: bool + """ + self._dataobject_update = dataobject_update + + @property + def dataobject_delete(self): + """Gets the dataobject_delete of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is deleted + + :return: The dataobject_delete of this ModifyPlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_delete + + @dataobject_delete.setter + def dataobject_delete(self, dataobject_delete): + """Sets the dataobject_delete of this ModifyPlaybookVersionInfo. + + if trigger when dataobject is deleted + + :param dataobject_delete: The dataobject_delete of this ModifyPlaybookVersionInfo. + :type dataobject_delete: bool + """ + self._dataobject_delete = dataobject_delete + + @property + def action_strategy(self): + """Gets the action_strategy of this ModifyPlaybookVersionInfo. + + Strategy of action. sync or async + + :return: The action_strategy of this ModifyPlaybookVersionInfo. + :rtype: str + """ + return self._action_strategy + + @action_strategy.setter + def action_strategy(self, action_strategy): + """Sets the action_strategy of this ModifyPlaybookVersionInfo. + + Strategy of action. sync or async + + :param action_strategy: The action_strategy of this ModifyPlaybookVersionInfo. + :type action_strategy: str + """ + self._action_strategy = action_strategy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyPlaybookVersionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_rule_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_rule_info.py new file mode 100755 index 0000000000..f8d44c2be6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/modify_rule_info.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyRuleInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule': 'ConditionInfo' + } + + attribute_map = { + 'rule': 'rule' + } + + def __init__(self, rule=None): + """ModifyRuleInfo + + The model defined in huaweicloud sdk + + :param rule: + :type rule: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + + + + self._rule = None + self.discriminator = None + + if rule is not None: + self.rule = rule + + @property + def rule(self): + """Gets the rule of this ModifyRuleInfo. + + :return: The rule of this ModifyRuleInfo. + :rtype: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this ModifyRuleInfo. + + :param rule: The rule of this ModifyRuleInfo. + :type rule: :class:`huaweicloudsdksa.v2.ConditionInfo` + """ + self._rule = rule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModifyRuleInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/operation_playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/operation_playbook_info.py new file mode 100755 index 0000000000..1e127cdde9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/operation_playbook_info.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OperationPlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'operation': 'str' + } + + attribute_map = { + 'operation': 'operation' + } + + def __init__(self, operation=None): + """OperationPlaybookInfo + + The model defined in huaweicloud sdk + + :param operation: 重试: RETRY 终止: TERMINATE + :type operation: str + """ + + + + self._operation = None + self.discriminator = None + + if operation is not None: + self.operation = operation + + @property + def operation(self): + """Gets the operation of this OperationPlaybookInfo. + + 重试: RETRY 终止: TERMINATE + + :return: The operation of this OperationPlaybookInfo. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """Sets the operation of this OperationPlaybookInfo. + + 重试: RETRY 终止: TERMINATE + + :param operation: The operation of this OperationPlaybookInfo. + :type operation: str + """ + self._operation = operation + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OperationPlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert.py new file mode 100755 index 0000000000..3eac8dd129 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OrderAlert: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]', + 'incident_id': 'str', + 'event_content': 'OrderAlertEventContent', + 'incident_content': 'OrderAlertIncidentContent', + 'marked_evidence': 'bool' + } + + attribute_map = { + 'ids': 'ids', + 'incident_id': 'incident_id', + 'event_content': 'event_content', + 'incident_content': 'incident_content', + 'marked_evidence': 'marked_evidence' + } + + def __init__(self, ids=None, incident_id=None, event_content=None, incident_content=None, marked_evidence=None): + """OrderAlert + + The model defined in huaweicloud sdk + + :param ids: 转事件的ID列表 + :type ids: list[str] + :param incident_id: 事件id + :type incident_id: str + :param event_content: + :type event_content: :class:`huaweicloudsdksa.v2.OrderAlertEventContent` + :param incident_content: + :type incident_content: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContent` + :param marked_evidence: 标记为证据 + :type marked_evidence: bool + """ + + + + self._ids = None + self._incident_id = None + self._event_content = None + self._incident_content = None + self._marked_evidence = None + self.discriminator = None + + if ids is not None: + self.ids = ids + if incident_id is not None: + self.incident_id = incident_id + if event_content is not None: + self.event_content = event_content + if incident_content is not None: + self.incident_content = incident_content + if marked_evidence is not None: + self.marked_evidence = marked_evidence + + @property + def ids(self): + """Gets the ids of this OrderAlert. + + 转事件的ID列表 + + :return: The ids of this OrderAlert. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this OrderAlert. + + 转事件的ID列表 + + :param ids: The ids of this OrderAlert. + :type ids: list[str] + """ + self._ids = ids + + @property + def incident_id(self): + """Gets the incident_id of this OrderAlert. + + 事件id + + :return: The incident_id of this OrderAlert. + :rtype: str + """ + return self._incident_id + + @incident_id.setter + def incident_id(self, incident_id): + """Sets the incident_id of this OrderAlert. + + 事件id + + :param incident_id: The incident_id of this OrderAlert. + :type incident_id: str + """ + self._incident_id = incident_id + + @property + def event_content(self): + """Gets the event_content of this OrderAlert. + + :return: The event_content of this OrderAlert. + :rtype: :class:`huaweicloudsdksa.v2.OrderAlertEventContent` + """ + return self._event_content + + @event_content.setter + def event_content(self, event_content): + """Sets the event_content of this OrderAlert. + + :param event_content: The event_content of this OrderAlert. + :type event_content: :class:`huaweicloudsdksa.v2.OrderAlertEventContent` + """ + self._event_content = event_content + + @property + def incident_content(self): + """Gets the incident_content of this OrderAlert. + + :return: The incident_content of this OrderAlert. + :rtype: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContent` + """ + return self._incident_content + + @incident_content.setter + def incident_content(self, incident_content): + """Sets the incident_content of this OrderAlert. + + :param incident_content: The incident_content of this OrderAlert. + :type incident_content: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContent` + """ + self._incident_content = incident_content + + @property + def marked_evidence(self): + """Gets the marked_evidence of this OrderAlert. + + 标记为证据 + + :return: The marked_evidence of this OrderAlert. + :rtype: bool + """ + return self._marked_evidence + + @marked_evidence.setter + def marked_evidence(self, marked_evidence): + """Sets the marked_evidence of this OrderAlert. + + 标记为证据 + + :param marked_evidence: The marked_evidence of this OrderAlert. + :type marked_evidence: bool + """ + self._marked_evidence = marked_evidence + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderAlert): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_event_content.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_event_content.py new file mode 100755 index 0000000000..9948c6850a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_event_content.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OrderAlertEventContent: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'handle_status': 'str' + } + + attribute_map = { + 'handle_status': 'handle_status' + } + + def __init__(self, handle_status=None): + """OrderAlertEventContent + + The model defined in huaweicloud sdk + + :param handle_status: 状态 + :type handle_status: str + """ + + + + self._handle_status = None + self.discriminator = None + + if handle_status is not None: + self.handle_status = handle_status + + @property + def handle_status(self): + """Gets the handle_status of this OrderAlertEventContent. + + 状态 + + :return: The handle_status of this OrderAlertEventContent. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this OrderAlertEventContent. + + 状态 + + :param handle_status: The handle_status of this OrderAlertEventContent. + :type handle_status: str + """ + self._handle_status = handle_status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderAlertEventContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content.py new file mode 100755 index 0000000000..e9358cc605 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OrderAlertIncidentContent: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'title': 'str', + 'type_category': 'str', + 'evidence_list': 'list[str]', + 'note_list': 'list[str]', + 'attachment_list': 'list[str]', + 'incident_type': 'OrderAlertIncidentContentIncidentType', + 'description': 'str' + } + + attribute_map = { + 'title': 'title', + 'type_category': 'type_category', + 'evidence_list': 'evidence_list', + 'note_list': 'note_list', + 'attachment_list': 'attachment_list', + 'incident_type': 'incident_type', + 'description': 'description' + } + + def __init__(self, title=None, type_category=None, evidence_list=None, note_list=None, attachment_list=None, incident_type=None, description=None): + """OrderAlertIncidentContent + + The model defined in huaweicloud sdk + + :param title: 事件名称 + :type title: str + :param type_category: 事件类型 + :type type_category: str + :param evidence_list: 证据列表 + :type evidence_list: list[str] + :param note_list: 评论列表 + :type note_list: list[str] + :param attachment_list: 附件列表 + :type attachment_list: list[str] + :param incident_type: + :type incident_type: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContentIncidentType` + :param description: Id value + :type description: str + """ + + + + self._title = None + self._type_category = None + self._evidence_list = None + self._note_list = None + self._attachment_list = None + self._incident_type = None + self._description = None + self.discriminator = None + + if title is not None: + self.title = title + if type_category is not None: + self.type_category = type_category + if evidence_list is not None: + self.evidence_list = evidence_list + if note_list is not None: + self.note_list = note_list + if attachment_list is not None: + self.attachment_list = attachment_list + if incident_type is not None: + self.incident_type = incident_type + if description is not None: + self.description = description + + @property + def title(self): + """Gets the title of this OrderAlertIncidentContent. + + 事件名称 + + :return: The title of this OrderAlertIncidentContent. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this OrderAlertIncidentContent. + + 事件名称 + + :param title: The title of this OrderAlertIncidentContent. + :type title: str + """ + self._title = title + + @property + def type_category(self): + """Gets the type_category of this OrderAlertIncidentContent. + + 事件类型 + + :return: The type_category of this OrderAlertIncidentContent. + :rtype: str + """ + return self._type_category + + @type_category.setter + def type_category(self, type_category): + """Sets the type_category of this OrderAlertIncidentContent. + + 事件类型 + + :param type_category: The type_category of this OrderAlertIncidentContent. + :type type_category: str + """ + self._type_category = type_category + + @property + def evidence_list(self): + """Gets the evidence_list of this OrderAlertIncidentContent. + + 证据列表 + + :return: The evidence_list of this OrderAlertIncidentContent. + :rtype: list[str] + """ + return self._evidence_list + + @evidence_list.setter + def evidence_list(self, evidence_list): + """Sets the evidence_list of this OrderAlertIncidentContent. + + 证据列表 + + :param evidence_list: The evidence_list of this OrderAlertIncidentContent. + :type evidence_list: list[str] + """ + self._evidence_list = evidence_list + + @property + def note_list(self): + """Gets the note_list of this OrderAlertIncidentContent. + + 评论列表 + + :return: The note_list of this OrderAlertIncidentContent. + :rtype: list[str] + """ + return self._note_list + + @note_list.setter + def note_list(self, note_list): + """Sets the note_list of this OrderAlertIncidentContent. + + 评论列表 + + :param note_list: The note_list of this OrderAlertIncidentContent. + :type note_list: list[str] + """ + self._note_list = note_list + + @property + def attachment_list(self): + """Gets the attachment_list of this OrderAlertIncidentContent. + + 附件列表 + + :return: The attachment_list of this OrderAlertIncidentContent. + :rtype: list[str] + """ + return self._attachment_list + + @attachment_list.setter + def attachment_list(self, attachment_list): + """Sets the attachment_list of this OrderAlertIncidentContent. + + 附件列表 + + :param attachment_list: The attachment_list of this OrderAlertIncidentContent. + :type attachment_list: list[str] + """ + self._attachment_list = attachment_list + + @property + def incident_type(self): + """Gets the incident_type of this OrderAlertIncidentContent. + + :return: The incident_type of this OrderAlertIncidentContent. + :rtype: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContentIncidentType` + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this OrderAlertIncidentContent. + + :param incident_type: The incident_type of this OrderAlertIncidentContent. + :type incident_type: :class:`huaweicloudsdksa.v2.OrderAlertIncidentContentIncidentType` + """ + self._incident_type = incident_type + + @property + def description(self): + """Gets the description of this OrderAlertIncidentContent. + + Id value + + :return: The description of this OrderAlertIncidentContent. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this OrderAlertIncidentContent. + + Id value + + :param description: The description of this OrderAlertIncidentContent. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderAlertIncidentContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content_incident_type.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content_incident_type.py new file mode 100755 index 0000000000..670c0c2720 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/order_alert_incident_content_incident_type.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OrderAlertIncidentContentIncidentType: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'layout_id': 'str', + 'incident_type': 'str', + 'category': 'str' + } + + attribute_map = { + 'id': 'id', + 'layout_id': 'layoutId', + 'incident_type': 'incident_type', + 'category': 'category' + } + + def __init__(self, id=None, layout_id=None, incident_type=None, category=None): + """OrderAlertIncidentContentIncidentType + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param layout_id: Id value + :type layout_id: str + :param incident_type: Id value + :type incident_type: str + :param category: Id value + :type category: str + """ + + + + self._id = None + self._layout_id = None + self._incident_type = None + self._category = None + self.discriminator = None + + if id is not None: + self.id = id + if layout_id is not None: + self.layout_id = layout_id + if incident_type is not None: + self.incident_type = incident_type + if category is not None: + self.category = category + + @property + def id(self): + """Gets the id of this OrderAlertIncidentContentIncidentType. + + Id value + + :return: The id of this OrderAlertIncidentContentIncidentType. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this OrderAlertIncidentContentIncidentType. + + Id value + + :param id: The id of this OrderAlertIncidentContentIncidentType. + :type id: str + """ + self._id = id + + @property + def layout_id(self): + """Gets the layout_id of this OrderAlertIncidentContentIncidentType. + + Id value + + :return: The layout_id of this OrderAlertIncidentContentIncidentType. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this OrderAlertIncidentContentIncidentType. + + Id value + + :param layout_id: The layout_id of this OrderAlertIncidentContentIncidentType. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def incident_type(self): + """Gets the incident_type of this OrderAlertIncidentContentIncidentType. + + Id value + + :return: The incident_type of this OrderAlertIncidentContentIncidentType. + :rtype: str + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this OrderAlertIncidentContentIncidentType. + + Id value + + :param incident_type: The incident_type of this OrderAlertIncidentContentIncidentType. + :type incident_type: str + """ + self._incident_type = incident_type + + @property + def category(self): + """Gets the category of this OrderAlertIncidentContentIncidentType. + + Id value + + :return: The category of this OrderAlertIncidentContentIncidentType. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this OrderAlertIncidentContentIncidentType. + + Id value + + :param category: The category of this OrderAlertIncidentContentIncidentType. + :type category: str + """ + self._category = category + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderAlertIncidentContentIncidentType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info.py new file mode 100755 index 0000000000..cd5cb8c9a9 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info.py @@ -0,0 +1,611 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'version_id': 'str', + 'enabled': 'bool', + 'workspace_id': 'str', + 'approve_role': 'str', + 'user_role': 'str', + 'edit_role': 'str', + 'owner_id': 'str', + 'version': 'str', + 'dataclass_name': 'str', + 'dataclass_id': 'str', + 'unaudited_version_id': 'str', + 'reject_version_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'version_id': 'version_id', + 'enabled': 'enabled', + 'workspace_id': 'workspace_id', + 'approve_role': 'approve_role', + 'user_role': 'user_role', + 'edit_role': 'edit_role', + 'owner_id': 'owner_id', + 'version': 'version', + 'dataclass_name': 'dataclass_name', + 'dataclass_id': 'dataclass_id', + 'unaudited_version_id': 'unaudited_version_id', + 'reject_version_id': 'reject_version_id' + } + + def __init__(self, id=None, name=None, description=None, create_time=None, update_time=None, project_id=None, version_id=None, enabled=None, workspace_id=None, approve_role=None, user_role=None, edit_role=None, owner_id=None, version=None, dataclass_name=None, dataclass_id=None, unaudited_version_id=None, reject_version_id=None): + """PlaybookInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param description: The description, display only + :type description: str + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Project id value + :type project_id: str + :param version_id: version Id value + :type version_id: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param workspace_id: 工作空间id + :type workspace_id: str + :param approve_role: Role required for approve + :type approve_role: str + :param user_role: 用户角色 + :type user_role: str + :param edit_role: Role required for edit + :type edit_role: str + :param owner_id: Owner id + :type owner_id: str + :param version: version + :type version: str + :param dataclass_name: 数据类名称 + :type dataclass_name: str + :param dataclass_id: 数据类ID + :type dataclass_id: str + :param unaudited_version_id: 待审核剧本版本ID + :type unaudited_version_id: str + :param reject_version_id: 已驳回剧本版本ID + :type reject_version_id: str + """ + + + + self._id = None + self._name = None + self._description = None + self._create_time = None + self._update_time = None + self._project_id = None + self._version_id = None + self._enabled = None + self._workspace_id = None + self._approve_role = None + self._user_role = None + self._edit_role = None + self._owner_id = None + self._version = None + self._dataclass_name = None + self._dataclass_id = None + self._unaudited_version_id = None + self._reject_version_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if version_id is not None: + self.version_id = version_id + if enabled is not None: + self.enabled = enabled + if workspace_id is not None: + self.workspace_id = workspace_id + if approve_role is not None: + self.approve_role = approve_role + if user_role is not None: + self.user_role = user_role + if edit_role is not None: + self.edit_role = edit_role + if owner_id is not None: + self.owner_id = owner_id + if version is not None: + self.version = version + if dataclass_name is not None: + self.dataclass_name = dataclass_name + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if unaudited_version_id is not None: + self.unaudited_version_id = unaudited_version_id + if reject_version_id is not None: + self.reject_version_id = reject_version_id + + @property + def id(self): + """Gets the id of this PlaybookInfo. + + Id value + + :return: The id of this PlaybookInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PlaybookInfo. + + Id value + + :param id: The id of this PlaybookInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this PlaybookInfo. + + The name, display only + + :return: The name of this PlaybookInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PlaybookInfo. + + The name, display only + + :param name: The name of this PlaybookInfo. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this PlaybookInfo. + + The description, display only + + :return: The description of this PlaybookInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PlaybookInfo. + + The description, display only + + :param description: The description of this PlaybookInfo. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this PlaybookInfo. + + Create time + + :return: The create_time of this PlaybookInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PlaybookInfo. + + Create time + + :param create_time: The create_time of this PlaybookInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PlaybookInfo. + + Update time + + :return: The update_time of this PlaybookInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PlaybookInfo. + + Update time + + :param update_time: The update_time of this PlaybookInfo. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this PlaybookInfo. + + Project id value + + :return: The project_id of this PlaybookInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PlaybookInfo. + + Project id value + + :param project_id: The project_id of this PlaybookInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def version_id(self): + """Gets the version_id of this PlaybookInfo. + + version Id value + + :return: The version_id of this PlaybookInfo. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this PlaybookInfo. + + version Id value + + :param version_id: The version_id of this PlaybookInfo. + :type version_id: str + """ + self._version_id = version_id + + @property + def enabled(self): + """Gets the enabled of this PlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this PlaybookInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this PlaybookInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this PlaybookInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def workspace_id(self): + """Gets the workspace_id of this PlaybookInfo. + + 工作空间id + + :return: The workspace_id of this PlaybookInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this PlaybookInfo. + + 工作空间id + + :param workspace_id: The workspace_id of this PlaybookInfo. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def approve_role(self): + """Gets the approve_role of this PlaybookInfo. + + Role required for approve + + :return: The approve_role of this PlaybookInfo. + :rtype: str + """ + return self._approve_role + + @approve_role.setter + def approve_role(self, approve_role): + """Sets the approve_role of this PlaybookInfo. + + Role required for approve + + :param approve_role: The approve_role of this PlaybookInfo. + :type approve_role: str + """ + self._approve_role = approve_role + + @property + def user_role(self): + """Gets the user_role of this PlaybookInfo. + + 用户角色 + + :return: The user_role of this PlaybookInfo. + :rtype: str + """ + return self._user_role + + @user_role.setter + def user_role(self, user_role): + """Sets the user_role of this PlaybookInfo. + + 用户角色 + + :param user_role: The user_role of this PlaybookInfo. + :type user_role: str + """ + self._user_role = user_role + + @property + def edit_role(self): + """Gets the edit_role of this PlaybookInfo. + + Role required for edit + + :return: The edit_role of this PlaybookInfo. + :rtype: str + """ + return self._edit_role + + @edit_role.setter + def edit_role(self, edit_role): + """Sets the edit_role of this PlaybookInfo. + + Role required for edit + + :param edit_role: The edit_role of this PlaybookInfo. + :type edit_role: str + """ + self._edit_role = edit_role + + @property + def owner_id(self): + """Gets the owner_id of this PlaybookInfo. + + Owner id + + :return: The owner_id of this PlaybookInfo. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """Sets the owner_id of this PlaybookInfo. + + Owner id + + :param owner_id: The owner_id of this PlaybookInfo. + :type owner_id: str + """ + self._owner_id = owner_id + + @property + def version(self): + """Gets the version of this PlaybookInfo. + + version + + :return: The version of this PlaybookInfo. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PlaybookInfo. + + version + + :param version: The version of this PlaybookInfo. + :type version: str + """ + self._version = version + + @property + def dataclass_name(self): + """Gets the dataclass_name of this PlaybookInfo. + + 数据类名称 + + :return: The dataclass_name of this PlaybookInfo. + :rtype: str + """ + return self._dataclass_name + + @dataclass_name.setter + def dataclass_name(self, dataclass_name): + """Sets the dataclass_name of this PlaybookInfo. + + 数据类名称 + + :param dataclass_name: The dataclass_name of this PlaybookInfo. + :type dataclass_name: str + """ + self._dataclass_name = dataclass_name + + @property + def dataclass_id(self): + """Gets the dataclass_id of this PlaybookInfo. + + 数据类ID + + :return: The dataclass_id of this PlaybookInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this PlaybookInfo. + + 数据类ID + + :param dataclass_id: The dataclass_id of this PlaybookInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def unaudited_version_id(self): + """Gets the unaudited_version_id of this PlaybookInfo. + + 待审核剧本版本ID + + :return: The unaudited_version_id of this PlaybookInfo. + :rtype: str + """ + return self._unaudited_version_id + + @unaudited_version_id.setter + def unaudited_version_id(self, unaudited_version_id): + """Sets the unaudited_version_id of this PlaybookInfo. + + 待审核剧本版本ID + + :param unaudited_version_id: The unaudited_version_id of this PlaybookInfo. + :type unaudited_version_id: str + """ + self._unaudited_version_id = unaudited_version_id + + @property + def reject_version_id(self): + """Gets the reject_version_id of this PlaybookInfo. + + 已驳回剧本版本ID + + :return: The reject_version_id of this PlaybookInfo. + :rtype: str + """ + return self._reject_version_id + + @reject_version_id.setter + def reject_version_id(self, reject_version_id): + """Sets the reject_version_id of this PlaybookInfo. + + 已驳回剧本版本ID + + :param reject_version_id: The reject_version_id of this PlaybookInfo. + :type reject_version_id: str + """ + self._reject_version_id = reject_version_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info_ref.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info_ref.py new file mode 100755 index 0000000000..8ef4071de0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_info_ref.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookInfoRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'version_id': 'str', + 'name': 'str', + 'version': 'str' + } + + attribute_map = { + 'id': 'id', + 'version_id': 'version_id', + 'name': 'name', + 'version': 'version' + } + + def __init__(self, id=None, version_id=None, name=None, version=None): + """PlaybookInfoRef + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param version_id: Id value + :type version_id: str + :param name: Id value + :type name: str + :param version: version + :type version: str + """ + + + + self._id = None + self._version_id = None + self._name = None + self._version = None + self.discriminator = None + + if id is not None: + self.id = id + if version_id is not None: + self.version_id = version_id + if name is not None: + self.name = name + if version is not None: + self.version = version + + @property + def id(self): + """Gets the id of this PlaybookInfoRef. + + Id value + + :return: The id of this PlaybookInfoRef. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PlaybookInfoRef. + + Id value + + :param id: The id of this PlaybookInfoRef. + :type id: str + """ + self._id = id + + @property + def version_id(self): + """Gets the version_id of this PlaybookInfoRef. + + Id value + + :return: The version_id of this PlaybookInfoRef. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this PlaybookInfoRef. + + Id value + + :param version_id: The version_id of this PlaybookInfoRef. + :type version_id: str + """ + self._version_id = version_id + + @property + def name(self): + """Gets the name of this PlaybookInfoRef. + + Id value + + :return: The name of this PlaybookInfoRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PlaybookInfoRef. + + Id value + + :param name: The name of this PlaybookInfoRef. + :type name: str + """ + self._name = name + + @property + def version(self): + """Gets the version of this PlaybookInfoRef. + + version + + :return: The version of this PlaybookInfoRef. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PlaybookInfoRef. + + version + + :param version: The version of this PlaybookInfoRef. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_info.py new file mode 100755 index 0000000000..1506802f24 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_info.py @@ -0,0 +1,367 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookInstanceInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'project_id': 'str', + 'playbook': 'PlaybookInfoRef', + 'dataclass': 'DataclassInfoRef', + 'dataobject': 'DataclassInfoRef', + 'status': 'str', + 'trigger_type': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'project_id': 'project_id', + 'playbook': 'playbook', + 'dataclass': 'dataclass', + 'dataobject': 'dataobject', + 'status': 'status', + 'trigger_type': 'trigger_type', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, id=None, name=None, project_id=None, playbook=None, dataclass=None, dataobject=None, status=None, trigger_type=None, start_time=None, end_time=None): + """PlaybookInstanceInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param project_id: Project id value + :type project_id: str + :param playbook: + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param dataobject: + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param status: Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + :type status: str + :param trigger_type: trigger type. DEBUG, TIMER, EVENT, MANUAL + :type trigger_type: str + :param start_time: Create time + :type start_time: str + :param end_time: Update time + :type end_time: str + """ + + + + self._id = None + self._name = None + self._project_id = None + self._playbook = None + self._dataclass = None + self._dataobject = None + self._status = None + self._trigger_type = None + self._start_time = None + self._end_time = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if project_id is not None: + self.project_id = project_id + if playbook is not None: + self.playbook = playbook + if dataclass is not None: + self.dataclass = dataclass + if dataobject is not None: + self.dataobject = dataobject + if status is not None: + self.status = status + if trigger_type is not None: + self.trigger_type = trigger_type + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + + @property + def id(self): + """Gets the id of this PlaybookInstanceInfo. + + Id value + + :return: The id of this PlaybookInstanceInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PlaybookInstanceInfo. + + Id value + + :param id: The id of this PlaybookInstanceInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this PlaybookInstanceInfo. + + The name, display only + + :return: The name of this PlaybookInstanceInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PlaybookInstanceInfo. + + The name, display only + + :param name: The name of this PlaybookInstanceInfo. + :type name: str + """ + self._name = name + + @property + def project_id(self): + """Gets the project_id of this PlaybookInstanceInfo. + + Project id value + + :return: The project_id of this PlaybookInstanceInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PlaybookInstanceInfo. + + Project id value + + :param project_id: The project_id of this PlaybookInstanceInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def playbook(self): + """Gets the playbook of this PlaybookInstanceInfo. + + :return: The playbook of this PlaybookInstanceInfo. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + return self._playbook + + @playbook.setter + def playbook(self, playbook): + """Sets the playbook of this PlaybookInstanceInfo. + + :param playbook: The playbook of this PlaybookInstanceInfo. + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + self._playbook = playbook + + @property + def dataclass(self): + """Gets the dataclass of this PlaybookInstanceInfo. + + :return: The dataclass of this PlaybookInstanceInfo. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this PlaybookInstanceInfo. + + :param dataclass: The dataclass of this PlaybookInstanceInfo. + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataclass = dataclass + + @property + def dataobject(self): + """Gets the dataobject of this PlaybookInstanceInfo. + + :return: The dataobject of this PlaybookInstanceInfo. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataobject + + @dataobject.setter + def dataobject(self, dataobject): + """Sets the dataobject of this PlaybookInstanceInfo. + + :param dataobject: The dataobject of this PlaybookInstanceInfo. + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataobject = dataobject + + @property + def status(self): + """Gets the status of this PlaybookInstanceInfo. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :return: The status of this PlaybookInstanceInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PlaybookInstanceInfo. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :param status: The status of this PlaybookInstanceInfo. + :type status: str + """ + self._status = status + + @property + def trigger_type(self): + """Gets the trigger_type of this PlaybookInstanceInfo. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :return: The trigger_type of this PlaybookInstanceInfo. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this PlaybookInstanceInfo. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :param trigger_type: The trigger_type of this PlaybookInstanceInfo. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def start_time(self): + """Gets the start_time of this PlaybookInstanceInfo. + + Create time + + :return: The start_time of this PlaybookInstanceInfo. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this PlaybookInstanceInfo. + + Create time + + :param start_time: The start_time of this PlaybookInstanceInfo. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this PlaybookInstanceInfo. + + Update time + + :return: The end_time of this PlaybookInstanceInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this PlaybookInstanceInfo. + + Update time + + :param end_time: The end_time of this PlaybookInstanceInfo. + :type end_time: str + """ + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookInstanceInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_monitor_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_monitor_detail.py new file mode 100755 index 0000000000..7fd29801b2 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_monitor_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookInstanceMonitorDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total_instance_run_num': 'int', + 'schedule_instance_run_num': 'int', + 'event_instance_run_num': 'int', + 'min_run_time_instance': 'PlaybookInstanceRunStatistics', + 'max_run_time_instance': 'PlaybookInstanceRunStatistics', + 'total_instance_num': 'int', + 'success_instance_num': 'int', + 'fail_instance_num': 'int', + 'terminate_instance_num': 'int', + 'running_instance_num': 'int' + } + + attribute_map = { + 'total_instance_run_num': 'total_instance_run_num', + 'schedule_instance_run_num': 'schedule_instance_run_num', + 'event_instance_run_num': 'event_instance_run_num', + 'min_run_time_instance': 'min_run_time_instance', + 'max_run_time_instance': 'max_run_time_instance', + 'total_instance_num': 'total_instance_num', + 'success_instance_num': 'success_instance_num', + 'fail_instance_num': 'fail_instance_num', + 'terminate_instance_num': 'terminate_instance_num', + 'running_instance_num': 'running_instance_num' + } + + def __init__(self, total_instance_run_num=None, schedule_instance_run_num=None, event_instance_run_num=None, min_run_time_instance=None, max_run_time_instance=None, total_instance_num=None, success_instance_num=None, fail_instance_num=None, terminate_instance_num=None, running_instance_num=None): + """PlaybookInstanceMonitorDetail + + The model defined in huaweicloud sdk + + :param total_instance_run_num: 运行总次数 + :type total_instance_run_num: int + :param schedule_instance_run_num: 定时触发执行次数 + :type schedule_instance_run_num: int + :param event_instance_run_num: 时间触发执行次数 + :type event_instance_run_num: int + :param min_run_time_instance: + :type min_run_time_instance: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + :param max_run_time_instance: + :type max_run_time_instance: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + :param total_instance_num: 剧本实例总数 + :type total_instance_num: int + :param success_instance_num: 运行成功实例数量 + :type success_instance_num: int + :param fail_instance_num: 运行失败实例数量 + :type fail_instance_num: int + :param terminate_instance_num: 运行终止实例数量 + :type terminate_instance_num: int + :param running_instance_num: 运行中实例数量 + :type running_instance_num: int + """ + + + + self._total_instance_run_num = None + self._schedule_instance_run_num = None + self._event_instance_run_num = None + self._min_run_time_instance = None + self._max_run_time_instance = None + self._total_instance_num = None + self._success_instance_num = None + self._fail_instance_num = None + self._terminate_instance_num = None + self._running_instance_num = None + self.discriminator = None + + if total_instance_run_num is not None: + self.total_instance_run_num = total_instance_run_num + if schedule_instance_run_num is not None: + self.schedule_instance_run_num = schedule_instance_run_num + if event_instance_run_num is not None: + self.event_instance_run_num = event_instance_run_num + if min_run_time_instance is not None: + self.min_run_time_instance = min_run_time_instance + if max_run_time_instance is not None: + self.max_run_time_instance = max_run_time_instance + if total_instance_num is not None: + self.total_instance_num = total_instance_num + if success_instance_num is not None: + self.success_instance_num = success_instance_num + if fail_instance_num is not None: + self.fail_instance_num = fail_instance_num + if terminate_instance_num is not None: + self.terminate_instance_num = terminate_instance_num + if running_instance_num is not None: + self.running_instance_num = running_instance_num + + @property + def total_instance_run_num(self): + """Gets the total_instance_run_num of this PlaybookInstanceMonitorDetail. + + 运行总次数 + + :return: The total_instance_run_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._total_instance_run_num + + @total_instance_run_num.setter + def total_instance_run_num(self, total_instance_run_num): + """Sets the total_instance_run_num of this PlaybookInstanceMonitorDetail. + + 运行总次数 + + :param total_instance_run_num: The total_instance_run_num of this PlaybookInstanceMonitorDetail. + :type total_instance_run_num: int + """ + self._total_instance_run_num = total_instance_run_num + + @property + def schedule_instance_run_num(self): + """Gets the schedule_instance_run_num of this PlaybookInstanceMonitorDetail. + + 定时触发执行次数 + + :return: The schedule_instance_run_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._schedule_instance_run_num + + @schedule_instance_run_num.setter + def schedule_instance_run_num(self, schedule_instance_run_num): + """Sets the schedule_instance_run_num of this PlaybookInstanceMonitorDetail. + + 定时触发执行次数 + + :param schedule_instance_run_num: The schedule_instance_run_num of this PlaybookInstanceMonitorDetail. + :type schedule_instance_run_num: int + """ + self._schedule_instance_run_num = schedule_instance_run_num + + @property + def event_instance_run_num(self): + """Gets the event_instance_run_num of this PlaybookInstanceMonitorDetail. + + 时间触发执行次数 + + :return: The event_instance_run_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._event_instance_run_num + + @event_instance_run_num.setter + def event_instance_run_num(self, event_instance_run_num): + """Sets the event_instance_run_num of this PlaybookInstanceMonitorDetail. + + 时间触发执行次数 + + :param event_instance_run_num: The event_instance_run_num of this PlaybookInstanceMonitorDetail. + :type event_instance_run_num: int + """ + self._event_instance_run_num = event_instance_run_num + + @property + def min_run_time_instance(self): + """Gets the min_run_time_instance of this PlaybookInstanceMonitorDetail. + + :return: The min_run_time_instance of this PlaybookInstanceMonitorDetail. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + """ + return self._min_run_time_instance + + @min_run_time_instance.setter + def min_run_time_instance(self, min_run_time_instance): + """Sets the min_run_time_instance of this PlaybookInstanceMonitorDetail. + + :param min_run_time_instance: The min_run_time_instance of this PlaybookInstanceMonitorDetail. + :type min_run_time_instance: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + """ + self._min_run_time_instance = min_run_time_instance + + @property + def max_run_time_instance(self): + """Gets the max_run_time_instance of this PlaybookInstanceMonitorDetail. + + :return: The max_run_time_instance of this PlaybookInstanceMonitorDetail. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + """ + return self._max_run_time_instance + + @max_run_time_instance.setter + def max_run_time_instance(self, max_run_time_instance): + """Sets the max_run_time_instance of this PlaybookInstanceMonitorDetail. + + :param max_run_time_instance: The max_run_time_instance of this PlaybookInstanceMonitorDetail. + :type max_run_time_instance: :class:`huaweicloudsdksa.v2.PlaybookInstanceRunStatistics` + """ + self._max_run_time_instance = max_run_time_instance + + @property + def total_instance_num(self): + """Gets the total_instance_num of this PlaybookInstanceMonitorDetail. + + 剧本实例总数 + + :return: The total_instance_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._total_instance_num + + @total_instance_num.setter + def total_instance_num(self, total_instance_num): + """Sets the total_instance_num of this PlaybookInstanceMonitorDetail. + + 剧本实例总数 + + :param total_instance_num: The total_instance_num of this PlaybookInstanceMonitorDetail. + :type total_instance_num: int + """ + self._total_instance_num = total_instance_num + + @property + def success_instance_num(self): + """Gets the success_instance_num of this PlaybookInstanceMonitorDetail. + + 运行成功实例数量 + + :return: The success_instance_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._success_instance_num + + @success_instance_num.setter + def success_instance_num(self, success_instance_num): + """Sets the success_instance_num of this PlaybookInstanceMonitorDetail. + + 运行成功实例数量 + + :param success_instance_num: The success_instance_num of this PlaybookInstanceMonitorDetail. + :type success_instance_num: int + """ + self._success_instance_num = success_instance_num + + @property + def fail_instance_num(self): + """Gets the fail_instance_num of this PlaybookInstanceMonitorDetail. + + 运行失败实例数量 + + :return: The fail_instance_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._fail_instance_num + + @fail_instance_num.setter + def fail_instance_num(self, fail_instance_num): + """Sets the fail_instance_num of this PlaybookInstanceMonitorDetail. + + 运行失败实例数量 + + :param fail_instance_num: The fail_instance_num of this PlaybookInstanceMonitorDetail. + :type fail_instance_num: int + """ + self._fail_instance_num = fail_instance_num + + @property + def terminate_instance_num(self): + """Gets the terminate_instance_num of this PlaybookInstanceMonitorDetail. + + 运行终止实例数量 + + :return: The terminate_instance_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._terminate_instance_num + + @terminate_instance_num.setter + def terminate_instance_num(self, terminate_instance_num): + """Sets the terminate_instance_num of this PlaybookInstanceMonitorDetail. + + 运行终止实例数量 + + :param terminate_instance_num: The terminate_instance_num of this PlaybookInstanceMonitorDetail. + :type terminate_instance_num: int + """ + self._terminate_instance_num = terminate_instance_num + + @property + def running_instance_num(self): + """Gets the running_instance_num of this PlaybookInstanceMonitorDetail. + + 运行中实例数量 + + :return: The running_instance_num of this PlaybookInstanceMonitorDetail. + :rtype: int + """ + return self._running_instance_num + + @running_instance_num.setter + def running_instance_num(self, running_instance_num): + """Sets the running_instance_num of this PlaybookInstanceMonitorDetail. + + 运行中实例数量 + + :param running_instance_num: The running_instance_num of this PlaybookInstanceMonitorDetail. + :type running_instance_num: int + """ + self._running_instance_num = running_instance_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookInstanceMonitorDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_run_statistics.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_run_statistics.py new file mode 100755 index 0000000000..3fa32f12ea --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_instance_run_statistics.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookInstanceRunStatistics: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'playbook_instance_id': 'str', + 'playbook_instance_name': 'str' + } + + attribute_map = { + 'playbook_instance_id': 'playbook_instance_id', + 'playbook_instance_name': 'playbook_instance_name' + } + + def __init__(self, playbook_instance_id=None, playbook_instance_name=None): + """PlaybookInstanceRunStatistics + + The model defined in huaweicloud sdk + + :param playbook_instance_id: 剧本实例ID + :type playbook_instance_id: str + :param playbook_instance_name: 剧本实例名称 + :type playbook_instance_name: str + """ + + + + self._playbook_instance_id = None + self._playbook_instance_name = None + self.discriminator = None + + if playbook_instance_id is not None: + self.playbook_instance_id = playbook_instance_id + if playbook_instance_name is not None: + self.playbook_instance_name = playbook_instance_name + + @property + def playbook_instance_id(self): + """Gets the playbook_instance_id of this PlaybookInstanceRunStatistics. + + 剧本实例ID + + :return: The playbook_instance_id of this PlaybookInstanceRunStatistics. + :rtype: str + """ + return self._playbook_instance_id + + @playbook_instance_id.setter + def playbook_instance_id(self, playbook_instance_id): + """Sets the playbook_instance_id of this PlaybookInstanceRunStatistics. + + 剧本实例ID + + :param playbook_instance_id: The playbook_instance_id of this PlaybookInstanceRunStatistics. + :type playbook_instance_id: str + """ + self._playbook_instance_id = playbook_instance_id + + @property + def playbook_instance_name(self): + """Gets the playbook_instance_name of this PlaybookInstanceRunStatistics. + + 剧本实例名称 + + :return: The playbook_instance_name of this PlaybookInstanceRunStatistics. + :rtype: str + """ + return self._playbook_instance_name + + @playbook_instance_name.setter + def playbook_instance_name(self, playbook_instance_name): + """Sets the playbook_instance_name of this PlaybookInstanceRunStatistics. + + 剧本实例名称 + + :param playbook_instance_name: The playbook_instance_name of this PlaybookInstanceRunStatistics. + :type playbook_instance_name: str + """ + self._playbook_instance_name = playbook_instance_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookInstanceRunStatistics): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_statistic_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_statistic_detail.py new file mode 100755 index 0000000000..b5301b078a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_statistic_detail.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookStatisticDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'unapproved_num': 'int', + 'disabled_num': 'int', + 'enabled_num': 'int' + } + + attribute_map = { + 'unapproved_num': 'unapproved_num', + 'disabled_num': 'disabled_num', + 'enabled_num': 'enabled_num' + } + + def __init__(self, unapproved_num=None, disabled_num=None, enabled_num=None): + """PlaybookStatisticDetail + + The model defined in huaweicloud sdk + + :param unapproved_num: 未审核剧本数量 + :type unapproved_num: int + :param disabled_num: 未启用剧本数量 + :type disabled_num: int + :param enabled_num: 已启用剧本数量 + :type enabled_num: int + """ + + + + self._unapproved_num = None + self._disabled_num = None + self._enabled_num = None + self.discriminator = None + + if unapproved_num is not None: + self.unapproved_num = unapproved_num + if disabled_num is not None: + self.disabled_num = disabled_num + if enabled_num is not None: + self.enabled_num = enabled_num + + @property + def unapproved_num(self): + """Gets the unapproved_num of this PlaybookStatisticDetail. + + 未审核剧本数量 + + :return: The unapproved_num of this PlaybookStatisticDetail. + :rtype: int + """ + return self._unapproved_num + + @unapproved_num.setter + def unapproved_num(self, unapproved_num): + """Sets the unapproved_num of this PlaybookStatisticDetail. + + 未审核剧本数量 + + :param unapproved_num: The unapproved_num of this PlaybookStatisticDetail. + :type unapproved_num: int + """ + self._unapproved_num = unapproved_num + + @property + def disabled_num(self): + """Gets the disabled_num of this PlaybookStatisticDetail. + + 未启用剧本数量 + + :return: The disabled_num of this PlaybookStatisticDetail. + :rtype: int + """ + return self._disabled_num + + @disabled_num.setter + def disabled_num(self, disabled_num): + """Sets the disabled_num of this PlaybookStatisticDetail. + + 未启用剧本数量 + + :param disabled_num: The disabled_num of this PlaybookStatisticDetail. + :type disabled_num: int + """ + self._disabled_num = disabled_num + + @property + def enabled_num(self): + """Gets the enabled_num of this PlaybookStatisticDetail. + + 已启用剧本数量 + + :return: The enabled_num of this PlaybookStatisticDetail. + :rtype: int + """ + return self._enabled_num + + @enabled_num.setter + def enabled_num(self, enabled_num): + """Sets the enabled_num of this PlaybookStatisticDetail. + + 已启用剧本数量 + + :param enabled_num: The enabled_num of this PlaybookStatisticDetail. + :type enabled_num: int + """ + self._enabled_num = enabled_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookStatisticDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_info.py new file mode 100755 index 0000000000..cd02aebb96 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_info.py @@ -0,0 +1,839 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookVersionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'description': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'creator_id': 'str', + 'modifier_id': 'str', + 'playbook_id': 'str', + 'version': 'str', + 'run_mode': 'str', + 'enabled': 'bool', + 'status': 'str', + 'action_strategy': 'str', + 'actions': 'list[ActionInfo]', + 'rule_enable': 'bool', + 'rules': 'RuleInfo', + 'dataclass_id': 'str', + 'trigger_type': 'str', + 'dataobject_create': 'bool', + 'dataobject_update': 'bool', + 'dataobject_delete': 'bool', + 'version_type': 'int', + 'rule_id': 'str', + 'dataclass_name': 'str', + 'approve_name': 'str', + 'dataobject_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'description': 'description', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'creator_id': 'creator_id', + 'modifier_id': 'modifier_id', + 'playbook_id': 'playbook_id', + 'version': 'version', + 'run_mode': 'run_mode', + 'enabled': 'enabled', + 'status': 'status', + 'action_strategy': 'action_strategy', + 'actions': 'actions', + 'rule_enable': 'rule_enable', + 'rules': 'rules', + 'dataclass_id': 'dataclass_id', + 'trigger_type': 'trigger_type', + 'dataobject_create': 'dataobject_create', + 'dataobject_update': 'dataobject_update', + 'dataobject_delete': 'dataobject_delete', + 'version_type': 'version_type', + 'rule_id': 'rule_id', + 'dataclass_name': 'dataclass_name', + 'approve_name': 'approve_name', + 'dataobject_id': 'dataobject_id' + } + + def __init__(self, id=None, description=None, create_time=None, update_time=None, project_id=None, creator_id=None, modifier_id=None, playbook_id=None, version=None, run_mode=None, enabled=None, status=None, action_strategy=None, actions=None, rule_enable=None, rules=None, dataclass_id=None, trigger_type=None, dataobject_create=None, dataobject_update=None, dataobject_delete=None, version_type=None, rule_id=None, dataclass_name=None, approve_name=None, dataobject_id=None): + """PlaybookVersionInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param description: The description, display only + :type description: str + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Project id value + :type project_id: str + :param creator_id: Creator id value + :type creator_id: str + :param modifier_id: Modifier id value + :type modifier_id: str + :param playbook_id: Playbook id. + :type playbook_id: str + :param version: version + :type version: str + :param run_mode: Run mode of this playbook. automatic, manual + :type run_mode: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param status: Status of approvement. editing, approving, unpassed, published + :type status: str + :param action_strategy: Strategy of action. sync or async + :type action_strategy: str + :param actions: Information of actions. + :type actions: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + :param rule_enable: If the condition filter is enabled. + :type rule_enable: bool + :param rules: + :type rules: :class:`huaweicloudsdksa.v2.RuleInfo` + :param dataclass_id: bind dataclass id + :type dataclass_id: str + :param trigger_type: Strategy of action. event, timer + :type trigger_type: str + :param dataobject_create: if trigger when dataobject is created + :type dataobject_create: bool + :param dataobject_update: if trigger when dataobject is updated + :type dataobject_update: bool + :param dataobject_delete: if trigger when dataobject is deleted + :type dataobject_delete: bool + :param version_type: 版本类型 + :type version_type: int + :param rule_id: 过滤规则ID + :type rule_id: str + :param dataclass_name: 数据类名称 + :type dataclass_name: str + :param approve_name: 审核者 + :type approve_name: str + :param dataobject_id: dataobject id + :type dataobject_id: str + """ + + + + self._id = None + self._description = None + self._create_time = None + self._update_time = None + self._project_id = None + self._creator_id = None + self._modifier_id = None + self._playbook_id = None + self._version = None + self._run_mode = None + self._enabled = None + self._status = None + self._action_strategy = None + self._actions = None + self._rule_enable = None + self._rules = None + self._dataclass_id = None + self._trigger_type = None + self._dataobject_create = None + self._dataobject_update = None + self._dataobject_delete = None + self._version_type = None + self._rule_id = None + self._dataclass_name = None + self._approve_name = None + self._dataobject_id = None + self.discriminator = None + + if id is not None: + self.id = id + if description is not None: + self.description = description + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if creator_id is not None: + self.creator_id = creator_id + if modifier_id is not None: + self.modifier_id = modifier_id + if playbook_id is not None: + self.playbook_id = playbook_id + if version is not None: + self.version = version + if run_mode is not None: + self.run_mode = run_mode + if enabled is not None: + self.enabled = enabled + if status is not None: + self.status = status + if action_strategy is not None: + self.action_strategy = action_strategy + if actions is not None: + self.actions = actions + if rule_enable is not None: + self.rule_enable = rule_enable + if rules is not None: + self.rules = rules + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if trigger_type is not None: + self.trigger_type = trigger_type + if dataobject_create is not None: + self.dataobject_create = dataobject_create + if dataobject_update is not None: + self.dataobject_update = dataobject_update + if dataobject_delete is not None: + self.dataobject_delete = dataobject_delete + if version_type is not None: + self.version_type = version_type + if rule_id is not None: + self.rule_id = rule_id + if dataclass_name is not None: + self.dataclass_name = dataclass_name + if approve_name is not None: + self.approve_name = approve_name + if dataobject_id is not None: + self.dataobject_id = dataobject_id + + @property + def id(self): + """Gets the id of this PlaybookVersionInfo. + + Id value + + :return: The id of this PlaybookVersionInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PlaybookVersionInfo. + + Id value + + :param id: The id of this PlaybookVersionInfo. + :type id: str + """ + self._id = id + + @property + def description(self): + """Gets the description of this PlaybookVersionInfo. + + The description, display only + + :return: The description of this PlaybookVersionInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PlaybookVersionInfo. + + The description, display only + + :param description: The description of this PlaybookVersionInfo. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this PlaybookVersionInfo. + + Create time + + :return: The create_time of this PlaybookVersionInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PlaybookVersionInfo. + + Create time + + :param create_time: The create_time of this PlaybookVersionInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PlaybookVersionInfo. + + Update time + + :return: The update_time of this PlaybookVersionInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PlaybookVersionInfo. + + Update time + + :param update_time: The update_time of this PlaybookVersionInfo. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this PlaybookVersionInfo. + + Project id value + + :return: The project_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PlaybookVersionInfo. + + Project id value + + :param project_id: The project_id of this PlaybookVersionInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def creator_id(self): + """Gets the creator_id of this PlaybookVersionInfo. + + Creator id value + + :return: The creator_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this PlaybookVersionInfo. + + Creator id value + + :param creator_id: The creator_id of this PlaybookVersionInfo. + :type creator_id: str + """ + self._creator_id = creator_id + + @property + def modifier_id(self): + """Gets the modifier_id of this PlaybookVersionInfo. + + Modifier id value + + :return: The modifier_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._modifier_id + + @modifier_id.setter + def modifier_id(self, modifier_id): + """Sets the modifier_id of this PlaybookVersionInfo. + + Modifier id value + + :param modifier_id: The modifier_id of this PlaybookVersionInfo. + :type modifier_id: str + """ + self._modifier_id = modifier_id + + @property + def playbook_id(self): + """Gets the playbook_id of this PlaybookVersionInfo. + + Playbook id. + + :return: The playbook_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this PlaybookVersionInfo. + + Playbook id. + + :param playbook_id: The playbook_id of this PlaybookVersionInfo. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def version(self): + """Gets the version of this PlaybookVersionInfo. + + version + + :return: The version of this PlaybookVersionInfo. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PlaybookVersionInfo. + + version + + :param version: The version of this PlaybookVersionInfo. + :type version: str + """ + self._version = version + + @property + def run_mode(self): + """Gets the run_mode of this PlaybookVersionInfo. + + Run mode of this playbook. automatic, manual + + :return: The run_mode of this PlaybookVersionInfo. + :rtype: str + """ + return self._run_mode + + @run_mode.setter + def run_mode(self, run_mode): + """Sets the run_mode of this PlaybookVersionInfo. + + Run mode of this playbook. automatic, manual + + :param run_mode: The run_mode of this PlaybookVersionInfo. + :type run_mode: str + """ + self._run_mode = run_mode + + @property + def enabled(self): + """Gets the enabled of this PlaybookVersionInfo. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this PlaybookVersionInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this PlaybookVersionInfo. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this PlaybookVersionInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def status(self): + """Gets the status of this PlaybookVersionInfo. + + Status of approvement. editing, approving, unpassed, published + + :return: The status of this PlaybookVersionInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PlaybookVersionInfo. + + Status of approvement. editing, approving, unpassed, published + + :param status: The status of this PlaybookVersionInfo. + :type status: str + """ + self._status = status + + @property + def action_strategy(self): + """Gets the action_strategy of this PlaybookVersionInfo. + + Strategy of action. sync or async + + :return: The action_strategy of this PlaybookVersionInfo. + :rtype: str + """ + return self._action_strategy + + @action_strategy.setter + def action_strategy(self, action_strategy): + """Sets the action_strategy of this PlaybookVersionInfo. + + Strategy of action. sync or async + + :param action_strategy: The action_strategy of this PlaybookVersionInfo. + :type action_strategy: str + """ + self._action_strategy = action_strategy + + @property + def actions(self): + """Gets the actions of this PlaybookVersionInfo. + + Information of actions. + + :return: The actions of this PlaybookVersionInfo. + :rtype: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + return self._actions + + @actions.setter + def actions(self, actions): + """Sets the actions of this PlaybookVersionInfo. + + Information of actions. + + :param actions: The actions of this PlaybookVersionInfo. + :type actions: list[:class:`huaweicloudsdksa.v2.ActionInfo`] + """ + self._actions = actions + + @property + def rule_enable(self): + """Gets the rule_enable of this PlaybookVersionInfo. + + If the condition filter is enabled. + + :return: The rule_enable of this PlaybookVersionInfo. + :rtype: bool + """ + return self._rule_enable + + @rule_enable.setter + def rule_enable(self, rule_enable): + """Sets the rule_enable of this PlaybookVersionInfo. + + If the condition filter is enabled. + + :param rule_enable: The rule_enable of this PlaybookVersionInfo. + :type rule_enable: bool + """ + self._rule_enable = rule_enable + + @property + def rules(self): + """Gets the rules of this PlaybookVersionInfo. + + :return: The rules of this PlaybookVersionInfo. + :rtype: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this PlaybookVersionInfo. + + :param rules: The rules of this PlaybookVersionInfo. + :type rules: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + self._rules = rules + + @property + def dataclass_id(self): + """Gets the dataclass_id of this PlaybookVersionInfo. + + bind dataclass id + + :return: The dataclass_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this PlaybookVersionInfo. + + bind dataclass id + + :param dataclass_id: The dataclass_id of this PlaybookVersionInfo. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def trigger_type(self): + """Gets the trigger_type of this PlaybookVersionInfo. + + Strategy of action. event, timer + + :return: The trigger_type of this PlaybookVersionInfo. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this PlaybookVersionInfo. + + Strategy of action. event, timer + + :param trigger_type: The trigger_type of this PlaybookVersionInfo. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def dataobject_create(self): + """Gets the dataobject_create of this PlaybookVersionInfo. + + if trigger when dataobject is created + + :return: The dataobject_create of this PlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_create + + @dataobject_create.setter + def dataobject_create(self, dataobject_create): + """Sets the dataobject_create of this PlaybookVersionInfo. + + if trigger when dataobject is created + + :param dataobject_create: The dataobject_create of this PlaybookVersionInfo. + :type dataobject_create: bool + """ + self._dataobject_create = dataobject_create + + @property + def dataobject_update(self): + """Gets the dataobject_update of this PlaybookVersionInfo. + + if trigger when dataobject is updated + + :return: The dataobject_update of this PlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_update + + @dataobject_update.setter + def dataobject_update(self, dataobject_update): + """Sets the dataobject_update of this PlaybookVersionInfo. + + if trigger when dataobject is updated + + :param dataobject_update: The dataobject_update of this PlaybookVersionInfo. + :type dataobject_update: bool + """ + self._dataobject_update = dataobject_update + + @property + def dataobject_delete(self): + """Gets the dataobject_delete of this PlaybookVersionInfo. + + if trigger when dataobject is deleted + + :return: The dataobject_delete of this PlaybookVersionInfo. + :rtype: bool + """ + return self._dataobject_delete + + @dataobject_delete.setter + def dataobject_delete(self, dataobject_delete): + """Sets the dataobject_delete of this PlaybookVersionInfo. + + if trigger when dataobject is deleted + + :param dataobject_delete: The dataobject_delete of this PlaybookVersionInfo. + :type dataobject_delete: bool + """ + self._dataobject_delete = dataobject_delete + + @property + def version_type(self): + """Gets the version_type of this PlaybookVersionInfo. + + 版本类型 + + :return: The version_type of this PlaybookVersionInfo. + :rtype: int + """ + return self._version_type + + @version_type.setter + def version_type(self, version_type): + """Sets the version_type of this PlaybookVersionInfo. + + 版本类型 + + :param version_type: The version_type of this PlaybookVersionInfo. + :type version_type: int + """ + self._version_type = version_type + + @property + def rule_id(self): + """Gets the rule_id of this PlaybookVersionInfo. + + 过滤规则ID + + :return: The rule_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this PlaybookVersionInfo. + + 过滤规则ID + + :param rule_id: The rule_id of this PlaybookVersionInfo. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def dataclass_name(self): + """Gets the dataclass_name of this PlaybookVersionInfo. + + 数据类名称 + + :return: The dataclass_name of this PlaybookVersionInfo. + :rtype: str + """ + return self._dataclass_name + + @dataclass_name.setter + def dataclass_name(self, dataclass_name): + """Sets the dataclass_name of this PlaybookVersionInfo. + + 数据类名称 + + :param dataclass_name: The dataclass_name of this PlaybookVersionInfo. + :type dataclass_name: str + """ + self._dataclass_name = dataclass_name + + @property + def approve_name(self): + """Gets the approve_name of this PlaybookVersionInfo. + + 审核者 + + :return: The approve_name of this PlaybookVersionInfo. + :rtype: str + """ + return self._approve_name + + @approve_name.setter + def approve_name(self, approve_name): + """Sets the approve_name of this PlaybookVersionInfo. + + 审核者 + + :param approve_name: The approve_name of this PlaybookVersionInfo. + :type approve_name: str + """ + self._approve_name = approve_name + + @property + def dataobject_id(self): + """Gets the dataobject_id of this PlaybookVersionInfo. + + dataobject id + + :return: The dataobject_id of this PlaybookVersionInfo. + :rtype: str + """ + return self._dataobject_id + + @dataobject_id.setter + def dataobject_id(self, dataobject_id): + """Sets the dataobject_id of this PlaybookVersionInfo. + + dataobject id + + :param dataobject_id: The dataobject_id of this PlaybookVersionInfo. + :type dataobject_id: str + """ + self._dataobject_id = dataobject_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookVersionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_list_entity.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_list_entity.py new file mode 100755 index 0000000000..92c86f3191 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/playbook_version_list_entity.py @@ -0,0 +1,785 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PlaybookVersionListEntity: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'description': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'creator_id': 'str', + 'modifier_id': 'str', + 'playbook_id': 'str', + 'version': 'str', + 'run_mode': 'str', + 'enabled': 'bool', + 'status': 'str', + 'action_strategy': 'str', + 'rule_enable': 'bool', + 'dataclass_id': 'str', + 'trigger_type': 'str', + 'dataobject_create': 'bool', + 'dataobject_update': 'bool', + 'dataobject_delete': 'bool', + 'version_type': 'int', + 'rule_id': 'str', + 'dataclass_name': 'str', + 'approve_name': 'str', + 'dataobject_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'description': 'description', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'creator_id': 'creator_id', + 'modifier_id': 'modifier_id', + 'playbook_id': 'playbook_id', + 'version': 'version', + 'run_mode': 'run_mode', + 'enabled': 'enabled', + 'status': 'status', + 'action_strategy': 'action_strategy', + 'rule_enable': 'rule_enable', + 'dataclass_id': 'dataclass_id', + 'trigger_type': 'trigger_type', + 'dataobject_create': 'dataobject_create', + 'dataobject_update': 'dataobject_update', + 'dataobject_delete': 'dataobject_delete', + 'version_type': 'version_type', + 'rule_id': 'rule_id', + 'dataclass_name': 'dataclass_name', + 'approve_name': 'approve_name', + 'dataobject_id': 'dataobject_id' + } + + def __init__(self, id=None, description=None, create_time=None, update_time=None, project_id=None, creator_id=None, modifier_id=None, playbook_id=None, version=None, run_mode=None, enabled=None, status=None, action_strategy=None, rule_enable=None, dataclass_id=None, trigger_type=None, dataobject_create=None, dataobject_update=None, dataobject_delete=None, version_type=None, rule_id=None, dataclass_name=None, approve_name=None, dataobject_id=None): + """PlaybookVersionListEntity + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param description: The description, display only + :type description: str + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Project id value + :type project_id: str + :param creator_id: Creator id value + :type creator_id: str + :param modifier_id: Modifier id value + :type modifier_id: str + :param playbook_id: Playbook id. + :type playbook_id: str + :param version: version + :type version: str + :param run_mode: Run mode of this playbook. automatic, manual + :type run_mode: str + :param enabled: If is enabled, false for disenabled, true for enabled + :type enabled: bool + :param status: Status of approvement. editing, approving, unpassed, published + :type status: str + :param action_strategy: Strategy of action. sync or async + :type action_strategy: str + :param rule_enable: If the condition filter is enabled. + :type rule_enable: bool + :param dataclass_id: bind dataclass id + :type dataclass_id: str + :param trigger_type: Strategy of action. event, timer + :type trigger_type: str + :param dataobject_create: if trigger when dataobject is created + :type dataobject_create: bool + :param dataobject_update: if trigger when dataobject is updated + :type dataobject_update: bool + :param dataobject_delete: if trigger when dataobject is deleted + :type dataobject_delete: bool + :param version_type: 版本类型 + :type version_type: int + :param rule_id: 过滤规则ID + :type rule_id: str + :param dataclass_name: 数据类名称 + :type dataclass_name: str + :param approve_name: 审核者 + :type approve_name: str + :param dataobject_id: dataobject id + :type dataobject_id: str + """ + + + + self._id = None + self._description = None + self._create_time = None + self._update_time = None + self._project_id = None + self._creator_id = None + self._modifier_id = None + self._playbook_id = None + self._version = None + self._run_mode = None + self._enabled = None + self._status = None + self._action_strategy = None + self._rule_enable = None + self._dataclass_id = None + self._trigger_type = None + self._dataobject_create = None + self._dataobject_update = None + self._dataobject_delete = None + self._version_type = None + self._rule_id = None + self._dataclass_name = None + self._approve_name = None + self._dataobject_id = None + self.discriminator = None + + if id is not None: + self.id = id + if description is not None: + self.description = description + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if creator_id is not None: + self.creator_id = creator_id + if modifier_id is not None: + self.modifier_id = modifier_id + if playbook_id is not None: + self.playbook_id = playbook_id + if version is not None: + self.version = version + if run_mode is not None: + self.run_mode = run_mode + if enabled is not None: + self.enabled = enabled + if status is not None: + self.status = status + if action_strategy is not None: + self.action_strategy = action_strategy + if rule_enable is not None: + self.rule_enable = rule_enable + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if trigger_type is not None: + self.trigger_type = trigger_type + if dataobject_create is not None: + self.dataobject_create = dataobject_create + if dataobject_update is not None: + self.dataobject_update = dataobject_update + if dataobject_delete is not None: + self.dataobject_delete = dataobject_delete + if version_type is not None: + self.version_type = version_type + if rule_id is not None: + self.rule_id = rule_id + if dataclass_name is not None: + self.dataclass_name = dataclass_name + if approve_name is not None: + self.approve_name = approve_name + if dataobject_id is not None: + self.dataobject_id = dataobject_id + + @property + def id(self): + """Gets the id of this PlaybookVersionListEntity. + + Id value + + :return: The id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PlaybookVersionListEntity. + + Id value + + :param id: The id of this PlaybookVersionListEntity. + :type id: str + """ + self._id = id + + @property + def description(self): + """Gets the description of this PlaybookVersionListEntity. + + The description, display only + + :return: The description of this PlaybookVersionListEntity. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PlaybookVersionListEntity. + + The description, display only + + :param description: The description of this PlaybookVersionListEntity. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this PlaybookVersionListEntity. + + Create time + + :return: The create_time of this PlaybookVersionListEntity. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PlaybookVersionListEntity. + + Create time + + :param create_time: The create_time of this PlaybookVersionListEntity. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PlaybookVersionListEntity. + + Update time + + :return: The update_time of this PlaybookVersionListEntity. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PlaybookVersionListEntity. + + Update time + + :param update_time: The update_time of this PlaybookVersionListEntity. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this PlaybookVersionListEntity. + + Project id value + + :return: The project_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PlaybookVersionListEntity. + + Project id value + + :param project_id: The project_id of this PlaybookVersionListEntity. + :type project_id: str + """ + self._project_id = project_id + + @property + def creator_id(self): + """Gets the creator_id of this PlaybookVersionListEntity. + + Creator id value + + :return: The creator_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this PlaybookVersionListEntity. + + Creator id value + + :param creator_id: The creator_id of this PlaybookVersionListEntity. + :type creator_id: str + """ + self._creator_id = creator_id + + @property + def modifier_id(self): + """Gets the modifier_id of this PlaybookVersionListEntity. + + Modifier id value + + :return: The modifier_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._modifier_id + + @modifier_id.setter + def modifier_id(self, modifier_id): + """Sets the modifier_id of this PlaybookVersionListEntity. + + Modifier id value + + :param modifier_id: The modifier_id of this PlaybookVersionListEntity. + :type modifier_id: str + """ + self._modifier_id = modifier_id + + @property + def playbook_id(self): + """Gets the playbook_id of this PlaybookVersionListEntity. + + Playbook id. + + :return: The playbook_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this PlaybookVersionListEntity. + + Playbook id. + + :param playbook_id: The playbook_id of this PlaybookVersionListEntity. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def version(self): + """Gets the version of this PlaybookVersionListEntity. + + version + + :return: The version of this PlaybookVersionListEntity. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PlaybookVersionListEntity. + + version + + :param version: The version of this PlaybookVersionListEntity. + :type version: str + """ + self._version = version + + @property + def run_mode(self): + """Gets the run_mode of this PlaybookVersionListEntity. + + Run mode of this playbook. automatic, manual + + :return: The run_mode of this PlaybookVersionListEntity. + :rtype: str + """ + return self._run_mode + + @run_mode.setter + def run_mode(self, run_mode): + """Sets the run_mode of this PlaybookVersionListEntity. + + Run mode of this playbook. automatic, manual + + :param run_mode: The run_mode of this PlaybookVersionListEntity. + :type run_mode: str + """ + self._run_mode = run_mode + + @property + def enabled(self): + """Gets the enabled of this PlaybookVersionListEntity. + + If is enabled, false for disenabled, true for enabled + + :return: The enabled of this PlaybookVersionListEntity. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this PlaybookVersionListEntity. + + If is enabled, false for disenabled, true for enabled + + :param enabled: The enabled of this PlaybookVersionListEntity. + :type enabled: bool + """ + self._enabled = enabled + + @property + def status(self): + """Gets the status of this PlaybookVersionListEntity. + + Status of approvement. editing, approving, unpassed, published + + :return: The status of this PlaybookVersionListEntity. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this PlaybookVersionListEntity. + + Status of approvement. editing, approving, unpassed, published + + :param status: The status of this PlaybookVersionListEntity. + :type status: str + """ + self._status = status + + @property + def action_strategy(self): + """Gets the action_strategy of this PlaybookVersionListEntity. + + Strategy of action. sync or async + + :return: The action_strategy of this PlaybookVersionListEntity. + :rtype: str + """ + return self._action_strategy + + @action_strategy.setter + def action_strategy(self, action_strategy): + """Sets the action_strategy of this PlaybookVersionListEntity. + + Strategy of action. sync or async + + :param action_strategy: The action_strategy of this PlaybookVersionListEntity. + :type action_strategy: str + """ + self._action_strategy = action_strategy + + @property + def rule_enable(self): + """Gets the rule_enable of this PlaybookVersionListEntity. + + If the condition filter is enabled. + + :return: The rule_enable of this PlaybookVersionListEntity. + :rtype: bool + """ + return self._rule_enable + + @rule_enable.setter + def rule_enable(self, rule_enable): + """Sets the rule_enable of this PlaybookVersionListEntity. + + If the condition filter is enabled. + + :param rule_enable: The rule_enable of this PlaybookVersionListEntity. + :type rule_enable: bool + """ + self._rule_enable = rule_enable + + @property + def dataclass_id(self): + """Gets the dataclass_id of this PlaybookVersionListEntity. + + bind dataclass id + + :return: The dataclass_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this PlaybookVersionListEntity. + + bind dataclass id + + :param dataclass_id: The dataclass_id of this PlaybookVersionListEntity. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def trigger_type(self): + """Gets the trigger_type of this PlaybookVersionListEntity. + + Strategy of action. event, timer + + :return: The trigger_type of this PlaybookVersionListEntity. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this PlaybookVersionListEntity. + + Strategy of action. event, timer + + :param trigger_type: The trigger_type of this PlaybookVersionListEntity. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def dataobject_create(self): + """Gets the dataobject_create of this PlaybookVersionListEntity. + + if trigger when dataobject is created + + :return: The dataobject_create of this PlaybookVersionListEntity. + :rtype: bool + """ + return self._dataobject_create + + @dataobject_create.setter + def dataobject_create(self, dataobject_create): + """Sets the dataobject_create of this PlaybookVersionListEntity. + + if trigger when dataobject is created + + :param dataobject_create: The dataobject_create of this PlaybookVersionListEntity. + :type dataobject_create: bool + """ + self._dataobject_create = dataobject_create + + @property + def dataobject_update(self): + """Gets the dataobject_update of this PlaybookVersionListEntity. + + if trigger when dataobject is updated + + :return: The dataobject_update of this PlaybookVersionListEntity. + :rtype: bool + """ + return self._dataobject_update + + @dataobject_update.setter + def dataobject_update(self, dataobject_update): + """Sets the dataobject_update of this PlaybookVersionListEntity. + + if trigger when dataobject is updated + + :param dataobject_update: The dataobject_update of this PlaybookVersionListEntity. + :type dataobject_update: bool + """ + self._dataobject_update = dataobject_update + + @property + def dataobject_delete(self): + """Gets the dataobject_delete of this PlaybookVersionListEntity. + + if trigger when dataobject is deleted + + :return: The dataobject_delete of this PlaybookVersionListEntity. + :rtype: bool + """ + return self._dataobject_delete + + @dataobject_delete.setter + def dataobject_delete(self, dataobject_delete): + """Sets the dataobject_delete of this PlaybookVersionListEntity. + + if trigger when dataobject is deleted + + :param dataobject_delete: The dataobject_delete of this PlaybookVersionListEntity. + :type dataobject_delete: bool + """ + self._dataobject_delete = dataobject_delete + + @property + def version_type(self): + """Gets the version_type of this PlaybookVersionListEntity. + + 版本类型 + + :return: The version_type of this PlaybookVersionListEntity. + :rtype: int + """ + return self._version_type + + @version_type.setter + def version_type(self, version_type): + """Sets the version_type of this PlaybookVersionListEntity. + + 版本类型 + + :param version_type: The version_type of this PlaybookVersionListEntity. + :type version_type: int + """ + self._version_type = version_type + + @property + def rule_id(self): + """Gets the rule_id of this PlaybookVersionListEntity. + + 过滤规则ID + + :return: The rule_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this PlaybookVersionListEntity. + + 过滤规则ID + + :param rule_id: The rule_id of this PlaybookVersionListEntity. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def dataclass_name(self): + """Gets the dataclass_name of this PlaybookVersionListEntity. + + 数据类名称 + + :return: The dataclass_name of this PlaybookVersionListEntity. + :rtype: str + """ + return self._dataclass_name + + @dataclass_name.setter + def dataclass_name(self, dataclass_name): + """Sets the dataclass_name of this PlaybookVersionListEntity. + + 数据类名称 + + :param dataclass_name: The dataclass_name of this PlaybookVersionListEntity. + :type dataclass_name: str + """ + self._dataclass_name = dataclass_name + + @property + def approve_name(self): + """Gets the approve_name of this PlaybookVersionListEntity. + + 审核者 + + :return: The approve_name of this PlaybookVersionListEntity. + :rtype: str + """ + return self._approve_name + + @approve_name.setter + def approve_name(self, approve_name): + """Sets the approve_name of this PlaybookVersionListEntity. + + 审核者 + + :param approve_name: The approve_name of this PlaybookVersionListEntity. + :type approve_name: str + """ + self._approve_name = approve_name + + @property + def dataobject_id(self): + """Gets the dataobject_id of this PlaybookVersionListEntity. + + dataobject id + + :return: The dataobject_id of this PlaybookVersionListEntity. + :rtype: str + """ + return self._dataobject_id + + @dataobject_id.setter + def dataobject_id(self, dataobject_id): + """Sets the dataobject_id of this PlaybookVersionListEntity. + + dataobject id + + :param dataobject_id: The dataobject_id of this PlaybookVersionListEntity. + :type dataobject_id: str + """ + self._dataobject_id = dataobject_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PlaybookVersionListEntity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/rule_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/rule_info.py new file mode 100755 index 0000000000..a3b4bdb06f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/rule_info.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RuleInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'project_id': 'str', + 'rule': 'str' + } + + attribute_map = { + 'id': 'id', + 'project_id': 'project_id', + 'rule': 'rule' + } + + def __init__(self, id=None, project_id=None, rule=None): + """RuleInfo + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param project_id: Project id value + :type project_id: str + :param rule: Project id value + :type rule: str + """ + + + + self._id = None + self._project_id = None + self._rule = None + self.discriminator = None + + if id is not None: + self.id = id + if project_id is not None: + self.project_id = project_id + if rule is not None: + self.rule = rule + + @property + def id(self): + """Gets the id of this RuleInfo. + + Id value + + :return: The id of this RuleInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RuleInfo. + + Id value + + :param id: The id of this RuleInfo. + :type id: str + """ + self._id = id + + @property + def project_id(self): + """Gets the project_id of this RuleInfo. + + Project id value + + :return: The project_id of this RuleInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this RuleInfo. + + Project id value + + :param project_id: The project_id of this RuleInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def rule(self): + """Gets the rule of this RuleInfo. + + Project id value + + :return: The rule of this RuleInfo. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this RuleInfo. + + Project id value + + :param rule: The rule of this RuleInfo. + :type rule: str + """ + self._rule = rule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RuleInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/schedule.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/schedule.py new file mode 100755 index 0000000000..7a71289132 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/schedule.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Schedule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'frequency_interval': 'int', + 'frequency_unit': 'str', + 'period_interval': 'int', + 'period_unit': 'str', + 'delay_interval': 'int', + 'overtime_interval': 'int' + } + + attribute_map = { + 'frequency_interval': 'frequency_interval', + 'frequency_unit': 'frequency_unit', + 'period_interval': 'period_interval', + 'period_unit': 'period_unit', + 'delay_interval': 'delay_interval', + 'overtime_interval': 'overtime_interval' + } + + def __init__(self, frequency_interval=None, frequency_unit=None, period_interval=None, period_unit=None, delay_interval=None, overtime_interval=None): + """Schedule + + The model defined in huaweicloud sdk + + :param frequency_interval: frequency_interval + :type frequency_interval: int + :param frequency_unit: frequency_unit. MINUTE, HOUR, DAY. + :type frequency_unit: str + :param period_interval: frequency_interval + :type period_interval: int + :param period_unit: period_unit. MINUTE, HOUR, DAY. + :type period_unit: str + :param delay_interval: delay_interval + :type delay_interval: int + :param overtime_interval: overtime_interval + :type overtime_interval: int + """ + + + + self._frequency_interval = None + self._frequency_unit = None + self._period_interval = None + self._period_unit = None + self._delay_interval = None + self._overtime_interval = None + self.discriminator = None + + self.frequency_interval = frequency_interval + self.frequency_unit = frequency_unit + self.period_interval = period_interval + self.period_unit = period_unit + if delay_interval is not None: + self.delay_interval = delay_interval + if overtime_interval is not None: + self.overtime_interval = overtime_interval + + @property + def frequency_interval(self): + """Gets the frequency_interval of this Schedule. + + frequency_interval + + :return: The frequency_interval of this Schedule. + :rtype: int + """ + return self._frequency_interval + + @frequency_interval.setter + def frequency_interval(self, frequency_interval): + """Sets the frequency_interval of this Schedule. + + frequency_interval + + :param frequency_interval: The frequency_interval of this Schedule. + :type frequency_interval: int + """ + self._frequency_interval = frequency_interval + + @property + def frequency_unit(self): + """Gets the frequency_unit of this Schedule. + + frequency_unit. MINUTE, HOUR, DAY. + + :return: The frequency_unit of this Schedule. + :rtype: str + """ + return self._frequency_unit + + @frequency_unit.setter + def frequency_unit(self, frequency_unit): + """Sets the frequency_unit of this Schedule. + + frequency_unit. MINUTE, HOUR, DAY. + + :param frequency_unit: The frequency_unit of this Schedule. + :type frequency_unit: str + """ + self._frequency_unit = frequency_unit + + @property + def period_interval(self): + """Gets the period_interval of this Schedule. + + frequency_interval + + :return: The period_interval of this Schedule. + :rtype: int + """ + return self._period_interval + + @period_interval.setter + def period_interval(self, period_interval): + """Sets the period_interval of this Schedule. + + frequency_interval + + :param period_interval: The period_interval of this Schedule. + :type period_interval: int + """ + self._period_interval = period_interval + + @property + def period_unit(self): + """Gets the period_unit of this Schedule. + + period_unit. MINUTE, HOUR, DAY. + + :return: The period_unit of this Schedule. + :rtype: str + """ + return self._period_unit + + @period_unit.setter + def period_unit(self, period_unit): + """Sets the period_unit of this Schedule. + + period_unit. MINUTE, HOUR, DAY. + + :param period_unit: The period_unit of this Schedule. + :type period_unit: str + """ + self._period_unit = period_unit + + @property + def delay_interval(self): + """Gets the delay_interval of this Schedule. + + delay_interval + + :return: The delay_interval of this Schedule. + :rtype: int + """ + return self._delay_interval + + @delay_interval.setter + def delay_interval(self, delay_interval): + """Sets the delay_interval of this Schedule. + + delay_interval + + :param delay_interval: The delay_interval of this Schedule. + :type delay_interval: int + """ + self._delay_interval = delay_interval + + @property + def overtime_interval(self): + """Gets the overtime_interval of this Schedule. + + overtime_interval + + :return: The overtime_interval of this Schedule. + :rtype: int + """ + return self._overtime_interval + + @overtime_interval.setter + def overtime_interval(self, overtime_interval): + """Sets the overtime_interval of this Schedule. + + overtime_interval + + :param overtime_interval: The overtime_interval of this Schedule. + :type overtime_interval: int + """ + self._overtime_interval = overtime_interval + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Schedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail.py new file mode 100755 index 0000000000..eef71d664f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'ShowAlertRsp', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'id': 'str', + 'type': 'str', + 'version': 'int', + 'format_version': 'int', + 'dataclass_ref': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'id': 'id', + 'type': 'type', + 'version': 'version', + 'format_version': 'format_version', + 'dataclass_ref': 'dataclass_ref' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, id=None, type=None, version=None, format_version=None, dataclass_ref=None): + """ShowAlertDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.ShowAlertRsp` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param id: The name, display only + :type id: str + :param type: The name, display only + :type type: str + :param version: The name, display only + :type version: int + :param format_version: The name, display only + :type format_version: int + :param dataclass_ref: + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._id = None + self._type = None + self._version = None + self._format_version = None + self._dataclass_ref = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if id is not None: + self.id = id + if type is not None: + self.type = type + if version is not None: + self.version = version + if format_version is not None: + self.format_version = format_version + if dataclass_ref is not None: + self.dataclass_ref = dataclass_ref + + @property + def data_object(self): + """Gets the data_object of this ShowAlertDetail. + + :return: The data_object of this ShowAlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRsp` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ShowAlertDetail. + + :param data_object: The data_object of this ShowAlertDetail. + :type data_object: :class:`huaweicloudsdksa.v2.ShowAlertRsp` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this ShowAlertDetail. + + Create time + + :return: The create_time of this ShowAlertDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowAlertDetail. + + Create time + + :param create_time: The create_time of this ShowAlertDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowAlertDetail. + + Update time + + :return: The update_time of this ShowAlertDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowAlertDetail. + + Update time + + :param update_time: The update_time of this ShowAlertDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this ShowAlertDetail. + + Id value + + :return: The project_id of this ShowAlertDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertDetail. + + Id value + + :param project_id: The project_id of this ShowAlertDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowAlertDetail. + + Id value + + :return: The workspace_id of this ShowAlertDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowAlertDetail. + + Id value + + :param workspace_id: The workspace_id of this ShowAlertDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def id(self): + """Gets the id of this ShowAlertDetail. + + The name, display only + + :return: The id of this ShowAlertDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowAlertDetail. + + The name, display only + + :param id: The id of this ShowAlertDetail. + :type id: str + """ + self._id = id + + @property + def type(self): + """Gets the type of this ShowAlertDetail. + + The name, display only + + :return: The type of this ShowAlertDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowAlertDetail. + + The name, display only + + :param type: The type of this ShowAlertDetail. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this ShowAlertDetail. + + The name, display only + + :return: The version of this ShowAlertDetail. + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowAlertDetail. + + The name, display only + + :param version: The version of this ShowAlertDetail. + :type version: int + """ + self._version = version + + @property + def format_version(self): + """Gets the format_version of this ShowAlertDetail. + + The name, display only + + :return: The format_version of this ShowAlertDetail. + :rtype: int + """ + return self._format_version + + @format_version.setter + def format_version(self, format_version): + """Sets the format_version of this ShowAlertDetail. + + The name, display only + + :param format_version: The format_version of this ShowAlertDetail. + :type format_version: int + """ + self._format_version = format_version + + @property + def dataclass_ref(self): + """Gets the dataclass_ref of this ShowAlertDetail. + + :return: The dataclass_ref of this ShowAlertDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass_ref + + @dataclass_ref.setter + def dataclass_ref(self, dataclass_ref): + """Sets the dataclass_ref of this ShowAlertDetail. + + :param dataclass_ref: The dataclass_ref of this ShowAlertDetail. + :type dataclass_ref: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass_ref = dataclass_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail_dataclass_ref.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail_dataclass_ref.py new file mode 100755 index 0000000000..7975638c32 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_detail_dataclass_ref.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertDetailDataclassRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """ShowAlertDetailDataclassRef + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this ShowAlertDetailDataclassRef. + + Id value + + :return: The id of this ShowAlertDetailDataclassRef. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowAlertDetailDataclassRef. + + Id value + + :param id: The id of this ShowAlertDetailDataclassRef. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowAlertDetailDataclassRef. + + The name, display only + + :return: The name of this ShowAlertDetailDataclassRef. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowAlertDetailDataclassRef. + + The name, display only + + :param name: The name of this ShowAlertDetailDataclassRef. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertDetailDataclassRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_request.py new file mode 100755 index 0000000000..da4b768204 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'alert_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'alert_id': 'alert_id' + } + + def __init__(self, project_id=None, workspace_id=None, alert_id=None): + """ShowAlertRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param alert_id: 告警ID + :type alert_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._alert_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.alert_id = alert_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRequest. + + ID of project + + :return: The project_id of this ShowAlertRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRequest. + + ID of project + + :param project_id: The project_id of this ShowAlertRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowAlertRequest. + + ID of workspace + + :return: The workspace_id of this ShowAlertRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowAlertRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowAlertRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def alert_id(self): + """Gets the alert_id of this ShowAlertRequest. + + 告警ID + + :return: The alert_id of this ShowAlertRequest. + :rtype: str + """ + return self._alert_id + + @alert_id.setter + def alert_id(self, alert_id): + """Sets the alert_id of this ShowAlertRequest. + + 告警ID + + :param alert_id: The alert_id of this ShowAlertRequest. + :type alert_id: str + """ + self._alert_id = alert_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_response.py new file mode 100755 index 0000000000..d8bca35d7d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'ShowAlertDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowAlertResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.ShowAlertDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowAlertResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowAlertResponse. + + Id value + + :return: The code of this ShowAlertResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowAlertResponse. + + Id value + + :param code: The code of this ShowAlertResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowAlertResponse. + + Error message + + :return: The message of this ShowAlertResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowAlertResponse. + + Error message + + :param message: The message of this ShowAlertResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowAlertResponse. + + :return: The data of this ShowAlertResponse. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowAlertResponse. + + :param data: The data of this ShowAlertResponse. + :type data: :class:`huaweicloudsdksa.v2.ShowAlertDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowAlertResponse. + + :return: The x_request_id of this ShowAlertResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowAlertResponse. + + :param x_request_id: The x_request_id of this ShowAlertResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp.py new file mode 100755 index 0000000000..a81b255507 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp.py @@ -0,0 +1,1233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRsp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'ShowAlertRspEnvironment', + 'datasource': 'ShowAlertRspDatasource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'str', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'alert_type': 'object', + 'network_list': 'list[ShowAlertRspNetworkList]', + 'resource_list': 'list[ShowAlertRspResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'bool', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'ShowAlertRspMalware', + 'system_info': 'object', + 'process': 'list[ShowAlertRspProcess]', + 'user_info': 'list[ShowAlertRspUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_alert_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'datasource': 'datasource', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'alert_type': 'alert_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_alert_table': 'system_alert_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, datasource=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, alert_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_alert_table=None, id=None, workspace_id=None): + """ShowAlertRsp + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + :param datasource: + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: str + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param alert_type: 事件分类 + :type alert_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: bool + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_alert_table: 系统信息 + :type system_alert_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._datasource = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._alert_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_alert_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if datasource is not None: + self.datasource = datasource + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if alert_type is not None: + self.alert_type = alert_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_alert_table is not None: + self.system_alert_table = system_alert_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this ShowAlertRsp. + + 版本 + + :return: The version of this ShowAlertRsp. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowAlertRsp. + + 版本 + + :param version: The version of this ShowAlertRsp. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this ShowAlertRsp. + + :return: The environment of this ShowAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this ShowAlertRsp. + + :param environment: The environment of this ShowAlertRsp. + :type environment: :class:`huaweicloudsdksa.v2.ShowAlertRspEnvironment` + """ + self._environment = environment + + @property + def datasource(self): + """Gets the datasource of this ShowAlertRsp. + + :return: The datasource of this ShowAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + return self._datasource + + @datasource.setter + def datasource(self, datasource): + """Sets the datasource of this ShowAlertRsp. + + :param datasource: The datasource of this ShowAlertRsp. + :type datasource: :class:`huaweicloudsdksa.v2.ShowAlertRspDatasource` + """ + self._datasource = datasource + + @property + def first_observed_time(self): + """Gets the first_observed_time of this ShowAlertRsp. + + Update time + + :return: The first_observed_time of this ShowAlertRsp. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this ShowAlertRsp. + + Update time + + :param first_observed_time: The first_observed_time of this ShowAlertRsp. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this ShowAlertRsp. + + Update time + + :return: The last_observed_time of this ShowAlertRsp. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this ShowAlertRsp. + + Update time + + :param last_observed_time: The last_observed_time of this ShowAlertRsp. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this ShowAlertRsp. + + Create time + + :return: The create_time of this ShowAlertRsp. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowAlertRsp. + + Create time + + :param create_time: The create_time of this ShowAlertRsp. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this ShowAlertRsp. + + Update time + + :return: The arrive_time of this ShowAlertRsp. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this ShowAlertRsp. + + Update time + + :param arrive_time: The arrive_time of this ShowAlertRsp. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this ShowAlertRsp. + + The name, display only + + :return: The title of this ShowAlertRsp. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ShowAlertRsp. + + The name, display only + + :param title: The title of this ShowAlertRsp. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this ShowAlertRsp. + + The description, display only + + :return: The description of this ShowAlertRsp. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowAlertRsp. + + The description, display only + + :param description: The description of this ShowAlertRsp. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this ShowAlertRsp. + + 事件URL链接 + + :return: The source_url of this ShowAlertRsp. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this ShowAlertRsp. + + 事件URL链接 + + :param source_url: The source_url of this ShowAlertRsp. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this ShowAlertRsp. + + 事件发生次数 + + :return: The count of this ShowAlertRsp. + :rtype: str + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowAlertRsp. + + 事件发生次数 + + :param count: The count of this ShowAlertRsp. + :type count: str + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this ShowAlertRsp. + + 置信度 + + :return: The confidence of this ShowAlertRsp. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this ShowAlertRsp. + + 置信度 + + :param confidence: The confidence of this ShowAlertRsp. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this ShowAlertRsp. + + 严重性等级 + + :return: The serverity of this ShowAlertRsp. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this ShowAlertRsp. + + 严重性等级 + + :param serverity: The serverity of this ShowAlertRsp. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this ShowAlertRsp. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this ShowAlertRsp. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this ShowAlertRsp. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this ShowAlertRsp. + :type criticality: int + """ + self._criticality = criticality + + @property + def alert_type(self): + """Gets the alert_type of this ShowAlertRsp. + + 事件分类 + + :return: The alert_type of this ShowAlertRsp. + :rtype: object + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this ShowAlertRsp. + + 事件分类 + + :param alert_type: The alert_type of this ShowAlertRsp. + :type alert_type: object + """ + self._alert_type = alert_type + + @property + def network_list(self): + """Gets the network_list of this ShowAlertRsp. + + network_list + + :return: The network_list of this ShowAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this ShowAlertRsp. + + network_list + + :param network_list: The network_list of this ShowAlertRsp. + :type network_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this ShowAlertRsp. + + network_list + + :return: The resource_list of this ShowAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this ShowAlertRsp. + + network_list + + :param resource_list: The resource_list of this ShowAlertRsp. + :type resource_list: list[:class:`huaweicloudsdksa.v2.ShowAlertRspResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this ShowAlertRsp. + + :return: The remediation of this ShowAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this ShowAlertRsp. + + :param remediation: The remediation of this ShowAlertRsp. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this ShowAlertRsp. + + 验证状态 + + :return: The verification_state of this ShowAlertRsp. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this ShowAlertRsp. + + 验证状态 + + :param verification_state: The verification_state of this ShowAlertRsp. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this ShowAlertRsp. + + 事件处理状态 + + :return: The handle_status of this ShowAlertRsp. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this ShowAlertRsp. + + 事件处理状态 + + :param handle_status: The handle_status of this ShowAlertRsp. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this ShowAlertRsp. + + sla + + :return: The sla of this ShowAlertRsp. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this ShowAlertRsp. + + sla + + :param sla: The sla of this ShowAlertRsp. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this ShowAlertRsp. + + Create time + + :return: The update_time of this ShowAlertRsp. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowAlertRsp. + + Create time + + :param update_time: The update_time of this ShowAlertRsp. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this ShowAlertRsp. + + Create time + + :return: The close_time of this ShowAlertRsp. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this ShowAlertRsp. + + Create time + + :param close_time: The close_time of this ShowAlertRsp. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :return: The chop_phase of this ShowAlertRsp. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this ShowAlertRsp. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this ShowAlertRsp. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this ShowAlertRsp. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this ShowAlertRsp. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this ShowAlertRsp. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this ShowAlertRsp. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this ShowAlertRsp. + + 是否为调试事件. + + :return: The simulation of this ShowAlertRsp. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this ShowAlertRsp. + + 是否为调试事件. + + :param simulation: The simulation of this ShowAlertRsp. + :type simulation: bool + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this ShowAlertRsp. + + 委托人 + + :return: The actor of this ShowAlertRsp. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this ShowAlertRsp. + + 委托人 + + :param actor: The actor of this ShowAlertRsp. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this ShowAlertRsp. + + The name, display only + + :return: The owner of this ShowAlertRsp. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ShowAlertRsp. + + The name, display only + + :param owner: The owner of this ShowAlertRsp. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this ShowAlertRsp. + + The name, display only + + :return: The cteator of this ShowAlertRsp. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this ShowAlertRsp. + + The name, display only + + :param cteator: The cteator of this ShowAlertRsp. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this ShowAlertRsp. + + 关闭原因 + + :return: The close_reason of this ShowAlertRsp. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this ShowAlertRsp. + + 关闭原因 + + :param close_reason: The close_reason of this ShowAlertRsp. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this ShowAlertRsp. + + 关闭原因 + + :return: The close_comment of this ShowAlertRsp. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this ShowAlertRsp. + + 关闭原因 + + :param close_comment: The close_comment of this ShowAlertRsp. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this ShowAlertRsp. + + :return: The malware of this ShowAlertRsp. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this ShowAlertRsp. + + :param malware: The malware of this ShowAlertRsp. + :type malware: :class:`huaweicloudsdksa.v2.ShowAlertRspMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this ShowAlertRsp. + + 系统信息 + + :return: The system_info of this ShowAlertRsp. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this ShowAlertRsp. + + 系统信息 + + :param system_info: The system_info of this ShowAlertRsp. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this ShowAlertRsp. + + 进程信息 + + :return: The process of this ShowAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this ShowAlertRsp. + + 进程信息 + + :param process: The process of this ShowAlertRsp. + :type process: list[:class:`huaweicloudsdksa.v2.ShowAlertRspProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this ShowAlertRsp. + + 用户信息 + + :return: The user_info of this ShowAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this ShowAlertRsp. + + 用户信息 + + :param user_info: The user_info of this ShowAlertRsp. + :type user_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this ShowAlertRsp. + + 文件信息 + + :return: The file_info of this ShowAlertRsp. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this ShowAlertRsp. + + 文件信息 + + :param file_info: The file_info of this ShowAlertRsp. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_alert_table(self): + """Gets the system_alert_table of this ShowAlertRsp. + + 系统信息 + + :return: The system_alert_table of this ShowAlertRsp. + :rtype: object + """ + return self._system_alert_table + + @system_alert_table.setter + def system_alert_table(self, system_alert_table): + """Sets the system_alert_table of this ShowAlertRsp. + + 系统信息 + + :param system_alert_table: The system_alert_table of this ShowAlertRsp. + :type system_alert_table: object + """ + self._system_alert_table = system_alert_table + + @property + def id(self): + """Gets the id of this ShowAlertRsp. + + Id value + + :return: The id of this ShowAlertRsp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowAlertRsp. + + Id value + + :param id: The id of this ShowAlertRsp. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowAlertRsp. + + workspace id + + :return: The workspace_id of this ShowAlertRsp. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowAlertRsp. + + workspace id + + :param workspace_id: The workspace_id of this ShowAlertRsp. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRsp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_datasource.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_datasource.py new file mode 100755 index 0000000000..cd03eb576a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_datasource.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspDatasource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source_type': 'int', + 'domain_id': 'str', + 'project_id': 'str', + 'region_id': 'str' + } + + attribute_map = { + 'source_type': 'source_type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'region_id': 'region_id' + } + + def __init__(self, source_type=None, domain_id=None, project_id=None, region_id=None): + """ShowAlertRspDatasource + + The model defined in huaweicloud sdk + + :param source_type: current page count + :type source_type: int + :param domain_id: Id value + :type domain_id: str + :param project_id: Id value + :type project_id: str + :param region_id: Id value + :type region_id: str + """ + + + + self._source_type = None + self._domain_id = None + self._project_id = None + self._region_id = None + self.discriminator = None + + if source_type is not None: + self.source_type = source_type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + + @property + def source_type(self): + """Gets the source_type of this ShowAlertRspDatasource. + + current page count + + :return: The source_type of this ShowAlertRspDatasource. + :rtype: int + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this ShowAlertRspDatasource. + + current page count + + :param source_type: The source_type of this ShowAlertRspDatasource. + :type source_type: int + """ + self._source_type = source_type + + @property + def domain_id(self): + """Gets the domain_id of this ShowAlertRspDatasource. + + Id value + + :return: The domain_id of this ShowAlertRspDatasource. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowAlertRspDatasource. + + Id value + + :param domain_id: The domain_id of this ShowAlertRspDatasource. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRspDatasource. + + Id value + + :return: The project_id of this ShowAlertRspDatasource. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRspDatasource. + + Id value + + :param project_id: The project_id of this ShowAlertRspDatasource. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this ShowAlertRspDatasource. + + Id value + + :return: The region_id of this ShowAlertRspDatasource. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowAlertRspDatasource. + + Id value + + :param region_id: The region_id of this ShowAlertRspDatasource. + :type region_id: str + """ + self._region_id = region_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspDatasource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_environment.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_environment.py new file mode 100755 index 0000000000..32c63ad83a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_environment.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspEnvironment: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vendor_type': 'str', + 'domain_id': 'str', + 'region_id': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'vendor_type': 'vendor_type', + 'domain_id': 'domain_id', + 'region_id': 'region_id', + 'project_id': 'project_id' + } + + def __init__(self, vendor_type=None, domain_id=None, region_id=None, project_id=None): + """ShowAlertRspEnvironment + + The model defined in huaweicloud sdk + + :param vendor_type: The name, display only + :type vendor_type: str + :param domain_id: Id value + :type domain_id: str + :param region_id: Id value + :type region_id: str + :param project_id: Id value + :type project_id: str + """ + + + + self._vendor_type = None + self._domain_id = None + self._region_id = None + self._project_id = None + self.discriminator = None + + if vendor_type is not None: + self.vendor_type = vendor_type + if domain_id is not None: + self.domain_id = domain_id + if region_id is not None: + self.region_id = region_id + if project_id is not None: + self.project_id = project_id + + @property + def vendor_type(self): + """Gets the vendor_type of this ShowAlertRspEnvironment. + + The name, display only + + :return: The vendor_type of this ShowAlertRspEnvironment. + :rtype: str + """ + return self._vendor_type + + @vendor_type.setter + def vendor_type(self, vendor_type): + """Sets the vendor_type of this ShowAlertRspEnvironment. + + The name, display only + + :param vendor_type: The vendor_type of this ShowAlertRspEnvironment. + :type vendor_type: str + """ + self._vendor_type = vendor_type + + @property + def domain_id(self): + """Gets the domain_id of this ShowAlertRspEnvironment. + + Id value + + :return: The domain_id of this ShowAlertRspEnvironment. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowAlertRspEnvironment. + + Id value + + :param domain_id: The domain_id of this ShowAlertRspEnvironment. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def region_id(self): + """Gets the region_id of this ShowAlertRspEnvironment. + + Id value + + :return: The region_id of this ShowAlertRspEnvironment. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowAlertRspEnvironment. + + Id value + + :param region_id: The region_id of this ShowAlertRspEnvironment. + :type region_id: str + """ + self._region_id = region_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRspEnvironment. + + Id value + + :return: The project_id of this ShowAlertRspEnvironment. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRspEnvironment. + + Id value + + :param project_id: The project_id of this ShowAlertRspEnvironment. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspEnvironment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_file_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_file_info.py new file mode 100755 index 0000000000..cd21496793 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_file_info.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspFileInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'file_path': 'str', + 'file_content': 'str', + 'file_new_path': 'str', + 'file_hash': 'str', + 'file_md5': 'str', + 'file_sha256': 'str', + 'file_attr': 'str' + } + + attribute_map = { + 'file_path': 'file_path', + 'file_content': 'file_content', + 'file_new_path': 'file_new_path', + 'file_hash': 'file_hash', + 'file_md5': 'file_md5', + 'file_sha256': 'file_sha256', + 'file_attr': 'file_attr' + } + + def __init__(self, file_path=None, file_content=None, file_new_path=None, file_hash=None, file_md5=None, file_sha256=None, file_attr=None): + """ShowAlertRspFileInfo + + The model defined in huaweicloud sdk + + :param file_path: The name, display only + :type file_path: str + :param file_content: The name, display only + :type file_content: str + :param file_new_path: The name, display only + :type file_new_path: str + :param file_hash: The name, display only + :type file_hash: str + :param file_md5: The name, display only + :type file_md5: str + :param file_sha256: The name, display only + :type file_sha256: str + :param file_attr: The name, display only + :type file_attr: str + """ + + + + self._file_path = None + self._file_content = None + self._file_new_path = None + self._file_hash = None + self._file_md5 = None + self._file_sha256 = None + self._file_attr = None + self.discriminator = None + + if file_path is not None: + self.file_path = file_path + if file_content is not None: + self.file_content = file_content + if file_new_path is not None: + self.file_new_path = file_new_path + if file_hash is not None: + self.file_hash = file_hash + if file_md5 is not None: + self.file_md5 = file_md5 + if file_sha256 is not None: + self.file_sha256 = file_sha256 + if file_attr is not None: + self.file_attr = file_attr + + @property + def file_path(self): + """Gets the file_path of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_path of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_path + + @file_path.setter + def file_path(self, file_path): + """Sets the file_path of this ShowAlertRspFileInfo. + + The name, display only + + :param file_path: The file_path of this ShowAlertRspFileInfo. + :type file_path: str + """ + self._file_path = file_path + + @property + def file_content(self): + """Gets the file_content of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_content of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_content + + @file_content.setter + def file_content(self, file_content): + """Sets the file_content of this ShowAlertRspFileInfo. + + The name, display only + + :param file_content: The file_content of this ShowAlertRspFileInfo. + :type file_content: str + """ + self._file_content = file_content + + @property + def file_new_path(self): + """Gets the file_new_path of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_new_path of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_new_path + + @file_new_path.setter + def file_new_path(self, file_new_path): + """Sets the file_new_path of this ShowAlertRspFileInfo. + + The name, display only + + :param file_new_path: The file_new_path of this ShowAlertRspFileInfo. + :type file_new_path: str + """ + self._file_new_path = file_new_path + + @property + def file_hash(self): + """Gets the file_hash of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_hash of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_hash + + @file_hash.setter + def file_hash(self, file_hash): + """Sets the file_hash of this ShowAlertRspFileInfo. + + The name, display only + + :param file_hash: The file_hash of this ShowAlertRspFileInfo. + :type file_hash: str + """ + self._file_hash = file_hash + + @property + def file_md5(self): + """Gets the file_md5 of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_md5 of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_md5 + + @file_md5.setter + def file_md5(self, file_md5): + """Sets the file_md5 of this ShowAlertRspFileInfo. + + The name, display only + + :param file_md5: The file_md5 of this ShowAlertRspFileInfo. + :type file_md5: str + """ + self._file_md5 = file_md5 + + @property + def file_sha256(self): + """Gets the file_sha256 of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_sha256 of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_sha256 + + @file_sha256.setter + def file_sha256(self, file_sha256): + """Sets the file_sha256 of this ShowAlertRspFileInfo. + + The name, display only + + :param file_sha256: The file_sha256 of this ShowAlertRspFileInfo. + :type file_sha256: str + """ + self._file_sha256 = file_sha256 + + @property + def file_attr(self): + """Gets the file_attr of this ShowAlertRspFileInfo. + + The name, display only + + :return: The file_attr of this ShowAlertRspFileInfo. + :rtype: str + """ + return self._file_attr + + @file_attr.setter + def file_attr(self, file_attr): + """Sets the file_attr of this ShowAlertRspFileInfo. + + The name, display only + + :param file_attr: The file_attr of this ShowAlertRspFileInfo. + :type file_attr: str + """ + self._file_attr = file_attr + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspFileInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_malware.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_malware.py new file mode 100755 index 0000000000..425837669b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_malware.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspMalware: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'malware_family': 'str', + 'malware_class': 'str' + } + + attribute_map = { + 'malware_family': 'malware_family', + 'malware_class': 'malware_class' + } + + def __init__(self, malware_family=None, malware_class=None): + """ShowAlertRspMalware + + The model defined in huaweicloud sdk + + :param malware_family: 恶意家族 + :type malware_family: str + :param malware_class: 恶意软件分类 + :type malware_class: str + """ + + + + self._malware_family = None + self._malware_class = None + self.discriminator = None + + if malware_family is not None: + self.malware_family = malware_family + if malware_class is not None: + self.malware_class = malware_class + + @property + def malware_family(self): + """Gets the malware_family of this ShowAlertRspMalware. + + 恶意家族 + + :return: The malware_family of this ShowAlertRspMalware. + :rtype: str + """ + return self._malware_family + + @malware_family.setter + def malware_family(self, malware_family): + """Sets the malware_family of this ShowAlertRspMalware. + + 恶意家族 + + :param malware_family: The malware_family of this ShowAlertRspMalware. + :type malware_family: str + """ + self._malware_family = malware_family + + @property + def malware_class(self): + """Gets the malware_class of this ShowAlertRspMalware. + + 恶意软件分类 + + :return: The malware_class of this ShowAlertRspMalware. + :rtype: str + """ + return self._malware_class + + @malware_class.setter + def malware_class(self, malware_class): + """Sets the malware_class of this ShowAlertRspMalware. + + 恶意软件分类 + + :param malware_class: The malware_class of this ShowAlertRspMalware. + :type malware_class: str + """ + self._malware_class = malware_class + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspMalware): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_network_list.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_network_list.py new file mode 100755 index 0000000000..30d22003b7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_network_list.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspNetworkList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'direction': 'object', + 'protocol': 'str', + 'src_ip': 'str', + 'src_port': 'str', + 'src_domain': 'str', + 'dest_ip': 'str', + 'dest_port': 'str', + 'dest_domain': 'str', + 'src_geo': 'object', + 'dest_geo': 'object' + } + + attribute_map = { + 'direction': 'direction', + 'protocol': 'protocol', + 'src_ip': 'src_ip', + 'src_port': 'src_port', + 'src_domain': 'src_domain', + 'dest_ip': 'dest_ip', + 'dest_port': 'dest_port', + 'dest_domain': 'dest_domain', + 'src_geo': 'src_geo', + 'dest_geo': 'dest_geo' + } + + def __init__(self, direction=None, protocol=None, src_ip=None, src_port=None, src_domain=None, dest_ip=None, dest_port=None, dest_domain=None, src_geo=None, dest_geo=None): + """ShowAlertRspNetworkList + + The model defined in huaweicloud sdk + + :param direction: 方向,取值范围:IN | OUT + :type direction: object + :param protocol: 协议,参考:IANA registered name + :type protocol: str + :param src_ip: 源IP地址 + :type src_ip: str + :param src_port: 源端口,0–65535 + :type src_port: str + :param src_domain: 源域名,最大128个字符 + :type src_domain: str + :param dest_ip: 目的IP地址 + :type dest_ip: str + :param dest_port: 目的端口,0–65535 + :type dest_port: str + :param dest_domain: 目的域名,最大128个字符 + :type dest_domain: str + :param src_geo: 源IP的地理位置信息 + :type src_geo: object + :param dest_geo: 目的IP的地理位置信息 + :type dest_geo: object + """ + + + + self._direction = None + self._protocol = None + self._src_ip = None + self._src_port = None + self._src_domain = None + self._dest_ip = None + self._dest_port = None + self._dest_domain = None + self._src_geo = None + self._dest_geo = None + self.discriminator = None + + if direction is not None: + self.direction = direction + if protocol is not None: + self.protocol = protocol + if src_ip is not None: + self.src_ip = src_ip + if src_port is not None: + self.src_port = src_port + if src_domain is not None: + self.src_domain = src_domain + if dest_ip is not None: + self.dest_ip = dest_ip + if dest_port is not None: + self.dest_port = dest_port + if dest_domain is not None: + self.dest_domain = dest_domain + if src_geo is not None: + self.src_geo = src_geo + if dest_geo is not None: + self.dest_geo = dest_geo + + @property + def direction(self): + """Gets the direction of this ShowAlertRspNetworkList. + + 方向,取值范围:IN | OUT + + :return: The direction of this ShowAlertRspNetworkList. + :rtype: object + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this ShowAlertRspNetworkList. + + 方向,取值范围:IN | OUT + + :param direction: The direction of this ShowAlertRspNetworkList. + :type direction: object + """ + self._direction = direction + + @property + def protocol(self): + """Gets the protocol of this ShowAlertRspNetworkList. + + 协议,参考:IANA registered name + + :return: The protocol of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ShowAlertRspNetworkList. + + 协议,参考:IANA registered name + + :param protocol: The protocol of this ShowAlertRspNetworkList. + :type protocol: str + """ + self._protocol = protocol + + @property + def src_ip(self): + """Gets the src_ip of this ShowAlertRspNetworkList. + + 源IP地址 + + :return: The src_ip of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._src_ip + + @src_ip.setter + def src_ip(self, src_ip): + """Sets the src_ip of this ShowAlertRspNetworkList. + + 源IP地址 + + :param src_ip: The src_ip of this ShowAlertRspNetworkList. + :type src_ip: str + """ + self._src_ip = src_ip + + @property + def src_port(self): + """Gets the src_port of this ShowAlertRspNetworkList. + + 源端口,0–65535 + + :return: The src_port of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._src_port + + @src_port.setter + def src_port(self, src_port): + """Sets the src_port of this ShowAlertRspNetworkList. + + 源端口,0–65535 + + :param src_port: The src_port of this ShowAlertRspNetworkList. + :type src_port: str + """ + self._src_port = src_port + + @property + def src_domain(self): + """Gets the src_domain of this ShowAlertRspNetworkList. + + 源域名,最大128个字符 + + :return: The src_domain of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._src_domain + + @src_domain.setter + def src_domain(self, src_domain): + """Sets the src_domain of this ShowAlertRspNetworkList. + + 源域名,最大128个字符 + + :param src_domain: The src_domain of this ShowAlertRspNetworkList. + :type src_domain: str + """ + self._src_domain = src_domain + + @property + def dest_ip(self): + """Gets the dest_ip of this ShowAlertRspNetworkList. + + 目的IP地址 + + :return: The dest_ip of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._dest_ip + + @dest_ip.setter + def dest_ip(self, dest_ip): + """Sets the dest_ip of this ShowAlertRspNetworkList. + + 目的IP地址 + + :param dest_ip: The dest_ip of this ShowAlertRspNetworkList. + :type dest_ip: str + """ + self._dest_ip = dest_ip + + @property + def dest_port(self): + """Gets the dest_port of this ShowAlertRspNetworkList. + + 目的端口,0–65535 + + :return: The dest_port of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._dest_port + + @dest_port.setter + def dest_port(self, dest_port): + """Sets the dest_port of this ShowAlertRspNetworkList. + + 目的端口,0–65535 + + :param dest_port: The dest_port of this ShowAlertRspNetworkList. + :type dest_port: str + """ + self._dest_port = dest_port + + @property + def dest_domain(self): + """Gets the dest_domain of this ShowAlertRspNetworkList. + + 目的域名,最大128个字符 + + :return: The dest_domain of this ShowAlertRspNetworkList. + :rtype: str + """ + return self._dest_domain + + @dest_domain.setter + def dest_domain(self, dest_domain): + """Sets the dest_domain of this ShowAlertRspNetworkList. + + 目的域名,最大128个字符 + + :param dest_domain: The dest_domain of this ShowAlertRspNetworkList. + :type dest_domain: str + """ + self._dest_domain = dest_domain + + @property + def src_geo(self): + """Gets the src_geo of this ShowAlertRspNetworkList. + + 源IP的地理位置信息 + + :return: The src_geo of this ShowAlertRspNetworkList. + :rtype: object + """ + return self._src_geo + + @src_geo.setter + def src_geo(self, src_geo): + """Sets the src_geo of this ShowAlertRspNetworkList. + + 源IP的地理位置信息 + + :param src_geo: The src_geo of this ShowAlertRspNetworkList. + :type src_geo: object + """ + self._src_geo = src_geo + + @property + def dest_geo(self): + """Gets the dest_geo of this ShowAlertRspNetworkList. + + 目的IP的地理位置信息 + + :return: The dest_geo of this ShowAlertRspNetworkList. + :rtype: object + """ + return self._dest_geo + + @dest_geo.setter + def dest_geo(self, dest_geo): + """Sets the dest_geo of this ShowAlertRspNetworkList. + + 目的IP的地理位置信息 + + :param dest_geo: The dest_geo of this ShowAlertRspNetworkList. + :type dest_geo: object + """ + self._dest_geo = dest_geo + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspNetworkList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_process.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_process.py new file mode 100755 index 0000000000..6cde8603d5 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_process.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspProcess: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'process_name': 'str', + 'process_path': 'str', + 'process_pid': 'str', + 'process_uid': 'str', + 'process_cmdline': 'str' + } + + attribute_map = { + 'process_name': 'process_name', + 'process_path': 'process_path', + 'process_pid': 'process_pid', + 'process_uid': 'process_uid', + 'process_cmdline': 'process_cmdline' + } + + def __init__(self, process_name=None, process_path=None, process_pid=None, process_uid=None, process_cmdline=None): + """ShowAlertRspProcess + + The model defined in huaweicloud sdk + + :param process_name: The name, display only + :type process_name: str + :param process_path: The name, display only + :type process_path: str + :param process_pid: Id value + :type process_pid: str + :param process_uid: Id value + :type process_uid: str + :param process_cmdline: The name, display only + :type process_cmdline: str + """ + + + + self._process_name = None + self._process_path = None + self._process_pid = None + self._process_uid = None + self._process_cmdline = None + self.discriminator = None + + if process_name is not None: + self.process_name = process_name + if process_path is not None: + self.process_path = process_path + if process_pid is not None: + self.process_pid = process_pid + if process_uid is not None: + self.process_uid = process_uid + if process_cmdline is not None: + self.process_cmdline = process_cmdline + + @property + def process_name(self): + """Gets the process_name of this ShowAlertRspProcess. + + The name, display only + + :return: The process_name of this ShowAlertRspProcess. + :rtype: str + """ + return self._process_name + + @process_name.setter + def process_name(self, process_name): + """Sets the process_name of this ShowAlertRspProcess. + + The name, display only + + :param process_name: The process_name of this ShowAlertRspProcess. + :type process_name: str + """ + self._process_name = process_name + + @property + def process_path(self): + """Gets the process_path of this ShowAlertRspProcess. + + The name, display only + + :return: The process_path of this ShowAlertRspProcess. + :rtype: str + """ + return self._process_path + + @process_path.setter + def process_path(self, process_path): + """Sets the process_path of this ShowAlertRspProcess. + + The name, display only + + :param process_path: The process_path of this ShowAlertRspProcess. + :type process_path: str + """ + self._process_path = process_path + + @property + def process_pid(self): + """Gets the process_pid of this ShowAlertRspProcess. + + Id value + + :return: The process_pid of this ShowAlertRspProcess. + :rtype: str + """ + return self._process_pid + + @process_pid.setter + def process_pid(self, process_pid): + """Sets the process_pid of this ShowAlertRspProcess. + + Id value + + :param process_pid: The process_pid of this ShowAlertRspProcess. + :type process_pid: str + """ + self._process_pid = process_pid + + @property + def process_uid(self): + """Gets the process_uid of this ShowAlertRspProcess. + + Id value + + :return: The process_uid of this ShowAlertRspProcess. + :rtype: str + """ + return self._process_uid + + @process_uid.setter + def process_uid(self, process_uid): + """Sets the process_uid of this ShowAlertRspProcess. + + Id value + + :param process_uid: The process_uid of this ShowAlertRspProcess. + :type process_uid: str + """ + self._process_uid = process_uid + + @property + def process_cmdline(self): + """Gets the process_cmdline of this ShowAlertRspProcess. + + The name, display only + + :return: The process_cmdline of this ShowAlertRspProcess. + :rtype: str + """ + return self._process_cmdline + + @process_cmdline.setter + def process_cmdline(self, process_cmdline): + """Sets the process_cmdline of this ShowAlertRspProcess. + + The name, display only + + :param process_cmdline: The process_cmdline of this ShowAlertRspProcess. + :type process_cmdline: str + """ + self._process_cmdline = process_cmdline + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspProcess): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_remediation.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_remediation.py new file mode 100755 index 0000000000..bd880592c6 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_remediation.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspRemediation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'recommendation': 'str', + 'url': 'str' + } + + attribute_map = { + 'recommendation': 'recommendation', + 'url': 'url' + } + + def __init__(self, recommendation=None, url=None): + """ShowAlertRspRemediation + + The model defined in huaweicloud sdk + + :param recommendation: The name, display only + :type recommendation: str + :param url: The name, display only + :type url: str + """ + + + + self._recommendation = None + self._url = None + self.discriminator = None + + if recommendation is not None: + self.recommendation = recommendation + if url is not None: + self.url = url + + @property + def recommendation(self): + """Gets the recommendation of this ShowAlertRspRemediation. + + The name, display only + + :return: The recommendation of this ShowAlertRspRemediation. + :rtype: str + """ + return self._recommendation + + @recommendation.setter + def recommendation(self, recommendation): + """Sets the recommendation of this ShowAlertRspRemediation. + + The name, display only + + :param recommendation: The recommendation of this ShowAlertRspRemediation. + :type recommendation: str + """ + self._recommendation = recommendation + + @property + def url(self): + """Gets the url of this ShowAlertRspRemediation. + + The name, display only + + :return: The url of this ShowAlertRspRemediation. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ShowAlertRspRemediation. + + The name, display only + + :param url: The url of this ShowAlertRspRemediation. + :type url: str + """ + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspRemediation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_resource_list.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_resource_list.py new file mode 100755 index 0000000000..48b8e70063 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_resource_list.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspResourceList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'type': 'str', + 'domain_id': 'str', + 'project_id': 'str', + 'region_id': 'str', + 'ep_id': 'str', + 'ep_name': 'str', + 'tags': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'domain_id': 'domain_id', + 'project_id': 'project_id', + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'ep_name': 'ep_name', + 'tags': 'tags' + } + + def __init__(self, id=None, name=None, type=None, domain_id=None, project_id=None, region_id=None, ep_id=None, ep_name=None, tags=None): + """ShowAlertRspResourceList + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param type: The name, display only + :type type: str + :param domain_id: Id value + :type domain_id: str + :param project_id: Id value + :type project_id: str + :param region_id: Id value + :type region_id: str + :param ep_id: Id value + :type ep_id: str + :param ep_name: The name, display only + :type ep_name: str + :param tags: Id value + :type tags: str + """ + + + + self._id = None + self._name = None + self._type = None + self._domain_id = None + self._project_id = None + self._region_id = None + self._ep_id = None + self._ep_name = None + self._tags = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if domain_id is not None: + self.domain_id = domain_id + if project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if ep_name is not None: + self.ep_name = ep_name + if tags is not None: + self.tags = tags + + @property + def id(self): + """Gets the id of this ShowAlertRspResourceList. + + Id value + + :return: The id of this ShowAlertRspResourceList. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowAlertRspResourceList. + + Id value + + :param id: The id of this ShowAlertRspResourceList. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowAlertRspResourceList. + + The name, display only + + :return: The name of this ShowAlertRspResourceList. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowAlertRspResourceList. + + The name, display only + + :param name: The name of this ShowAlertRspResourceList. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ShowAlertRspResourceList. + + The name, display only + + :return: The type of this ShowAlertRspResourceList. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowAlertRspResourceList. + + The name, display only + + :param type: The type of this ShowAlertRspResourceList. + :type type: str + """ + self._type = type + + @property + def domain_id(self): + """Gets the domain_id of this ShowAlertRspResourceList. + + Id value + + :return: The domain_id of this ShowAlertRspResourceList. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ShowAlertRspResourceList. + + Id value + + :param domain_id: The domain_id of this ShowAlertRspResourceList. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRspResourceList. + + Id value + + :return: The project_id of this ShowAlertRspResourceList. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRspResourceList. + + Id value + + :param project_id: The project_id of this ShowAlertRspResourceList. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this ShowAlertRspResourceList. + + Id value + + :return: The region_id of this ShowAlertRspResourceList. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowAlertRspResourceList. + + Id value + + :param region_id: The region_id of this ShowAlertRspResourceList. + :type region_id: str + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this ShowAlertRspResourceList. + + Id value + + :return: The ep_id of this ShowAlertRspResourceList. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this ShowAlertRspResourceList. + + Id value + + :param ep_id: The ep_id of this ShowAlertRspResourceList. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def ep_name(self): + """Gets the ep_name of this ShowAlertRspResourceList. + + The name, display only + + :return: The ep_name of this ShowAlertRspResourceList. + :rtype: str + """ + return self._ep_name + + @ep_name.setter + def ep_name(self, ep_name): + """Sets the ep_name of this ShowAlertRspResourceList. + + The name, display only + + :param ep_name: The ep_name of this ShowAlertRspResourceList. + :type ep_name: str + """ + self._ep_name = ep_name + + @property + def tags(self): + """Gets the tags of this ShowAlertRspResourceList. + + Id value + + :return: The tags of this ShowAlertRspResourceList. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowAlertRspResourceList. + + Id value + + :param tags: The tags of this ShowAlertRspResourceList. + :type tags: str + """ + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspResourceList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_user_info.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_user_info.py new file mode 100755 index 0000000000..217708b97e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rsp_user_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRspUserInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'user_id': 'str', + 'user_name': 'str' + } + + attribute_map = { + 'user_id': 'user_id', + 'user_name': 'user_name' + } + + def __init__(self, user_id=None, user_name=None): + """ShowAlertRspUserInfo + + The model defined in huaweicloud sdk + + :param user_id: Id value + :type user_id: str + :param user_name: The name, display only + :type user_name: str + """ + + + + self._user_id = None + self._user_name = None + self.discriminator = None + + if user_id is not None: + self.user_id = user_id + if user_name is not None: + self.user_name = user_name + + @property + def user_id(self): + """Gets the user_id of this ShowAlertRspUserInfo. + + Id value + + :return: The user_id of this ShowAlertRspUserInfo. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this ShowAlertRspUserInfo. + + Id value + + :param user_id: The user_id of this ShowAlertRspUserInfo. + :type user_id: str + """ + self._user_id = user_id + + @property + def user_name(self): + """Gets the user_name of this ShowAlertRspUserInfo. + + The name, display only + + :return: The user_name of this ShowAlertRspUserInfo. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this ShowAlertRspUserInfo. + + The name, display only + + :param user_name: The user_name of this ShowAlertRspUserInfo. + :type user_name: str + """ + self._user_name = user_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRspUserInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_request.py new file mode 100755 index 0000000000..5c7c6d2cc0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'rule_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'rule_id': 'rule_id' + } + + def __init__(self, project_id=None, workspace_id=None, rule_id=None): + """ShowAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param rule_id: rule_id + :type rule_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._rule_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.rule_id = rule_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRuleRequest. + + project_id + + :return: The project_id of this ShowAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRuleRequest. + + project_id + + :param project_id: The project_id of this ShowAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this ShowAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this ShowAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowAlertRuleRequest. + + rule_id + + :return: The rule_id of this ShowAlertRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowAlertRuleRequest. + + rule_id + + :param rule_id: The rule_id of this ShowAlertRuleRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_response.py new file mode 100755 index 0000000000..2b8415d8eb --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_response.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'pipe_id': 'str', + 'pipe_name': 'str', + 'create_by': 'str', + 'create_time': 'int', + 'update_by': 'str', + 'update_time': 'int', + 'delete_time': 'int', + 'rule_name': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'pipe_id': 'pipe_id', + 'pipe_name': 'pipe_name', + 'create_by': 'create_by', + 'create_time': 'create_time', + 'update_by': 'update_by', + 'update_time': 'update_time', + 'delete_time': 'delete_time', + 'rule_name': 'rule_name', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, pipe_id=None, pipe_name=None, create_by=None, create_time=None, update_by=None, update_time=None, delete_time=None, rule_name=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None, x_request_id=None): + """ShowAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param pipe_id: pipe_id + :type pipe_id: str + :param pipe_name: pipe_name + :type pipe_name: str + :param create_by: create_by + :type create_by: str + :param create_time: create_time + :type create_time: int + :param update_by: update_by + :type update_by: str + :param update_time: update_time + :type update_time: int + :param delete_time: delete_time + :type delete_time: int + :param rule_name: rule_name + :type rule_name: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + :param x_request_id: + :type x_request_id: str + """ + + super(ShowAlertRuleResponse, self).__init__() + + self._rule_id = None + self._pipe_id = None + self._pipe_name = None + self._create_by = None + self._create_time = None + self._update_by = None + self._update_time = None + self._delete_time = None + self._rule_name = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if pipe_id is not None: + self.pipe_id = pipe_id + if pipe_name is not None: + self.pipe_name = pipe_name + if create_by is not None: + self.create_by = create_by + if create_time is not None: + self.create_time = create_time + if update_by is not None: + self.update_by = update_by + if update_time is not None: + self.update_time = update_time + if delete_time is not None: + self.delete_time = delete_time + if rule_name is not None: + self.rule_name = rule_name + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowAlertRuleResponse. + + rule_id + + :return: The rule_id of this ShowAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this ShowAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def pipe_id(self): + """Gets the pipe_id of this ShowAlertRuleResponse. + + pipe_id + + :return: The pipe_id of this ShowAlertRuleResponse. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this ShowAlertRuleResponse. + + pipe_id + + :param pipe_id: The pipe_id of this ShowAlertRuleResponse. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def pipe_name(self): + """Gets the pipe_name of this ShowAlertRuleResponse. + + pipe_name + + :return: The pipe_name of this ShowAlertRuleResponse. + :rtype: str + """ + return self._pipe_name + + @pipe_name.setter + def pipe_name(self, pipe_name): + """Sets the pipe_name of this ShowAlertRuleResponse. + + pipe_name + + :param pipe_name: The pipe_name of this ShowAlertRuleResponse. + :type pipe_name: str + """ + self._pipe_name = pipe_name + + @property + def create_by(self): + """Gets the create_by of this ShowAlertRuleResponse. + + create_by + + :return: The create_by of this ShowAlertRuleResponse. + :rtype: str + """ + return self._create_by + + @create_by.setter + def create_by(self, create_by): + """Sets the create_by of this ShowAlertRuleResponse. + + create_by + + :param create_by: The create_by of this ShowAlertRuleResponse. + :type create_by: str + """ + self._create_by = create_by + + @property + def create_time(self): + """Gets the create_time of this ShowAlertRuleResponse. + + create_time + + :return: The create_time of this ShowAlertRuleResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowAlertRuleResponse. + + create_time + + :param create_time: The create_time of this ShowAlertRuleResponse. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_by(self): + """Gets the update_by of this ShowAlertRuleResponse. + + update_by + + :return: The update_by of this ShowAlertRuleResponse. + :rtype: str + """ + return self._update_by + + @update_by.setter + def update_by(self, update_by): + """Sets the update_by of this ShowAlertRuleResponse. + + update_by + + :param update_by: The update_by of this ShowAlertRuleResponse. + :type update_by: str + """ + self._update_by = update_by + + @property + def update_time(self): + """Gets the update_time of this ShowAlertRuleResponse. + + update_time + + :return: The update_time of this ShowAlertRuleResponse. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowAlertRuleResponse. + + update_time + + :param update_time: The update_time of this ShowAlertRuleResponse. + :type update_time: int + """ + self._update_time = update_time + + @property + def delete_time(self): + """Gets the delete_time of this ShowAlertRuleResponse. + + delete_time + + :return: The delete_time of this ShowAlertRuleResponse. + :rtype: int + """ + return self._delete_time + + @delete_time.setter + def delete_time(self, delete_time): + """Sets the delete_time of this ShowAlertRuleResponse. + + delete_time + + :param delete_time: The delete_time of this ShowAlertRuleResponse. + :type delete_time: int + """ + self._delete_time = delete_time + + @property + def rule_name(self): + """Gets the rule_name of this ShowAlertRuleResponse. + + rule_name + + :return: The rule_name of this ShowAlertRuleResponse. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this ShowAlertRuleResponse. + + rule_name + + :param rule_name: The rule_name of this ShowAlertRuleResponse. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def query(self): + """Gets the query of this ShowAlertRuleResponse. + + query + + :return: The query of this ShowAlertRuleResponse. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this ShowAlertRuleResponse. + + query + + :param query: The query of this ShowAlertRuleResponse. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this ShowAlertRuleResponse. + + query_type. SQL, CBSL. + + :return: The query_type of this ShowAlertRuleResponse. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this ShowAlertRuleResponse. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this ShowAlertRuleResponse. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this ShowAlertRuleResponse. + + status. ENABLED, DISABLED + + :return: The status of this ShowAlertRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowAlertRuleResponse. + + status. ENABLED, DISABLED + + :param status: The status of this ShowAlertRuleResponse. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this ShowAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this ShowAlertRuleResponse. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this ShowAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this ShowAlertRuleResponse. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this ShowAlertRuleResponse. + + accumulated_times + + :return: The accumulated_times of this ShowAlertRuleResponse. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this ShowAlertRuleResponse. + + accumulated_times + + :param accumulated_times: The accumulated_times of this ShowAlertRuleResponse. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this ShowAlertRuleResponse. + + custom_properties + + :return: The custom_properties of this ShowAlertRuleResponse. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this ShowAlertRuleResponse. + + custom_properties + + :param custom_properties: The custom_properties of this ShowAlertRuleResponse. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this ShowAlertRuleResponse. + + event_grouping + + :return: The event_grouping of this ShowAlertRuleResponse. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this ShowAlertRuleResponse. + + event_grouping + + :param event_grouping: The event_grouping of this ShowAlertRuleResponse. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this ShowAlertRuleResponse. + + :return: The schedule of this ShowAlertRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this ShowAlertRuleResponse. + + :param schedule: The schedule of this ShowAlertRuleResponse. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this ShowAlertRuleResponse. + + triggers + + :return: The triggers of this ShowAlertRuleResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this ShowAlertRuleResponse. + + triggers + + :param triggers: The triggers of this ShowAlertRuleResponse. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowAlertRuleResponse. + + :return: The x_request_id of this ShowAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowAlertRuleResponse. + + :param x_request_id: The x_request_id of this ShowAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_request.py new file mode 100755 index 0000000000..9a1ad6903c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRuleTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'template_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'template_id': 'template_id' + } + + def __init__(self, project_id=None, workspace_id=None, template_id=None): + """ShowAlertRuleTemplateRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param template_id: template_id + :type template_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._template_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.template_id = template_id + + @property + def project_id(self): + """Gets the project_id of this ShowAlertRuleTemplateRequest. + + project_id + + :return: The project_id of this ShowAlertRuleTemplateRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAlertRuleTemplateRequest. + + project_id + + :param project_id: The project_id of this ShowAlertRuleTemplateRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowAlertRuleTemplateRequest. + + workspace_id + + :return: The workspace_id of this ShowAlertRuleTemplateRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowAlertRuleTemplateRequest. + + workspace_id + + :param workspace_id: The workspace_id of this ShowAlertRuleTemplateRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def template_id(self): + """Gets the template_id of this ShowAlertRuleTemplateRequest. + + template_id + + :return: The template_id of this ShowAlertRuleTemplateRequest. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ShowAlertRuleTemplateRequest. + + template_id + + :param template_id: The template_id of this ShowAlertRuleTemplateRequest. + :type template_id: str + """ + self._template_id = template_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRuleTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_response.py new file mode 100755 index 0000000000..c59d38744c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_alert_rule_template_response.py @@ -0,0 +1,458 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAlertRuleTemplateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'template_id': 'str', + 'update_time': 'int', + 'template_name': 'str', + 'data_source': 'str', + 'version': 'str', + 'query': 'str', + 'query_type': 'str', + 'severity': 'str', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]', + 'x_request_id': 'str' + } + + attribute_map = { + 'template_id': 'template_id', + 'update_time': 'update_time', + 'template_name': 'template_name', + 'data_source': 'data_source', + 'version': 'version', + 'query': 'query', + 'query_type': 'query_type', + 'severity': 'severity', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers', + 'x_request_id': 'X-request-id' + } + + def __init__(self, template_id=None, update_time=None, template_name=None, data_source=None, version=None, query=None, query_type=None, severity=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None, x_request_id=None): + """ShowAlertRuleTemplateResponse + + The model defined in huaweicloud sdk + + :param template_id: template_id + :type template_id: str + :param update_time: update_time + :type update_time: int + :param template_name: template_name + :type template_name: str + :param data_source: data_source + :type data_source: str + :param version: version + :type version: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + :param x_request_id: + :type x_request_id: str + """ + + super(ShowAlertRuleTemplateResponse, self).__init__() + + self._template_id = None + self._update_time = None + self._template_name = None + self._data_source = None + self._version = None + self._query = None + self._query_type = None + self._severity = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self._x_request_id = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if update_time is not None: + self.update_time = update_time + if template_name is not None: + self.template_name = template_name + if data_source is not None: + self.data_source = data_source + if version is not None: + self.version = version + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + if severity is not None: + self.severity = severity + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def template_id(self): + """Gets the template_id of this ShowAlertRuleTemplateResponse. + + template_id + + :return: The template_id of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ShowAlertRuleTemplateResponse. + + template_id + + :param template_id: The template_id of this ShowAlertRuleTemplateResponse. + :type template_id: str + """ + self._template_id = template_id + + @property + def update_time(self): + """Gets the update_time of this ShowAlertRuleTemplateResponse. + + update_time + + :return: The update_time of this ShowAlertRuleTemplateResponse. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowAlertRuleTemplateResponse. + + update_time + + :param update_time: The update_time of this ShowAlertRuleTemplateResponse. + :type update_time: int + """ + self._update_time = update_time + + @property + def template_name(self): + """Gets the template_name of this ShowAlertRuleTemplateResponse. + + template_name + + :return: The template_name of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this ShowAlertRuleTemplateResponse. + + template_name + + :param template_name: The template_name of this ShowAlertRuleTemplateResponse. + :type template_name: str + """ + self._template_name = template_name + + @property + def data_source(self): + """Gets the data_source of this ShowAlertRuleTemplateResponse. + + data_source + + :return: The data_source of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """Sets the data_source of this ShowAlertRuleTemplateResponse. + + data_source + + :param data_source: The data_source of this ShowAlertRuleTemplateResponse. + :type data_source: str + """ + self._data_source = data_source + + @property + def version(self): + """Gets the version of this ShowAlertRuleTemplateResponse. + + version + + :return: The version of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowAlertRuleTemplateResponse. + + version + + :param version: The version of this ShowAlertRuleTemplateResponse. + :type version: str + """ + self._version = version + + @property + def query(self): + """Gets the query of this ShowAlertRuleTemplateResponse. + + query + + :return: The query of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this ShowAlertRuleTemplateResponse. + + query + + :param query: The query of this ShowAlertRuleTemplateResponse. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this ShowAlertRuleTemplateResponse. + + query_type. SQL, CBSL. + + :return: The query_type of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this ShowAlertRuleTemplateResponse. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this ShowAlertRuleTemplateResponse. + :type query_type: str + """ + self._query_type = query_type + + @property + def severity(self): + """Gets the severity of this ShowAlertRuleTemplateResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this ShowAlertRuleTemplateResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this ShowAlertRuleTemplateResponse. + :type severity: str + """ + self._severity = severity + + @property + def custom_properties(self): + """Gets the custom_properties of this ShowAlertRuleTemplateResponse. + + custom_properties + + :return: The custom_properties of this ShowAlertRuleTemplateResponse. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this ShowAlertRuleTemplateResponse. + + custom_properties + + :param custom_properties: The custom_properties of this ShowAlertRuleTemplateResponse. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this ShowAlertRuleTemplateResponse. + + event_grouping + + :return: The event_grouping of this ShowAlertRuleTemplateResponse. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this ShowAlertRuleTemplateResponse. + + event_grouping + + :param event_grouping: The event_grouping of this ShowAlertRuleTemplateResponse. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this ShowAlertRuleTemplateResponse. + + :return: The schedule of this ShowAlertRuleTemplateResponse. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this ShowAlertRuleTemplateResponse. + + :param schedule: The schedule of this ShowAlertRuleTemplateResponse. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this ShowAlertRuleTemplateResponse. + + triggers + + :return: The triggers of this ShowAlertRuleTemplateResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this ShowAlertRuleTemplateResponse. + + triggers + + :param triggers: The triggers of this ShowAlertRuleTemplateResponse. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowAlertRuleTemplateResponse. + + :return: The x_request_id of this ShowAlertRuleTemplateResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowAlertRuleTemplateResponse. + + :param x_request_id: The x_request_id of this ShowAlertRuleTemplateResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAlertRuleTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident.py new file mode 100755 index 0000000000..b4d22d66db --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident.py @@ -0,0 +1,1233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIncident: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'environment': 'IncidentEnvironment', + 'datasource': 'IncidentDatasource', + 'first_observed_time': 'str', + 'last_observed_time': 'str', + 'create_time': 'str', + 'arrive_time': 'str', + 'title': 'str', + 'description': 'str', + 'source_url': 'str', + 'count': 'str', + 'confidence': 'int', + 'serverity': 'str', + 'criticality': 'int', + 'incident_type': 'object', + 'network_list': 'list[CreateIncidentNetworkList]', + 'resource_list': 'list[CreateIncidentResourceList]', + 'remediation': 'ShowAlertRspRemediation', + 'verification_state': 'str', + 'handle_status': 'str', + 'sla': 'int', + 'update_time': 'str', + 'close_time': 'str', + 'chop_phase': 'str', + 'ipdrr_phase': 'str', + 'ppdr_phase': 'str', + 'simulation': 'str', + 'actor': 'str', + 'owner': 'str', + 'cteator': 'str', + 'close_reason': 'str', + 'close_comment': 'str', + 'malware': 'CreateIncidentMalware', + 'system_info': 'object', + 'process': 'list[CreateIncidentProcess]', + 'user_info': 'list[CreateIncidentUserInfo]', + 'file_info': 'list[ShowAlertRspFileInfo]', + 'system_incident_table': 'object', + 'id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'version': 'version', + 'environment': 'environment', + 'datasource': 'datasource', + 'first_observed_time': 'first_observed_time', + 'last_observed_time': 'last_observed_time', + 'create_time': 'create_time', + 'arrive_time': 'arrive_time', + 'title': 'title', + 'description': 'description', + 'source_url': 'source_url', + 'count': 'count', + 'confidence': 'confidence', + 'serverity': 'serverity', + 'criticality': 'criticality', + 'incident_type': 'incident_type', + 'network_list': 'network_list', + 'resource_list': 'resource_list', + 'remediation': 'remediation', + 'verification_state': 'verification_state', + 'handle_status': 'handle_status', + 'sla': 'sla', + 'update_time': 'update_time', + 'close_time': 'close_time', + 'chop_phase': 'chop_phase', + 'ipdrr_phase': 'ipdrr_phase', + 'ppdr_phase': 'ppdr_phase', + 'simulation': 'simulation', + 'actor': 'actor', + 'owner': 'owner', + 'cteator': 'cteator', + 'close_reason': 'close_reason', + 'close_comment': 'close_comment', + 'malware': 'malware', + 'system_info': 'system_info', + 'process': 'process', + 'user_info': 'user_info', + 'file_info': 'file_info', + 'system_incident_table': 'system_incident_table', + 'id': 'id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, version=None, environment=None, datasource=None, first_observed_time=None, last_observed_time=None, create_time=None, arrive_time=None, title=None, description=None, source_url=None, count=None, confidence=None, serverity=None, criticality=None, incident_type=None, network_list=None, resource_list=None, remediation=None, verification_state=None, handle_status=None, sla=None, update_time=None, close_time=None, chop_phase=None, ipdrr_phase=None, ppdr_phase=None, simulation=None, actor=None, owner=None, cteator=None, close_reason=None, close_comment=None, malware=None, system_info=None, process=None, user_info=None, file_info=None, system_incident_table=None, id=None, workspace_id=None): + """ShowIncident + + The model defined in huaweicloud sdk + + :param version: 版本 + :type version: str + :param environment: + :type environment: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + :param datasource: + :type datasource: :class:`huaweicloudsdksa.v2.IncidentDatasource` + :param first_observed_time: Update time + :type first_observed_time: str + :param last_observed_time: Update time + :type last_observed_time: str + :param create_time: Create time + :type create_time: str + :param arrive_time: Update time + :type arrive_time: str + :param title: The name, display only + :type title: str + :param description: The description, display only + :type description: str + :param source_url: 事件URL链接 + :type source_url: str + :param count: 事件发生次数 + :type count: str + :param confidence: 置信度 + :type confidence: int + :param serverity: 严重性等级 + :type serverity: str + :param criticality: 关键性,是指事件涉及的资源的重要性级别。 + :type criticality: int + :param incident_type: 事件分类 + :type incident_type: object + :param network_list: network_list + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + :param resource_list: network_list + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + :param remediation: + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + :param verification_state: 验证状态 + :type verification_state: str + :param handle_status: 事件处理状态 + :type handle_status: str + :param sla: sla + :type sla: int + :param update_time: Create time + :type update_time: str + :param close_time: Create time + :type close_time: str + :param chop_phase: 周期/处置阶段编号 + :type chop_phase: str + :param ipdrr_phase: 周期/处置阶段编号 + :type ipdrr_phase: str + :param ppdr_phase: 周期/处置阶段编号 + :type ppdr_phase: str + :param simulation: 是否为调试事件. + :type simulation: str + :param actor: 委托人 + :type actor: str + :param owner: The name, display only + :type owner: str + :param cteator: The name, display only + :type cteator: str + :param close_reason: 关闭原因 + :type close_reason: str + :param close_comment: 关闭原因 + :type close_comment: str + :param malware: + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + :param system_info: 系统信息 + :type system_info: object + :param process: 进程信息 + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + :param user_info: 用户信息 + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + :param file_info: 文件信息 + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + :param system_incident_table: 系统信息 + :type system_incident_table: object + :param id: Id value + :type id: str + :param workspace_id: workspace id + :type workspace_id: str + """ + + + + self._version = None + self._environment = None + self._datasource = None + self._first_observed_time = None + self._last_observed_time = None + self._create_time = None + self._arrive_time = None + self._title = None + self._description = None + self._source_url = None + self._count = None + self._confidence = None + self._serverity = None + self._criticality = None + self._incident_type = None + self._network_list = None + self._resource_list = None + self._remediation = None + self._verification_state = None + self._handle_status = None + self._sla = None + self._update_time = None + self._close_time = None + self._chop_phase = None + self._ipdrr_phase = None + self._ppdr_phase = None + self._simulation = None + self._actor = None + self._owner = None + self._cteator = None + self._close_reason = None + self._close_comment = None + self._malware = None + self._system_info = None + self._process = None + self._user_info = None + self._file_info = None + self._system_incident_table = None + self._id = None + self._workspace_id = None + self.discriminator = None + + if version is not None: + self.version = version + if environment is not None: + self.environment = environment + if datasource is not None: + self.datasource = datasource + if first_observed_time is not None: + self.first_observed_time = first_observed_time + if last_observed_time is not None: + self.last_observed_time = last_observed_time + if create_time is not None: + self.create_time = create_time + if arrive_time is not None: + self.arrive_time = arrive_time + if title is not None: + self.title = title + if description is not None: + self.description = description + if source_url is not None: + self.source_url = source_url + if count is not None: + self.count = count + if confidence is not None: + self.confidence = confidence + if serverity is not None: + self.serverity = serverity + if criticality is not None: + self.criticality = criticality + if incident_type is not None: + self.incident_type = incident_type + if network_list is not None: + self.network_list = network_list + if resource_list is not None: + self.resource_list = resource_list + if remediation is not None: + self.remediation = remediation + if verification_state is not None: + self.verification_state = verification_state + if handle_status is not None: + self.handle_status = handle_status + if sla is not None: + self.sla = sla + if update_time is not None: + self.update_time = update_time + if close_time is not None: + self.close_time = close_time + if chop_phase is not None: + self.chop_phase = chop_phase + if ipdrr_phase is not None: + self.ipdrr_phase = ipdrr_phase + if ppdr_phase is not None: + self.ppdr_phase = ppdr_phase + if simulation is not None: + self.simulation = simulation + if actor is not None: + self.actor = actor + if owner is not None: + self.owner = owner + if cteator is not None: + self.cteator = cteator + if close_reason is not None: + self.close_reason = close_reason + if close_comment is not None: + self.close_comment = close_comment + if malware is not None: + self.malware = malware + if system_info is not None: + self.system_info = system_info + if process is not None: + self.process = process + if user_info is not None: + self.user_info = user_info + if file_info is not None: + self.file_info = file_info + if system_incident_table is not None: + self.system_incident_table = system_incident_table + if id is not None: + self.id = id + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def version(self): + """Gets the version of this ShowIncident. + + 版本 + + :return: The version of this ShowIncident. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ShowIncident. + + 版本 + + :param version: The version of this ShowIncident. + :type version: str + """ + self._version = version + + @property + def environment(self): + """Gets the environment of this ShowIncident. + + :return: The environment of this ShowIncident. + :rtype: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + """ + return self._environment + + @environment.setter + def environment(self, environment): + """Sets the environment of this ShowIncident. + + :param environment: The environment of this ShowIncident. + :type environment: :class:`huaweicloudsdksa.v2.IncidentEnvironment` + """ + self._environment = environment + + @property + def datasource(self): + """Gets the datasource of this ShowIncident. + + :return: The datasource of this ShowIncident. + :rtype: :class:`huaweicloudsdksa.v2.IncidentDatasource` + """ + return self._datasource + + @datasource.setter + def datasource(self, datasource): + """Sets the datasource of this ShowIncident. + + :param datasource: The datasource of this ShowIncident. + :type datasource: :class:`huaweicloudsdksa.v2.IncidentDatasource` + """ + self._datasource = datasource + + @property + def first_observed_time(self): + """Gets the first_observed_time of this ShowIncident. + + Update time + + :return: The first_observed_time of this ShowIncident. + :rtype: str + """ + return self._first_observed_time + + @first_observed_time.setter + def first_observed_time(self, first_observed_time): + """Sets the first_observed_time of this ShowIncident. + + Update time + + :param first_observed_time: The first_observed_time of this ShowIncident. + :type first_observed_time: str + """ + self._first_observed_time = first_observed_time + + @property + def last_observed_time(self): + """Gets the last_observed_time of this ShowIncident. + + Update time + + :return: The last_observed_time of this ShowIncident. + :rtype: str + """ + return self._last_observed_time + + @last_observed_time.setter + def last_observed_time(self, last_observed_time): + """Sets the last_observed_time of this ShowIncident. + + Update time + + :param last_observed_time: The last_observed_time of this ShowIncident. + :type last_observed_time: str + """ + self._last_observed_time = last_observed_time + + @property + def create_time(self): + """Gets the create_time of this ShowIncident. + + Create time + + :return: The create_time of this ShowIncident. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowIncident. + + Create time + + :param create_time: The create_time of this ShowIncident. + :type create_time: str + """ + self._create_time = create_time + + @property + def arrive_time(self): + """Gets the arrive_time of this ShowIncident. + + Update time + + :return: The arrive_time of this ShowIncident. + :rtype: str + """ + return self._arrive_time + + @arrive_time.setter + def arrive_time(self, arrive_time): + """Sets the arrive_time of this ShowIncident. + + Update time + + :param arrive_time: The arrive_time of this ShowIncident. + :type arrive_time: str + """ + self._arrive_time = arrive_time + + @property + def title(self): + """Gets the title of this ShowIncident. + + The name, display only + + :return: The title of this ShowIncident. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ShowIncident. + + The name, display only + + :param title: The title of this ShowIncident. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this ShowIncident. + + The description, display only + + :return: The description of this ShowIncident. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowIncident. + + The description, display only + + :param description: The description of this ShowIncident. + :type description: str + """ + self._description = description + + @property + def source_url(self): + """Gets the source_url of this ShowIncident. + + 事件URL链接 + + :return: The source_url of this ShowIncident. + :rtype: str + """ + return self._source_url + + @source_url.setter + def source_url(self, source_url): + """Sets the source_url of this ShowIncident. + + 事件URL链接 + + :param source_url: The source_url of this ShowIncident. + :type source_url: str + """ + self._source_url = source_url + + @property + def count(self): + """Gets the count of this ShowIncident. + + 事件发生次数 + + :return: The count of this ShowIncident. + :rtype: str + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowIncident. + + 事件发生次数 + + :param count: The count of this ShowIncident. + :type count: str + """ + self._count = count + + @property + def confidence(self): + """Gets the confidence of this ShowIncident. + + 置信度 + + :return: The confidence of this ShowIncident. + :rtype: int + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this ShowIncident. + + 置信度 + + :param confidence: The confidence of this ShowIncident. + :type confidence: int + """ + self._confidence = confidence + + @property + def serverity(self): + """Gets the serverity of this ShowIncident. + + 严重性等级 + + :return: The serverity of this ShowIncident. + :rtype: str + """ + return self._serverity + + @serverity.setter + def serverity(self, serverity): + """Sets the serverity of this ShowIncident. + + 严重性等级 + + :param serverity: The serverity of this ShowIncident. + :type serverity: str + """ + self._serverity = serverity + + @property + def criticality(self): + """Gets the criticality of this ShowIncident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :return: The criticality of this ShowIncident. + :rtype: int + """ + return self._criticality + + @criticality.setter + def criticality(self, criticality): + """Sets the criticality of this ShowIncident. + + 关键性,是指事件涉及的资源的重要性级别。 + + :param criticality: The criticality of this ShowIncident. + :type criticality: int + """ + self._criticality = criticality + + @property + def incident_type(self): + """Gets the incident_type of this ShowIncident. + + 事件分类 + + :return: The incident_type of this ShowIncident. + :rtype: object + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this ShowIncident. + + 事件分类 + + :param incident_type: The incident_type of this ShowIncident. + :type incident_type: object + """ + self._incident_type = incident_type + + @property + def network_list(self): + """Gets the network_list of this ShowIncident. + + network_list + + :return: The network_list of this ShowIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + return self._network_list + + @network_list.setter + def network_list(self, network_list): + """Sets the network_list of this ShowIncident. + + network_list + + :param network_list: The network_list of this ShowIncident. + :type network_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentNetworkList`] + """ + self._network_list = network_list + + @property + def resource_list(self): + """Gets the resource_list of this ShowIncident. + + network_list + + :return: The resource_list of this ShowIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + return self._resource_list + + @resource_list.setter + def resource_list(self, resource_list): + """Sets the resource_list of this ShowIncident. + + network_list + + :param resource_list: The resource_list of this ShowIncident. + :type resource_list: list[:class:`huaweicloudsdksa.v2.CreateIncidentResourceList`] + """ + self._resource_list = resource_list + + @property + def remediation(self): + """Gets the remediation of this ShowIncident. + + :return: The remediation of this ShowIncident. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """Sets the remediation of this ShowIncident. + + :param remediation: The remediation of this ShowIncident. + :type remediation: :class:`huaweicloudsdksa.v2.ShowAlertRspRemediation` + """ + self._remediation = remediation + + @property + def verification_state(self): + """Gets the verification_state of this ShowIncident. + + 验证状态 + + :return: The verification_state of this ShowIncident. + :rtype: str + """ + return self._verification_state + + @verification_state.setter + def verification_state(self, verification_state): + """Sets the verification_state of this ShowIncident. + + 验证状态 + + :param verification_state: The verification_state of this ShowIncident. + :type verification_state: str + """ + self._verification_state = verification_state + + @property + def handle_status(self): + """Gets the handle_status of this ShowIncident. + + 事件处理状态 + + :return: The handle_status of this ShowIncident. + :rtype: str + """ + return self._handle_status + + @handle_status.setter + def handle_status(self, handle_status): + """Sets the handle_status of this ShowIncident. + + 事件处理状态 + + :param handle_status: The handle_status of this ShowIncident. + :type handle_status: str + """ + self._handle_status = handle_status + + @property + def sla(self): + """Gets the sla of this ShowIncident. + + sla + + :return: The sla of this ShowIncident. + :rtype: int + """ + return self._sla + + @sla.setter + def sla(self, sla): + """Sets the sla of this ShowIncident. + + sla + + :param sla: The sla of this ShowIncident. + :type sla: int + """ + self._sla = sla + + @property + def update_time(self): + """Gets the update_time of this ShowIncident. + + Create time + + :return: The update_time of this ShowIncident. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowIncident. + + Create time + + :param update_time: The update_time of this ShowIncident. + :type update_time: str + """ + self._update_time = update_time + + @property + def close_time(self): + """Gets the close_time of this ShowIncident. + + Create time + + :return: The close_time of this ShowIncident. + :rtype: str + """ + return self._close_time + + @close_time.setter + def close_time(self, close_time): + """Sets the close_time of this ShowIncident. + + Create time + + :param close_time: The close_time of this ShowIncident. + :type close_time: str + """ + self._close_time = close_time + + @property + def chop_phase(self): + """Gets the chop_phase of this ShowIncident. + + 周期/处置阶段编号 + + :return: The chop_phase of this ShowIncident. + :rtype: str + """ + return self._chop_phase + + @chop_phase.setter + def chop_phase(self, chop_phase): + """Sets the chop_phase of this ShowIncident. + + 周期/处置阶段编号 + + :param chop_phase: The chop_phase of this ShowIncident. + :type chop_phase: str + """ + self._chop_phase = chop_phase + + @property + def ipdrr_phase(self): + """Gets the ipdrr_phase of this ShowIncident. + + 周期/处置阶段编号 + + :return: The ipdrr_phase of this ShowIncident. + :rtype: str + """ + return self._ipdrr_phase + + @ipdrr_phase.setter + def ipdrr_phase(self, ipdrr_phase): + """Sets the ipdrr_phase of this ShowIncident. + + 周期/处置阶段编号 + + :param ipdrr_phase: The ipdrr_phase of this ShowIncident. + :type ipdrr_phase: str + """ + self._ipdrr_phase = ipdrr_phase + + @property + def ppdr_phase(self): + """Gets the ppdr_phase of this ShowIncident. + + 周期/处置阶段编号 + + :return: The ppdr_phase of this ShowIncident. + :rtype: str + """ + return self._ppdr_phase + + @ppdr_phase.setter + def ppdr_phase(self, ppdr_phase): + """Sets the ppdr_phase of this ShowIncident. + + 周期/处置阶段编号 + + :param ppdr_phase: The ppdr_phase of this ShowIncident. + :type ppdr_phase: str + """ + self._ppdr_phase = ppdr_phase + + @property + def simulation(self): + """Gets the simulation of this ShowIncident. + + 是否为调试事件. + + :return: The simulation of this ShowIncident. + :rtype: str + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this ShowIncident. + + 是否为调试事件. + + :param simulation: The simulation of this ShowIncident. + :type simulation: str + """ + self._simulation = simulation + + @property + def actor(self): + """Gets the actor of this ShowIncident. + + 委托人 + + :return: The actor of this ShowIncident. + :rtype: str + """ + return self._actor + + @actor.setter + def actor(self, actor): + """Sets the actor of this ShowIncident. + + 委托人 + + :param actor: The actor of this ShowIncident. + :type actor: str + """ + self._actor = actor + + @property + def owner(self): + """Gets the owner of this ShowIncident. + + The name, display only + + :return: The owner of this ShowIncident. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ShowIncident. + + The name, display only + + :param owner: The owner of this ShowIncident. + :type owner: str + """ + self._owner = owner + + @property + def cteator(self): + """Gets the cteator of this ShowIncident. + + The name, display only + + :return: The cteator of this ShowIncident. + :rtype: str + """ + return self._cteator + + @cteator.setter + def cteator(self, cteator): + """Sets the cteator of this ShowIncident. + + The name, display only + + :param cteator: The cteator of this ShowIncident. + :type cteator: str + """ + self._cteator = cteator + + @property + def close_reason(self): + """Gets the close_reason of this ShowIncident. + + 关闭原因 + + :return: The close_reason of this ShowIncident. + :rtype: str + """ + return self._close_reason + + @close_reason.setter + def close_reason(self, close_reason): + """Sets the close_reason of this ShowIncident. + + 关闭原因 + + :param close_reason: The close_reason of this ShowIncident. + :type close_reason: str + """ + self._close_reason = close_reason + + @property + def close_comment(self): + """Gets the close_comment of this ShowIncident. + + 关闭原因 + + :return: The close_comment of this ShowIncident. + :rtype: str + """ + return self._close_comment + + @close_comment.setter + def close_comment(self, close_comment): + """Sets the close_comment of this ShowIncident. + + 关闭原因 + + :param close_comment: The close_comment of this ShowIncident. + :type close_comment: str + """ + self._close_comment = close_comment + + @property + def malware(self): + """Gets the malware of this ShowIncident. + + :return: The malware of this ShowIncident. + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + return self._malware + + @malware.setter + def malware(self, malware): + """Sets the malware of this ShowIncident. + + :param malware: The malware of this ShowIncident. + :type malware: :class:`huaweicloudsdksa.v2.CreateIncidentMalware` + """ + self._malware = malware + + @property + def system_info(self): + """Gets the system_info of this ShowIncident. + + 系统信息 + + :return: The system_info of this ShowIncident. + :rtype: object + """ + return self._system_info + + @system_info.setter + def system_info(self, system_info): + """Sets the system_info of this ShowIncident. + + 系统信息 + + :param system_info: The system_info of this ShowIncident. + :type system_info: object + """ + self._system_info = system_info + + @property + def process(self): + """Gets the process of this ShowIncident. + + 进程信息 + + :return: The process of this ShowIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + return self._process + + @process.setter + def process(self, process): + """Sets the process of this ShowIncident. + + 进程信息 + + :param process: The process of this ShowIncident. + :type process: list[:class:`huaweicloudsdksa.v2.CreateIncidentProcess`] + """ + self._process = process + + @property + def user_info(self): + """Gets the user_info of this ShowIncident. + + 用户信息 + + :return: The user_info of this ShowIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + return self._user_info + + @user_info.setter + def user_info(self, user_info): + """Sets the user_info of this ShowIncident. + + 用户信息 + + :param user_info: The user_info of this ShowIncident. + :type user_info: list[:class:`huaweicloudsdksa.v2.CreateIncidentUserInfo`] + """ + self._user_info = user_info + + @property + def file_info(self): + """Gets the file_info of this ShowIncident. + + 文件信息 + + :return: The file_info of this ShowIncident. + :rtype: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + return self._file_info + + @file_info.setter + def file_info(self, file_info): + """Sets the file_info of this ShowIncident. + + 文件信息 + + :param file_info: The file_info of this ShowIncident. + :type file_info: list[:class:`huaweicloudsdksa.v2.ShowAlertRspFileInfo`] + """ + self._file_info = file_info + + @property + def system_incident_table(self): + """Gets the system_incident_table of this ShowIncident. + + 系统信息 + + :return: The system_incident_table of this ShowIncident. + :rtype: object + """ + return self._system_incident_table + + @system_incident_table.setter + def system_incident_table(self, system_incident_table): + """Sets the system_incident_table of this ShowIncident. + + 系统信息 + + :param system_incident_table: The system_incident_table of this ShowIncident. + :type system_incident_table: object + """ + self._system_incident_table = system_incident_table + + @property + def id(self): + """Gets the id of this ShowIncident. + + Id value + + :return: The id of this ShowIncident. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowIncident. + + Id value + + :param id: The id of this ShowIncident. + :type id: str + """ + self._id = id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowIncident. + + workspace id + + :return: The workspace_id of this ShowIncident. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowIncident. + + workspace id + + :param workspace_id: The workspace_id of this ShowIncident. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIncident): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_detail.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_detail.py new file mode 100755 index 0000000000..831ba0d4a2 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_detail.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIncidentDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data_object': 'ShowIncident', + 'create_time': 'str', + 'update_time': 'str', + 'project_id': 'str', + 'workspace_id': 'str', + 'dataclass_id': 'str', + 'layout_id': 'str', + 'name': 'str', + 'type': 'str', + 'dataclass': 'ShowAlertDetailDataclassRef' + } + + attribute_map = { + 'data_object': 'data_object', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'dataclass_id': 'dataclass_id', + 'layout_id': 'layout_id', + 'name': 'name', + 'type': 'type', + 'dataclass': 'dataclass' + } + + def __init__(self, data_object=None, create_time=None, update_time=None, project_id=None, workspace_id=None, dataclass_id=None, layout_id=None, name=None, type=None, dataclass=None): + """ShowIncidentDetail + + The model defined in huaweicloud sdk + + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.ShowIncident` + :param create_time: Create time + :type create_time: str + :param update_time: Update time + :type update_time: str + :param project_id: Id value + :type project_id: str + :param workspace_id: Id value + :type workspace_id: str + :param dataclass_id: Id value + :type dataclass_id: str + :param layout_id: Id value + :type layout_id: str + :param name: The name, display only + :type name: str + :param type: The name, display only + :type type: str + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + + + + self._data_object = None + self._create_time = None + self._update_time = None + self._project_id = None + self._workspace_id = None + self._dataclass_id = None + self._layout_id = None + self._name = None + self._type = None + self._dataclass = None + self.discriminator = None + + if data_object is not None: + self.data_object = data_object + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if project_id is not None: + self.project_id = project_id + if workspace_id is not None: + self.workspace_id = workspace_id + if dataclass_id is not None: + self.dataclass_id = dataclass_id + if layout_id is not None: + self.layout_id = layout_id + if name is not None: + self.name = name + if type is not None: + self.type = type + if dataclass is not None: + self.dataclass = dataclass + + @property + def data_object(self): + """Gets the data_object of this ShowIncidentDetail. + + :return: The data_object of this ShowIncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowIncident` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this ShowIncidentDetail. + + :param data_object: The data_object of this ShowIncidentDetail. + :type data_object: :class:`huaweicloudsdksa.v2.ShowIncident` + """ + self._data_object = data_object + + @property + def create_time(self): + """Gets the create_time of this ShowIncidentDetail. + + Create time + + :return: The create_time of this ShowIncidentDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowIncidentDetail. + + Create time + + :param create_time: The create_time of this ShowIncidentDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowIncidentDetail. + + Update time + + :return: The update_time of this ShowIncidentDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowIncidentDetail. + + Update time + + :param update_time: The update_time of this ShowIncidentDetail. + :type update_time: str + """ + self._update_time = update_time + + @property + def project_id(self): + """Gets the project_id of this ShowIncidentDetail. + + Id value + + :return: The project_id of this ShowIncidentDetail. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowIncidentDetail. + + Id value + + :param project_id: The project_id of this ShowIncidentDetail. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowIncidentDetail. + + Id value + + :return: The workspace_id of this ShowIncidentDetail. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowIncidentDetail. + + Id value + + :param workspace_id: The workspace_id of this ShowIncidentDetail. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def dataclass_id(self): + """Gets the dataclass_id of this ShowIncidentDetail. + + Id value + + :return: The dataclass_id of this ShowIncidentDetail. + :rtype: str + """ + return self._dataclass_id + + @dataclass_id.setter + def dataclass_id(self, dataclass_id): + """Sets the dataclass_id of this ShowIncidentDetail. + + Id value + + :param dataclass_id: The dataclass_id of this ShowIncidentDetail. + :type dataclass_id: str + """ + self._dataclass_id = dataclass_id + + @property + def layout_id(self): + """Gets the layout_id of this ShowIncidentDetail. + + Id value + + :return: The layout_id of this ShowIncidentDetail. + :rtype: str + """ + return self._layout_id + + @layout_id.setter + def layout_id(self, layout_id): + """Sets the layout_id of this ShowIncidentDetail. + + Id value + + :param layout_id: The layout_id of this ShowIncidentDetail. + :type layout_id: str + """ + self._layout_id = layout_id + + @property + def name(self): + """Gets the name of this ShowIncidentDetail. + + The name, display only + + :return: The name of this ShowIncidentDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowIncidentDetail. + + The name, display only + + :param name: The name of this ShowIncidentDetail. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ShowIncidentDetail. + + The name, display only + + :return: The type of this ShowIncidentDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowIncidentDetail. + + The name, display only + + :param type: The type of this ShowIncidentDetail. + :type type: str + """ + self._type = type + + @property + def dataclass(self): + """Gets the dataclass of this ShowIncidentDetail. + + :return: The dataclass of this ShowIncidentDetail. + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this ShowIncidentDetail. + + :param dataclass: The dataclass of this ShowIncidentDetail. + :type dataclass: :class:`huaweicloudsdksa.v2.ShowAlertDetailDataclassRef` + """ + self._dataclass = dataclass + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIncidentDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_request.py new file mode 100755 index 0000000000..bffff8ad93 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'incident_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'incident_id': 'incident_id' + } + + def __init__(self, project_id=None, workspace_id=None, incident_id=None): + """ShowIncidentRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param incident_id: 事件ID + :type incident_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._incident_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.incident_id = incident_id + + @property + def project_id(self): + """Gets the project_id of this ShowIncidentRequest. + + ID of project + + :return: The project_id of this ShowIncidentRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowIncidentRequest. + + ID of project + + :param project_id: The project_id of this ShowIncidentRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowIncidentRequest. + + ID of workspace + + :return: The workspace_id of this ShowIncidentRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowIncidentRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowIncidentRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def incident_id(self): + """Gets the incident_id of this ShowIncidentRequest. + + 事件ID + + :return: The incident_id of this ShowIncidentRequest. + :rtype: str + """ + return self._incident_id + + @incident_id.setter + def incident_id(self, incident_id): + """Sets the incident_id of this ShowIncidentRequest. + + 事件ID + + :param incident_id: The incident_id of this ShowIncidentRequest. + :type incident_id: str + """ + self._incident_id = incident_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_response.py new file mode 100755 index 0000000000..9af845ff4f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_incident_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIncidentResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'ShowIncidentDetail' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data' + } + + def __init__(self, code=None, message=None, data=None): + """ShowIncidentResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.ShowIncidentDetail` + """ + + super(ShowIncidentResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + + @property + def code(self): + """Gets the code of this ShowIncidentResponse. + + Id value + + :return: The code of this ShowIncidentResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowIncidentResponse. + + Id value + + :param code: The code of this ShowIncidentResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowIncidentResponse. + + Error message + + :return: The message of this ShowIncidentResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowIncidentResponse. + + Error message + + :param message: The message of this ShowIncidentResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowIncidentResponse. + + :return: The data of this ShowIncidentResponse. + :rtype: :class:`huaweicloudsdksa.v2.ShowIncidentDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowIncidentResponse. + + :param data: The data of this ShowIncidentResponse. + :type data: :class:`huaweicloudsdksa.v2.ShowIncidentDetail` + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_request.py new file mode 100755 index 0000000000..9f81755da7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIndicatorDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'indicator_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'indicator_id': 'indicator_id' + } + + def __init__(self, project_id=None, workspace_id=None, indicator_id=None): + """ShowIndicatorDetailRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: workspace id + :type workspace_id: str + :param indicator_id: ID of indicator + :type indicator_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._indicator_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.indicator_id = indicator_id + + @property + def project_id(self): + """Gets the project_id of this ShowIndicatorDetailRequest. + + ID of project + + :return: The project_id of this ShowIndicatorDetailRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowIndicatorDetailRequest. + + ID of project + + :param project_id: The project_id of this ShowIndicatorDetailRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowIndicatorDetailRequest. + + workspace id + + :return: The workspace_id of this ShowIndicatorDetailRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowIndicatorDetailRequest. + + workspace id + + :param workspace_id: The workspace_id of this ShowIndicatorDetailRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def indicator_id(self): + """Gets the indicator_id of this ShowIndicatorDetailRequest. + + ID of indicator + + :return: The indicator_id of this ShowIndicatorDetailRequest. + :rtype: str + """ + return self._indicator_id + + @indicator_id.setter + def indicator_id(self, indicator_id): + """Sets the indicator_id of this ShowIndicatorDetailRequest. + + ID of indicator + + :param indicator_id: The indicator_id of this ShowIndicatorDetailRequest. + :type indicator_id: str + """ + self._indicator_id = indicator_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIndicatorDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_response.py new file mode 100755 index 0000000000..f238f5c0fb --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_indicator_detail_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIndicatorDetailResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IndicatorDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowIndicatorDetailResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowIndicatorDetailResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowIndicatorDetailResponse. + + Id value + + :return: The code of this ShowIndicatorDetailResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowIndicatorDetailResponse. + + Id value + + :param code: The code of this ShowIndicatorDetailResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowIndicatorDetailResponse. + + Error message + + :return: The message of this ShowIndicatorDetailResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowIndicatorDetailResponse. + + Error message + + :param message: The message of this ShowIndicatorDetailResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowIndicatorDetailResponse. + + :return: The data of this ShowIndicatorDetailResponse. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowIndicatorDetailResponse. + + :param data: The data of this ShowIndicatorDetailResponse. + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowIndicatorDetailResponse. + + :return: The x_request_id of this ShowIndicatorDetailResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowIndicatorDetailResponse. + + :param x_request_id: The x_request_id of this ShowIndicatorDetailResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIndicatorDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_request.py new file mode 100755 index 0000000000..7a5d0e39d4 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'instance_id': 'instance_id' + } + + def __init__(self, project_id=None, workspace_id=None, instance_id=None): + """ShowPlaybookInstanceRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param instance_id: instance _id + :type instance_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._instance_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.instance_id = instance_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookInstanceRequest. + + ID of project + + :return: The project_id of this ShowPlaybookInstanceRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookInstanceRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookInstanceRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookInstanceRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookInstanceRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookInstanceRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookInstanceRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowPlaybookInstanceRequest. + + instance _id + + :return: The instance_id of this ShowPlaybookInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowPlaybookInstanceRequest. + + instance _id + + :param instance_id: The instance_id of this ShowPlaybookInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_response.py new file mode 100755 index 0000000000..298394c658 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_instance_response.py @@ -0,0 +1,392 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'project_id': 'str', + 'playbook': 'PlaybookInfoRef', + 'dataclass': 'DataclassInfoRef', + 'dataobject': 'DataclassInfoRef', + 'status': 'str', + 'trigger_type': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'project_id': 'project_id', + 'playbook': 'playbook', + 'dataclass': 'dataclass', + 'dataobject': 'dataobject', + 'status': 'status', + 'trigger_type': 'trigger_type', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'x_request_id': 'X-request-id' + } + + def __init__(self, id=None, name=None, project_id=None, playbook=None, dataclass=None, dataobject=None, status=None, trigger_type=None, start_time=None, end_time=None, x_request_id=None): + """ShowPlaybookInstanceResponse + + The model defined in huaweicloud sdk + + :param id: Id value + :type id: str + :param name: The name, display only + :type name: str + :param project_id: Project id value + :type project_id: str + :param playbook: + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + :param dataclass: + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param dataobject: + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + :param status: Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + :type status: str + :param trigger_type: trigger type. DEBUG, TIMER, EVENT, MANUAL + :type trigger_type: str + :param start_time: Create time + :type start_time: str + :param end_time: Update time + :type end_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookInstanceResponse, self).__init__() + + self._id = None + self._name = None + self._project_id = None + self._playbook = None + self._dataclass = None + self._dataobject = None + self._status = None + self._trigger_type = None + self._start_time = None + self._end_time = None + self._x_request_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if project_id is not None: + self.project_id = project_id + if playbook is not None: + self.playbook = playbook + if dataclass is not None: + self.dataclass = dataclass + if dataobject is not None: + self.dataobject = dataobject + if status is not None: + self.status = status + if trigger_type is not None: + self.trigger_type = trigger_type + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def id(self): + """Gets the id of this ShowPlaybookInstanceResponse. + + Id value + + :return: The id of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowPlaybookInstanceResponse. + + Id value + + :param id: The id of this ShowPlaybookInstanceResponse. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ShowPlaybookInstanceResponse. + + The name, display only + + :return: The name of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowPlaybookInstanceResponse. + + The name, display only + + :param name: The name of this ShowPlaybookInstanceResponse. + :type name: str + """ + self._name = name + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookInstanceResponse. + + Project id value + + :return: The project_id of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookInstanceResponse. + + Project id value + + :param project_id: The project_id of this ShowPlaybookInstanceResponse. + :type project_id: str + """ + self._project_id = project_id + + @property + def playbook(self): + """Gets the playbook of this ShowPlaybookInstanceResponse. + + :return: The playbook of this ShowPlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + return self._playbook + + @playbook.setter + def playbook(self, playbook): + """Sets the playbook of this ShowPlaybookInstanceResponse. + + :param playbook: The playbook of this ShowPlaybookInstanceResponse. + :type playbook: :class:`huaweicloudsdksa.v2.PlaybookInfoRef` + """ + self._playbook = playbook + + @property + def dataclass(self): + """Gets the dataclass of this ShowPlaybookInstanceResponse. + + :return: The dataclass of this ShowPlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataclass + + @dataclass.setter + def dataclass(self, dataclass): + """Sets the dataclass of this ShowPlaybookInstanceResponse. + + :param dataclass: The dataclass of this ShowPlaybookInstanceResponse. + :type dataclass: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataclass = dataclass + + @property + def dataobject(self): + """Gets the dataobject of this ShowPlaybookInstanceResponse. + + :return: The dataobject of this ShowPlaybookInstanceResponse. + :rtype: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + return self._dataobject + + @dataobject.setter + def dataobject(self, dataobject): + """Sets the dataobject of this ShowPlaybookInstanceResponse. + + :param dataobject: The dataobject of this ShowPlaybookInstanceResponse. + :type dataobject: :class:`huaweicloudsdksa.v2.DataclassInfoRef` + """ + self._dataobject = dataobject + + @property + def status(self): + """Gets the status of this ShowPlaybookInstanceResponse. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :return: The status of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowPlaybookInstanceResponse. + + Playbook instance status. RUNNING、FINISHED、FAILED、RETRYING、 TERMINATING、TERMINATED + + :param status: The status of this ShowPlaybookInstanceResponse. + :type status: str + """ + self._status = status + + @property + def trigger_type(self): + """Gets the trigger_type of this ShowPlaybookInstanceResponse. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :return: The trigger_type of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._trigger_type + + @trigger_type.setter + def trigger_type(self, trigger_type): + """Sets the trigger_type of this ShowPlaybookInstanceResponse. + + trigger type. DEBUG, TIMER, EVENT, MANUAL + + :param trigger_type: The trigger_type of this ShowPlaybookInstanceResponse. + :type trigger_type: str + """ + self._trigger_type = trigger_type + + @property + def start_time(self): + """Gets the start_time of this ShowPlaybookInstanceResponse. + + Create time + + :return: The start_time of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowPlaybookInstanceResponse. + + Create time + + :param start_time: The start_time of this ShowPlaybookInstanceResponse. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowPlaybookInstanceResponse. + + Update time + + :return: The end_time of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowPlaybookInstanceResponse. + + Update time + + :param end_time: The end_time of this ShowPlaybookInstanceResponse. + :type end_time: str + """ + self._end_time = end_time + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookInstanceResponse. + + :return: The x_request_id of this ShowPlaybookInstanceResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookInstanceResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookInstanceResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_request.py new file mode 100755 index 0000000000..f63aa398ca --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_request.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookMonitorsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'start_time': 'str', + 'version_query_type': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'start_time': 'start_time', + 'version_query_type': 'version_query_type', + 'end_time': 'end_time' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None, start_time=None, version_query_type=None, end_time=None): + """ShowPlaybookMonitorsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + :param start_time: 开始时间 + :type start_time: str + :param version_query_type: 统计剧本版本类型(ALL:全部,VALID:有效的,DELETED:已删除) + :type version_query_type: str + :param end_time: 结束时间 + :type end_time: str + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self._start_time = None + self._version_query_type = None + self._end_time = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + self.start_time = start_time + self.version_query_type = version_query_type + self.end_time = end_time + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookMonitorsRequest. + + ID of project + + :return: The project_id of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookMonitorsRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookMonitorsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookMonitorsRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookMonitorsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookMonitorsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this ShowPlaybookMonitorsRequest. + + ID of playbook + + :return: The playbook_id of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this ShowPlaybookMonitorsRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this ShowPlaybookMonitorsRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def start_time(self): + """Gets the start_time of this ShowPlaybookMonitorsRequest. + + 开始时间 + + :return: The start_time of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowPlaybookMonitorsRequest. + + 开始时间 + + :param start_time: The start_time of this ShowPlaybookMonitorsRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def version_query_type(self): + """Gets the version_query_type of this ShowPlaybookMonitorsRequest. + + 统计剧本版本类型(ALL:全部,VALID:有效的,DELETED:已删除) + + :return: The version_query_type of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._version_query_type + + @version_query_type.setter + def version_query_type(self, version_query_type): + """Sets the version_query_type of this ShowPlaybookMonitorsRequest. + + 统计剧本版本类型(ALL:全部,VALID:有效的,DELETED:已删除) + + :param version_query_type: The version_query_type of this ShowPlaybookMonitorsRequest. + :type version_query_type: str + """ + self._version_query_type = version_query_type + + @property + def end_time(self): + """Gets the end_time of this ShowPlaybookMonitorsRequest. + + 结束时间 + + :return: The end_time of this ShowPlaybookMonitorsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowPlaybookMonitorsRequest. + + 结束时间 + + :param end_time: The end_time of this ShowPlaybookMonitorsRequest. + :type end_time: str + """ + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookMonitorsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_response.py new file mode 100755 index 0000000000..3f03df41d4 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_monitors_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookMonitorsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookInstanceMonitorDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowPlaybookMonitorsResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookInstanceMonitorDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookMonitorsResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowPlaybookMonitorsResponse. + + Error code + + :return: The code of this ShowPlaybookMonitorsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowPlaybookMonitorsResponse. + + Error code + + :param code: The code of this ShowPlaybookMonitorsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowPlaybookMonitorsResponse. + + Error message + + :return: The message of this ShowPlaybookMonitorsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowPlaybookMonitorsResponse. + + Error message + + :param message: The message of this ShowPlaybookMonitorsResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowPlaybookMonitorsResponse. + + :return: The data of this ShowPlaybookMonitorsResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInstanceMonitorDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPlaybookMonitorsResponse. + + :param data: The data of this ShowPlaybookMonitorsResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookInstanceMonitorDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookMonitorsResponse. + + :return: The x_request_id of this ShowPlaybookMonitorsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookMonitorsResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookMonitorsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookMonitorsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_request.py new file mode 100755 index 0000000000..a8c4643136 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None): + """ShowPlaybookRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookRequest. + + ID of project + + :return: The project_id of this ShowPlaybookRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this ShowPlaybookRequest. + + ID of playbook + + :return: The playbook_id of this ShowPlaybookRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this ShowPlaybookRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this ShowPlaybookRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_response.py new file mode 100755 index 0000000000..aa18b1c7be --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowPlaybookResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowPlaybookResponse. + + Error code + + :return: The code of this ShowPlaybookResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowPlaybookResponse. + + Error code + + :param code: The code of this ShowPlaybookResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowPlaybookResponse. + + Error message + + :return: The message of this ShowPlaybookResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowPlaybookResponse. + + Error message + + :param message: The message of this ShowPlaybookResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowPlaybookResponse. + + :return: The data of this ShowPlaybookResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPlaybookResponse. + + :param data: The data of this ShowPlaybookResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookResponse. + + :return: The x_request_id of this ShowPlaybookResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_request.py new file mode 100755 index 0000000000..f7e50f8924 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'rule_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'rule_id': 'rule_id' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, rule_id=None): + """ShowPlaybookRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param rule_id: version Id value + :type rule_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._rule_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + self.rule_id = rule_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookRuleRequest. + + ID of project + + :return: The project_id of this ShowPlaybookRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookRuleRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookRuleRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookRuleRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this ShowPlaybookRuleRequest. + + version Id value + + :return: The version_id of this ShowPlaybookRuleRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this ShowPlaybookRuleRequest. + + version Id value + + :param version_id: The version_id of this ShowPlaybookRuleRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def rule_id(self): + """Gets the rule_id of this ShowPlaybookRuleRequest. + + version Id value + + :return: The rule_id of this ShowPlaybookRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this ShowPlaybookRuleRequest. + + version Id value + + :param rule_id: The rule_id of this ShowPlaybookRuleRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_response.py new file mode 100755 index 0000000000..b2aeb19513 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_rule_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'RuleInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowPlaybookRuleResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookRuleResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowPlaybookRuleResponse. + + Error code + + :return: The code of this ShowPlaybookRuleResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowPlaybookRuleResponse. + + Error code + + :param code: The code of this ShowPlaybookRuleResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowPlaybookRuleResponse. + + Error message + + :return: The message of this ShowPlaybookRuleResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowPlaybookRuleResponse. + + Error message + + :param message: The message of this ShowPlaybookRuleResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowPlaybookRuleResponse. + + :return: The data of this ShowPlaybookRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPlaybookRuleResponse. + + :param data: The data of this ShowPlaybookRuleResponse. + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookRuleResponse. + + :return: The x_request_id of this ShowPlaybookRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookRuleResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_request.py new file mode 100755 index 0000000000..b02a4f20e0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookStatisticsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id' + } + + def __init__(self, project_id=None, workspace_id=None): + """ShowPlaybookStatisticsRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookStatisticsRequest. + + ID of project + + :return: The project_id of this ShowPlaybookStatisticsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookStatisticsRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookStatisticsRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookStatisticsRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookStatisticsRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookStatisticsRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookStatisticsRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookStatisticsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_response.py new file mode 100755 index 0000000000..822ba4c0d3 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_statistics_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookStatisticsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookStatisticDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowPlaybookStatisticsResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookStatisticDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookStatisticsResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowPlaybookStatisticsResponse. + + Error code + + :return: The code of this ShowPlaybookStatisticsResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowPlaybookStatisticsResponse. + + Error code + + :param code: The code of this ShowPlaybookStatisticsResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowPlaybookStatisticsResponse. + + Error message + + :return: The message of this ShowPlaybookStatisticsResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowPlaybookStatisticsResponse. + + Error message + + :param message: The message of this ShowPlaybookStatisticsResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowPlaybookStatisticsResponse. + + :return: The data of this ShowPlaybookStatisticsResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookStatisticDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPlaybookStatisticsResponse. + + :param data: The data of this ShowPlaybookStatisticsResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookStatisticDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookStatisticsResponse. + + :return: The x_request_id of this ShowPlaybookStatisticsResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookStatisticsResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookStatisticsResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookStatisticsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_request.py new file mode 100755 index 0000000000..4d562e867f --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookTopologyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'instance_id': 'instance_id' + } + + def __init__(self, project_id=None, workspace_id=None, instance_id=None): + """ShowPlaybookTopologyRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param instance_id: instance _id + :type instance_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._instance_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.instance_id = instance_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookTopologyRequest. + + ID of project + + :return: The project_id of this ShowPlaybookTopologyRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookTopologyRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookTopologyRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookTopologyRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookTopologyRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookTopologyRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookTopologyRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowPlaybookTopologyRequest. + + instance _id + + :return: The instance_id of this ShowPlaybookTopologyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowPlaybookTopologyRequest. + + instance _id + + :param instance_id: The instance_id of this ShowPlaybookTopologyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookTopologyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_response.py new file mode 100755 index 0000000000..7bbbc19cb8 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_topology_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookTopologyResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'action_instances': 'list[ActionInstanceInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'action_instances': 'action_instances', + 'x_request_id': 'X-request-id' + } + + def __init__(self, count=None, action_instances=None, x_request_id=None): + """ShowPlaybookTopologyResponse + + The model defined in huaweicloud sdk + + :param count: tatal count + :type count: int + :param action_instances: Playbook action instances list + :type action_instances: list[:class:`huaweicloudsdksa.v2.ActionInstanceInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookTopologyResponse, self).__init__() + + self._count = None + self._action_instances = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if action_instances is not None: + self.action_instances = action_instances + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ShowPlaybookTopologyResponse. + + tatal count + + :return: The count of this ShowPlaybookTopologyResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowPlaybookTopologyResponse. + + tatal count + + :param count: The count of this ShowPlaybookTopologyResponse. + :type count: int + """ + self._count = count + + @property + def action_instances(self): + """Gets the action_instances of this ShowPlaybookTopologyResponse. + + Playbook action instances list + + :return: The action_instances of this ShowPlaybookTopologyResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.ActionInstanceInfo`] + """ + return self._action_instances + + @action_instances.setter + def action_instances(self, action_instances): + """Sets the action_instances of this ShowPlaybookTopologyResponse. + + Playbook action instances list + + :param action_instances: The action_instances of this ShowPlaybookTopologyResponse. + :type action_instances: list[:class:`huaweicloudsdksa.v2.ActionInstanceInfo`] + """ + self._action_instances = action_instances + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookTopologyResponse. + + :return: The x_request_id of this ShowPlaybookTopologyResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookTopologyResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookTopologyResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookTopologyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_request.py new file mode 100755 index 0000000000..a3ae1ce52a --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None): + """ShowPlaybookVersionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + + @property + def project_id(self): + """Gets the project_id of this ShowPlaybookVersionRequest. + + ID of project + + :return: The project_id of this ShowPlaybookVersionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowPlaybookVersionRequest. + + ID of project + + :param project_id: The project_id of this ShowPlaybookVersionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowPlaybookVersionRequest. + + ID of workspace + + :return: The workspace_id of this ShowPlaybookVersionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowPlaybookVersionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this ShowPlaybookVersionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this ShowPlaybookVersionRequest. + + version Id value + + :return: The version_id of this ShowPlaybookVersionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this ShowPlaybookVersionRequest. + + version Id value + + :param version_id: The version_id of this ShowPlaybookVersionRequest. + :type version_id: str + """ + self._version_id = version_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_response.py new file mode 100755 index 0000000000..a21d566f58 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/show_playbook_version_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPlaybookVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookVersionInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """ShowPlaybookVersionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowPlaybookVersionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this ShowPlaybookVersionResponse. + + Error code + + :return: The code of this ShowPlaybookVersionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ShowPlaybookVersionResponse. + + Error code + + :param code: The code of this ShowPlaybookVersionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this ShowPlaybookVersionResponse. + + Error message + + :return: The message of this ShowPlaybookVersionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowPlaybookVersionResponse. + + Error message + + :param message: The message of this ShowPlaybookVersionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this ShowPlaybookVersionResponse. + + :return: The data of this ShowPlaybookVersionResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowPlaybookVersionResponse. + + :param data: The data of this ShowPlaybookVersionResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowPlaybookVersionResponse. + + :return: The x_request_id of this ShowPlaybookVersionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ShowPlaybookVersionResponse. + + :param x_request_id: The x_request_id of this ShowPlaybookVersionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPlaybookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request.py new file mode 100755 index 0000000000..01d9502d78 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlertRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'rule_id': 'str', + 'body': 'UpdateAlertRuleRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, rule_id=None, body=None): + """UpdateAlertRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: project_id + :type project_id: str + :param workspace_id: workspace_id + :type workspace_id: str + :param rule_id: rule_id + :type rule_id: str + :param body: Body of the UpdateAlertRuleRequest + :type body: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdateAlertRuleRequest. + + project_id + + :return: The project_id of this UpdateAlertRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdateAlertRuleRequest. + + project_id + + :param project_id: The project_id of this UpdateAlertRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdateAlertRuleRequest. + + workspace_id + + :return: The workspace_id of this UpdateAlertRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdateAlertRuleRequest. + + workspace_id + + :param workspace_id: The workspace_id of this UpdateAlertRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateAlertRuleRequest. + + rule_id + + :return: The rule_id of this UpdateAlertRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateAlertRuleRequest. + + rule_id + + :param rule_id: The rule_id of this UpdateAlertRuleRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdateAlertRuleRequest. + + :return: The body of this UpdateAlertRuleRequest. + :rtype: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAlertRuleRequest. + + :param body: The body of this UpdateAlertRuleRequest. + :type body: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAlertRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request_body.py new file mode 100755 index 0000000000..377a076a98 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_request_body.py @@ -0,0 +1,491 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlertRuleRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_name': 'str', + 'description': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'alert_type': 'dict(str, str)', + 'event_grouping': 'bool', + 'suppression': 'bool', + 'simulation': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]' + } + + attribute_map = { + 'rule_name': 'rule_name', + 'description': 'description', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'alert_type': 'alert_type', + 'event_grouping': 'event_grouping', + 'suppression': 'suppression', + 'simulation': 'simulation', + 'schedule': 'schedule', + 'triggers': 'triggers' + } + + def __init__(self, rule_name=None, description=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, alert_type=None, event_grouping=None, suppression=None, simulation=None, schedule=None, triggers=None): + """UpdateAlertRuleRequestBody + + The model defined in huaweicloud sdk + + :param rule_name: rule_name + :type rule_name: str + :param description: description + :type description: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param alert_type: alert_type + :type alert_type: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param suppression: suppression + :type suppression: bool + :param simulation: simulation + :type simulation: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + + + + self._rule_name = None + self._description = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._alert_type = None + self._event_grouping = None + self._suppression = None + self._simulation = None + self._schedule = None + self._triggers = None + self.discriminator = None + + if rule_name is not None: + self.rule_name = rule_name + if description is not None: + self.description = description + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if alert_type is not None: + self.alert_type = alert_type + if event_grouping is not None: + self.event_grouping = event_grouping + if suppression is not None: + self.suppression = suppression + if simulation is not None: + self.simulation = simulation + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + + @property + def rule_name(self): + """Gets the rule_name of this UpdateAlertRuleRequestBody. + + rule_name + + :return: The rule_name of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this UpdateAlertRuleRequestBody. + + rule_name + + :param rule_name: The rule_name of this UpdateAlertRuleRequestBody. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def description(self): + """Gets the description of this UpdateAlertRuleRequestBody. + + description + + :return: The description of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateAlertRuleRequestBody. + + description + + :param description: The description of this UpdateAlertRuleRequestBody. + :type description: str + """ + self._description = description + + @property + def query(self): + """Gets the query of this UpdateAlertRuleRequestBody. + + query + + :return: The query of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this UpdateAlertRuleRequestBody. + + query + + :param query: The query of this UpdateAlertRuleRequestBody. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this UpdateAlertRuleRequestBody. + + query_type. SQL, CBSL. + + :return: The query_type of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this UpdateAlertRuleRequestBody. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this UpdateAlertRuleRequestBody. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this UpdateAlertRuleRequestBody. + + status. ENABLED, DISABLED + + :return: The status of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateAlertRuleRequestBody. + + status. ENABLED, DISABLED + + :param status: The status of this UpdateAlertRuleRequestBody. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this UpdateAlertRuleRequestBody. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this UpdateAlertRuleRequestBody. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this UpdateAlertRuleRequestBody. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this UpdateAlertRuleRequestBody. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this UpdateAlertRuleRequestBody. + + accumulated_times + + :return: The accumulated_times of this UpdateAlertRuleRequestBody. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this UpdateAlertRuleRequestBody. + + accumulated_times + + :param accumulated_times: The accumulated_times of this UpdateAlertRuleRequestBody. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this UpdateAlertRuleRequestBody. + + custom_properties + + :return: The custom_properties of this UpdateAlertRuleRequestBody. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this UpdateAlertRuleRequestBody. + + custom_properties + + :param custom_properties: The custom_properties of this UpdateAlertRuleRequestBody. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def alert_type(self): + """Gets the alert_type of this UpdateAlertRuleRequestBody. + + alert_type + + :return: The alert_type of this UpdateAlertRuleRequestBody. + :rtype: dict(str, str) + """ + return self._alert_type + + @alert_type.setter + def alert_type(self, alert_type): + """Sets the alert_type of this UpdateAlertRuleRequestBody. + + alert_type + + :param alert_type: The alert_type of this UpdateAlertRuleRequestBody. + :type alert_type: dict(str, str) + """ + self._alert_type = alert_type + + @property + def event_grouping(self): + """Gets the event_grouping of this UpdateAlertRuleRequestBody. + + event_grouping + + :return: The event_grouping of this UpdateAlertRuleRequestBody. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this UpdateAlertRuleRequestBody. + + event_grouping + + :param event_grouping: The event_grouping of this UpdateAlertRuleRequestBody. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def suppression(self): + """Gets the suppression of this UpdateAlertRuleRequestBody. + + suppression + + :return: The suppression of this UpdateAlertRuleRequestBody. + :rtype: bool + """ + return self._suppression + + @suppression.setter + def suppression(self, suppression): + """Sets the suppression of this UpdateAlertRuleRequestBody. + + suppression + + :param suppression: The suppression of this UpdateAlertRuleRequestBody. + :type suppression: bool + """ + self._suppression = suppression + + @property + def simulation(self): + """Gets the simulation of this UpdateAlertRuleRequestBody. + + simulation + + :return: The simulation of this UpdateAlertRuleRequestBody. + :rtype: bool + """ + return self._simulation + + @simulation.setter + def simulation(self, simulation): + """Sets the simulation of this UpdateAlertRuleRequestBody. + + simulation + + :param simulation: The simulation of this UpdateAlertRuleRequestBody. + :type simulation: bool + """ + self._simulation = simulation + + @property + def schedule(self): + """Gets the schedule of this UpdateAlertRuleRequestBody. + + :return: The schedule of this UpdateAlertRuleRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this UpdateAlertRuleRequestBody. + + :param schedule: The schedule of this UpdateAlertRuleRequestBody. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this UpdateAlertRuleRequestBody. + + triggers + + :return: The triggers of this UpdateAlertRuleRequestBody. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this UpdateAlertRuleRequestBody. + + triggers + + :param triggers: The triggers of this UpdateAlertRuleRequestBody. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAlertRuleRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_response.py new file mode 100755 index 0000000000..30458231f5 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_alert_rule_response.py @@ -0,0 +1,632 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlertRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_id': 'str', + 'pipe_id': 'str', + 'pipe_name': 'str', + 'create_by': 'str', + 'create_time': 'int', + 'update_by': 'str', + 'update_time': 'int', + 'delete_time': 'int', + 'rule_name': 'str', + 'query': 'str', + 'query_type': 'str', + 'status': 'str', + 'severity': 'str', + 'accumulated_times': 'int', + 'custom_properties': 'dict(str, str)', + 'event_grouping': 'bool', + 'schedule': 'Schedule', + 'triggers': 'list[AlertRuleTrigger]', + 'x_request_id': 'str' + } + + attribute_map = { + 'rule_id': 'rule_id', + 'pipe_id': 'pipe_id', + 'pipe_name': 'pipe_name', + 'create_by': 'create_by', + 'create_time': 'create_time', + 'update_by': 'update_by', + 'update_time': 'update_time', + 'delete_time': 'delete_time', + 'rule_name': 'rule_name', + 'query': 'query', + 'query_type': 'query_type', + 'status': 'status', + 'severity': 'severity', + 'accumulated_times': 'accumulated_times', + 'custom_properties': 'custom_properties', + 'event_grouping': 'event_grouping', + 'schedule': 'schedule', + 'triggers': 'triggers', + 'x_request_id': 'X-request-id' + } + + def __init__(self, rule_id=None, pipe_id=None, pipe_name=None, create_by=None, create_time=None, update_by=None, update_time=None, delete_time=None, rule_name=None, query=None, query_type=None, status=None, severity=None, accumulated_times=None, custom_properties=None, event_grouping=None, schedule=None, triggers=None, x_request_id=None): + """UpdateAlertRuleResponse + + The model defined in huaweicloud sdk + + :param rule_id: rule_id + :type rule_id: str + :param pipe_id: pipe_id + :type pipe_id: str + :param pipe_name: pipe_name + :type pipe_name: str + :param create_by: create_by + :type create_by: str + :param create_time: create_time + :type create_time: int + :param update_by: update_by + :type update_by: str + :param update_time: update_time + :type update_time: int + :param delete_time: delete_time + :type delete_time: int + :param rule_name: rule_name + :type rule_name: str + :param query: query + :type query: str + :param query_type: query_type. SQL, CBSL. + :type query_type: str + :param status: status. ENABLED, DISABLED + :type status: str + :param severity: severity. TIPS, LOW, MEDIUM, HIGH, FATAL + :type severity: str + :param accumulated_times: accumulated_times + :type accumulated_times: int + :param custom_properties: custom_properties + :type custom_properties: dict(str, str) + :param event_grouping: event_grouping + :type event_grouping: bool + :param schedule: + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + :param triggers: triggers + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateAlertRuleResponse, self).__init__() + + self._rule_id = None + self._pipe_id = None + self._pipe_name = None + self._create_by = None + self._create_time = None + self._update_by = None + self._update_time = None + self._delete_time = None + self._rule_name = None + self._query = None + self._query_type = None + self._status = None + self._severity = None + self._accumulated_times = None + self._custom_properties = None + self._event_grouping = None + self._schedule = None + self._triggers = None + self._x_request_id = None + self.discriminator = None + + if rule_id is not None: + self.rule_id = rule_id + if pipe_id is not None: + self.pipe_id = pipe_id + if pipe_name is not None: + self.pipe_name = pipe_name + if create_by is not None: + self.create_by = create_by + if create_time is not None: + self.create_time = create_time + if update_by is not None: + self.update_by = update_by + if update_time is not None: + self.update_time = update_time + if delete_time is not None: + self.delete_time = delete_time + if rule_name is not None: + self.rule_name = rule_name + if query is not None: + self.query = query + if query_type is not None: + self.query_type = query_type + if status is not None: + self.status = status + if severity is not None: + self.severity = severity + if accumulated_times is not None: + self.accumulated_times = accumulated_times + if custom_properties is not None: + self.custom_properties = custom_properties + if event_grouping is not None: + self.event_grouping = event_grouping + if schedule is not None: + self.schedule = schedule + if triggers is not None: + self.triggers = triggers + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdateAlertRuleResponse. + + rule_id + + :return: The rule_id of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdateAlertRuleResponse. + + rule_id + + :param rule_id: The rule_id of this UpdateAlertRuleResponse. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def pipe_id(self): + """Gets the pipe_id of this UpdateAlertRuleResponse. + + pipe_id + + :return: The pipe_id of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._pipe_id + + @pipe_id.setter + def pipe_id(self, pipe_id): + """Sets the pipe_id of this UpdateAlertRuleResponse. + + pipe_id + + :param pipe_id: The pipe_id of this UpdateAlertRuleResponse. + :type pipe_id: str + """ + self._pipe_id = pipe_id + + @property + def pipe_name(self): + """Gets the pipe_name of this UpdateAlertRuleResponse. + + pipe_name + + :return: The pipe_name of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._pipe_name + + @pipe_name.setter + def pipe_name(self, pipe_name): + """Sets the pipe_name of this UpdateAlertRuleResponse. + + pipe_name + + :param pipe_name: The pipe_name of this UpdateAlertRuleResponse. + :type pipe_name: str + """ + self._pipe_name = pipe_name + + @property + def create_by(self): + """Gets the create_by of this UpdateAlertRuleResponse. + + create_by + + :return: The create_by of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._create_by + + @create_by.setter + def create_by(self, create_by): + """Sets the create_by of this UpdateAlertRuleResponse. + + create_by + + :param create_by: The create_by of this UpdateAlertRuleResponse. + :type create_by: str + """ + self._create_by = create_by + + @property + def create_time(self): + """Gets the create_time of this UpdateAlertRuleResponse. + + create_time + + :return: The create_time of this UpdateAlertRuleResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateAlertRuleResponse. + + create_time + + :param create_time: The create_time of this UpdateAlertRuleResponse. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_by(self): + """Gets the update_by of this UpdateAlertRuleResponse. + + update_by + + :return: The update_by of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._update_by + + @update_by.setter + def update_by(self, update_by): + """Sets the update_by of this UpdateAlertRuleResponse. + + update_by + + :param update_by: The update_by of this UpdateAlertRuleResponse. + :type update_by: str + """ + self._update_by = update_by + + @property + def update_time(self): + """Gets the update_time of this UpdateAlertRuleResponse. + + update_time + + :return: The update_time of this UpdateAlertRuleResponse. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateAlertRuleResponse. + + update_time + + :param update_time: The update_time of this UpdateAlertRuleResponse. + :type update_time: int + """ + self._update_time = update_time + + @property + def delete_time(self): + """Gets the delete_time of this UpdateAlertRuleResponse. + + delete_time + + :return: The delete_time of this UpdateAlertRuleResponse. + :rtype: int + """ + return self._delete_time + + @delete_time.setter + def delete_time(self, delete_time): + """Sets the delete_time of this UpdateAlertRuleResponse. + + delete_time + + :param delete_time: The delete_time of this UpdateAlertRuleResponse. + :type delete_time: int + """ + self._delete_time = delete_time + + @property + def rule_name(self): + """Gets the rule_name of this UpdateAlertRuleResponse. + + rule_name + + :return: The rule_name of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this UpdateAlertRuleResponse. + + rule_name + + :param rule_name: The rule_name of this UpdateAlertRuleResponse. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def query(self): + """Gets the query of this UpdateAlertRuleResponse. + + query + + :return: The query of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this UpdateAlertRuleResponse. + + query + + :param query: The query of this UpdateAlertRuleResponse. + :type query: str + """ + self._query = query + + @property + def query_type(self): + """Gets the query_type of this UpdateAlertRuleResponse. + + query_type. SQL, CBSL. + + :return: The query_type of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._query_type + + @query_type.setter + def query_type(self, query_type): + """Sets the query_type of this UpdateAlertRuleResponse. + + query_type. SQL, CBSL. + + :param query_type: The query_type of this UpdateAlertRuleResponse. + :type query_type: str + """ + self._query_type = query_type + + @property + def status(self): + """Gets the status of this UpdateAlertRuleResponse. + + status. ENABLED, DISABLED + + :return: The status of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateAlertRuleResponse. + + status. ENABLED, DISABLED + + :param status: The status of this UpdateAlertRuleResponse. + :type status: str + """ + self._status = status + + @property + def severity(self): + """Gets the severity of this UpdateAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :return: The severity of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._severity + + @severity.setter + def severity(self, severity): + """Sets the severity of this UpdateAlertRuleResponse. + + severity. TIPS, LOW, MEDIUM, HIGH, FATAL + + :param severity: The severity of this UpdateAlertRuleResponse. + :type severity: str + """ + self._severity = severity + + @property + def accumulated_times(self): + """Gets the accumulated_times of this UpdateAlertRuleResponse. + + accumulated_times + + :return: The accumulated_times of this UpdateAlertRuleResponse. + :rtype: int + """ + return self._accumulated_times + + @accumulated_times.setter + def accumulated_times(self, accumulated_times): + """Sets the accumulated_times of this UpdateAlertRuleResponse. + + accumulated_times + + :param accumulated_times: The accumulated_times of this UpdateAlertRuleResponse. + :type accumulated_times: int + """ + self._accumulated_times = accumulated_times + + @property + def custom_properties(self): + """Gets the custom_properties of this UpdateAlertRuleResponse. + + custom_properties + + :return: The custom_properties of this UpdateAlertRuleResponse. + :rtype: dict(str, str) + """ + return self._custom_properties + + @custom_properties.setter + def custom_properties(self, custom_properties): + """Sets the custom_properties of this UpdateAlertRuleResponse. + + custom_properties + + :param custom_properties: The custom_properties of this UpdateAlertRuleResponse. + :type custom_properties: dict(str, str) + """ + self._custom_properties = custom_properties + + @property + def event_grouping(self): + """Gets the event_grouping of this UpdateAlertRuleResponse. + + event_grouping + + :return: The event_grouping of this UpdateAlertRuleResponse. + :rtype: bool + """ + return self._event_grouping + + @event_grouping.setter + def event_grouping(self, event_grouping): + """Sets the event_grouping of this UpdateAlertRuleResponse. + + event_grouping + + :param event_grouping: The event_grouping of this UpdateAlertRuleResponse. + :type event_grouping: bool + """ + self._event_grouping = event_grouping + + @property + def schedule(self): + """Gets the schedule of this UpdateAlertRuleResponse. + + :return: The schedule of this UpdateAlertRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this UpdateAlertRuleResponse. + + :param schedule: The schedule of this UpdateAlertRuleResponse. + :type schedule: :class:`huaweicloudsdksa.v2.Schedule` + """ + self._schedule = schedule + + @property + def triggers(self): + """Gets the triggers of this UpdateAlertRuleResponse. + + triggers + + :return: The triggers of this UpdateAlertRuleResponse. + :rtype: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + return self._triggers + + @triggers.setter + def triggers(self, triggers): + """Sets the triggers of this UpdateAlertRuleResponse. + + triggers + + :param triggers: The triggers of this UpdateAlertRuleResponse. + :type triggers: list[:class:`huaweicloudsdksa.v2.AlertRuleTrigger`] + """ + self._triggers = triggers + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdateAlertRuleResponse. + + :return: The x_request_id of this UpdateAlertRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdateAlertRuleResponse. + + :param x_request_id: The x_request_id of this UpdateAlertRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAlertRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request.py new file mode 100755 index 0000000000..cef2c94541 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIndicatorRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'indicator_id': 'str', + 'body': 'UpdateIndicatorRequestBody' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'indicator_id': 'indicator_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, indicator_id=None, body=None): + """UpdateIndicatorRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: workspace id + :type workspace_id: str + :param indicator_id: ID of indicator + :type indicator_id: str + :param body: Body of the UpdateIndicatorRequest + :type body: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequestBody` + """ + + + + self._project_id = None + self._workspace_id = None + self._indicator_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.indicator_id = indicator_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdateIndicatorRequest. + + ID of project + + :return: The project_id of this UpdateIndicatorRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdateIndicatorRequest. + + ID of project + + :param project_id: The project_id of this UpdateIndicatorRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdateIndicatorRequest. + + workspace id + + :return: The workspace_id of this UpdateIndicatorRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdateIndicatorRequest. + + workspace id + + :param workspace_id: The workspace_id of this UpdateIndicatorRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def indicator_id(self): + """Gets the indicator_id of this UpdateIndicatorRequest. + + ID of indicator + + :return: The indicator_id of this UpdateIndicatorRequest. + :rtype: str + """ + return self._indicator_id + + @indicator_id.setter + def indicator_id(self, indicator_id): + """Sets the indicator_id of this UpdateIndicatorRequest. + + ID of indicator + + :param indicator_id: The indicator_id of this UpdateIndicatorRequest. + :type indicator_id: str + """ + self._indicator_id = indicator_id + + @property + def body(self): + """Gets the body of this UpdateIndicatorRequest. + + :return: The body of this UpdateIndicatorRequest. + :rtype: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateIndicatorRequest. + + :param body: The body of this UpdateIndicatorRequest. + :type body: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequestBody` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIndicatorRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request_body.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request_body.py new file mode 100755 index 0000000000..2c0df2fc28 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_request_body.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIndicatorRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'trigger_flag': 'bool', + 'data_object': 'IndicatorDataObjectDetail' + } + + attribute_map = { + 'trigger_flag': 'trigger_flag', + 'data_object': 'data_object' + } + + def __init__(self, trigger_flag=None, data_object=None): + """UpdateIndicatorRequestBody + + The model defined in huaweicloud sdk + + :param trigger_flag: 触发标志 + :type trigger_flag: bool + :param data_object: + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + + + + self._trigger_flag = None + self._data_object = None + self.discriminator = None + + if trigger_flag is not None: + self.trigger_flag = trigger_flag + if data_object is not None: + self.data_object = data_object + + @property + def trigger_flag(self): + """Gets the trigger_flag of this UpdateIndicatorRequestBody. + + 触发标志 + + :return: The trigger_flag of this UpdateIndicatorRequestBody. + :rtype: bool + """ + return self._trigger_flag + + @trigger_flag.setter + def trigger_flag(self, trigger_flag): + """Sets the trigger_flag of this UpdateIndicatorRequestBody. + + 触发标志 + + :param trigger_flag: The trigger_flag of this UpdateIndicatorRequestBody. + :type trigger_flag: bool + """ + self._trigger_flag = trigger_flag + + @property + def data_object(self): + """Gets the data_object of this UpdateIndicatorRequestBody. + + :return: The data_object of this UpdateIndicatorRequestBody. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + return self._data_object + + @data_object.setter + def data_object(self, data_object): + """Sets the data_object of this UpdateIndicatorRequestBody. + + :param data_object: The data_object of this UpdateIndicatorRequestBody. + :type data_object: :class:`huaweicloudsdksa.v2.IndicatorDataObjectDetail` + """ + self._data_object = data_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIndicatorRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_response.py new file mode 100755 index 0000000000..f6e2311196 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_indicator_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateIndicatorResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'IndicatorDetail', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """UpdateIndicatorResponse + + The model defined in huaweicloud sdk + + :param code: Id value + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateIndicatorResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this UpdateIndicatorResponse. + + Id value + + :return: The code of this UpdateIndicatorResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this UpdateIndicatorResponse. + + Id value + + :param code: The code of this UpdateIndicatorResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this UpdateIndicatorResponse. + + Error message + + :return: The message of this UpdateIndicatorResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this UpdateIndicatorResponse. + + Error message + + :param message: The message of this UpdateIndicatorResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this UpdateIndicatorResponse. + + :return: The data of this UpdateIndicatorResponse. + :rtype: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdateIndicatorResponse. + + :param data: The data of this UpdateIndicatorResponse. + :type data: :class:`huaweicloudsdksa.v2.IndicatorDetail` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdateIndicatorResponse. + + :return: The x_request_id of this UpdateIndicatorResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdateIndicatorResponse. + + :param x_request_id: The x_request_id of this UpdateIndicatorResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateIndicatorResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_request.py new file mode 100755 index 0000000000..4b3b26793c --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookActionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'action_id': 'str', + 'body': 'ModifyActionInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'action_id': 'action_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, action_id=None, body=None): + """UpdatePlaybookActionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param action_id: ID of action + :type action_id: str + :param body: Body of the UpdatePlaybookActionRequest + :type body: :class:`huaweicloudsdksa.v2.ModifyActionInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._action_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + self.action_id = action_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdatePlaybookActionRequest. + + ID of project + + :return: The project_id of this UpdatePlaybookActionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePlaybookActionRequest. + + ID of project + + :param project_id: The project_id of this UpdatePlaybookActionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdatePlaybookActionRequest. + + ID of workspace + + :return: The workspace_id of this UpdatePlaybookActionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdatePlaybookActionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this UpdatePlaybookActionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this UpdatePlaybookActionRequest. + + version Id value + + :return: The version_id of this UpdatePlaybookActionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this UpdatePlaybookActionRequest. + + version Id value + + :param version_id: The version_id of this UpdatePlaybookActionRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def action_id(self): + """Gets the action_id of this UpdatePlaybookActionRequest. + + ID of action + + :return: The action_id of this UpdatePlaybookActionRequest. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this UpdatePlaybookActionRequest. + + ID of action + + :param action_id: The action_id of this UpdatePlaybookActionRequest. + :type action_id: str + """ + self._action_id = action_id + + @property + def body(self): + """Gets the body of this UpdatePlaybookActionRequest. + + :return: The body of this UpdatePlaybookActionRequest. + :rtype: :class:`huaweicloudsdksa.v2.ModifyActionInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePlaybookActionRequest. + + :param body: The body of this UpdatePlaybookActionRequest. + :type body: :class:`huaweicloudsdksa.v2.ModifyActionInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookActionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_response.py new file mode 100755 index 0000000000..c11880f0b7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookActionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'ActionInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """UpdatePlaybookActionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.ActionInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePlaybookActionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this UpdatePlaybookActionResponse. + + Error code + + :return: The code of this UpdatePlaybookActionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this UpdatePlaybookActionResponse. + + Error code + + :param code: The code of this UpdatePlaybookActionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this UpdatePlaybookActionResponse. + + Error message + + :return: The message of this UpdatePlaybookActionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this UpdatePlaybookActionResponse. + + Error message + + :param message: The message of this UpdatePlaybookActionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this UpdatePlaybookActionResponse. + + :return: The data of this UpdatePlaybookActionResponse. + :rtype: :class:`huaweicloudsdksa.v2.ActionInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdatePlaybookActionResponse. + + :param data: The data of this UpdatePlaybookActionResponse. + :type data: :class:`huaweicloudsdksa.v2.ActionInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePlaybookActionResponse. + + :return: The x_request_id of this UpdatePlaybookActionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePlaybookActionResponse. + + :param x_request_id: The x_request_id of this UpdatePlaybookActionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookActionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_request.py new file mode 100755 index 0000000000..0e2e5267e0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'playbook_id': 'str', + 'body': 'ModifyPlaybookInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'playbook_id': 'playbook_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, playbook_id=None, body=None): + """UpdatePlaybookRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param playbook_id: ID of playbook + :type playbook_id: str + :param body: Body of the UpdatePlaybookRequest + :type body: :class:`huaweicloudsdksa.v2.ModifyPlaybookInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._playbook_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.playbook_id = playbook_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdatePlaybookRequest. + + ID of project + + :return: The project_id of this UpdatePlaybookRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePlaybookRequest. + + ID of project + + :param project_id: The project_id of this UpdatePlaybookRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdatePlaybookRequest. + + ID of workspace + + :return: The workspace_id of this UpdatePlaybookRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdatePlaybookRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this UpdatePlaybookRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def playbook_id(self): + """Gets the playbook_id of this UpdatePlaybookRequest. + + ID of playbook + + :return: The playbook_id of this UpdatePlaybookRequest. + :rtype: str + """ + return self._playbook_id + + @playbook_id.setter + def playbook_id(self, playbook_id): + """Sets the playbook_id of this UpdatePlaybookRequest. + + ID of playbook + + :param playbook_id: The playbook_id of this UpdatePlaybookRequest. + :type playbook_id: str + """ + self._playbook_id = playbook_id + + @property + def body(self): + """Gets the body of this UpdatePlaybookRequest. + + :return: The body of this UpdatePlaybookRequest. + :rtype: :class:`huaweicloudsdksa.v2.ModifyPlaybookInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePlaybookRequest. + + :param body: The body of this UpdatePlaybookRequest. + :type body: :class:`huaweicloudsdksa.v2.ModifyPlaybookInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_response.py new file mode 100755 index 0000000000..b9e4df3e4e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """UpdatePlaybookResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePlaybookResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this UpdatePlaybookResponse. + + Error code + + :return: The code of this UpdatePlaybookResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this UpdatePlaybookResponse. + + Error code + + :param code: The code of this UpdatePlaybookResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this UpdatePlaybookResponse. + + Error message + + :return: The message of this UpdatePlaybookResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this UpdatePlaybookResponse. + + Error message + + :param message: The message of this UpdatePlaybookResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this UpdatePlaybookResponse. + + :return: The data of this UpdatePlaybookResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdatePlaybookResponse. + + :param data: The data of this UpdatePlaybookResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePlaybookResponse. + + :return: The x_request_id of this UpdatePlaybookResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePlaybookResponse. + + :param x_request_id: The x_request_id of this UpdatePlaybookResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_request.py new file mode 100755 index 0000000000..6b1183ca1d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookRuleRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'rule_id': 'str', + 'body': 'ModifyRuleInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'rule_id': 'rule_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, rule_id=None, body=None): + """UpdatePlaybookRuleRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param rule_id: rule_id + :type rule_id: str + :param body: Body of the UpdatePlaybookRuleRequest + :type body: :class:`huaweicloudsdksa.v2.ModifyRuleInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._rule_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + self.rule_id = rule_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdatePlaybookRuleRequest. + + ID of project + + :return: The project_id of this UpdatePlaybookRuleRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePlaybookRuleRequest. + + ID of project + + :param project_id: The project_id of this UpdatePlaybookRuleRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdatePlaybookRuleRequest. + + ID of workspace + + :return: The workspace_id of this UpdatePlaybookRuleRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdatePlaybookRuleRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this UpdatePlaybookRuleRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this UpdatePlaybookRuleRequest. + + version Id value + + :return: The version_id of this UpdatePlaybookRuleRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this UpdatePlaybookRuleRequest. + + version Id value + + :param version_id: The version_id of this UpdatePlaybookRuleRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def rule_id(self): + """Gets the rule_id of this UpdatePlaybookRuleRequest. + + rule_id + + :return: The rule_id of this UpdatePlaybookRuleRequest. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this UpdatePlaybookRuleRequest. + + rule_id + + :param rule_id: The rule_id of this UpdatePlaybookRuleRequest. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def body(self): + """Gets the body of this UpdatePlaybookRuleRequest. + + :return: The body of this UpdatePlaybookRuleRequest. + :rtype: :class:`huaweicloudsdksa.v2.ModifyRuleInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePlaybookRuleRequest. + + :param body: The body of this UpdatePlaybookRuleRequest. + :type body: :class:`huaweicloudsdksa.v2.ModifyRuleInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookRuleRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_response.py new file mode 100755 index 0000000000..9bb11894c0 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_rule_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookRuleResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'RuleInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """UpdatePlaybookRuleResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePlaybookRuleResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this UpdatePlaybookRuleResponse. + + Error code + + :return: The code of this UpdatePlaybookRuleResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this UpdatePlaybookRuleResponse. + + Error code + + :param code: The code of this UpdatePlaybookRuleResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this UpdatePlaybookRuleResponse. + + Error message + + :return: The message of this UpdatePlaybookRuleResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this UpdatePlaybookRuleResponse. + + Error message + + :param message: The message of this UpdatePlaybookRuleResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this UpdatePlaybookRuleResponse. + + :return: The data of this UpdatePlaybookRuleResponse. + :rtype: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdatePlaybookRuleResponse. + + :param data: The data of this UpdatePlaybookRuleResponse. + :type data: :class:`huaweicloudsdksa.v2.RuleInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePlaybookRuleResponse. + + :return: The x_request_id of this UpdatePlaybookRuleResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePlaybookRuleResponse. + + :param x_request_id: The x_request_id of this UpdatePlaybookRuleResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookRuleResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_request.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_request.py new file mode 100755 index 0000000000..00bd07774b --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'workspace_id': 'str', + 'version_id': 'str', + 'body': 'ModifyPlaybookVersionInfo' + } + + attribute_map = { + 'project_id': 'project_id', + 'workspace_id': 'workspace_id', + 'version_id': 'version_id', + 'body': 'body' + } + + def __init__(self, project_id=None, workspace_id=None, version_id=None, body=None): + """UpdatePlaybookVersionRequest + + The model defined in huaweicloud sdk + + :param project_id: ID of project + :type project_id: str + :param workspace_id: ID of workspace + :type workspace_id: str + :param version_id: version Id value + :type version_id: str + :param body: Body of the UpdatePlaybookVersionRequest + :type body: :class:`huaweicloudsdksa.v2.ModifyPlaybookVersionInfo` + """ + + + + self._project_id = None + self._workspace_id = None + self._version_id = None + self._body = None + self.discriminator = None + + self.project_id = project_id + self.workspace_id = workspace_id + self.version_id = version_id + if body is not None: + self.body = body + + @property + def project_id(self): + """Gets the project_id of this UpdatePlaybookVersionRequest. + + ID of project + + :return: The project_id of this UpdatePlaybookVersionRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this UpdatePlaybookVersionRequest. + + ID of project + + :param project_id: The project_id of this UpdatePlaybookVersionRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def workspace_id(self): + """Gets the workspace_id of this UpdatePlaybookVersionRequest. + + ID of workspace + + :return: The workspace_id of this UpdatePlaybookVersionRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this UpdatePlaybookVersionRequest. + + ID of workspace + + :param workspace_id: The workspace_id of this UpdatePlaybookVersionRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def version_id(self): + """Gets the version_id of this UpdatePlaybookVersionRequest. + + version Id value + + :return: The version_id of this UpdatePlaybookVersionRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this UpdatePlaybookVersionRequest. + + version Id value + + :param version_id: The version_id of this UpdatePlaybookVersionRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def body(self): + """Gets the body of this UpdatePlaybookVersionRequest. + + :return: The body of this UpdatePlaybookVersionRequest. + :rtype: :class:`huaweicloudsdksa.v2.ModifyPlaybookVersionInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePlaybookVersionRequest. + + :param body: The body of this UpdatePlaybookVersionRequest. + :type body: :class:`huaweicloudsdksa.v2.ModifyPlaybookVersionInfo` + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_response.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_response.py new file mode 100755 index 0000000000..66e261d042 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_version_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePlaybookVersionResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'code': 'str', + 'message': 'str', + 'data': 'PlaybookVersionInfo', + 'x_request_id': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, code=None, message=None, data=None, x_request_id=None): + """UpdatePlaybookVersionResponse + + The model defined in huaweicloud sdk + + :param code: Error code + :type code: str + :param message: Error message + :type message: str + :param data: + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + :param x_request_id: + :type x_request_id: str + """ + + super(UpdatePlaybookVersionResponse, self).__init__() + + self._code = None + self._message = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def code(self): + """Gets the code of this UpdatePlaybookVersionResponse. + + Error code + + :return: The code of this UpdatePlaybookVersionResponse. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this UpdatePlaybookVersionResponse. + + Error code + + :param code: The code of this UpdatePlaybookVersionResponse. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this UpdatePlaybookVersionResponse. + + Error message + + :return: The message of this UpdatePlaybookVersionResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this UpdatePlaybookVersionResponse. + + Error message + + :param message: The message of this UpdatePlaybookVersionResponse. + :type message: str + """ + self._message = message + + @property + def data(self): + """Gets the data of this UpdatePlaybookVersionResponse. + + :return: The data of this UpdatePlaybookVersionResponse. + :rtype: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdatePlaybookVersionResponse. + + :param data: The data of this UpdatePlaybookVersionResponse. + :type data: :class:`huaweicloudsdksa.v2.PlaybookVersionInfo` + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdatePlaybookVersionResponse. + + :return: The x_request_id of this UpdatePlaybookVersionResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this UpdatePlaybookVersionResponse. + + :param x_request_id: The x_request_id of this UpdatePlaybookVersionResponse. + :type x_request_id: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePlaybookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/__init__.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/__init__.py new file mode 100755 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py new file mode 100755 index 0000000000..9ec9ae58b7 --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class SaRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SA") + + + CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") + + CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "cn-east-3": CN_EAST_3, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id.") + + fields = static_fields if static_fields else cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("Unexpected region_id: " + region_id) + + diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_async_client.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_async_client.py new file mode 100755 index 0000000000..3f7000ad3d --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_async_client.py @@ -0,0 +1,4084 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class SaAsyncClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(SaAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdksa.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "SaClient": + raise TypeError("client type error, support client type is SaClient") + + return ClientBuilder(clazz) + + def create_alert_rule_async(self, request): + """创建告警规则(仅支持华东-上海一使用) + + Create alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAlertRule + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleResponse` + """ + return self.create_alert_rule_with_http_info(request) + + def create_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_alert_rule_simulation_async(self, request): + """模拟告警规则(仅支持华东-上海一使用) + + Simulate alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAlertRuleSimulation + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationResponse` + """ + return self.create_alert_rule_simulation_with_http_info(request) + + def create_alert_rule_simulation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_rule_simulation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/simulation', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertRuleSimulationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_alert_rule_async(self, request): + """删除告警规则(仅支持华东-上海一使用) + + Delete alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteAlertRule + :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertRuleResponse` + """ + return self.delete_alert_rule_with_http_info(request) + + def delete_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def disable_alert_rule_async(self, request): + """停用告警规则(仅支持华东-上海一使用) + + Disable alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DisableAlertRule + :type request: :class:`huaweicloudsdksa.v2.DisableAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DisableAlertRuleResponse` + """ + return self.disable_alert_rule_with_http_info(request) + + def disable_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'disable_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/disable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DisableAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def enable_alert_rule_async(self, request): + """启用告警规则(仅支持华东-上海一使用) + + Enable alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for EnableAlertRule + :type request: :class:`huaweicloudsdksa.v2.EnableAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.EnableAlertRuleResponse` + """ + return self.enable_alert_rule_with_http_info(request) + + def enable_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'enable_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/enable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='EnableAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rule_metrics_async(self, request): + """告警规则总览(仅支持华东-上海一使用) + + List alert rule metrics + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAlertRuleMetrics + :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsResponse` + """ + return self.list_alert_rule_metrics_with_http_info(request) + + def list_alert_rule_metrics_with_http_info(self, request): + all_params = ['project_id', 'workspace_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/metrics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRuleMetricsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rule_templates_async(self, request): + """列出告警规则模板(仅支持华东-上海一使用) + + List alert rule templates + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAlertRuleTemplates + :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesResponse` + """ + return self.list_alert_rule_templates_with_http_info(request) + + def list_alert_rule_templates_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'severity'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'severity' in local_var_params: + query_params.append(('severity', local_var_params['severity'])) + collection_formats['severity'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/templates', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRuleTemplatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rules_async(self, request): + """列出告警规则(仅支持华东-上海一使用) + + List alert rules + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAlertRules + :type request: :class:`huaweicloudsdksa.v2.ListAlertRulesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRulesResponse` + """ + return self.list_alert_rules_with_http_info(request) + + def list_alert_rules_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'pipe_id', 'rule_name', 'rule_id', 'status', 'severity'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'pipe_id' in local_var_params: + query_params.append(('pipe_id', local_var_params['pipe_id'])) + if 'rule_name' in local_var_params: + query_params.append(('rule_name', local_var_params['rule_name'])) + if 'rule_id' in local_var_params: + query_params.append(('rule_id', local_var_params['rule_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + if 'severity' in local_var_params: + query_params.append(('severity', local_var_params['severity'])) + collection_formats['severity'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert_rule_async(self, request): + """查看告警规则(仅支持华东-上海一使用) + + Get alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAlertRule + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleResponse` + """ + return self.show_alert_rule_with_http_info(request) + + def show_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert_rule_template_async(self, request): + """查看告警规则模板(仅支持华东-上海一使用) + + List alert rule templates + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAlertRuleTemplate + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateResponse` + """ + return self.show_alert_rule_template_with_http_info(request) + + def show_alert_rule_template_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'template_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/templates/{template_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertRuleTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_alert_rule_async(self, request): + """更新告警规则(仅支持华东-上海一使用) + + Update alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateAlertRule + :type request: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdateAlertRuleResponse` + """ + return self.update_alert_rule_with_http_info(request) + + def update_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'rule_id', 'update_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_alert_async(self, request): + """更新告警(仅支持华东-上海一使用) + + 编辑告警,根据实际修改的属性更新,未修改的列不更新 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeAlert + :type request: :class:`huaweicloudsdksa.v2.ChangeAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangeAlertResponse` + """ + return self.change_alert_with_http_info(request) + + def change_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'alert_id', 'change_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'alert_id' in local_var_params: + path_params['alert_id'] = local_var_params['alert_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/{alert_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_alert_async(self, request): + """创建告警(仅支持华东-上海一使用) + + 创建告警 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAlert + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertResponse` + """ + return self.create_alert_with_http_info(request) + + def create_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_batch_order_alerts_async(self, request): + """告警转事件(仅支持华东-上海一使用) + + 告警转事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateBatchOrderAlerts + :type request: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsResponse` + """ + return self.create_batch_order_alerts_with_http_info(request) + + def create_batch_order_alerts_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_batch_order_alerts_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/batch-order', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateBatchOrderAlertsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_alert_async(self, request): + """删除告警(仅支持华东-上海一使用) + + 删除告警 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteAlert + :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertResponse` + """ + return self.delete_alert_with_http_info(request) + + def delete_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alerts_async(self, request): + """搜索告警列表(仅支持华东-上海一使用) + + 搜索告警列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAlerts + :type request: :class:`huaweicloudsdksa.v2.ListAlertsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertsResponse` + """ + return self.list_alerts_with_http_info(request) + + def list_alerts_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'list_alerts_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert_async(self, request): + """获取告警详情(仅支持华东-上海一使用) + + 获取告警详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAlert + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertResponse` + """ + return self.show_alert_with_http_info(request) + + def show_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'alert_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'alert_id' in local_var_params: + path_params['alert_id'] = local_var_params['alert_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/{alert_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_incident_async(self, request): + """更新事件(仅支持华东-上海一使用) + + 编辑事件,根据实际修改的属性更新,未修改的列不更新 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeIncident + :type request: :class:`huaweicloudsdksa.v2.ChangeIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangeIncidentResponse` + """ + return self.change_incident_with_http_info(request) + + def change_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'incident_id', 'change_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'incident_id' in local_var_params: + path_params['incident_id'] = local_var_params['incident_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/{incident_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_incident_async(self, request): + """创建事件(仅支持华东-上海一使用) + + 创建事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateIncident + :type request: :class:`huaweicloudsdksa.v2.CreateIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentResponse` + """ + return self.create_incident_with_http_info(request) + + def create_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_incident_async(self, request): + """创建事件(仅支持华东-上海一使用) + + 创建事件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteIncident + :type request: :class:`huaweicloudsdksa.v2.DeleteIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteIncidentResponse` + """ + return self.delete_incident_with_http_info(request) + + def delete_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_incident_types_async(self, request): + """获取事件的类型列表(仅支持华东-上海一使用) + + 获取事件的类型列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListIncidentTypes + :type request: :class:`huaweicloudsdksa.v2.ListIncidentTypesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIncidentTypesResponse` + """ + return self.list_incident_types_with_http_info(request) + + def list_incident_types_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'parent_business_code', 'offset', 'limit', 'order', 'sortby', 'name', 'enabled', 'layout_name', 'is_built_in'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'parent_business_code' in local_var_params: + query_params.append(('parent_business_code', local_var_params['parent_business_code'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'sortby' in local_var_params: + query_params.append(('sortby', local_var_params['sortby'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'layout_name' in local_var_params: + query_params.append(('layout_name', local_var_params['layout_name'])) + if 'is_built_in' in local_var_params: + query_params.append(('is_built_in', local_var_params['is_built_in'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/types', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIncidentTypesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_incidents_async(self, request): + """搜索事件列表(仅支持华东-上海一使用) + + 搜索事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListIncidents + :type request: :class:`huaweicloudsdksa.v2.ListIncidentsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIncidentsResponse` + """ + return self.list_incidents_with_http_info(request) + + def list_incidents_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'listincidents_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIncidentsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_incident_async(self, request): + """获取事件详情(仅支持华东-上海一使用) + + 获取事件详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowIncident + :type request: :class:`huaweicloudsdksa.v2.ShowIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowIncidentResponse` + """ + return self.show_incident_with_http_info(request) + + def show_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'incident_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'incident_id' in local_var_params: + path_params['incident_id'] = local_var_params['incident_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/{incident_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_indicator_async(self, request): + """创建指标 + + 创建指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateIndicator + :type request: :class:`huaweicloudsdksa.v2.CreateIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorResponse` + """ + return self.create_indicator_with_http_info(request) + + def create_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_indicator_async(self, request): + """删除指标 + + 删除指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteIndicator + :type request: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteIndicatorResponse` + """ + return self.delete_indicator_with_http_info(request) + + def delete_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_indicators_async(self, request): + """查询指标列表(仅支持华东-上海一使用) + + List all indicators + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListIndicators + :type request: :class:`huaweicloudsdksa.v2.ListIndicatorsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIndicatorsResponse` + """ + return self.list_indicators_with_http_info(request) + + def list_indicators_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'list_indicators_request_body', 'order', 'from_date', 'to_date'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIndicatorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_indicator_detail_async(self, request): + """查询指标详情 + + 查询指标详情(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowIndicatorDetail + :type request: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailResponse` + """ + return self.show_indicator_detail_with_http_info(request) + + def show_indicator_detail_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'indicator_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'indicator_id' in local_var_params: + path_params['indicator_id'] = local_var_params['indicator_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/{indicator_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIndicatorDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_indicator_async(self, request): + """更新指标 + + 更新指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateIndicator + :type request: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdateIndicatorResponse` + """ + return self.update_indicator_with_http_info(request) + + def update_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'indicator_id', 'update_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'indicator_id' in local_var_params: + path_params['indicator_id'] = local_var_params['indicator_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/{indicator_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_async(self, request): + """创建剧本(仅支持华东-上海一使用) + + Create playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePlaybook + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookResponse` + """ + return self.create_playbook_with_http_info(request) + + def create_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_playbook_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_async(self, request): + """删除剧本(仅支持华东-上海一使用) + + Delete playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePlaybook + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookResponse` + """ + return self.delete_playbook_with_http_info(request) + + def delete_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbooks_async(self, request): + """查询剧本列表(仅支持华东-上海一使用) + + List all playbooks. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybooks + :type request: :class:`huaweicloudsdksa.v2.ListPlaybooksRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybooksResponse` + """ + return self.list_playbooks_with_http_info(request) + + def list_playbooks_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'search_txt', 'component_id', 'enabled', 'offset', 'limit', 'description', 'dataclass_name', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'search_txt' in local_var_params: + query_params.append(('search_txt', local_var_params['search_txt'])) + if 'component_id' in local_var_params: + query_params.append(('component_id', local_var_params['component_id'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'dataclass_name' in local_var_params: + query_params.append(('dataclass_name', local_var_params['dataclass_name'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybooksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_async(self, request): + """查询剧本详情(仅支持华东-上海一使用) + + Show playbook + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybook + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookResponse` + """ + return self.show_playbook_with_http_info(request) + + def show_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_monitors_async(self, request): + """剧本运行监控(仅支持华东-上海一使用) + + 剧本运行监控 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookMonitors + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsResponse` + """ + return self.show_playbook_monitors_with_http_info(request) + + def show_playbook_monitors_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'start_time', 'version_query_type', 'end_time'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'version_query_type' in local_var_params: + query_params.append(('version_query_type', local_var_params['version_query_type'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/monitor', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookMonitorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_statistics_async(self, request): + """剧本数据统计(仅支持华东-上海一使用) + + 剧本统计数据 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookStatistics + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsResponse` + """ + return self.show_playbook_statistics_with_http_info(request) + + def show_playbook_statistics_with_http_info(self, request): + all_params = ['project_id', 'workspace_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_async(self, request): + """修改剧本(仅支持华东-上海一使用) + + Update playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePlaybook + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookResponse` + """ + return self.update_playbook_with_http_info(request) + + def update_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'update_playbook_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_action_async(self, request): + """创建剧本动作(仅支持华东-上海一使用) + + Create action. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookActionResponse` + """ + return self.create_playbook_action_with_http_info(request) + + def create_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_action_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_action_async(self, request): + """删除剧本动作(仅支持华东-上海一使用) + + Delete action. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookActionResponse` + """ + return self.delete_playbook_action_with_http_info(request) + + def delete_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'action_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'action_id' in local_var_params: + path_params['action_id'] = local_var_params['action_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions/{action_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_actions_async(self, request): + """查询剧本动作(仅支持华东-上海一使用) + + List all actions. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybookActions + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookActionsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookActionsResponse` + """ + return self.list_playbook_actions_with_http_info(request) + + def list_playbook_actions_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookActionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_action_async(self, request): + """更新剧本动作(仅支持华东-上海一使用) + + Update action. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionResponse` + """ + return self.update_playbook_action_with_http_info(request) + + def update_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'action_id', 'update_playbook_action_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'action_id' in local_var_params: + path_params['action_id'] = local_var_params['action_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions/{action_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_approve_async(self, request): + """审核剧本(仅支持华东-上海一使用) + + Create playbook approve. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePlaybookApprove + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveResponse` + """ + return self.create_playbook_approve_with_http_info(request) + + def create_playbook_approve_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_approve_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/approval', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookApproveResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_approves_async(self, request): + """查询剧本审核结果(仅支持华东-上海一使用) + + List approves. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybookApproves + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesResponse` + """ + return self.list_playbook_approves_with_http_info(request) + + def list_playbook_approves_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'resource_id', 'approve_type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'resource_id' in local_var_params: + query_params.append(('resource_id', local_var_params['resource_id'])) + if 'approve_type' in local_var_params: + query_params.append(('approve_type', local_var_params['approve_type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/approval', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookApprovesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_playbook_instance_async(self, request): + """操作剧本实例(仅支持华东-上海一使用) + + Operation Playbook Instance. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangePlaybookInstance + :type request: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceResponse` + """ + return self.change_playbook_instance_with_http_info(request) + + def change_playbook_instance_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id', 'change_playbook_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}/operation', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangePlaybookInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_audit_logs_async(self, request): + """查询剧本实例审计日志(仅支持华东-上海一使用) + + List audit logs. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybookAuditLogs + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsResponse` + """ + return self.list_playbook_audit_logs_with_http_info(request) + + def list_playbook_audit_logs_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'list_playbook_audit_logs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/auditlogs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookAuditLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_instances_async(self, request): + """查询剧本实例列表(仅支持华东-上海一使用) + + List playbook instances + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybookInstances + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesResponse` + """ + return self.list_playbook_instances_with_http_info(request) + + def list_playbook_instances_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'status', 'date_type', 'name', 'playbook_name', 'dataclass_name', 'dataobject_name', 'trigger_type', 'from_date', 'to_date', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'date_type' in local_var_params: + query_params.append(('date_type', local_var_params['date_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'playbook_name' in local_var_params: + query_params.append(('playbook_name', local_var_params['playbook_name'])) + if 'dataclass_name' in local_var_params: + query_params.append(('dataclass_name', local_var_params['dataclass_name'])) + if 'dataobject_name' in local_var_params: + query_params.append(('dataobject_name', local_var_params['dataobject_name'])) + if 'trigger_type' in local_var_params: + query_params.append(('trigger_type', local_var_params['trigger_type'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookInstancesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_instance_async(self, request): + """查询剧本实例详情(仅支持华东-上海一使用) + + Show playbook instance + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookInstance + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceResponse` + """ + return self.show_playbook_instance_with_http_info(request) + + def show_playbook_instance_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_topology_async(self, request): + """查询剧本拓扑关系(仅支持华东-上海一使用) + + Show playbook Topology + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookTopology + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyResponse` + """ + return self.show_playbook_topology_with_http_info(request) + + def show_playbook_topology_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}/topology', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookTopologyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_rule_async(self, request): + """创建剧本规则(仅支持华东-上海一使用) + + Create rule. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleResponse` + """ + return self.create_playbook_rule_with_http_info(request) + + def create_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_rule_async(self, request): + """删除剧本规则(仅支持华东-上海一使用) + + Delete rule. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleResponse` + """ + return self.delete_playbook_rule_with_http_info(request) + + def delete_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_rule_async(self, request): + """查询剧本规则详情(仅支持华东-上海一使用) + + Show rule formation. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookRule + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleResponse` + """ + return self.show_playbook_rule_with_http_info(request) + + def show_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_rule_async(self, request): + """更新剧本规则(仅支持华东-上海一使用) + + Update rule. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleResponse` + """ + return self.update_playbook_rule_with_http_info(request) + + def update_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id', 'update_playbook_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def copy_playbook_version_async(self, request): + """克隆剧本及版本(仅支持华东-上海一使用) + + Copy Playbook and version to a new one + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CopyPlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionResponse` + """ + return self.copy_playbook_version_with_http_info(request) + + def copy_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'copy_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/clone', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CopyPlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_version_async(self, request): + """创建剧本版本(仅支持华东-上海一使用) + + Create playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionResponse` + """ + return self.create_playbook_version_with_http_info(request) + + def create_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'create_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/versions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_version_async(self, request): + """删除剧本版本(仅支持华东-上海一使用) + + Delete playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionResponse` + """ + return self.delete_playbook_version_with_http_info(request) + + def delete_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_versions_async(self, request): + """查询剧本版本列表(仅支持华东-上海一使用) + + List all versions of playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPlaybookVersions + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsResponse` + """ + return self.list_playbook_versions_with_http_info(request) + + def list_playbook_versions_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'status', 'enabled', 'version_type', 'approve_role', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'version_type' in local_var_params: + query_params.append(('version_type', local_var_params['version_type'])) + if 'approve_role' in local_var_params: + query_params.append(('approve_role', local_var_params['approve_role'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/versions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookVersionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_version_async(self, request): + """查询剧本版本详情(仅支持华东-上海一使用) + + Show playbook version version + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionResponse` + """ + return self.show_playbook_version_with_http_info(request) + + def show_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_version_async(self, request): + """更新剧本版本(仅支持华东-上海一使用) + + Update playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionResponse` + """ + return self.update_playbook_version_with_http_info(request) + + def update_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'update_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_dataobject_relation_async(self, request): + """创建Dataobject关系 + + Create Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationResponse` + """ + return self.create_dataobject_relation_with_http_info(request) + + def create_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'create_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_dataobject_relation_async(self, request): + """删除Dataobject关系 + + Delete Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationResponse` + """ + return self.delete_dataobject_relation_with_http_info(request) + + def delete_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'delete_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_dataobject_relation_async(self, request): + """查询Dataobject关系列表 + + List Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.ListDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListDataobjectRelationResponse` + """ + return self.list_dataobject_relation_with_http_info(request) + + def list_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'list_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_client.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_client.py new file mode 100755 index 0000000000..8de867d34e --- /dev/null +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/sa_client.py @@ -0,0 +1,4023 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class SaClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(SaClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdksa.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "SaClient": + raise TypeError("client type error, support client type is SaClient") + + return ClientBuilder(clazz) + + def create_alert_rule(self, request): + """创建告警规则(仅支持华东-上海一使用) + + Create alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAlertRule + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleResponse` + """ + return self.create_alert_rule_with_http_info(request) + + def create_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_alert_rule_simulation(self, request): + """模拟告警规则(仅支持华东-上海一使用) + + Simulate alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAlertRuleSimulation + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertRuleSimulationResponse` + """ + return self.create_alert_rule_simulation_with_http_info(request) + + def create_alert_rule_simulation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_rule_simulation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/simulation', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertRuleSimulationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_alert_rule(self, request): + """删除告警规则(仅支持华东-上海一使用) + + Delete alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteAlertRule + :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertRuleResponse` + """ + return self.delete_alert_rule_with_http_info(request) + + def delete_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def disable_alert_rule(self, request): + """停用告警规则(仅支持华东-上海一使用) + + Disable alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DisableAlertRule + :type request: :class:`huaweicloudsdksa.v2.DisableAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DisableAlertRuleResponse` + """ + return self.disable_alert_rule_with_http_info(request) + + def disable_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'disable_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/disable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DisableAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def enable_alert_rule(self, request): + """启用告警规则(仅支持华东-上海一使用) + + Enable alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for EnableAlertRule + :type request: :class:`huaweicloudsdksa.v2.EnableAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.EnableAlertRuleResponse` + """ + return self.enable_alert_rule_with_http_info(request) + + def enable_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'enable_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/enable', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='EnableAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rule_metrics(self, request): + """告警规则总览(仅支持华东-上海一使用) + + List alert rule metrics + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAlertRuleMetrics + :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleMetricsResponse` + """ + return self.list_alert_rule_metrics_with_http_info(request) + + def list_alert_rule_metrics_with_http_info(self, request): + all_params = ['project_id', 'workspace_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/metrics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRuleMetricsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rule_templates(self, request): + """列出告警规则模板(仅支持华东-上海一使用) + + List alert rule templates + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAlertRuleTemplates + :type request: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRuleTemplatesResponse` + """ + return self.list_alert_rule_templates_with_http_info(request) + + def list_alert_rule_templates_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'severity'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'severity' in local_var_params: + query_params.append(('severity', local_var_params['severity'])) + collection_formats['severity'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/templates', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRuleTemplatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alert_rules(self, request): + """列出告警规则(仅支持华东-上海一使用) + + List alert rules + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAlertRules + :type request: :class:`huaweicloudsdksa.v2.ListAlertRulesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertRulesResponse` + """ + return self.list_alert_rules_with_http_info(request) + + def list_alert_rules_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'pipe_id', 'rule_name', 'rule_id', 'status', 'severity'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'pipe_id' in local_var_params: + query_params.append(('pipe_id', local_var_params['pipe_id'])) + if 'rule_name' in local_var_params: + query_params.append(('rule_name', local_var_params['rule_name'])) + if 'rule_id' in local_var_params: + query_params.append(('rule_id', local_var_params['rule_id'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + collection_formats['status'] = 'csv' + if 'severity' in local_var_params: + query_params.append(('severity', local_var_params['severity'])) + collection_formats['severity'] = 'csv' + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertRulesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert_rule(self, request): + """查看告警规则(仅支持华东-上海一使用) + + Get alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAlertRule + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleResponse` + """ + return self.show_alert_rule_with_http_info(request) + + def show_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert_rule_template(self, request): + """查看告警规则模板(仅支持华东-上海一使用) + + List alert rule templates + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAlertRuleTemplate + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertRuleTemplateResponse` + """ + return self.show_alert_rule_template_with_http_info(request) + + def show_alert_rule_template_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'template_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/templates/{template_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertRuleTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_alert_rule(self, request): + """更新告警规则(仅支持华东-上海一使用) + + Update alert rule + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateAlertRule + :type request: :class:`huaweicloudsdksa.v2.UpdateAlertRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdateAlertRuleResponse` + """ + return self.update_alert_rule_with_http_info(request) + + def update_alert_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'rule_id', 'update_alert_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/siem/alert-rules/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateAlertRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_alert(self, request): + """更新告警(仅支持华东-上海一使用) + + 编辑告警,根据实际修改的属性更新,未修改的列不更新 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeAlert + :type request: :class:`huaweicloudsdksa.v2.ChangeAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangeAlertResponse` + """ + return self.change_alert_with_http_info(request) + + def change_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'alert_id', 'change_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'alert_id' in local_var_params: + path_params['alert_id'] = local_var_params['alert_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/{alert_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_alert(self, request): + """创建告警(仅支持华东-上海一使用) + + 创建告警 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAlert + :type request: :class:`huaweicloudsdksa.v2.CreateAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateAlertResponse` + """ + return self.create_alert_with_http_info(request) + + def create_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_batch_order_alerts(self, request): + """告警转事件(仅支持华东-上海一使用) + + 告警转事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateBatchOrderAlerts + :type request: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateBatchOrderAlertsResponse` + """ + return self.create_batch_order_alerts_with_http_info(request) + + def create_batch_order_alerts_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_batch_order_alerts_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/batch-order', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateBatchOrderAlertsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_alert(self, request): + """删除告警(仅支持华东-上海一使用) + + 删除告警 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteAlert + :type request: :class:`huaweicloudsdksa.v2.DeleteAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteAlertResponse` + """ + return self.delete_alert_with_http_info(request) + + def delete_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_alert_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_alerts(self, request): + """搜索告警列表(仅支持华东-上海一使用) + + 搜索告警列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAlerts + :type request: :class:`huaweicloudsdksa.v2.ListAlertsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListAlertsResponse` + """ + return self.list_alerts_with_http_info(request) + + def list_alerts_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'list_alerts_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListAlertsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_alert(self, request): + """获取告警详情(仅支持华东-上海一使用) + + 获取告警详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAlert + :type request: :class:`huaweicloudsdksa.v2.ShowAlertRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowAlertResponse` + """ + return self.show_alert_with_http_info(request) + + def show_alert_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'alert_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'alert_id' in local_var_params: + path_params['alert_id'] = local_var_params['alert_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/alerts/{alert_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAlertResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_incident(self, request): + """更新事件(仅支持华东-上海一使用) + + 编辑事件,根据实际修改的属性更新,未修改的列不更新 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeIncident + :type request: :class:`huaweicloudsdksa.v2.ChangeIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangeIncidentResponse` + """ + return self.change_incident_with_http_info(request) + + def change_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'incident_id', 'change_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'incident_id' in local_var_params: + path_params['incident_id'] = local_var_params['incident_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/{incident_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_incident(self, request): + """创建事件(仅支持华东-上海一使用) + + 创建事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateIncident + :type request: :class:`huaweicloudsdksa.v2.CreateIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateIncidentResponse` + """ + return self.create_incident_with_http_info(request) + + def create_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_incident(self, request): + """创建事件(仅支持华东-上海一使用) + + 创建事件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteIncident + :type request: :class:`huaweicloudsdksa.v2.DeleteIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteIncidentResponse` + """ + return self.delete_incident_with_http_info(request) + + def delete_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_incident_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_incident_types(self, request): + """获取事件的类型列表(仅支持华东-上海一使用) + + 获取事件的类型列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListIncidentTypes + :type request: :class:`huaweicloudsdksa.v2.ListIncidentTypesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIncidentTypesResponse` + """ + return self.list_incident_types_with_http_info(request) + + def list_incident_types_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'parent_business_code', 'offset', 'limit', 'order', 'sortby', 'name', 'enabled', 'layout_name', 'is_built_in'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'parent_business_code' in local_var_params: + query_params.append(('parent_business_code', local_var_params['parent_business_code'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'sortby' in local_var_params: + query_params.append(('sortby', local_var_params['sortby'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'layout_name' in local_var_params: + query_params.append(('layout_name', local_var_params['layout_name'])) + if 'is_built_in' in local_var_params: + query_params.append(('is_built_in', local_var_params['is_built_in'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/types', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIncidentTypesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_incidents(self, request): + """搜索事件列表(仅支持华东-上海一使用) + + 搜索事件列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListIncidents + :type request: :class:`huaweicloudsdksa.v2.ListIncidentsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIncidentsResponse` + """ + return self.list_incidents_with_http_info(request) + + def list_incidents_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'listincidents_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIncidentsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_incident(self, request): + """获取事件详情(仅支持华东-上海一使用) + + 获取事件详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowIncident + :type request: :class:`huaweicloudsdksa.v2.ShowIncidentRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowIncidentResponse` + """ + return self.show_incident_with_http_info(request) + + def show_incident_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'incident_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'incident_id' in local_var_params: + path_params['incident_id'] = local_var_params['incident_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/incidents/{incident_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIncidentResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_indicator(self, request): + """创建指标 + + 创建指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateIndicator + :type request: :class:`huaweicloudsdksa.v2.CreateIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateIndicatorResponse` + """ + return self.create_indicator_with_http_info(request) + + def create_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_indicator(self, request): + """删除指标 + + 删除指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteIndicator + :type request: :class:`huaweicloudsdksa.v2.DeleteIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteIndicatorResponse` + """ + return self.delete_indicator_with_http_info(request) + + def delete_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'delete_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_indicators(self, request): + """查询指标列表(仅支持华东-上海一使用) + + List all indicators + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListIndicators + :type request: :class:`huaweicloudsdksa.v2.ListIndicatorsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListIndicatorsResponse` + """ + return self.list_indicators_with_http_info(request) + + def list_indicators_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'list_indicators_request_body', 'order', 'from_date', 'to_date'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'order' in local_var_params: + query_params.append(('order', local_var_params['order'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListIndicatorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_indicator_detail(self, request): + """查询指标详情 + + 查询指标详情(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowIndicatorDetail + :type request: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowIndicatorDetailResponse` + """ + return self.show_indicator_detail_with_http_info(request) + + def show_indicator_detail_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'indicator_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'indicator_id' in local_var_params: + path_params['indicator_id'] = local_var_params['indicator_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/{indicator_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowIndicatorDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_indicator(self, request): + """更新指标 + + 更新指标(仅支持华东-上海一使用) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateIndicator + :type request: :class:`huaweicloudsdksa.v2.UpdateIndicatorRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdateIndicatorResponse` + """ + return self.update_indicator_with_http_info(request) + + def update_indicator_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'indicator_id', 'update_indicator_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'indicator_id' in local_var_params: + path_params['indicator_id'] = local_var_params['indicator_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/indicators/{indicator_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdateIndicatorResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook(self, request): + """创建剧本(仅支持华东-上海一使用) + + Create playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePlaybook + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookResponse` + """ + return self.create_playbook_with_http_info(request) + + def create_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'create_playbook_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook(self, request): + """删除剧本(仅支持华东-上海一使用) + + Delete playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePlaybook + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookResponse` + """ + return self.delete_playbook_with_http_info(request) + + def delete_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbooks(self, request): + """查询剧本列表(仅支持华东-上海一使用) + + List all playbooks. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybooks + :type request: :class:`huaweicloudsdksa.v2.ListPlaybooksRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybooksResponse` + """ + return self.list_playbooks_with_http_info(request) + + def list_playbooks_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'search_txt', 'component_id', 'enabled', 'offset', 'limit', 'description', 'dataclass_name', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'search_txt' in local_var_params: + query_params.append(('search_txt', local_var_params['search_txt'])) + if 'component_id' in local_var_params: + query_params.append(('component_id', local_var_params['component_id'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'description' in local_var_params: + query_params.append(('description', local_var_params['description'])) + if 'dataclass_name' in local_var_params: + query_params.append(('dataclass_name', local_var_params['dataclass_name'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybooksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook(self, request): + """查询剧本详情(仅支持华东-上海一使用) + + Show playbook + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybook + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookResponse` + """ + return self.show_playbook_with_http_info(request) + + def show_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_monitors(self, request): + """剧本运行监控(仅支持华东-上海一使用) + + 剧本运行监控 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookMonitors + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookMonitorsResponse` + """ + return self.show_playbook_monitors_with_http_info(request) + + def show_playbook_monitors_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'start_time', 'version_query_type', 'end_time'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'version_query_type' in local_var_params: + query_params.append(('version_query_type', local_var_params['version_query_type'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/monitor', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookMonitorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_statistics(self, request): + """剧本数据统计(仅支持华东-上海一使用) + + 剧本统计数据 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookStatistics + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookStatisticsResponse` + """ + return self.show_playbook_statistics_with_http_info(request) + + def show_playbook_statistics_with_http_info(self, request): + all_params = ['project_id', 'workspace_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/statistics', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookStatisticsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook(self, request): + """修改剧本(仅支持华东-上海一使用) + + Update playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePlaybook + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookResponse` + """ + return self.update_playbook_with_http_info(request) + + def update_playbook_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'update_playbook_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_action(self, request): + """创建剧本动作(仅支持华东-上海一使用) + + Create action. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookActionResponse` + """ + return self.create_playbook_action_with_http_info(request) + + def create_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_action_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_action(self, request): + """删除剧本动作(仅支持华东-上海一使用) + + Delete action. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookActionResponse` + """ + return self.delete_playbook_action_with_http_info(request) + + def delete_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'action_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'action_id' in local_var_params: + path_params['action_id'] = local_var_params['action_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions/{action_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_actions(self, request): + """查询剧本动作(仅支持华东-上海一使用) + + List all actions. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybookActions + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookActionsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookActionsResponse` + """ + return self.list_playbook_actions_with_http_info(request) + + def list_playbook_actions_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookActionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_action(self, request): + """更新剧本动作(仅支持华东-上海一使用) + + Update action. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePlaybookAction + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookActionResponse` + """ + return self.update_playbook_action_with_http_info(request) + + def update_playbook_action_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'action_id', 'update_playbook_action_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'action_id' in local_var_params: + path_params['action_id'] = local_var_params['action_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/actions/{action_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookActionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_approve(self, request): + """审核剧本(仅支持华东-上海一使用) + + Create playbook approve. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePlaybookApprove + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookApproveResponse` + """ + return self.create_playbook_approve_with_http_info(request) + + def create_playbook_approve_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_approve_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/approval', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookApproveResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_approves(self, request): + """查询剧本审核结果(仅支持华东-上海一使用) + + List approves. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybookApproves + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookApprovesResponse` + """ + return self.list_playbook_approves_with_http_info(request) + + def list_playbook_approves_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'resource_id', 'approve_type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'resource_id' in local_var_params: + query_params.append(('resource_id', local_var_params['resource_id'])) + if 'approve_type' in local_var_params: + query_params.append(('approve_type', local_var_params['approve_type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/approval', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookApprovesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_playbook_instance(self, request): + """操作剧本实例(仅支持华东-上海一使用) + + Operation Playbook Instance. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangePlaybookInstance + :type request: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceRequest` + :rtype: :class:`huaweicloudsdksa.v2.ChangePlaybookInstanceResponse` + """ + return self.change_playbook_instance_with_http_info(request) + + def change_playbook_instance_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id', 'change_playbook_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}/operation', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangePlaybookInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_audit_logs(self, request): + """查询剧本实例审计日志(仅支持华东-上海一使用) + + List audit logs. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybookAuditLogs + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookAuditLogsResponse` + """ + return self.list_playbook_audit_logs_with_http_info(request) + + def list_playbook_audit_logs_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'offset', 'limit', 'sort_key', 'sort_dir', 'list_playbook_audit_logs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/auditlogs', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookAuditLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_instances(self, request): + """查询剧本实例列表(仅支持华东-上海一使用) + + List playbook instances + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybookInstances + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookInstancesResponse` + """ + return self.list_playbook_instances_with_http_info(request) + + def list_playbook_instances_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'status', 'date_type', 'name', 'playbook_name', 'dataclass_name', 'dataobject_name', 'trigger_type', 'from_date', 'to_date', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'date_type' in local_var_params: + query_params.append(('date_type', local_var_params['date_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'playbook_name' in local_var_params: + query_params.append(('playbook_name', local_var_params['playbook_name'])) + if 'dataclass_name' in local_var_params: + query_params.append(('dataclass_name', local_var_params['dataclass_name'])) + if 'dataobject_name' in local_var_params: + query_params.append(('dataobject_name', local_var_params['dataobject_name'])) + if 'trigger_type' in local_var_params: + query_params.append(('trigger_type', local_var_params['trigger_type'])) + if 'from_date' in local_var_params: + query_params.append(('from_date', local_var_params['from_date'])) + if 'to_date' in local_var_params: + query_params.append(('to_date', local_var_params['to_date'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookInstancesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_instance(self, request): + """查询剧本实例详情(仅支持华东-上海一使用) + + Show playbook instance + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookInstance + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookInstanceResponse` + """ + return self.show_playbook_instance_with_http_info(request) + + def show_playbook_instance_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_topology(self, request): + """查询剧本拓扑关系(仅支持华东-上海一使用) + + Show playbook Topology + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookTopology + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookTopologyResponse` + """ + return self.show_playbook_topology_with_http_info(request) + + def show_playbook_topology_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/instances/{instance_id}/topology', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookTopologyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_rule(self, request): + """创建剧本规则(仅支持华东-上海一使用) + + Create rule. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookRuleResponse` + """ + return self.create_playbook_rule_with_http_info(request) + + def create_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'create_playbook_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_rule(self, request): + """删除剧本规则(仅支持华东-上海一使用) + + Delete rule. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookRuleResponse` + """ + return self.delete_playbook_rule_with_http_info(request) + + def delete_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_rule(self, request): + """查询剧本规则详情(仅支持华东-上海一使用) + + Show rule formation. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookRule + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookRuleResponse` + """ + return self.show_playbook_rule_with_http_info(request) + + def show_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_rule(self, request): + """更新剧本规则(仅支持华东-上海一使用) + + Update rule. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePlaybookRule + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookRuleResponse` + """ + return self.update_playbook_rule_with_http_info(request) + + def update_playbook_rule_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'rule_id', 'update_playbook_rule_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + if 'rule_id' in local_var_params: + path_params['rule_id'] = local_var_params['rule_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/rules/{rule_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookRuleResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def copy_playbook_version(self, request): + """克隆剧本及版本(仅支持华东-上海一使用) + + Copy Playbook and version to a new one + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CopyPlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CopyPlaybookVersionResponse` + """ + return self.copy_playbook_version_with_http_info(request) + + def copy_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'copy_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}/clone', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CopyPlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_playbook_version(self, request): + """创建剧本版本(仅支持华东-上海一使用) + + Create playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreatePlaybookVersionResponse` + """ + return self.create_playbook_version_with_http_info(request) + + def create_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'create_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/versions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreatePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_playbook_version(self, request): + """删除剧本版本(仅支持华东-上海一使用) + + Delete playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeletePlaybookVersionResponse` + """ + return self.delete_playbook_version_with_http_info(request) + + def delete_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeletePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_playbook_versions(self, request): + """查询剧本版本列表(仅支持华东-上海一使用) + + List all versions of playbook. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPlaybookVersions + :type request: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListPlaybookVersionsResponse` + """ + return self.list_playbook_versions_with_http_info(request) + + def list_playbook_versions_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'playbook_id', 'status', 'enabled', 'version_type', 'approve_role', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'playbook_id' in local_var_params: + path_params['playbook_id'] = local_var_params['playbook_id'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'enabled' in local_var_params: + query_params.append(('enabled', local_var_params['enabled'])) + if 'version_type' in local_var_params: + query_params.append(('version_type', local_var_params['version_type'])) + if 'approve_role' in local_var_params: + query_params.append(('approve_role', local_var_params['approve_role'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/{playbook_id}/versions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListPlaybookVersionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_playbook_version(self, request): + """查询剧本版本详情(仅支持华东-上海一使用) + + Show playbook version version + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.ShowPlaybookVersionResponse` + """ + return self.show_playbook_version_with_http_info(request) + + def show_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowPlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_playbook_version(self, request): + """更新剧本版本(仅支持华东-上海一使用) + + Update playbook version. + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePlaybookVersion + :type request: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionRequest` + :rtype: :class:`huaweicloudsdksa.v2.UpdatePlaybookVersionResponse` + """ + return self.update_playbook_version_with_http_info(request) + + def update_playbook_version_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'version_id', 'update_playbook_version_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'version_id' in local_var_params: + path_params['version_id'] = local_var_params['version_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/playbooks/versions/{version_id}', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='UpdatePlaybookVersionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_dataobject_relation(self, request): + """创建Dataobject关系 + + Create Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.CreateDataobjectRelationResponse` + """ + return self.create_dataobject_relation_with_http_info(request) + + def create_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'create_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_dataobject_relation(self, request): + """删除Dataobject关系 + + Delete Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.DeleteDataobjectRelationResponse` + """ + return self.delete_dataobject_relation_with_http_info(request) + + def delete_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'delete_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='DeleteDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_dataobject_relation(self, request): + """查询Dataobject关系列表 + + List Dataobject Relation + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDataobjectRelation + :type request: :class:`huaweicloudsdksa.v2.ListDataobjectRelationRequest` + :rtype: :class:`huaweicloudsdksa.v2.ListDataobjectRelationResponse` + """ + return self.list_dataobject_relation_with_http_info(request) + + def list_dataobject_relation_with_http_info(self, request): + all_params = ['project_id', 'workspace_id', 'dataclass_type', 'data_object_id', 'related_dataclass_type', 'list_dataobject_relation_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'workspace_id' in local_var_params: + path_params['workspace_id'] = local_var_params['workspace_id'] + if 'dataclass_type' in local_var_params: + path_params['dataclass_type'] = local_var_params['dataclass_type'] + if 'data_object_id' in local_var_params: + path_params['data_object_id'] = local_var_params['data_object_id'] + if 'related_dataclass_type' in local_var_params: + path_params['related_dataclass_type'] = local_var_params['related_dataclass_type'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1/{project_id}/workspaces/{workspace_id}/soc/{dataclass_type}/{data_object_id}/{related_dataclass_type}/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDataobjectRelationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 04d16c36de..f49f7fb653 100755 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 531c01666e..432745181f 100755 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 2c03f2deac..2a21a0edeb 100755 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index a0bb7df890..2c9ef60387 100755 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index b310117c2e..379ec25b28 100755 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index a66b4f92b2..12646de737 100755 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index abac13931c..d3df209861 100755 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 969b57c174..74fd3f0cb7 100755 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index d2617b9000..546a0bcc48 100755 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index da3dd6b0cf..e1367b87fc 100755 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 7827c8963f..f3eaa66164 100755 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 03ec79d1f2..86834b217d 100755 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index da5a2a0a87..9a51247a33 100755 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 5fe0813f95..ea558d8feb 100755 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 1e4343cb14..5cb2a5a9b0 100755 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 4087387761..febdfc78d9 100755 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vss/requirements.txt b/huaweicloud-sdk-vss/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-vss/requirements.txt +++ b/huaweicloud-sdk-vss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-vss/setup.py b/huaweicloud-sdk-vss/setup.py index 12dbc674fb..858b605a16 100755 --- a/huaweicloud-sdk-vss/setup.py +++ b/huaweicloud-sdk-vss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvss" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 7c1ef39385..900945c974 100755 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index e02806b1bb..6c93fa7fc0 100755 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.16 \ No newline at end of file +huaweicloudsdkcore >= 3.1.17 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 9152b034b7..ad97a18603 100755 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.16" +VERSION = "3.1.17" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.16"] +REQUIRES = ["huaweicloudsdkcore>=3.1.17"] OPTIONS = { 'bdist_wheel': {