From 829819fadf86861b4dc78c02a6aacd1cf2f0cf04 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 18 Jan 2024 17:04:41 +0800 Subject: [PATCH] release 3.1.78 source code --- CHANGELOG.md | 577 ++++++++ CHANGELOG_CN.md | 577 ++++++++ README.md | 38 +- README_CN.md | 24 +- VERSION | 2 +- .../huaweicloudsdkaad/v1/region/aad_region.py | 12 +- huaweicloud-sdk-aad/requirements.txt | 2 +- huaweicloud-sdk-aad/setup.py | 4 +- huaweicloud-sdk-all/requirements.txt | 318 ++--- huaweicloud-sdk-all/setup.py | 320 ++--- .../v1/region/antiddos_region.py | 12 +- huaweicloud-sdk-antiddos/requirements.txt | 2 +- huaweicloud-sdk-antiddos/setup.py | 4 +- .../huaweicloudsdkaom/v1/region/aom_region.py | 12 +- .../huaweicloudsdkaom/v2/__init__.py | 3 +- .../huaweicloudsdkaom/v2/model/__init__.py | 3 +- ...update_service_discovery_rules_response.py | 70 +- .../v2/model/create_prom_instance_request.py | 8 +- .../v2/model/create_prom_instance_response.py | 8 +- .../deleteservice_discovery_rules_response.py | 6 +- .../v2/model/list_prom_instance_request.py | 12 +- .../list_service_discovery_rules_response.py | 6 +- .../v2/model/prom_config_model.py | 6 +- .../model/prom_instance_eps_create_model.py | 428 ++++++ .../v2/model/prom_instance_eps_model.py | 91 +- .../v2/model/prom_instance_request_model.py | 229 ++++ .../huaweicloudsdkaom/v2/region/aom_region.py | 12 +- .../huaweicloudsdkaom/v3/region/aom_region.py | 12 +- huaweicloud-sdk-aom/requirements.txt | 2 +- huaweicloud-sdk-aom/setup.py | 4 +- .../huaweicloudsdkaos/v1/region/aos_region.py | 12 +- huaweicloud-sdk-aos/requirements.txt | 2 +- huaweicloud-sdk-aos/setup.py | 4 +- .../v2/model/instance_create_req.py | 12 +- .../v2/model/instance_create_req_v2.py | 12 +- .../huaweicloudsdkapig/v2/model/ip_details.py | 31 +- .../show_details_of_instance_v2_response.py | 114 +- .../v2/model/update_instance_v2_response.py | 114 +- .../v2/region/apig_region.py | 12 +- huaweicloud-sdk-apig/requirements.txt | 2 +- huaweicloud-sdk-apig/setup.py | 4 +- .../huaweicloudsdkapm/v1/region/apm_region.py | 12 +- huaweicloud-sdk-apm/requirements.txt | 2 +- huaweicloud-sdk-apm/setup.py | 4 +- .../huaweicloudsdkas/v1/region/as_region.py | 12 +- huaweicloud-sdk-as/requirements.txt | 2 +- huaweicloud-sdk-as/setup.py | 4 +- .../huaweicloudsdkasm/v1/region/asm_region.py | 12 +- huaweicloud-sdk-asm/requirements.txt | 2 +- huaweicloud-sdk-asm/setup.py | 4 +- .../huaweicloudsdkbcs/v2/region/bcs_region.py | 12 +- huaweicloud-sdk-bcs/requirements.txt | 2 +- huaweicloud-sdk-bcs/setup.py | 4 +- .../huaweicloudsdkbms/v1/region/bms_region.py | 12 +- huaweicloud-sdk-bms/requirements.txt | 2 +- huaweicloud-sdk-bms/setup.py | 4 +- .../huaweicloudsdkbss/v2/region/bss_region.py | 12 +- huaweicloud-sdk-bss/requirements.txt | 2 +- huaweicloud-sdk-bss/setup.py | 4 +- .../v2/region/bssintl_region.py | 12 +- huaweicloud-sdk-bssintl/requirements.txt | 2 +- huaweicloud-sdk-bssintl/setup.py | 4 +- .../v1/model/access_configuration_port.py | 36 +- .../model/configuration_request_data_spec.py | 120 +- .../model/configuration_response_data_spec.py | 180 +-- .../v1/model/scaling_trigger_meta.py | 24 +- .../model/volume_configuration_data_volume.py | 31 +- .../huaweicloudsdkcae/v1/region/cae_region.py | 12 +- huaweicloud-sdk-cae/requirements.txt | 2 +- huaweicloud-sdk-cae/setup.py | 4 +- .../v2/region/campusgo_region.py | 12 +- huaweicloud-sdk-campusgo/requirements.txt | 2 +- huaweicloud-sdk-campusgo/setup.py | 4 +- .../huaweicloudsdkcbh/v1/region/cbh_region.py | 12 +- .../huaweicloudsdkcbh/v2/region/cbh_region.py | 12 +- huaweicloud-sdk-cbh/requirements.txt | 2 +- huaweicloud-sdk-cbh/setup.py | 4 +- .../huaweicloudsdkcbr/v1/region/cbr_region.py | 12 +- huaweicloud-sdk-cbr/requirements.txt | 2 +- huaweicloud-sdk-cbr/setup.py | 4 +- .../huaweicloudsdkcbs/v1/region/cbs_region.py | 12 +- huaweicloud-sdk-cbs/requirements.txt | 2 +- huaweicloud-sdk-cbs/setup.py | 4 +- .../huaweicloudsdkcc/v2/region/cc_region.py | 12 +- .../huaweicloudsdkcc/v3/region/cc_region.py | 12 +- huaweicloud-sdk-cc/requirements.txt | 2 +- huaweicloud-sdk-cc/setup.py | 4 +- .../v3/model/cluster_spec.py | 31 +- .../huaweicloudsdkcce/v3/region/cce_region.py | 15 +- huaweicloud-sdk-cce/requirements.txt | 2 +- huaweicloud-sdk-cce/setup.py | 4 +- .../huaweicloudsdkccm/v1/region/ccm_region.py | 12 +- huaweicloud-sdk-ccm/requirements.txt | 2 +- huaweicloud-sdk-ccm/setup.py | 4 +- .../huaweicloudsdkcdm/v1/__init__.py | 1 + .../huaweicloudsdkcdm/v1/cdm_async_client.py | 4 +- .../huaweicloudsdkcdm/v1/cdm_client.py | 4 +- .../huaweicloudsdkcdm/v1/model/__init__.py | 1 + .../v1/model/cdm_start_job_req.py | 115 ++ .../v1/model/start_job_request.py | 31 +- .../huaweicloudsdkcdm/v1/region/cdm_region.py | 12 +- huaweicloud-sdk-cdm/requirements.txt | 2 +- huaweicloud-sdk-cdm/setup.py | 4 +- .../v1/model/show_top_url_request.py | 6 +- .../huaweicloudsdkcdn/v1/region/cdn_region.py | 15 +- .../huaweicloudsdkcdn/v2/__init__.py | 3 + .../huaweicloudsdkcdn/v2/cdn_async_client.py | 83 ++ .../huaweicloudsdkcdn/v2/cdn_client.py | 83 ++ .../huaweicloudsdkcdn/v2/model/__init__.py | 3 + .../list_cdn_domain_top_refers_request.py | 285 ++++ .../list_cdn_domain_top_refers_response.py | 116 ++ .../v2/model/show_top_url_request.py | 6 +- .../v2/model/top_refer_summary.py | 173 +++ .../huaweicloudsdkcdn/v2/region/cdn_region.py | 15 +- huaweicloud-sdk-cdn/requirements.txt | 2 +- huaweicloud-sdk-cdn/setup.py | 4 +- .../huaweicloudsdkces/v1/region/ces_region.py | 12 +- .../huaweicloudsdkces/v2/region/ces_region.py | 12 +- .../huaweicloudsdkces/v3/region/ces_region.py | 12 +- huaweicloud-sdk-ces/requirements.txt | 2 +- huaweicloud-sdk-ces/setup.py | 4 +- .../huaweicloudsdkcfw/v1/region/cfw_region.py | 12 +- huaweicloud-sdk-cfw/requirements.txt | 2 +- huaweicloud-sdk-cfw/setup.py | 4 +- .../huaweicloudsdkcgs/v5/region/cgs_region.py | 12 +- huaweicloud-sdk-cgs/requirements.txt | 2 +- huaweicloud-sdk-cgs/setup.py | 4 +- .../v3/region/classroom_region.py | 12 +- huaweicloud-sdk-classroom/requirements.txt | 2 +- huaweicloud-sdk-classroom/setup.py | 4 +- .../v2/region/cloudide_region.py | 12 +- huaweicloud-sdk-cloudide/requirements.txt | 2 +- huaweicloud-sdk-cloudide/setup.py | 4 +- .../v1/region/cloudpond_region.py | 12 +- huaweicloud-sdk-cloudpond/requirements.txt | 2 +- huaweicloud-sdk-cloudpond/setup.py | 4 +- .../v1/region/cloudrtc_region.py | 12 +- .../v2/region/cloudrtc_region.py | 12 +- huaweicloud-sdk-cloudrtc/requirements.txt | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 4 +- .../v2/region/cloudtable_region.py | 12 +- huaweicloud-sdk-cloudtable/requirements.txt | 2 +- huaweicloud-sdk-cloudtable/setup.py | 4 +- .../v1/region/cloudtest_region.py | 12 +- huaweicloud-sdk-cloudtest/requirements.txt | 2 +- huaweicloud-sdk-cloudtest/setup.py | 4 +- .../v2/region/codeartsartifact_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsartifact/setup.py | 4 +- .../v3/region/codeartsbuild_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsbuild/setup.py | 4 +- .../v2/region/codeartscheck_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartscheck/setup.py | 4 +- .../v2/region/codeartsdeploy_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsdeploy/setup.py | 4 +- .../v3/region/codeartsinspector_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsinspector/setup.py | 4 +- .../v2/region/codeartspipeline_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartspipeline/setup.py | 4 +- .../v5/region/codecraft_region.py | 12 +- huaweicloud-sdk-codecraft/requirements.txt | 2 +- huaweicloud-sdk-codecraft/setup.py | 4 +- .../v3/region/codehub_region.py | 12 +- huaweicloud-sdk-codehub/requirements.txt | 2 +- huaweicloud-sdk-codehub/setup.py | 4 +- .../v1/region/config_region.py | 12 +- huaweicloud-sdk-config/requirements.txt | 2 +- huaweicloud-sdk-config/setup.py | 4 +- huaweicloud-sdk-core/setup.py | 2 +- .../huaweicloudsdkcph/v1/region/cph_region.py | 12 +- huaweicloud-sdk-cph/requirements.txt | 2 +- huaweicloud-sdk-cph/setup.py | 4 +- .../v1/cpts_async_client.py | 64 +- .../huaweicloudsdkcpts/v1/cpts_client.py | 64 +- .../v1/model/agent_config.py | 98 +- .../batch_update_task_status_request_body.py | 24 +- .../v1/model/case_aw_info.py | 6 +- .../v1/model/case_info_detail.py | 42 +- .../v1/model/case_report_detail.py | 6 +- .../v1/model/code_message_resq.py | 12 +- .../huaweicloudsdkcpts/v1/model/content.py | 6 +- .../v1/model/content_header.py | 12 +- .../v1/model/content_info.py | 72 +- .../huaweicloudsdkcpts/v1/model/contents.py | 12 +- .../v1/model/create_case_request_body.py | 12 +- .../v1/model/create_case_response.py | 12 +- .../v1/model/create_case_result_json.py | 6 +- .../v1/model/create_project_request_body.py | 12 +- .../v1/model/create_project_response.py | 18 +- .../v1/model/create_task_request_body.py | 30 +- .../v1/model/create_task_response.py | 18 +- .../v1/model/create_temp_request_body.py | 30 +- .../v1/model/create_temp_response.py | 18 +- .../v1/model/create_variable_request_body.py | 24 +- .../v1/model/create_variable_response.py | 12 +- .../v1/model/create_variable_result_json.py | 6 +- .../v1/model/debug_case_request_body.py | 24 +- .../v1/model/debug_case_response.py | 24 +- .../v1/model/debug_case_result.py | 48 +- .../v1/model/debug_case_result_header.py | 18 +- .../v1/model/debug_case_return_header.py | 30 +- .../v1/model/delete_temp_response.py | 12 +- .../v1/model/history_run_info.py | 36 +- .../v1/model/list_variables_response.py | 18 +- .../v1/model/logic_controller.py | 12 +- .../v1/model/network_info.py | 6 +- .../v1/model/peak_metric.py | 18 +- .../huaweicloudsdkcpts/v1/model/project.py | 42 +- .../v1/model/related_temp_running_data.py | 61 +- .../model/show_history_run_info_response.py | 18 +- .../model/show_merge_case_detail_request.py | 12 +- .../show_merge_report_logs_outline_request.py | 6 +- .../v1/model/show_merge_task_case_request.py | 6 +- .../v1/model/show_process_response.py | 18 +- .../v1/model/show_project_response.py | 12 +- .../v1/model/show_report_request.py | 12 +- .../v1/model/show_report_response.py | 18 +- .../model/show_task_case_aw_chart_request.py | 18 +- .../v1/model/show_task_response.py | 12 +- .../v1/model/show_task_set_response.py | 18 +- .../v1/model/show_temp_response.py | 12 +- .../v1/model/show_temp_set_response.py | 12 +- .../huaweicloudsdkcpts/v1/model/task_info.py | 60 +- .../v1/model/task_run_info.py | 12 +- .../v1/model/temp_content_info.py | 30 +- .../v1/model/temp_detail_info.py | 30 +- .../huaweicloudsdkcpts/v1/model/temp_info.py | 54 +- .../huaweicloudsdkcpts/v1/model/temp_name.py | 6 +- .../v1/model/temp_running_data.py | 42 +- .../v1/model/update_project_request_body.py | 36 +- .../update_task_related_test_case_response.py | 12 +- .../v1/model/update_task_request_body.py | 60 +- .../v1/model/update_task_response.py | 12 +- .../model/update_task_status_request_body.py | 24 +- .../v1/model/update_task_status_response.py | 18 +- .../v1/model/update_task_status_result.py | 6 +- .../v1/model/update_temp_request_body.py | 48 +- .../v1/model/update_variable_request_body.py | 24 +- .../v1/model/update_variable_response.py | 12 +- .../v1/model/upload_process_json.py | 12 +- .../v1/model/upload_process_json_detail.py | 24 +- .../v1/model/variable_detail.py | 30 +- .../v1/model/vusers_brokens.py | 6 +- .../v1/region/cpts_region.py | 12 +- huaweicloud-sdk-cpts/requirements.txt | 2 +- huaweicloud-sdk-cpts/setup.py | 4 +- .../huaweicloudsdkcse/v1/region/cse_region.py | 12 +- huaweicloud-sdk-cse/requirements.txt | 2 +- huaweicloud-sdk-cse/setup.py | 4 +- .../v1/region/csms_region.py | 12 +- huaweicloud-sdk-csms/requirements.txt | 2 +- huaweicloud-sdk-csms/setup.py | 4 +- .../huaweicloudsdkcss/v1/region/css_region.py | 15 +- .../huaweicloudsdkcss/v2/region/css_region.py | 15 +- huaweicloud-sdk-css/requirements.txt | 2 +- huaweicloud-sdk-css/setup.py | 4 +- .../huaweicloudsdkcts/v3/region/cts_region.py | 15 +- huaweicloud-sdk-cts/requirements.txt | 2 +- huaweicloud-sdk-cts/setup.py | 4 +- .../huaweicloudsdkdas/v3/region/das_region.py | 12 +- huaweicloud-sdk-das/requirements.txt | 2 +- huaweicloud-sdk-das/setup.py | 4 +- .../v1/__init__.py | 13 + .../v1/dataartsstudio_async_client.py | 366 ++++++ .../v1/dataartsstudio_client.py | 366 ++++++ .../v1/model/__init__.py | 13 + .../v1/model/job_and_node_info.py | 173 +++ .../v1/model/lineage.py | 774 +++++++++++ .../v1/model/show_data_detail_request.py | 171 +++ .../v1/model/show_data_detail_response.py | 141 ++ .../v1/model/show_datamap_lineage_request.py | 316 +++++ .../v1/model/show_datamap_lineage_response.py | 232 ++++ .../v1/model/show_instance_infos_request.py | 311 +++++ .../v1/model/show_instance_infos_response.py | 174 +++ .../v1/model/show_lineage_bulk_request.py | 172 +++ .../v1/model/show_lineage_bulk_response.py | 145 +++ .../v1/model/show_nodes_request.py | 142 ++ .../v1/model/show_nodes_response.py | 116 ++ .../v1/model/table_lineage_info.py | 579 ++++++++ .../v1/region/dataartsstudio_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-dataartsstudio/setup.py | 4 +- .../v1/region/dbss_region.py | 12 +- huaweicloud-sdk-dbss/requirements.txt | 2 +- huaweicloud-sdk-dbss/setup.py | 4 +- .../huaweicloudsdkdc/v3/region/dc_region.py | 12 +- huaweicloud-sdk-dc/requirements.txt | 2 +- huaweicloud-sdk-dc/setup.py | 4 +- .../huaweicloudsdkdcs/v2/__init__.py | 2 + .../huaweicloudsdkdcs/v2/dcs_async_client.py | 65 + .../huaweicloudsdkdcs/v2/dcs_client.py | 65 + .../huaweicloudsdkdcs/v2/model/__init__.py | 2 + .../change_master_standby_async_request.py | 114 ++ .../change_master_standby_async_response.py | 116 ++ .../model/delete_hotkey_scan_task_response.py | 265 +++- .../huaweicloudsdkdcs/v2/region/dcs_region.py | 12 +- huaweicloud-sdk-dcs/requirements.txt | 2 +- huaweicloud-sdk-dcs/setup.py | 4 +- .../huaweicloudsdkddm/v1/region/ddm_region.py | 12 +- huaweicloud-sdk-ddm/requirements.txt | 2 +- huaweicloud-sdk-ddm/setup.py | 4 +- .../huaweicloudsdkdds/v3/region/dds_region.py | 12 +- huaweicloud-sdk-dds/requirements.txt | 2 +- huaweicloud-sdk-dds/setup.py | 4 +- .../huaweicloudsdkdeh/v1/region/deh_region.py | 12 +- huaweicloud-sdk-deh/requirements.txt | 2 +- huaweicloud-sdk-deh/setup.py | 4 +- .../v1/region/devsecurity_region.py | 12 +- huaweicloud-sdk-devsecurity/requirements.txt | 2 +- huaweicloud-sdk-devsecurity/setup.py | 4 +- .../v1/region/devstar_region.py | 12 +- huaweicloud-sdk-devstar/requirements.txt | 2 +- huaweicloud-sdk-devstar/setup.py | 4 +- .../v1/model/basic_config.py | 60 +- .../v1/model/node_instance.py | 199 +-- .../huaweicloudsdkdgc/v1/model/script_info.py | 39 +- .../v1/model/show_job_instance_response.py | 218 +++- .../v1/model/show_script_response.py | 39 +- .../huaweicloudsdkdgc/v1/region/dgc_region.py | 12 +- huaweicloud-sdk-dgc/requirements.txt | 2 +- huaweicloud-sdk-dgc/setup.py | 4 +- .../huaweicloudsdkdis/v2/region/dis_region.py | 12 +- huaweicloud-sdk-dis/requirements.txt | 2 +- huaweicloud-sdk-dis/setup.py | 4 +- .../huaweicloudsdkdlf/v1/region/dlf_region.py | 12 +- huaweicloud-sdk-dlf/requirements.txt | 2 +- huaweicloud-sdk-dlf/setup.py | 4 +- .../huaweicloudsdkdli/v1/region/dli_region.py | 12 +- huaweicloud-sdk-dli/requirements.txt | 2 +- huaweicloud-sdk-dli/setup.py | 4 +- .../huaweicloudsdkdns/v2/region/dns_region.py | 12 +- huaweicloud-sdk-dns/requirements.txt | 2 +- huaweicloud-sdk-dns/setup.py | 4 +- .../v1/region/dris_region.py | 12 +- huaweicloud-sdk-dris/requirements.txt | 2 +- huaweicloud-sdk-dris/setup.py | 4 +- .../huaweicloudsdkdrs/v3/region/drs_region.py | 12 +- .../huaweicloudsdkdrs/v5/region/drs_region.py | 12 +- huaweicloud-sdk-drs/requirements.txt | 2 +- huaweicloud-sdk-drs/setup.py | 4 +- .../huaweicloudsdkdsc/v1/__init__.py | 2 + .../huaweicloudsdkdsc/v1/dsc_async_client.py | 65 + .../huaweicloudsdkdsc/v1/dsc_client.py | 65 + .../huaweicloudsdkdsc/v1/model/__init__.py | 2 + .../v1/model/delete_scan_job_request.py | 114 ++ .../v1/model/delete_scan_job_response.py | 145 +++ .../huaweicloudsdkdsc/v1/region/dsc_region.py | 12 +- huaweicloud-sdk-dsc/requirements.txt | 2 +- huaweicloud-sdk-dsc/setup.py | 4 +- .../huaweicloudsdkdwr/v3/region/dwr_region.py | 12 +- huaweicloud-sdk-dwr/requirements.txt | 2 +- huaweicloud-sdk-dwr/setup.py | 4 +- .../huaweicloudsdkdws/v2/__init__.py | 2 + .../huaweicloudsdkdws/v2/dws_async_client.py | 71 + .../huaweicloudsdkdws/v2/dws_client.py | 71 + .../huaweicloudsdkdws/v2/model/__init__.py | 2 + .../v2/model/list_workload_plans_request.py | 201 +++ .../v2/model/list_workload_plans_response.py | 203 +++ .../v2/model/workload_plan_info.py | 8 +- .../huaweicloudsdkdws/v2/region/dws_region.py | 12 +- huaweicloud-sdk-dws/requirements.txt | 2 +- huaweicloud-sdk-dws/setup.py | 4 +- .../huaweicloudsdkec/v1/region/ec_region.py | 12 +- huaweicloud-sdk-ec/requirements.txt | 2 +- huaweicloud-sdk-ec/setup.py | 4 +- .../huaweicloudsdkecs/v2/region/ecs_region.py | 18 +- huaweicloud-sdk-ecs/requirements.txt | 2 +- huaweicloud-sdk-ecs/setup.py | 4 +- .../v1/region/edgesec_region.py | 12 +- huaweicloud-sdk-edgesec/requirements.txt | 2 +- huaweicloud-sdk-edgesec/setup.py | 4 +- .../huaweicloudsdkeg/v1/region/eg_region.py | 12 +- huaweicloud-sdk-eg/requirements.txt | 2 +- huaweicloud-sdk-eg/setup.py | 4 +- .../v1/region/eihealth_region.py | 12 +- .../v2/region/eihealth_region.py | 12 +- huaweicloud-sdk-eihealth/requirements.txt | 2 +- huaweicloud-sdk-eihealth/setup.py | 4 +- .../huaweicloudsdkeip/v2/region/eip_region.py | 12 +- .../huaweicloudsdkeip/v3/region/eip_region.py | 12 +- huaweicloud-sdk-eip/requirements.txt | 2 +- huaweicloud-sdk-eip/setup.py | 4 +- .../v2/model/create_listener_req.py | 64 +- .../v2/model/create_loadbalancer_response.py | 64 +- .../v2/model/listener_resp.py | 6 +- .../v2/model/loadbalancer_resp.py | 98 +- .../huaweicloudsdkelb/v2/model/pool_resp.py | 6 +- .../huaweicloudsdkelb/v2/region/elb_region.py | 12 +- .../huaweicloudsdkelb/v3/model/quota.py | 6 +- .../huaweicloudsdkelb/v3/region/elb_region.py | 12 +- huaweicloud-sdk-elb/requirements.txt | 2 +- huaweicloud-sdk-elb/setup.py | 4 +- .../huaweicloudsdkeps/v1/region/eps_region.py | 12 +- huaweicloud-sdk-eps/requirements.txt | 2 +- huaweicloud-sdk-eps/setup.py | 4 +- .../huaweicloudsdker/v3/region/er_region.py | 12 +- huaweicloud-sdk-er/requirements.txt | 2 +- huaweicloud-sdk-er/setup.py | 4 +- .../huaweicloudsdkevs/v2/region/evs_region.py | 12 +- huaweicloud-sdk-evs/requirements.txt | 2 +- huaweicloud-sdk-evs/setup.py | 4 +- .../huaweicloudsdkfrs/v2/region/frs_region.py | 12 +- huaweicloud-sdk-frs/requirements.txt | 2 +- huaweicloud-sdk-frs/setup.py | 4 +- .../v2/region/functiongraph_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-functiongraph/setup.py | 4 +- .../huaweicloudsdkga/v1/region/ga_region.py | 12 +- huaweicloud-sdk-ga/requirements.txt | 2 +- huaweicloud-sdk-ga/setup.py | 4 +- .../v3/region/gaussdb_region.py | 12 +- huaweicloud-sdk-gaussdb/requirements.txt | 2 +- huaweicloud-sdk-gaussdb/setup.py | 4 +- .../v3/region/gaussdbfornosql_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 4 +- .../v3/region/gaussdbforopengauss_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 4 +- .../huaweicloudsdkges/v1/region/ges_region.py | 12 +- .../huaweicloudsdkges/v2/region/ges_region.py | 12 +- huaweicloud-sdk-ges/requirements.txt | 2 +- huaweicloud-sdk-ges/setup.py | 4 +- .../huaweicloudsdkgsl/v3/region/gsl_region.py | 12 +- huaweicloud-sdk-gsl/requirements.txt | 2 +- huaweicloud-sdk-gsl/setup.py | 4 +- .../v1/region/hilens_region.py | 12 +- .../v3/region/hilens_region.py | 12 +- huaweicloud-sdk-hilens/requirements.txt | 2 +- huaweicloud-sdk-hilens/setup.py | 4 +- .../huaweicloudsdkhss/v1/region/hss_region.py | 12 +- .../huaweicloudsdkhss/v5/region/hss_region.py | 12 +- huaweicloud-sdk-hss/requirements.txt | 2 +- huaweicloud-sdk-hss/setup.py | 4 +- .../huaweicloudsdkiam/v3/region/iam_region.py | 12 +- huaweicloud-sdk-iam/requirements.txt | 2 +- huaweicloud-sdk-iam/setup.py | 4 +- .../v1/region/identitycenter_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenter/setup.py | 4 +- .../v1/region/identitycenterstore_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenterstore/setup.py | 4 +- .../v1/region/idme_region.py | 12 +- huaweicloud-sdk-idme/requirements.txt | 2 +- huaweicloud-sdk-idme/setup.py | 4 +- .../v1/region/idmeclassicapi_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-idmeclassicapi/setup.py | 4 +- .../huaweicloudsdkiec/v1/region/iec_region.py | 12 +- huaweicloud-sdk-iec/requirements.txt | 2 +- huaweicloud-sdk-iec/setup.py | 4 +- .../huaweicloudsdkief/v1/region/ief_region.py | 12 +- huaweicloud-sdk-ief/requirements.txt | 2 +- huaweicloud-sdk-ief/setup.py | 4 +- .../v2/region/image_region.py | 12 +- huaweicloud-sdk-image/requirements.txt | 2 +- huaweicloud-sdk-image/setup.py | 4 +- .../v2/region/imagesearch_region.py | 12 +- huaweicloud-sdk-imagesearch/requirements.txt | 2 +- huaweicloud-sdk-imagesearch/setup.py | 4 +- .../huaweicloudsdkims/v2/region/ims_region.py | 18 +- huaweicloud-sdk-ims/requirements.txt | 2 +- huaweicloud-sdk-ims/setup.py | 4 +- .../v1/region/iotanalytics_region.py | 12 +- huaweicloud-sdk-iotanalytics/requirements.txt | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 4 +- .../v5/region/iotda_region.py | 12 +- huaweicloud-sdk-iotda/requirements.txt | 2 +- huaweicloud-sdk-iotda/setup.py | 4 +- .../v2/region/iotedge_region.py | 12 +- .../v3/region/iotedge_region.py | 12 +- huaweicloud-sdk-iotedge/requirements.txt | 2 +- huaweicloud-sdk-iotedge/setup.py | 4 +- .../huaweicloudsdkivs/v2/region/ivs_region.py | 12 +- huaweicloud-sdk-ivs/requirements.txt | 2 +- huaweicloud-sdk-ivs/setup.py | 4 +- .../v2/region/kafka_region.py | 15 +- huaweicloud-sdk-kafka/requirements.txt | 2 +- huaweicloud-sdk-kafka/setup.py | 4 +- .../huaweicloudsdkkms/v2/region/kms_region.py | 12 +- huaweicloud-sdk-kms/requirements.txt | 2 +- huaweicloud-sdk-kms/setup.py | 4 +- .../v1/model/ext_msg.py | 6 +- .../model/list_aim_resolve_details_request.py | 6 +- .../v1/model/list_aim_send_details_request.py | 6 +- .../v1/model/list_aim_send_tasks_request.py | 6 +- .../v1/model/list_resolve_tasks_request.py | 6 +- .../v1/region/koomessage_region.py | 12 +- huaweicloud-sdk-koomessage/requirements.txt | 2 +- huaweicloud-sdk-koomessage/setup.py | 4 +- .../huaweicloudsdkkps/v3/region/kps_region.py | 12 +- huaweicloud-sdk-kps/requirements.txt | 2 +- huaweicloud-sdk-kps/setup.py | 4 +- .../v1/region/lakeformation_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-lakeformation/setup.py | 4 +- .../v1/region/live_region.py | 12 +- .../v2/region/live_region.py | 12 +- huaweicloud-sdk-live/requirements.txt | 2 +- huaweicloud-sdk-live/setup.py | 4 +- .../huaweicloudsdklts/v2/region/lts_region.py | 12 +- huaweicloud-sdk-lts/requirements.txt | 2 +- huaweicloud-sdk-lts/setup.py | 4 +- .../v1/region/mapds_region.py | 12 +- huaweicloud-sdk-mapds/requirements.txt | 2 +- huaweicloud-sdk-mapds/setup.py | 4 +- .../huaweicloudsdkmas/v1/region/mas_region.py | 12 +- huaweicloud-sdk-mas/requirements.txt | 2 +- huaweicloud-sdk-mas/setup.py | 4 +- .../v1/region/meeting_region.py | 12 +- huaweicloud-sdk-meeting/requirements.txt | 2 +- huaweicloud-sdk-meeting/setup.py | 4 +- .../huaweicloudsdkmetastudio/v1/__init__.py | 42 + .../v1/metastudio_async_client.py | 1073 ++++++++++++++- .../v1/metastudio_client.py | 1073 ++++++++++++++- .../v1/model/__init__.py | 42 + .../cancel2_d_digital_human_video_request.py | 6 +- ...ancel_photo_digital_human_video_request.py | 6 +- .../v1/model/chat_subtitle_config.py | 202 +++ .../v1/model/chat_video_config_rsp.py | 144 ++ .../commit_voice_training_job_request.py | 6 +- .../v1/model/confirm_file_upload_request.py | 6 +- .../create2_d_digital_human_video_request.py | 6 +- .../create2d_model_training_job_request.py | 6 +- .../v1/model/create_dialog_url_req.py | 142 ++ .../v1/model/create_dialog_url_request.py | 140 ++ .../v1/model/create_dialog_url_response.py | 141 ++ .../v1/model/create_digital_asset_request.py | 6 +- ...ate_digital_human_business_card_request.py | 6 +- .../v1/model/create_file_request.py | 6 +- .../create_interaction_rule_group_request.py | 6 +- .../v1/model/create_once_code_request.py | 115 ++ .../v1/model/create_once_code_response.py | 141 ++ .../model/create_photo_detection_request.py | 6 +- ...reate_photo_digital_human_video_request.py | 6 +- ...ate_picture_modeling_by_url_job_request.py | 6 +- .../create_picture_modeling_job_request.py | 6 +- .../v1/model/create_robot_req.py | 245 ++++ .../v1/model/create_robot_request.py | 140 ++ .../v1/model/create_robot_response.py | 141 ++ .../v1/model/create_smart_chat_room_req.py | 383 ++++++ .../model/create_smart_chat_room_request.py | 140 ++ .../model/create_smart_chat_room_response.py | 141 ++ .../model/create_smart_live_room_request.py | 6 +- .../create_training_advance_job_request.py | 6 +- .../create_training_basic_job_request.py | 6 +- .../create_training_middle_job_request.py | 6 +- .../v1/model/create_ttsa_request.py | 6 +- ...create_video_motion_capture_job_request.py | 6 +- .../v1/model/create_video_scripts_request.py | 6 +- .../delete2d_model_training_job_request.py | 6 +- .../v1/model/delete_asset_request.py | 6 +- ...ete_digital_human_business_card_request.py | 6 +- .../v1/model/delete_file_request.py | 6 +- .../delete_interaction_rule_group_request.py | 6 +- .../v1/model/delete_robot_request.py | 140 ++ .../v1/model/delete_robot_response.py | 112 ++ .../model/delete_smart_chat_room_request.py | 143 ++ .../model/delete_smart_chat_room_response.py | 112 ++ .../model/delete_smart_live_room_request.py | 6 +- .../v1/model/delete_video_script_request.py | 6 +- .../delete_voice_training_job_request.py | 6 +- ..._model_training_command_by_user_request.py | 6 +- .../execute_smart_live_command_request.py | 6 +- ...te_video_motion_capture_command_request.py | 6 +- .../v1/model/huawei_ei_cbs.py | 173 +++ .../v1/model/iflytek_aiui_config.py | 98 +- .../v1/model/iflytek_spark.py | 173 +++ .../list2d_model_training_job_request.py | 6 +- .../v1/model/list_assets_request.py | 6 +- ...ist_digital_human_business_card_request.py | 6 +- .../model/list_digital_human_video_request.py | 41 +- .../list_interaction_rule_groups_request.py | 6 +- .../list_picture_modeling_jobs_request.py | 6 +- .../v1/model/list_robot_request.py | 173 +++ .../v1/model/list_robot_response.py | 228 ++++ .../v1/model/list_smart_chat_rooms_request.py | 289 ++++ .../model/list_smart_chat_rooms_response.py | 170 +++ .../v1/model/list_smart_live_request.py | 6 +- .../v1/model/list_smart_live_rooms_request.py | 6 +- .../v1/model/list_styles_request.py | 6 +- .../v1/model/list_ttsa_jobs_request.py | 6 +- .../list_video_motion_capture_jobs_request.py | 6 +- .../v1/model/list_video_scripts_request.py | 6 +- .../model/list_voice_training_job_request.py | 6 +- .../v1/model/live_event_report_request.py | 6 +- .../v1/model/pages.py | 173 +++ .../v1/model/restore_asset_request.py | 6 +- .../v1/model/robot_info.py | 347 +++++ .../show2_d_digital_human_video_request.py | 6 +- .../show2d_model_training_job_request.py | 6 +- .../v1/model/show_asset_request.py | 6 +- ...how_digital_human_business_card_request.py | 6 +- .../v1/model/show_photo_detection_request.py | 6 +- .../show_photo_digital_human_video_request.py | 6 +- .../show_picture_modeling_job_request.py | 6 +- .../v1/model/show_robot_request.py | 143 ++ .../v1/model/show_robot_response.py | 373 ++++++ .../v1/model/show_smart_chat_job_request.py | 171 +++ .../v1/model/show_smart_chat_job_response.py | 415 ++++++ .../v1/model/show_smart_chat_room_request.py | 143 ++ .../v1/model/show_smart_chat_room_response.py | 525 ++++++++ .../v1/model/show_smart_live_request.py | 6 +- .../v1/model/show_smart_live_room_request.py | 6 +- .../show_video_motion_capture_job_request.py | 6 +- .../v1/model/show_video_script_request.py | 6 +- .../model/show_voice_training_job_request.py | 6 +- .../v1/model/smart_chat_room_base_info.py | 339 +++++ .../v1/model/start_smart_chat_job_request.py | 171 +++ .../v1/model/start_smart_chat_job_response.py | 216 +++ .../v1/model/start_smart_live_request.py | 6 +- .../v1/model/stop_smart_chat_job_request.py | 171 +++ .../v1/model/stop_smart_chat_job_response.py | 112 ++ .../v1/model/stop_smart_live_request.py | 6 +- .../stop_video_motion_capture_job_request.py | 6 +- .../update2d_model_training_job_request.py | 6 +- .../v1/model/update_digital_asset_request.py | 6 +- ...ate_digital_human_business_card_request.py | 6 +- .../update_interaction_rule_group_request.py | 6 +- .../v1/model/update_robot_req.py | 248 ++++ .../v1/model/update_robot_request.py | 168 +++ .../v1/model/update_robot_response.py | 112 ++ .../model/update_smart_chat_room_request.py | 168 +++ .../model/update_smart_chat_room_response.py | 525 ++++++++ .../model/update_smart_live_room_request.py | 6 +- .../v1/model/update_video_script_request.py | 6 +- .../v1/model/video_config.py | 24 +- .../v1/region/metastudio_region.py | 12 +- huaweicloud-sdk-metastudio/requirements.txt | 2 +- huaweicloud-sdk-metastudio/setup.py | 4 +- .../v2/region/moderation_region.py | 12 +- .../v3/region/moderation_region.py | 12 +- huaweicloud-sdk-moderation/requirements.txt | 2 +- huaweicloud-sdk-moderation/setup.py | 4 +- .../huaweicloudsdkmpc/v1/region/mpc_region.py | 12 +- huaweicloud-sdk-mpc/requirements.txt | 2 +- huaweicloud-sdk-mpc/setup.py | 4 +- .../huaweicloudsdkmrs/v1/region/mrs_region.py | 12 +- .../huaweicloudsdkmrs/v2/region/mrs_region.py | 12 +- huaweicloud-sdk-mrs/requirements.txt | 2 +- huaweicloud-sdk-mrs/setup.py | 4 +- .../model/sms_template_variable_attr_req.py | 6 +- .../v2/region/msgsms_region.py | 12 +- huaweicloud-sdk-msgsms/requirements.txt | 2 +- huaweicloud-sdk-msgsms/setup.py | 4 +- .../v1/region/mssi_region.py | 12 +- huaweicloud-sdk-mssi/requirements.txt | 2 +- huaweicloud-sdk-mssi/setup.py | 4 +- .../huaweicloudsdknat/v2/region/nat_region.py | 12 +- huaweicloud-sdk-nat/requirements.txt | 2 +- huaweicloud-sdk-nat/setup.py | 4 +- .../huaweicloudsdknlp/v2/region/nlp_region.py | 12 +- huaweicloud-sdk-nlp/requirements.txt | 2 +- huaweicloud-sdk-nlp/setup.py | 4 +- .../huaweicloudsdkobs/v1/region/obs_region.py | 12 +- huaweicloud-sdk-obs/requirements.txt | 2 +- huaweicloud-sdk-obs/setup.py | 4 +- .../huaweicloudsdkocr/v1/__init__.py | 6 + .../huaweicloudsdkocr/v1/model/__init__.py | 6 + .../v1/model/flight_itinerary_result.py | 205 ++- .../invoice_verification_request_body.py | 6 +- .../v1/model/recognize_seal_request.py | 140 ++ .../v1/model/recognize_seal_response.py | 112 ++ .../huaweicloudsdkocr/v1/model/seal_list.py | 231 ++++ .../v1/model/seal_request_body.py | 231 ++++ .../huaweicloudsdkocr/v1/model/seal_result.py | 144 ++ .../v1/model/seal_words_block_list.py | 144 ++ .../huaweicloudsdkocr/v1/ocr_async_client.py | 67 + .../huaweicloudsdkocr/v1/ocr_client.py | 67 + .../huaweicloudsdkocr/v1/region/ocr_region.py | 12 +- huaweicloud-sdk-ocr/requirements.txt | 2 +- huaweicloud-sdk-ocr/setup.py | 4 +- .../v2/region/octopus_region.py | 12 +- huaweicloud-sdk-octopus/requirements.txt | 2 +- huaweicloud-sdk-octopus/setup.py | 4 +- .../huaweicloudsdkoms/v2/region/oms_region.py | 12 +- huaweicloud-sdk-oms/requirements.txt | 2 +- huaweicloud-sdk-oms/setup.py | 4 +- .../v1/region/optverse_region.py | 12 +- huaweicloud-sdk-optverse/requirements.txt | 2 +- huaweicloud-sdk-optverse/setup.py | 4 +- .../v1/region/organizations_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-organizations/setup.py | 4 +- .../v1/region/oroas_region.py | 12 +- huaweicloud-sdk-oroas/requirements.txt | 2 +- huaweicloud-sdk-oroas/setup.py | 4 +- .../huaweicloudsdkosm/v2/region/osm_region.py | 12 +- huaweicloud-sdk-osm/requirements.txt | 2 +- huaweicloud-sdk-osm/setup.py | 4 +- .../v1/region/pangulargemodels_region.py | 12 +- .../requirements.txt | 2 +- huaweicloud-sdk-pangulargemodels/setup.py | 4 +- .../v4/region/projectman_region.py | 12 +- huaweicloud-sdk-projectman/requirements.txt | 2 +- huaweicloud-sdk-projectman/setup.py | 4 +- .../v2/region/rabbitmq_region.py | 15 +- huaweicloud-sdk-rabbitmq/requirements.txt | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 4 +- .../huaweicloudsdkram/v1/region/ram_region.py | 12 +- huaweicloud-sdk-ram/requirements.txt | 2 +- huaweicloud-sdk-ram/setup.py | 4 +- .../v3/model/recycle_instsance_v3.py | 35 +- .../v3/model/show_auditlog_policy_response.py | 64 +- .../huaweicloudsdkrds/v3/region/rds_region.py | 18 +- huaweicloud-sdk-rds/requirements.txt | 2 +- huaweicloud-sdk-rds/setup.py | 4 +- .../huaweicloudsdkres/v1/region/res_region.py | 12 +- huaweicloud-sdk-res/requirements.txt | 2 +- huaweicloud-sdk-res/setup.py | 4 +- .../huaweicloudsdkrgc/v1/__init__.py | 10 + .../huaweicloudsdkrgc/v1/model/__init__.py | 10 + .../v1/model/account_baseline.py | 53 +- .../v1/model/account_baseline_rsp.py | 203 +++ .../huaweicloudsdkrgc/v1/model/blueprint.py | 12 +- .../v1/model/check_launch_request.py | 34 +- .../v1/model/config_rule_compliance.py | 6 +- .../huaweicloudsdkrgc/v1/model/control.py | 30 +- .../v1/model/control_operation.py | 36 +- .../v1/model/control_violation.py | 48 +- .../v1/model/create_account_request.py | 32 +- .../v1/model/create_account_response.py | 6 +- .../model/create_managed_account_request.py | 27 +- .../v1/model/create_organization_unit.py | 77 +- ...te_managed_organizational_units_request.py | 42 +- .../deregister_organizational_unit_request.py | 42 +- .../v1/model/disable_control_request.py | 32 +- .../v1/model/drift_detail.py | 24 +- .../v1/model/enable_control_request.py | 32 +- .../v1/model/enabled_control.py | 18 +- .../v1/model/enroll_account_request.py | 139 ++ .../v1/model/enroll_account_request_body.py | 139 ++ .../v1/model/enroll_account_response.py | 116 ++ .../v1/model/identity_center_group.py | 18 +- .../v1/model/landing_zone_error_message.py | 6 +- .../list_config_rule_compliance_request.py | 68 +- .../list_config_rule_compliance_response.py | 12 +- .../model/list_control_violations_request.py | 44 +- .../list_controls_for_account_request.py | 38 +- ..._controls_for_organization_unit_request.py | 38 +- .../v1/model/list_controls_request.py | 32 +- .../v1/model/list_controls_response.py | 6 +- .../v1/model/list_drift_details_request.py | 34 +- .../v1/model/list_enabled_controls_request.py | 32 +- ...ist_managed_accounts_for_parent_request.py | 38 +- ...st_managed_accounts_for_parent_response.py | 6 +- .../v1/model/list_managed_accounts_request.py | 32 +- .../model/list_managed_accounts_response.py | 6 +- ...st_managed_organizational_units_request.py | 32 +- ...t_managed_organizational_units_response.py | 6 +- .../v1/model/managed_account.py | 182 +-- .../v1/model/managed_organization_unit.py | 112 +- .../model/organization_structure_base_line.py | 12 +- .../organization_structure_base_line_rsp.py | 167 +++ .../model/organizational_percentage_detail.py | 6 +- .../v1/model/page_info_dto.py | 12 +- ...re_register_organizational_unit_request.py | 114 ++ ...e_register_organizational_unit_response.py | 116 ++ .../v1/model/region_configuration_list.py | 6 +- .../v1/model/region_managed_list.py | 6 +- .../register_organizational_unit_request.py | 42 +- .../v1/model/setup_landing_zone_req_body.py | 18 +- .../v1/model/setup_landing_zone_request.py | 32 +- .../model/show_available_updates_request.py | 34 +- .../model/show_available_updates_response.py | 6 +- ...w_compliance_status_for_account_request.py | 47 +- ...ce_status_for_organization_unit_request.py | 47 +- .../v1/model/show_control_operate_request.py | 64 +- .../v1/model/show_control_request.py | 36 +- .../v1/model/show_control_response.py | 42 +- ..._controls_for_organization_unit_request.py | 42 +- .../v1/model/show_home_region_request.py | 34 +- ...show_landing_zone_configuration_request.py | 34 +- ...how_landing_zone_configuration_response.py | 49 +- ...ow_landing_zone_identity_center_request.py | 34 +- .../model/show_landing_zone_status_request.py | 34 +- .../show_landing_zone_status_response.py | 6 +- .../v1/model/show_managed_account_request.py | 42 +- .../v1/model/show_managed_account_response.py | 182 +-- .../show_managed_core_account_request.py | 42 +- .../show_managed_core_account_response.py | 49 +- ...how_managed_organizational_unit_request.py | 42 +- ...ow_managed_organizational_unit_response.py | 112 +- .../v1/model/show_operation_request.py | 36 +- .../v1/model/show_operation_response.py | 12 +- .../v1/model/target_control.py | 24 +- .../v1/model/un_enroll_account_request.py | 114 ++ .../v1/model/un_enroll_account_response.py | 116 ++ .../model/update_managed_account_request.py | 46 +- .../update_managed_account_request_body.py | 167 +++ .../model/update_managed_account_response.py | 6 +- .../huaweicloudsdkrgc/v1/region/rgc_region.py | 12 +- .../huaweicloudsdkrgc/v1/rgc_async_client.py | 397 ++++-- .../huaweicloudsdkrgc/v1/rgc_client.py | 397 ++++-- huaweicloud-sdk-rgc/requirements.txt | 2 +- huaweicloud-sdk-rgc/setup.py | 4 +- .../huaweicloudsdkrms/v1/region/rms_region.py | 12 +- huaweicloud-sdk-rms/requirements.txt | 2 +- huaweicloud-sdk-rms/setup.py | 4 +- .../v2/model/resend_req.py | 31 +- .../v2/region/rocketmq_region.py | 15 +- huaweicloud-sdk-rocketmq/requirements.txt | 2 +- huaweicloud-sdk-rocketmq/setup.py | 4 +- .../v2/region/roma_region.py | 12 +- huaweicloud-sdk-roma/requirements.txt | 2 +- huaweicloud-sdk-roma/setup.py | 4 +- .../huaweicloudsdksa/v1/region/sa_region.py | 12 +- .../huaweicloudsdksa/v2/region/sa_region.py | 12 +- huaweicloud-sdk-sa/requirements.txt | 2 +- huaweicloud-sdk-sa/setup.py | 4 +- .../huaweicloudsdkscm/v3/region/scm_region.py | 12 +- huaweicloud-sdk-scm/requirements.txt | 2 +- huaweicloud-sdk-scm/setup.py | 4 +- .../v1/region/sdrs_region.py | 12 +- huaweicloud-sdk-sdrs/requirements.txt | 2 +- huaweicloud-sdk-sdrs/setup.py | 4 +- .../v1/region/secmaster_region.py | 12 +- .../v2/region/secmaster_region.py | 12 +- huaweicloud-sdk-secmaster/requirements.txt | 2 +- huaweicloud-sdk-secmaster/setup.py | 4 +- .../v2/region/servicestage_region.py | 12 +- .../v3/region/servicestage_region.py | 12 +- huaweicloud-sdk-servicestage/requirements.txt | 2 +- huaweicloud-sdk-servicestage/setup.py | 4 +- .../v1/region/sfsturbo_region.py | 12 +- huaweicloud-sdk-sfsturbo/requirements.txt | 2 +- huaweicloud-sdk-sfsturbo/setup.py | 4 +- .../huaweicloudsdksis/v1/region/sis_region.py | 12 +- huaweicloud-sdk-sis/requirements.txt | 2 +- huaweicloud-sdk-sis/setup.py | 4 +- .../huaweicloudsdksmn/v2/region/smn_region.py | 12 +- huaweicloud-sdk-smn/requirements.txt | 2 +- huaweicloud-sdk-smn/setup.py | 4 +- .../huaweicloudsdksms/v3/region/sms_region.py | 12 +- huaweicloud-sdk-sms/requirements.txt | 2 +- huaweicloud-sdk-sms/setup.py | 4 +- .../huaweicloudsdkswr/v2/region/swr_region.py | 12 +- huaweicloud-sdk-swr/requirements.txt | 2 +- huaweicloud-sdk-swr/setup.py | 4 +- .../v1/region/tics_region.py | 12 +- huaweicloud-sdk-tics/requirements.txt | 2 +- huaweicloud-sdk-tics/setup.py | 4 +- .../huaweicloudsdktms/v1/region/tms_region.py | 12 +- huaweicloud-sdk-tms/requirements.txt | 2 +- huaweicloud-sdk-tms/setup.py | 4 +- .../huaweicloudsdkugo/v1/region/ugo_region.py | 12 +- huaweicloud-sdk-ugo/requirements.txt | 2 +- huaweicloud-sdk-ugo/setup.py | 4 +- .../huaweicloudsdkvas/v2/region/vas_region.py | 12 +- huaweicloud-sdk-vas/requirements.txt | 2 +- huaweicloud-sdk-vas/setup.py | 4 +- .../huaweicloudsdkvcm/v2/region/vcm_region.py | 12 +- huaweicloud-sdk-vcm/requirements.txt | 2 +- huaweicloud-sdk-vcm/setup.py | 4 +- .../huaweicloudsdkvod/v1/region/vod_region.py | 12 +- huaweicloud-sdk-vod/requirements.txt | 2 +- huaweicloud-sdk-vod/setup.py | 4 +- .../huaweicloudsdkvpc/v2/region/vpc_region.py | 12 +- .../huaweicloudsdkvpc/v3/region/vpc_region.py | 12 +- huaweicloud-sdk-vpc/requirements.txt | 2 +- huaweicloud-sdk-vpc/setup.py | 4 +- .../v1/region/vpcep_region.py | 12 +- huaweicloud-sdk-vpcep/requirements.txt | 2 +- huaweicloud-sdk-vpcep/setup.py | 4 +- .../huaweicloudsdkvpn/v5/__init__.py | 26 + .../huaweicloudsdkvpn/v5/model/__init__.py | 26 + .../v5/model/availability_zones.py | 52 +- .../batch_create_resource_tags_request.py | 167 +++ .../batch_create_resource_tags_response.py | 85 ++ .../batch_delete_resource_tags_request.py | 167 +++ .../batch_delete_resource_tags_response.py | 85 ++ .../v5/model/ca_certificate.py | 32 +- .../v5/model/ca_certificate_request.py | 31 +- .../model/count_resources_by_tags_request.py | 139 ++ .../model/count_resources_by_tags_response.py | 112 ++ .../model/create_cgw_request_body_content.py | 136 +- .../v5/model/create_request_eip.py | 6 +- .../create_resources_tags_request_body.py | 111 ++ .../model/create_response_vpn_connection.py | 35 +- .../v5/model/create_response_vpn_gateway.py | 85 +- .../model/create_vgw_request_body_content.py | 143 +- ...ate_vpn_connection_request_body_content.py | 35 +- .../delete_resources_tags_request_body.py | 111 ++ .../v5/model/list_project_tags_request.py | 114 ++ .../v5/model/list_project_tags_response.py | 112 ++ .../model/list_resources_by_tags_request.py | 197 +++ .../model/list_resources_by_tags_response.py | 137 ++ .../huaweicloudsdkvpn/v5/model/match.py | 134 ++ .../v5/model/policy_template.py | 136 ++ .../v5/model/query_resources_request_body.py | 161 +++ .../huaweicloudsdkvpn/v5/model/resource.py | 182 +++ .../v5/model/resource_tag.py | 143 ++ .../v5/model/response_customer_gateway.py | 131 +- .../v5/model/response_eip.py | 6 +- .../v5/model/response_vpn_connection.py | 35 +- .../v5/model/response_vpn_gateway.py | 180 +-- .../v5/model/show_resource_tags_request.py | 142 ++ .../v5/model/show_resource_tags_response.py | 112 ++ .../huaweicloudsdkvpn/v5/model/tag.py | 134 ++ .../model/update_cgw_request_body_content.py | 31 +- .../model/update_request_policy_template.py | 136 ++ .../model/update_response_vpn_connection.py | 35 +- .../v5/model/update_response_vpn_gateway.py | 147 +-- .../v5/model/update_vgw_ike_policy.py | 202 +++ .../v5/model/update_vgw_ipsec_policy.py | 202 +++ .../model/update_vgw_request_body_content.py | 89 +- .../v5/model/vgw_ike_policy.py | 202 +++ .../v5/model/vgw_ipsec_policy.py | 202 +++ .../v5/model/vpn_gateway_certificate.py | 1 + .../model/vpn_gateway_certificate_config.py | 1 + .../vpn_gateway_certificate_request_body.py | 3 +- ...ateway_certificate_request_body_content.py | 15 +- .../v5/model/vpn_resource_tag.py | 142 ++ .../huaweicloudsdkvpn/v5/region/vpn_region.py | 12 +- .../huaweicloudsdkvpn/v5/vpn_async_client.py | 1160 +++++++++++------ .../huaweicloudsdkvpn/v5/vpn_client.py | 1160 +++++++++++------ huaweicloud-sdk-vpn/requirements.txt | 2 +- huaweicloud-sdk-vpn/setup.py | 4 +- .../huaweicloudsdkwaf/v1/region/waf_region.py | 12 +- huaweicloud-sdk-waf/requirements.txt | 2 +- huaweicloud-sdk-waf/setup.py | 4 +- .../v2/model/job_detail_info.py | 100 +- .../v2/model/job_entities.py | 64 +- .../v2/region/workspace_region.py | 12 +- huaweicloud-sdk-workspace/requirements.txt | 2 +- huaweicloud-sdk-workspace/setup.py | 4 +- .../v1/model/account_info.py | 30 +- .../add_app_group_authorization_request.py | 6 +- .../v1/model/app.py | 102 +- .../v1/model/app_connection_info.py | 120 +- .../v1/model/app_group.py | 48 +- .../v1/model/app_group_authorize_req.py | 12 +- .../v1/model/app_server.py | 162 +-- .../v1/model/app_session.py | 156 +-- .../v1/model/assign_share_folder_req.py | 18 +- .../v1/model/assign_user_folder_req.py | 6 +- .../v1/model/assignment.py | 12 +- .../v1/model/attachment.py | 6 +- .../v1/model/authorization.py | 54 +- .../v1/model/auto_logout_options.py | 6 +- .../v1/model/bandwidth.py | 6 +- .../v1/model/base_app_group.py | 42 +- .../v1/model/base_server.py | 138 +- .../v1/model/base_server_group.py | 54 +- ..._delete_app_group_authorization_request.py | 6 +- .../v1/model/batch_delete_server_response.py | 6 +- .../batch_migrate_hosts_server_response.py | 6 +- .../v1/model/batch_migrate_server_req.py | 12 +- .../v1/model/batch_rejoin_domain_req.py | 6 +- .../v1/model/batch_rejoin_domain_response.py | 6 +- .../v1/model/batch_update_tsvi_response.py | 6 +- .../v1/model/cbc_freeze_info.py | 6 +- .../v1/model/change_server_image_req.py | 18 +- .../v1/model/change_server_image_request.py | 6 +- .../v1/model/change_server_image_response.py | 6 +- .../v1/model/check_quota_request.py | 42 +- .../v1/model/check_quota_response.py | 12 +- .../v1/model/create_app_group_req.py | 18 +- .../v1/model/create_app_group_response.py | 48 +- .../v1/model/create_app_server_req.py | 30 +- ..._or_update_storage_policy_statement_req.py | 12 +- ...pdate_storage_policy_statement_response.py | 18 +- .../v1/model/create_persistent_storage_req.py | 6 +- .../create_persistent_storage_response.py | 30 +- .../v1/model/create_server_extend_param.py | 24 +- .../v1/model/create_server_group_req.py | 60 +- .../v1/model/create_server_group_response.py | 90 +- .../v1/model/create_share_folder_req.py | 6 +- .../v1/model/create_share_folder_request.py | 6 +- .../v1/model/create_share_folder_response.py | 18 +- .../v1/model/custom_options.py | 6 +- .../v1/model/delete_app_group_req.py | 6 +- .../delete_persistent_storage_request.py | 6 +- .../v1/model/delete_server_groups_request.py | 6 +- .../v1/model/delete_storage_claim_req.py | 6 +- .../v1/model/delete_storage_claim_request.py | 6 +- .../delete_user_storage_attachment_req.py | 6 +- .../delete_user_storage_attachment_request.py | 6 +- .../v1/model/ecs_net_work.py | 36 +- .../v1/model/flavor.py | 12 +- .../v1/model/flavor_link.py | 12 +- .../v1/model/job_detail.py | 48 +- .../v1/model/job_id_info.py | 6 +- .../v1/model/job_info.py | 6 +- .../v1/model/job_resource_info.py | 48 +- .../v1/model/job_type.py | 1 + .../v1/model/list_app_connection_req.py | 114 +- .../v1/model/list_app_connection_request.py | 12 +- .../v1/model/list_app_connection_response.py | 12 +- .../list_app_group_authorization_request.py | 24 +- .../list_app_group_authorization_response.py | 12 +- .../v1/model/list_app_group_request.py | 36 +- .../v1/model/list_app_group_response.py | 12 +- .../model/list_availability_zone_response.py | 6 +- .../model/list_persistent_storage_request.py | 24 +- .../model/list_persistent_storage_response.py | 12 +- .../v1/model/list_policy_group_request.py | 12 +- .../v1/model/list_policy_group_response.py | 12 +- .../v1/model/list_policy_template_request.py | 12 +- .../v1/model/list_policy_template_response.py | 12 +- .../v1/model/list_product_request.py | 12 +- .../v1/model/list_product_response.py | 6 +- .../v1/model/list_published_app_request.py | 36 +- .../v1/model/list_published_app_response.py | 6 +- .../v1/model/list_server_groups_request.py | 30 +- .../v1/model/list_server_groups_response.py | 12 +- .../v1/model/list_servers_request.py | 42 +- .../v1/model/list_servers_response.py | 12 +- .../list_session_by_user_name_request.py | 6 +- .../list_session_by_user_name_response.py | 6 +- .../v1/model/list_session_type_response.py | 6 +- .../v1/model/list_share_folder_request.py | 30 +- .../v1/model/list_share_folder_response.py | 12 +- .../model/list_storage_assignment_request.py | 42 +- .../model/list_storage_assignment_response.py | 12 +- .../list_storage_policy_statement_request.py | 12 +- .../list_storage_policy_statement_response.py | 6 +- .../list_targets_of_policy_group_request.py | 6 +- .../v1/model/list_user_connection_req.py | 114 +- .../v1/model/list_user_connection_request.py | 12 +- .../v1/model/list_user_connection_response.py | 12 +- .../v1/model/list_volume_type_response.py | 6 +- .../v1/model/logoff_user_session_req.py | 36 +- .../v1/model/nic.py | 12 +- .../v1/model/page_resp.py | 6 +- .../v1/model/persistent_storage.py | 30 +- .../v1/model/persistent_storage_assignment.py | 18 +- .../v1/model/persistent_storage_claim.py | 18 +- ...licies_peripherals_usb_port_redirection.py | 6 +- .../v1/model/policy_group.py | 36 +- .../v1/model/policy_group_for_create.py | 6 +- .../v1/model/policy_group_for_update.py | 6 +- .../v1/model/policy_statement.py | 18 +- .../v1/model/policy_template.py | 12 +- .../v1/model/product_info.py | 132 +- .../v1/model/publish_app.py | 78 +- .../v1/model/publish_app_req.py | 6 +- .../v1/model/publish_app_request.py | 6 +- .../v1/model/publish_app_response.py | 6 +- .../v1/model/publishable_app.py | 108 +- .../v1/model/quota_remainder_data.py | 12 +- .../v1/model/reinstall_server_req.py | 6 +- .../v1/model/reinstall_server_request.py | 6 +- .../v1/model/reinstall_server_response.py | 6 +- .../v1/model/relative_resource.py | 30 +- .../v1/model/route_policy.py | 18 +- .../v1/model/sbc.py | 6 +- .../sbc_automatic_disconnection_options.py | 6 +- .../v1/model/scaling_policy.py | 18 +- .../v1/model/scaling_policy_by_session.py | 12 +- .../v1/model/server_address.py | 24 +- .../v1/model/server_group.py | 90 +- .../v1/model/session_type_entity.py | 24 +- .../model/share_persistent_storage_claim.py | 24 +- .../v1/model/show_job_detail_response.py | 12 +- .../v1/model/show_publishable_app_request.py | 6 +- .../v1/model/show_publishable_app_response.py | 18 +- .../v1/model/storage.py | 12 +- .../v1/model/storage_metadata.py | 30 +- .../v1/model/string_set.py | 6 +- .../v1/model/sub_job_info.py | 36 +- .../v1/model/unpublish_app_req.py | 6 +- .../v1/model/unpublish_app_request.py | 6 +- .../v1/model/update_app_group_req.py | 18 +- .../v1/model/update_app_group_request.py | 6 +- .../v1/model/update_app_group_response.py | 48 +- .../v1/model/update_app_req.py | 36 +- .../v1/model/update_app_request.py | 12 +- .../v1/model/update_app_response.py | 102 +- .../v1/model/update_policy_group_response.py | 6 +- .../model/update_policy_template_response.py | 6 +- .../v1/model/update_server_group_req.py | 36 +- .../v1/model/update_server_group_request.py | 6 +- .../v1/model/update_server_req.py | 18 +- .../v1/model/update_server_request.py | 6 +- .../update_share_folder_assignment_request.py | 6 +- .../v1/model/update_tsvi.py | 6 +- .../v1/model/update_tsvi_req.py | 6 +- .../update_user_folder_assignment_request.py | 6 +- .../v1/model/upload_app_icon_request.py | 12 +- .../v1/model/upload_app_icon_request_body.py | 6 +- .../v1/model/upload_app_icon_response.py | 102 +- .../v1/model/user_assignment.py | 12 +- .../v1/model/user_connection_info.py | 138 +- .../v1/model/volume.py | 12 +- .../v1/model/volume_type_extra_specs.py | 6 +- .../v1/model/volume_type_info.py | 36 +- .../v1/model/wdh_param.py | 12 +- .../v1/region/workspaceapp_region.py | 12 +- .../v1/workspaceapp_async_client.py | 68 +- .../v1/workspaceapp_client.py | 68 +- huaweicloud-sdk-workspaceapp/requirements.txt | 2 +- huaweicloud-sdk-workspaceapp/setup.py | 4 +- 1099 files changed, 35481 insertions(+), 9556 deletions(-) create mode 100644 huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py create mode 100644 huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_request_model.py create mode 100644 huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_start_job_req.py create mode 100644 huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_request.py create mode 100644 huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_response.py create mode 100644 huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/top_refer_summary.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_and_node_info.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_request.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_response.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_request.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_response.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_request.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_response.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_request.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_response.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_request.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_response.py create mode 100644 huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_info.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_request.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_response.py create mode 100644 huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_request.py create mode 100644 huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_response.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_request.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_subtitle_config.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_video_config_rsp.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_req.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_req.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py rename huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/application_model.py => huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_aiui_config.py (58%) create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_spark.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pages.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/robot_info.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_room_base_info.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_req.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_response.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_request.py create mode 100644 huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_response.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_request.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_response.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_list.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_request_body.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_result.py create mode 100644 huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_words_block_list.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline_rsp.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request_body.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_response.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line_rsp.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_request.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_response.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_request.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_response.py create mode 100644 huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request_body.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_resources_tags_request_body.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/delete_resources_tags_request_body.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/match.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/policy_template.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/query_resources_request_body.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource_tag.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_request.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_response.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/tag.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_request_policy_template.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ike_policy.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ipsec_policy.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ike_policy.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ipsec_policy.py create mode 100644 huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_resource_tag.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 517efb435d..10a277665a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,580 @@ +# 3.1.78 2024-01-18 + +### HuaweiCloud SDK AOM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListPromInstance** + - changes of request param + - `+ prom_status: enum value [DELETED,NORMAL,ALL]` + - `+ prom_status: enum value [true,false]` + - changes of response param + - `- prometheus.cce_spec` + - `- prometheus.prom_config` + - `- prometheus.application` + - `+ prometheus.prom_status: enum value [DELETED,NORMAL,ALL]` + - **CreatePromInstance** + - changes of request param + - `- prom_id` + - `- cce_spec` + - `- prom_config` + - `- prom_create_timestamp` + - `- prom_update_timestamp` + - `- prom_status` + - `- is_deleted_tag` + - `- deleted_time` + - `- prom_spec_config` + - `- cce_spec_config` + - `- application` + - `- prom_type: enum value [DEFAULT]` + - `* body: object -> object` + - changes of response param + - `- prometheus.cce_spec` + - `- prometheus.prom_config` + - `- prometheus.is_deleted_tag` + - `- prometheus.application` + - `- prometheus.prom_type: enum value [DEFAULT]` + - `+ prometheus.prom_status: enum value [DELETED,NORMAL,ALL]` + - `* prometheus: list -> list` + - **AddOrUpdateServiceDiscoveryRules** + - changes of response param + - `+ id` + - `+ results` + +### HuaweiCloud SDK APIG + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowDetailsOfInstanceV2** + - changes of response param + - `- public_ipv6_ips` + - `- unreliable_ips` + - `- node_ipv6_ips` + - `- enable_fullstack_ipv6` + - `- publicips.ipv6_address` + - **UpdateInstanceV2** + - changes of response param + - `- public_ipv6_ips` + - `- unreliable_ips` + - `- node_ipv6_ips` + - `- enable_fullstack_ipv6` + - `- publicips.ipv6_address` + - **CreateInstanceV2** + - changes of request param + - `+ spec_id: enum value [BASIC_IPV6,PROFESSIONAL_IPV6,ENTERPRISE_IPV6,PLATINUM_IPV6]` + - **CreateOrder** + - changes of request param + - `+ instance_info.spec_id: enum value [BASIC_IPV6,PROFESSIONAL_IPV6,ENTERPRISE_IPV6,PLATINUM_IPV6]` + +### HuaweiCloud SDK CAE + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListComponentConfigurations** + - changes of response param + - `+ items.data.spec.items.ports.paths` + - `- items.data.spec.items.ports.path` + - `+ items.data.spec.volumes.umask` + - **CreateComponentConfiguration** + - changes of request param + - `+ items.data.spec.items.ports.paths` + - `- items.data.spec.items.ports.path` + - `+ items.data.spec.volumes.umask` + +### HuaweiCloud SDK CCE + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowCluster** + - changes of response param + - `+ spec.enableAutopilot` + - **UpdateCluster** + - changes of response param + - `+ spec.enableAutopilot` + - **DeleteCluster** + - changes of response param + - `+ spec.enableAutopilot` + - **CreateCluster** + - changes of request param + - `+ spec.enableAutopilot` + - changes of response param + - `+ spec.enableAutopilot` + - **ListClusters** + - changes of response param + - `+ items.spec.enableAutopilot` + +### HuaweiCloud SDK CDN + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowTopUrl** + - changes of request param + - `+ service_area: enum value [global]` + +### HuaweiCloud SDK CDN + +- _Features_ + - Support the API `ListCdnDomainTopRefers` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CPTS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAgentConfig** + - changes of response param + - `+ result.extensions` + - `- result.elasticsearch_enable` + - `- result.elasticsearch_shadow_type` + - `- result.elasticsearch_shadow_repository` + - **UpdateAgentHealthStatus** + - changes of response param + - `+ result.result.extensions` + - `- result.result.elasticsearch_enable` + - `- result.result.elasticsearch_shadow_type` + - `- result.result.elasticsearch_shadow_repository` + - **ShowTask** + - changes of response param + - `+ taskInfo.related_temp_running_data.content_method_url` + - **UpdateTask** + - changes of request param + - `+ related_temp_running_data.content_method_url` + - changes of response param + - `+ taskInfo.related_temp_running_data.content_method_url` + - **UpdateTaskRelatedTestCase** + - changes of response param + - `+ taskInfo.related_temp_running_data.content_method_url` + +### HuaweiCloud SDK DataArtsStudio + +- _Features_ + - Support the following APIs: + - `ShowDataDetail` + - `ShowDatamapLineage` + - `ShowLineageBulk` + - `ShowNodes` + - `ShowInstanceInfos` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the API `ChangeMasterStandbyAsync` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowScript** + - changes of response param + - `+ owner` + - `* configuration: string -> map` + - **UpdateScript** + - changes of request param + - `+ owner` + - `* configuration: string -> map` + - **CreateScript** + - changes of request param + - `+ owner` + - `* configuration: string -> map` + - **ListScripts** + - changes of response param + - `+ owner` + - `+ scripts.owner` + - `* scripts.configuration: string -> map` + - **CreateJob** + - changes of request param + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **ShowJob** + - changes of response param + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **UpdateJob** + - changes of request param + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **CreateSupplementdata** + - changes of request param + - `+ dependJobs.basicConfig.agency` + - `+ dependJobs.basicConfig.isIgnoreWaiting` + +### HuaweiCloud SDK DSC + +- _Features_ + - Support the API `DeleteScanJob` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DWS + +- _Features_ + - Support the API `ListWorkloadPlans` +- _Bug Fix_ + - None +- _Change_ + - **ShowWorkloadPlan** + - changes of response param + - `* workload_plan.status: string -> int32` + +### HuaweiCloud SDK ELB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateListener** + - changes of request param + - `+ listener.protection_status` + - `+ listener.protection_reason` + - **ListLoadbalancers** + - changes of response param + - `+ loadbalancers.billing_info` + - `+ loadbalancers.protection_status` + - `+ loadbalancers.protection_reason` + - **CreateLoadbalancer** + - changes of response param + - `+ loadbalancer_id` + - `+ order_id` + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + - **ShowLoadbalancer** + - changes of response param + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + - **UpdateLoadbalancer** + - changes of response param + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + +### HuaweiCloud SDK MetaStudio + +- _Features_ + - Support the following APIs: + - `CreateDialogUrl` + - `StartSmartChatJob` + - `StopSmartChatJob` + - `ShowSmartChatJob` + - `CreateOnceCode` + - `ListRobot` + - `CreateRobot` + - `ShowRobot` + - `UpdateRobot` + - `DeleteRobot` + - `ListSmartChatRooms` + - `CreateSmartChatRoom` + - `ShowSmartChatRoom` + - `UpdateSmartChatRoom` + - `DeleteSmartChatRoom` +- _Bug Fix_ + - None +- _Change_ + - **ListDigitalHumanVideo** + - changes of request param + - `+ job_type` + - **ListSmartLiveRooms** + - changes of response param + - `+ smart_live_rooms.last_job_status: enum value [BLOCKED]` + +### HuaweiCloud SDK OCR + +- _Features_ + - Support the API `RecognizeSeal` +- _Bug Fix_ + - None +- _Change_ + - **RecognizeFlightItinerary** + - changes of response param + - `+ result.tax` + - `+ result.tax_rate` + - `+ result.buyer_name` + - `+ result.buyer_id` + - `+ result.number` + - `+ result.international_flag` + - `+ result.issue_status` + +### HuaweiCloud SDK RDS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAuditlogPolicy** + - changes of response param + - `+ all_audit_log_action` + - `+ audit_types` + - **ListRecycleInstances** + - changes of response param + - `+ instances.is_serverless` + +### HuaweiCloud SDK RGC + +- _Features_ + - Support the APIs `ReRegisterOrganizationalUnit`, `EnrollAccount`, `UnEnrollAccount` +- _Bug Fix_ + - None +- _Change_ + - **CheckLaunch** + - changes of request param + - `- X-Security-Token` + - **ShowHomeRegion** + - changes of request param + - `- X-Security-Token` + - **ShowAvailableUpdates** + - changes of request param + - `- X-Security-Token` + - **ShowOperation** + - changes of request param + - `- X-Security-Token` + - **ShowLandingZoneStatus** + - changes of request param + - `- X-Security-Token` + - **ShowLandingZoneIdentityCenter** + - changes of request param + - `- X-Security-Token` + - **ListControls** + - changes of request param + - `- X-Security-Token` + - **ListControlViolations** + - changes of request param + - `- X-Security-Token` + - **ShowControl** + - changes of request param + - `- X-Security-Token` + - **ListEnabledControls** + - changes of request param + - `- X-Security-Token` + - **ListDriftDetails** + - changes of request param + - `- X-Security-Token` + - **ListManagedOrganizationalUnits** + - changes of request param + - `- X-Security-Token` + - changes of response param + - `+ landing_zone_version` + - `+ message` + - `+ managed_organization_units.landing_zone_version` + - `+ managed_organization_units.message` + - **CreateAccount** + - changes of request param + - `- X-Security-Token` + - **ListManagedAccounts** + - changes of request param + - `- X-Security-Token` + - changes of response param + - `+ landing_zone_version` + - `- account_email` + - `- phone` + - `- identity_store_email_name` + - `+ managed_accounts.landing_zone_version` + - `- managed_accounts.phone` + - `- managed_accounts.account_email` + - `- managed_accounts.identity_store_email_name` + - **SetupLandingZone** + - changes of request param + - `- X-Security-Token` + - `+ organization_structure.accounts.account_id` + - **ShowLandingZoneConfiguration** + - changes of request param + - `- X-Security-Token` + - changes of response param + - `- identity_store_email` + - `+ organization_structure.accounts.account_id` + - `- organization_structure.accounts.phone` + - `* organization_structure.accounts: list -> list` + - `* organization_structure: list -> list` + +### HuaweiCloud SDK RocketMQ + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ValidateConsumedMessage** + - changes of request param + - `+ topic` + +### HuaweiCloud SDK VPN + +- _Features_ + - Support the following APIs: + - `BatchCreateResourceTags` + - `BatchDeleteResourceTags` + - `ListResourcesByTags` + - `CountResourcesByTags` + - `ShowResourceTags` + - `ListProjectTags` +- _Bug Fix_ + - None +- _Change_ + - **ListCgws** + - changes of response param + - `+ customer_gateways.id_type` + - `+ customer_gateways.id_value` + - `+ customer_gateways.tags` + - `- customer_gateways.route_mode` + - `- customer_gateways.ip` + - `+ customer_gateways.ca_certificate.id` + - **CreateCgw** + - changes of request param + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - changes of response param + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **ShowCgw** + - changes of response param + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **UpdateCgw** + - changes of request param + - `+ customer_gateway.ca_certificate` + - changes of response param + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **ListVgws** + - changes of response param + - `+ vpn_gateways.policy_template` + - `+ vpn_gateways.supported_flavors` + - `+ vpn_gateways.tags` + - `- vpn_gateways.access_private_ips` + - `- vpn_gateways.master_eip` + - `- vpn_gateways.slave_eip` + - **CreateVgw** + - changes of request param + - `+ vpn_gateway.access_private_ip_1` + - `+ vpn_gateway.access_private_ip_2` + - `+ vpn_gateway.tags` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - `+ vpn_gateway.flavor: enum value [Professional1-NonFixedIP,Professional2-NonFixedIP]` + - changes of response param + - `+ vpn_gateway.certificate_id` + - `+ vpn_gateway.ha_mode` + - `+ vpn_gateway.policy_template` + - **ListAvailabilityZones** + - changes of response param + - `+ availability_zones.Professional1-NonFixedIP` + - `+ availability_zones.Professional2-NonFixedIP` + - **ShowVgw** + - changes of response param + - `+ vpn_gateway.policy_template` + - `+ vpn_gateway.supported_flavors` + - `+ vpn_gateway.tags` + - `- vpn_gateway.access_private_ips` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - **UpdateVgw** + - changes of request param + - `+ vpn_gateway.policy_template` + - `- vpn_gateway.master_eip_id` + - `- vpn_gateway.slave_eip_id` + - changes of response param + - `+ vpn_gateway.certificate_id` + - `+ vpn_gateway.policy_template` + - `- vpn_gateway.access_private_ips` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - **ListVpnConnections** + - changes of response param + - `+ vpn_connections.tags` + - **CreateVpnConnection** + - changes of request param + - `+ vpn_connection.tags` + - changes of response param + - `+ vpn_connection.tags` + - **ShowVpnConnection** + - changes of response param + - `+ vpn_connection.tags` + - **UpdateVpnConnection** + - changes of response param + - `+ vpn_connection.tags` + +### HuaweiCloud SDK Workspace + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListItaSubJobs** + - changes of response param + - `+ jobs.process` + - `- jobs.desktop_name` + - `- jobs.ip_address` + - `- jobs.mac_address` + - `+ jobs.entities.desktop_name` + - `+ jobs.entities.ip_address` + +### HuaweiCloud SDK WorkspaceApp + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListServers** + - changes of response param + - `+ items.job_type: enum value [COLLECT_HDA_LOG]` + - **ShowJobDetail** + - changes of response param + - `+ job_type: enum value [COLLECT_HDA_LOG]` + # 3.1.77 2024-01-11 ### HuaweiCloud SDK APIG diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index e3c3e0b15c..f0f71bb7c5 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,580 @@ +# 3.1.78 2024-01-18 + +### HuaweiCloud SDK AOM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListPromInstance** + - 请求参数变更 + - `+ prom_status: enum value [DELETED,NORMAL,ALL]` + - `+ prom_status: enum value [true,false]` + - 响应参数变更 + - `- prometheus.cce_spec` + - `- prometheus.prom_config` + - `- prometheus.application` + - `+ prometheus.prom_status: enum value [DELETED,NORMAL,ALL]` + - **CreatePromInstance** + - 请求参数变更 + - `- prom_id` + - `- cce_spec` + - `- prom_config` + - `- prom_create_timestamp` + - `- prom_update_timestamp` + - `- prom_status` + - `- is_deleted_tag` + - `- deleted_time` + - `- prom_spec_config` + - `- cce_spec_config` + - `- application` + - `- prom_type: enum value [DEFAULT]` + - `* body: object -> object` + - 响应参数变更 + - `- prometheus.cce_spec` + - `- prometheus.prom_config` + - `- prometheus.is_deleted_tag` + - `- prometheus.application` + - `- prometheus.prom_type: enum value [DEFAULT]` + - `+ prometheus.prom_status: enum value [DELETED,NORMAL,ALL]` + - `* prometheus: list -> list` + - **AddOrUpdateServiceDiscoveryRules** + - 响应参数变更 + - `+ id` + - `+ results` + +### HuaweiCloud SDK APIG + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowDetailsOfInstanceV2** + - 响应参数变更 + - `- public_ipv6_ips` + - `- unreliable_ips` + - `- node_ipv6_ips` + - `- enable_fullstack_ipv6` + - `- publicips.ipv6_address` + - **UpdateInstanceV2** + - 响应参数变更 + - `- public_ipv6_ips` + - `- unreliable_ips` + - `- node_ipv6_ips` + - `- enable_fullstack_ipv6` + - `- publicips.ipv6_address` + - **CreateInstanceV2** + - 请求参数变更 + - `+ spec_id: enum value [BASIC_IPV6,PROFESSIONAL_IPV6,ENTERPRISE_IPV6,PLATINUM_IPV6]` + - **CreateOrder** + - 请求参数变更 + - `+ instance_info.spec_id: enum value [BASIC_IPV6,PROFESSIONAL_IPV6,ENTERPRISE_IPV6,PLATINUM_IPV6]` + +### HuaweiCloud SDK CAE + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListComponentConfigurations** + - 响应参数变更 + - `+ items.data.spec.items.ports.paths` + - `- items.data.spec.items.ports.path` + - `+ items.data.spec.volumes.umask` + - **CreateComponentConfiguration** + - 请求参数变更 + - `+ items.data.spec.items.ports.paths` + - `- items.data.spec.items.ports.path` + - `+ items.data.spec.volumes.umask` + +### HuaweiCloud SDK CCE + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowCluster** + - 响应参数变更 + - `+ spec.enableAutopilot` + - **UpdateCluster** + - 响应参数变更 + - `+ spec.enableAutopilot` + - **DeleteCluster** + - 响应参数变更 + - `+ spec.enableAutopilot` + - **CreateCluster** + - 请求参数变更 + - `+ spec.enableAutopilot` + - 响应参数变更 + - `+ spec.enableAutopilot` + - **ListClusters** + - 响应参数变更 + - `+ items.spec.enableAutopilot` + +### HuaweiCloud SDK CDN + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowTopUrl** + - 请求参数变更 + - `+ service_area: enum value [global]` + +### HuaweiCloud SDK CDN + +- _新增特性_ + - 支持接口`ListCdnDomainTopRefers` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CPTS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAgentConfig** + - 响应参数变更 + - `+ result.extensions` + - `- result.elasticsearch_enable` + - `- result.elasticsearch_shadow_type` + - `- result.elasticsearch_shadow_repository` + - **UpdateAgentHealthStatus** + - 响应参数变更 + - `+ result.result.extensions` + - `- result.result.elasticsearch_enable` + - `- result.result.elasticsearch_shadow_type` + - `- result.result.elasticsearch_shadow_repository` + - **ShowTask** + - 响应参数变更 + - `+ taskInfo.related_temp_running_data.content_method_url` + - **UpdateTask** + - 请求参数变更 + - `+ related_temp_running_data.content_method_url` + - 响应参数变更 + - `+ taskInfo.related_temp_running_data.content_method_url` + - **UpdateTaskRelatedTestCase** + - 响应参数变更 + - `+ taskInfo.related_temp_running_data.content_method_url` + +### HuaweiCloud SDK DataArtsStudio + +- _新增特性_ + - 支持以下接口: + - `ShowDataDetail` + - `ShowDatamapLineage` + - `ShowLineageBulk` + - `ShowNodes` + - `ShowInstanceInfos` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`ChangeMasterStandbyAsync` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowScript** + - 响应参数变更 + - `+ owner` + - `* configuration: string -> map` + - **UpdateScript** + - 请求参数变更 + - `+ owner` + - `* configuration: string -> map` + - **CreateScript** + - 请求参数变更 + - `+ owner` + - `* configuration: string -> map` + - **ListScripts** + - 响应参数变更 + - `+ owner` + - `+ scripts.owner` + - `* scripts.configuration: string -> map` + - **CreateJob** + - 请求参数变更 + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **ShowJob** + - 响应参数变更 + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **UpdateJob** + - 请求参数变更 + - `+ basicConfig.agency` + - `+ basicConfig.isIgnoreWaiting` + - **CreateSupplementdata** + - 请求参数变更 + - `+ dependJobs.basicConfig.agency` + - `+ dependJobs.basicConfig.isIgnoreWaiting` + +### HuaweiCloud SDK DSC + +- _新增特性_ + - 支持接口`DeleteScanJob` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DWS + +- _新增特性_ + - 支持接口`ListWorkloadPlans` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowWorkloadPlan** + - 响应参数变更 + - `* workload_plan.status: string -> int32` + +### HuaweiCloud SDK ELB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateListener** + - 请求参数变更 + - `+ listener.protection_status` + - `+ listener.protection_reason` + - **ListLoadbalancers** + - 响应参数变更 + - `+ loadbalancers.billing_info` + - `+ loadbalancers.protection_status` + - `+ loadbalancers.protection_reason` + - **CreateLoadbalancer** + - 响应参数变更 + - `+ loadbalancer_id` + - `+ order_id` + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + - **ShowLoadbalancer** + - 响应参数变更 + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + - **UpdateLoadbalancer** + - 响应参数变更 + - `+ loadbalancer.billing_info` + - `+ loadbalancer.protection_status` + - `+ loadbalancer.protection_reason` + +### HuaweiCloud SDK MetaStudio + +- _新增特性_ + - 支持以下接口: + - `CreateDialogUrl` + - `StartSmartChatJob` + - `StopSmartChatJob` + - `ShowSmartChatJob` + - `CreateOnceCode` + - `ListRobot` + - `CreateRobot` + - `ShowRobot` + - `UpdateRobot` + - `DeleteRobot` + - `ListSmartChatRooms` + - `CreateSmartChatRoom` + - `ShowSmartChatRoom` + - `UpdateSmartChatRoom` + - `DeleteSmartChatRoom` +- _解决问题_ + - 无 +- _特性变更_ + - **ListDigitalHumanVideo** + - 请求参数变更 + - `+ job_type` + - **ListSmartLiveRooms** + - 响应参数变更 + - `+ smart_live_rooms.last_job_status: enum value [BLOCKED]` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 支持接口`RecognizeSeal` +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeFlightItinerary** + - 响应参数变更 + - `+ result.tax` + - `+ result.tax_rate` + - `+ result.buyer_name` + - `+ result.buyer_id` + - `+ result.number` + - `+ result.international_flag` + - `+ result.issue_status` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAuditlogPolicy** + - 响应参数变更 + - `+ all_audit_log_action` + - `+ audit_types` + - **ListRecycleInstances** + - 响应参数变更 + - `+ instances.is_serverless` + +### HuaweiCloud SDK RGC + +- _新增特性_ + - 支持接口`ReRegisterOrganizationalUnit`、`EnrollAccount`、`UnEnrollAccount` +- _解决问题_ + - 无 +- _特性变更_ + - **CheckLaunch** + - 请求参数变更 + - `- X-Security-Token` + - **ShowHomeRegion** + - 请求参数变更 + - `- X-Security-Token` + - **ShowAvailableUpdates** + - 请求参数变更 + - `- X-Security-Token` + - **ShowOperation** + - 请求参数变更 + - `- X-Security-Token` + - **ShowLandingZoneStatus** + - 请求参数变更 + - `- X-Security-Token` + - **ShowLandingZoneIdentityCenter** + - 请求参数变更 + - `- X-Security-Token` + - **ListControls** + - 请求参数变更 + - `- X-Security-Token` + - **ListControlViolations** + - 请求参数变更 + - `- X-Security-Token` + - **ShowControl** + - 请求参数变更 + - `- X-Security-Token` + - **ListEnabledControls** + - 请求参数变更 + - `- X-Security-Token` + - **ListDriftDetails** + - 请求参数变更 + - `- X-Security-Token` + - **ListManagedOrganizationalUnits** + - 请求参数变更 + - `- X-Security-Token` + - 响应参数变更 + - `+ landing_zone_version` + - `+ message` + - `+ managed_organization_units.landing_zone_version` + - `+ managed_organization_units.message` + - **CreateAccount** + - 请求参数变更 + - `- X-Security-Token` + - **ListManagedAccounts** + - 请求参数变更 + - `- X-Security-Token` + - 响应参数变更 + - `+ landing_zone_version` + - `- account_email` + - `- phone` + - `- identity_store_email_name` + - `+ managed_accounts.landing_zone_version` + - `- managed_accounts.phone` + - `- managed_accounts.account_email` + - `- managed_accounts.identity_store_email_name` + - **SetupLandingZone** + - 请求参数变更 + - `- X-Security-Token` + - `+ organization_structure.accounts.account_id` + - **ShowLandingZoneConfiguration** + - 请求参数变更 + - `- X-Security-Token` + - 响应参数变更 + - `- identity_store_email` + - `+ organization_structure.accounts.account_id` + - `- organization_structure.accounts.phone` + - `* organization_structure.accounts: list -> list` + - `* organization_structure: list -> list` + +### HuaweiCloud SDK RocketMQ + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ValidateConsumedMessage** + - 请求参数变更 + - `+ topic` + +### HuaweiCloud SDK VPN + +- _新增特性_ + - 支持以下接口: + - `BatchCreateResourceTags` + - `BatchDeleteResourceTags` + - `ListResourcesByTags` + - `CountResourcesByTags` + - `ShowResourceTags` + - `ListProjectTags` +- _解决问题_ + - 无 +- _特性变更_ + - **ListCgws** + - 响应参数变更 + - `+ customer_gateways.id_type` + - `+ customer_gateways.id_value` + - `+ customer_gateways.tags` + - `- customer_gateways.route_mode` + - `- customer_gateways.ip` + - `+ customer_gateways.ca_certificate.id` + - **CreateCgw** + - 请求参数变更 + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - 响应参数变更 + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **ShowCgw** + - 响应参数变更 + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **UpdateCgw** + - 请求参数变更 + - `+ customer_gateway.ca_certificate` + - 响应参数变更 + - `+ customer_gateway.id_type` + - `+ customer_gateway.id_value` + - `+ customer_gateway.tags` + - `- customer_gateway.route_mode` + - `- customer_gateway.ip` + - `+ customer_gateway.ca_certificate.id` + - **ListVgws** + - 响应参数变更 + - `+ vpn_gateways.policy_template` + - `+ vpn_gateways.supported_flavors` + - `+ vpn_gateways.tags` + - `- vpn_gateways.access_private_ips` + - `- vpn_gateways.master_eip` + - `- vpn_gateways.slave_eip` + - **CreateVgw** + - 请求参数变更 + - `+ vpn_gateway.access_private_ip_1` + - `+ vpn_gateway.access_private_ip_2` + - `+ vpn_gateway.tags` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - `+ vpn_gateway.flavor: enum value [Professional1-NonFixedIP,Professional2-NonFixedIP]` + - 响应参数变更 + - `+ vpn_gateway.certificate_id` + - `+ vpn_gateway.ha_mode` + - `+ vpn_gateway.policy_template` + - **ListAvailabilityZones** + - 响应参数变更 + - `+ availability_zones.Professional1-NonFixedIP` + - `+ availability_zones.Professional2-NonFixedIP` + - **ShowVgw** + - 响应参数变更 + - `+ vpn_gateway.policy_template` + - `+ vpn_gateway.supported_flavors` + - `+ vpn_gateway.tags` + - `- vpn_gateway.access_private_ips` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - **UpdateVgw** + - 请求参数变更 + - `+ vpn_gateway.policy_template` + - `- vpn_gateway.master_eip_id` + - `- vpn_gateway.slave_eip_id` + - 响应参数变更 + - `+ vpn_gateway.certificate_id` + - `+ vpn_gateway.policy_template` + - `- vpn_gateway.access_private_ips` + - `- vpn_gateway.master_eip` + - `- vpn_gateway.slave_eip` + - **ListVpnConnections** + - 响应参数变更 + - `+ vpn_connections.tags` + - **CreateVpnConnection** + - 请求参数变更 + - `+ vpn_connection.tags` + - 响应参数变更 + - `+ vpn_connection.tags` + - **ShowVpnConnection** + - 响应参数变更 + - `+ vpn_connection.tags` + - **UpdateVpnConnection** + - 响应参数变更 + - `+ vpn_connection.tags` + +### HuaweiCloud SDK Workspace + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListItaSubJobs** + - 响应参数变更 + - `+ jobs.process` + - `- jobs.desktop_name` + - `- jobs.ip_address` + - `- jobs.mac_address` + - `+ jobs.entities.desktop_name` + - `+ jobs.entities.ip_address` + +### HuaweiCloud SDK WorkspaceApp + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListServers** + - 响应参数变更 + - `+ items.job_type: enum value [COLLECT_HDA_LOG]` + - **ShowJobDetail** + - 响应参数变更 + - `+ job_type: enum value [COLLECT_HDA_LOG]` + # 3.1.77 2024-01-11 ### HuaweiCloud SDK APIG diff --git a/README.md b/README.md index 5bace50483..0fe24c1f4e 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ http_config.proxy_protocol = 'http' http_config.proxy_host = 'proxy.huaweicloud.com' http_config.proxy_port = 80 # Configure the username and password if the proxy requires authentication +# In this example, username and password are stored in environment variables. Please configure the environment variables PROXY_USERNAME and PROXY_PASSWORD before running this example. http_config.proxy_user = os.getenv("PROXY_USERNAME") http_config.proxy_password = os.getenv("PROXY_PASSWORD") @@ -424,8 +425,8 @@ Getting Authentication from providers is supported since `v3.0.98` | Environment Variables | Notice | | ------------ | ------------ | -| HUAWEICLOUD_SDK_AK | Required,AccessKey | -| HUAWEICLOUD_SDK_SK | Required,SecretKey | +| HUAWEICLOUD_SDK_AK | Required, AccessKey | +| HUAWEICLOUD_SDK_SK | Required, SecretKey | | HUAWEICLOUD_SDK_SECURITY_TOKEN | Optional, this parameter needs to be specified when using temporary ak/sk | | HUAWEICLOUD_SDK_PROJECT_ID | Optional, used for regional services, required in multi-ProjectId scenarios | | HUAWEICLOUD_SDK_DOMAIN_ID | Optional, used for global services | @@ -503,8 +504,8 @@ The profile will be read from the user's home directory by default, linux`~/.hua | Configuration Parameters | Notice | | ------------ | ------------ | -| ak | Required,AccessKey | -| sk | Required,SecretKey | +| ak | Required, AccessKey | +| sk | Required, SecretKey | | security_token | Optional, this parameter needs to be specified when using temporary ak/sk | | project_id | Optional, used for regional services, required in multi-ProjectId scenarios | | domain_id | Optional, used for global services | @@ -732,7 +733,22 @@ credentials = BasicCredentials(ak, sk).with_iam_endpoint(iam_endpoint) ##### 3.3.2 Region configuration [:top:](#user-manual-top) -###### 3.3.2.1 Environment variable [:top:](#user-manual-top) +###### 3.3.2.1 Code [:top:](#user-manual-top) + +```python +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkecs.v2 import EcsClient + +# Create a region with custom region id and endpoint +region = Region("cn-north-9", "https://ecs.cn-north-9.myhuaweicloud.com") + +client = EcsClient.new_builder() \ + .with_credentials(credentials) \ + .with_region(region) \ + .build() +``` + +###### 3.3.2.2 Environment variable [:top:](#user-manual-top) Specified by environment variable, the format is `HUAWEICLOUD_SDK_REGION_{SERVICE_NAME}_{REGION_ID}={endpoint}` @@ -754,7 +770,7 @@ A region corresponding to multiple endpoints is supported since **v3.1.60**, if The format is `HUAWEICLOUD_SDK_REGION_{SERVICE_NAME}_{REGION_ID}={endpoint1},{endpoint2}`, separate multiple endpoints with commas, such as `HUAWEICLOUD_SDK_REGION_ECS_CN_NORTH_9=https://ecs.cn-north-9.myhuaweicloud.com,https://ecs.cn-north-9.myhuaweicloud.cn` -###### 3.3.2.2 Profile [:top:](#user-manual-top) +###### 3.3.2.3 Profile [:top:](#user-manual-top) The profile will be read from the user's home directory by default, linux`~/.huaweicloud/regions.yaml`,windows`C:\Users\USER_NAME\.huaweicloud\regions.yaml`,the default file may not exist, but if the file exists and the content format is incorrect, an exception will be thrown for parsing errors. @@ -763,7 +779,7 @@ The path to the profile can be modified by configuring the environment variable The file content format is as follows: ```yaml -# Serivce name is case-insensitive +# Service name is case-insensitive ECS: - id: 'cn-north-1' endpoint: 'https://ecs.cn-north-1.myhuaweicloud.com' @@ -784,9 +800,9 @@ ECS: - 'https://ecs.cn-north-1.myhuaweicloud.cn' ``` -###### 3.3.2.3 Region supply chain [:top:](#user-manual-top) +###### 3.3.2.4 Region supply chain [:top:](#user-manual-top) -The default order is **environment variables -> profile -> region defined in SDK**, if the region is not found in the above ways, an exception will be thrown. +The default lookup order is **environment variables -> profile -> region defined in SDK** of method **Region.value_of(region_id)**, if the region is not found in the above ways, an exception **KeyError** will be thrown. ```python from huaweicloudsdkecs.v2.region.ecs_region import EcsRegion @@ -948,9 +964,9 @@ if __name__ == "__main__": HttpHandler supports method `add_request_handler` and `add_response_handler`. ### 7. API Invoker [:top:](#user-manual-top) - + #### 7.1 Custom request headers [:top:](#user-manual-top) - + You can flexibly configure request headers as needed. **Do not** specify common request headers such as `Host`, `Authorization`, `User-Agent`, `Content-Type` unless necessary, as this may cause the errors. **Sync invoke** diff --git a/README_CN.md b/README_CN.md index 932fcd8d24..fe50145735 100644 --- a/README_CN.md +++ b/README_CN.md @@ -255,6 +255,7 @@ http_config.proxy_protocol = 'http' http_config.proxy_host = 'proxy.huaweicloud.com' http_config.proxy_port = 80 # 如果代理需要认证,请配置用户名和密码 +# 本示例中的账号和密码保存在环境变量中,运行本示例前请先在本地环境中配置环境变量PROXY_USERNAME和PROXY_PASSWORD http_config.proxy_user = os.getenv("PROXY_USERNAME") http_config.proxy_password = os.getenv("PROXY_PASSWORD") @@ -726,7 +727,22 @@ credentials = BasicCredentials(ak, sk).with_iam_endpoint(iam_endpoint) ##### 3.3.2 Region配置 [:top:](#用户手册-top) -###### 3.3.2.1 环境变量 [:top:](#用户手册-top) +###### 3.3.2.1 代码配置 [:top:](#用户手册-top) + +```python +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkecs.v2 import EcsClient + +# 使用自定义的regionId和endpoint创建一个region +region = Region("cn-north-9", "https://ecs.cn-north-9.myhuaweicloud.com") + +client = EcsClient.new_builder() \ + .with_credentials(credentials) \ + .with_region(region) \ + .build() +``` + +###### 3.3.2.2 环境变量 [:top:](#用户手册-top) 通过环境变量配置,格式为`HUAWEICLOUD_SDK_REGION_{SERVICE_NAME}_{REGION_ID}={endpoint}` @@ -748,7 +764,7 @@ set HUAWEICLOUD_SDK_REGION_IOTDA_AP_SOUTHEAST_1=https://iotda.ap-southwest-1.myh 格式为`HUAWEICLOUD_SDK_REGION_{SERVICE_NAME}_{REGION_ID}={endpoint1},{endpoint2}`, 多个endpoint之间用英文逗号隔开, 比如`HUAWEICLOUD_SDK_REGION_ECS_CN_NORTH_9=https://ecs.cn-north-9.myhuaweicloud.com,https://ecs.cn-north-9.myhuaweicloud.cn` -###### 3.3.2.2 文件配置 [:top:](#用户手册-top) +###### 3.3.2.3 文件配置 [:top:](#用户手册-top) 通过yaml文件配置,默认会从用户主目录下读取region配置文件,linux为`~/.huaweicloud/regions.yaml`,windows为`C:\Users\USER_NAME\.huaweicloud\regions.yaml`,默认配置文件可以不存在,但是如果配置文件存在且内容格式不对会解析错误抛出异常。 @@ -778,9 +794,9 @@ ECS: - 'https://ecs.cn-north-1.myhuaweicloud.cn' ``` -###### 3.3.2.3 Region提供链 [:top:](#用户手册-top) +###### 3.3.2.4 Region提供链 [:top:](#用户手册-top) -默认查找顺序为 **环境变量 -> 配置文件 -> SDK中已定义Region**,以上方式都找不到region会抛出异常,获取region示例: +**Region.value_of(region_id)** 默认查找顺序为 **环境变量 -> 配置文件 -> SDK中已定义Region**,以上方式都找不到region会抛出异常 **KeyError**,获取region示例: ```python from huaweicloudsdkecs.v2.region.ecs_region import EcsRegion diff --git a/VERSION b/VERSION index b84b989eb4..a53dcb0c70 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.77 +3.1.78 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/region/aad_region.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/region/aad_region.py index 9022ffb7fc..28cd230bcf 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/region/aad_region.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/region/aad_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class AadRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aad': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 6bef5464e1..ca235a5277 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 46f7cfbecc..56712b4bc2 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,159 +1,159 @@ -huaweicloudsdkcore == 3.1.77 -huaweicloudsdkaad == 3.1.77 -huaweicloudsdkantiddos == 3.1.77 -huaweicloudsdkaom == 3.1.77 -huaweicloudsdkaos == 3.1.77 -huaweicloudsdkapig == 3.1.77 -huaweicloudsdkapm == 3.1.77 -huaweicloudsdkas == 3.1.77 -huaweicloudsdkasm == 3.1.77 -huaweicloudsdkbcs == 3.1.77 -huaweicloudsdkbms == 3.1.77 -huaweicloudsdkbss == 3.1.77 -huaweicloudsdkbssintl == 3.1.77 -huaweicloudsdkcae == 3.1.77 -huaweicloudsdkcampusgo == 3.1.77 -huaweicloudsdkcbh == 3.1.77 -huaweicloudsdkcbr == 3.1.77 -huaweicloudsdkcbs == 3.1.77 -huaweicloudsdkcc == 3.1.77 -huaweicloudsdkcce == 3.1.77 -huaweicloudsdkccm == 3.1.77 -huaweicloudsdkcdm == 3.1.77 -huaweicloudsdkcdn == 3.1.77 -huaweicloudsdkces == 3.1.77 -huaweicloudsdkcfw == 3.1.77 -huaweicloudsdkcgs == 3.1.77 -huaweicloudsdkclassroom == 3.1.77 -huaweicloudsdkcloudide == 3.1.77 -huaweicloudsdkcloudpond == 3.1.77 -huaweicloudsdkcloudrtc == 3.1.77 -huaweicloudsdkcloudtable == 3.1.77 -huaweicloudsdkcloudtest == 3.1.77 -huaweicloudsdkcodeartsartifact == 3.1.77 -huaweicloudsdkcodeartsbuild == 3.1.77 -huaweicloudsdkcodeartscheck == 3.1.77 -huaweicloudsdkcodeartsdeploy == 3.1.77 -huaweicloudsdkcodeartsinspector == 3.1.77 -huaweicloudsdkcodeartspipeline == 3.1.77 -huaweicloudsdkcodecraft == 3.1.77 -huaweicloudsdkcodehub == 3.1.77 -huaweicloudsdkconfig == 3.1.77 -huaweicloudsdkcph == 3.1.77 -huaweicloudsdkcpts == 3.1.77 -huaweicloudsdkcse == 3.1.77 -huaweicloudsdkcsms == 3.1.77 -huaweicloudsdkcss == 3.1.77 -huaweicloudsdkcts == 3.1.77 -huaweicloudsdkdas == 3.1.77 -huaweicloudsdkdataartsstudio == 3.1.77 -huaweicloudsdkdbss == 3.1.77 -huaweicloudsdkdc == 3.1.77 -huaweicloudsdkdcs == 3.1.77 -huaweicloudsdkddm == 3.1.77 -huaweicloudsdkdds == 3.1.77 -huaweicloudsdkdeh == 3.1.77 -huaweicloudsdkdevsecurity == 3.1.77 -huaweicloudsdkdevstar == 3.1.77 -huaweicloudsdkdgc == 3.1.77 -huaweicloudsdkdis == 3.1.77 -huaweicloudsdkdlf == 3.1.77 -huaweicloudsdkdli == 3.1.77 -huaweicloudsdkdns == 3.1.77 -huaweicloudsdkdris == 3.1.77 -huaweicloudsdkdrs == 3.1.77 -huaweicloudsdkdsc == 3.1.77 -huaweicloudsdkdwr == 3.1.77 -huaweicloudsdkdws == 3.1.77 -huaweicloudsdkec == 3.1.77 -huaweicloudsdkecs == 3.1.77 -huaweicloudsdkedgesec == 3.1.77 -huaweicloudsdkeg == 3.1.77 -huaweicloudsdkeihealth == 3.1.77 -huaweicloudsdkeip == 3.1.77 -huaweicloudsdkelb == 3.1.77 -huaweicloudsdkeps == 3.1.77 -huaweicloudsdker == 3.1.77 -huaweicloudsdkevs == 3.1.77 -huaweicloudsdkfrs == 3.1.77 -huaweicloudsdkfunctiongraph == 3.1.77 -huaweicloudsdkga == 3.1.77 -huaweicloudsdkgaussdb == 3.1.77 -huaweicloudsdkgaussdbfornosql == 3.1.77 -huaweicloudsdkgaussdbforopengauss == 3.1.77 -huaweicloudsdkges == 3.1.77 -huaweicloudsdkgsl == 3.1.77 -huaweicloudsdkhilens == 3.1.77 -huaweicloudsdkhss == 3.1.77 -huaweicloudsdkiam == 3.1.77 -huaweicloudsdkidentitycenter == 3.1.77 -huaweicloudsdkidentitycenterstore == 3.1.77 -huaweicloudsdkidme == 3.1.77 -huaweicloudsdkidmeclassicapi == 3.1.77 -huaweicloudsdkiec == 3.1.77 -huaweicloudsdkief == 3.1.77 -huaweicloudsdkimage == 3.1.77 -huaweicloudsdkimagesearch == 3.1.77 -huaweicloudsdkims == 3.1.77 -huaweicloudsdkiotanalytics == 3.1.77 -huaweicloudsdkiotda == 3.1.77 -huaweicloudsdkiotedge == 3.1.77 -huaweicloudsdkivs == 3.1.77 -huaweicloudsdkkafka == 3.1.77 -huaweicloudsdkkms == 3.1.77 -huaweicloudsdkkoomessage == 3.1.77 -huaweicloudsdkkps == 3.1.77 -huaweicloudsdklakeformation == 3.1.77 -huaweicloudsdklive == 3.1.77 -huaweicloudsdklts == 3.1.77 -huaweicloudsdkmapds == 3.1.77 -huaweicloudsdkmas == 3.1.77 -huaweicloudsdkmeeting == 3.1.77 -huaweicloudsdkmetastudio == 3.1.77 -huaweicloudsdkmoderation == 3.1.77 -huaweicloudsdkmpc == 3.1.77 -huaweicloudsdkmrs == 3.1.77 -huaweicloudsdkmsgsms == 3.1.77 -huaweicloudsdkmssi == 3.1.77 -huaweicloudsdknat == 3.1.77 -huaweicloudsdknlp == 3.1.77 -huaweicloudsdkobs == 3.1.77 -huaweicloudsdkocr == 3.1.77 -huaweicloudsdkoctopus == 3.1.77 -huaweicloudsdkoms == 3.1.77 -huaweicloudsdkoptverse == 3.1.77 -huaweicloudsdkorganizations == 3.1.77 -huaweicloudsdkoroas == 3.1.77 -huaweicloudsdkosm == 3.1.77 -huaweicloudsdkpangulargemodels == 3.1.77 -huaweicloudsdkprojectman == 3.1.77 -huaweicloudsdkrabbitmq == 3.1.77 -huaweicloudsdkram == 3.1.77 -huaweicloudsdkrds == 3.1.77 -huaweicloudsdkres == 3.1.77 -huaweicloudsdkrgc == 3.1.77 -huaweicloudsdkrms == 3.1.77 -huaweicloudsdkrocketmq == 3.1.77 -huaweicloudsdkroma == 3.1.77 -huaweicloudsdksa == 3.1.77 -huaweicloudsdkscm == 3.1.77 -huaweicloudsdksdrs == 3.1.77 -huaweicloudsdksecmaster == 3.1.77 -huaweicloudsdkservicestage == 3.1.77 -huaweicloudsdksfsturbo == 3.1.77 -huaweicloudsdksis == 3.1.77 -huaweicloudsdksmn == 3.1.77 -huaweicloudsdksms == 3.1.77 -huaweicloudsdkswr == 3.1.77 -huaweicloudsdktics == 3.1.77 -huaweicloudsdktms == 3.1.77 -huaweicloudsdkugo == 3.1.77 -huaweicloudsdkvas == 3.1.77 -huaweicloudsdkvcm == 3.1.77 -huaweicloudsdkvod == 3.1.77 -huaweicloudsdkvpc == 3.1.77 -huaweicloudsdkvpcep == 3.1.77 -huaweicloudsdkvpn == 3.1.77 -huaweicloudsdkwaf == 3.1.77 -huaweicloudsdkworkspace == 3.1.77 -huaweicloudsdkworkspaceapp == 3.1.77 +huaweicloudsdkcore == 3.1.78 +huaweicloudsdkaad == 3.1.78 +huaweicloudsdkantiddos == 3.1.78 +huaweicloudsdkaom == 3.1.78 +huaweicloudsdkaos == 3.1.78 +huaweicloudsdkapig == 3.1.78 +huaweicloudsdkapm == 3.1.78 +huaweicloudsdkas == 3.1.78 +huaweicloudsdkasm == 3.1.78 +huaweicloudsdkbcs == 3.1.78 +huaweicloudsdkbms == 3.1.78 +huaweicloudsdkbss == 3.1.78 +huaweicloudsdkbssintl == 3.1.78 +huaweicloudsdkcae == 3.1.78 +huaweicloudsdkcampusgo == 3.1.78 +huaweicloudsdkcbh == 3.1.78 +huaweicloudsdkcbr == 3.1.78 +huaweicloudsdkcbs == 3.1.78 +huaweicloudsdkcc == 3.1.78 +huaweicloudsdkcce == 3.1.78 +huaweicloudsdkccm == 3.1.78 +huaweicloudsdkcdm == 3.1.78 +huaweicloudsdkcdn == 3.1.78 +huaweicloudsdkces == 3.1.78 +huaweicloudsdkcfw == 3.1.78 +huaweicloudsdkcgs == 3.1.78 +huaweicloudsdkclassroom == 3.1.78 +huaweicloudsdkcloudide == 3.1.78 +huaweicloudsdkcloudpond == 3.1.78 +huaweicloudsdkcloudrtc == 3.1.78 +huaweicloudsdkcloudtable == 3.1.78 +huaweicloudsdkcloudtest == 3.1.78 +huaweicloudsdkcodeartsartifact == 3.1.78 +huaweicloudsdkcodeartsbuild == 3.1.78 +huaweicloudsdkcodeartscheck == 3.1.78 +huaweicloudsdkcodeartsdeploy == 3.1.78 +huaweicloudsdkcodeartsinspector == 3.1.78 +huaweicloudsdkcodeartspipeline == 3.1.78 +huaweicloudsdkcodecraft == 3.1.78 +huaweicloudsdkcodehub == 3.1.78 +huaweicloudsdkconfig == 3.1.78 +huaweicloudsdkcph == 3.1.78 +huaweicloudsdkcpts == 3.1.78 +huaweicloudsdkcse == 3.1.78 +huaweicloudsdkcsms == 3.1.78 +huaweicloudsdkcss == 3.1.78 +huaweicloudsdkcts == 3.1.78 +huaweicloudsdkdas == 3.1.78 +huaweicloudsdkdataartsstudio == 3.1.78 +huaweicloudsdkdbss == 3.1.78 +huaweicloudsdkdc == 3.1.78 +huaweicloudsdkdcs == 3.1.78 +huaweicloudsdkddm == 3.1.78 +huaweicloudsdkdds == 3.1.78 +huaweicloudsdkdeh == 3.1.78 +huaweicloudsdkdevsecurity == 3.1.78 +huaweicloudsdkdevstar == 3.1.78 +huaweicloudsdkdgc == 3.1.78 +huaweicloudsdkdis == 3.1.78 +huaweicloudsdkdlf == 3.1.78 +huaweicloudsdkdli == 3.1.78 +huaweicloudsdkdns == 3.1.78 +huaweicloudsdkdris == 3.1.78 +huaweicloudsdkdrs == 3.1.78 +huaweicloudsdkdsc == 3.1.78 +huaweicloudsdkdwr == 3.1.78 +huaweicloudsdkdws == 3.1.78 +huaweicloudsdkec == 3.1.78 +huaweicloudsdkecs == 3.1.78 +huaweicloudsdkedgesec == 3.1.78 +huaweicloudsdkeg == 3.1.78 +huaweicloudsdkeihealth == 3.1.78 +huaweicloudsdkeip == 3.1.78 +huaweicloudsdkelb == 3.1.78 +huaweicloudsdkeps == 3.1.78 +huaweicloudsdker == 3.1.78 +huaweicloudsdkevs == 3.1.78 +huaweicloudsdkfrs == 3.1.78 +huaweicloudsdkfunctiongraph == 3.1.78 +huaweicloudsdkga == 3.1.78 +huaweicloudsdkgaussdb == 3.1.78 +huaweicloudsdkgaussdbfornosql == 3.1.78 +huaweicloudsdkgaussdbforopengauss == 3.1.78 +huaweicloudsdkges == 3.1.78 +huaweicloudsdkgsl == 3.1.78 +huaweicloudsdkhilens == 3.1.78 +huaweicloudsdkhss == 3.1.78 +huaweicloudsdkiam == 3.1.78 +huaweicloudsdkidentitycenter == 3.1.78 +huaweicloudsdkidentitycenterstore == 3.1.78 +huaweicloudsdkidme == 3.1.78 +huaweicloudsdkidmeclassicapi == 3.1.78 +huaweicloudsdkiec == 3.1.78 +huaweicloudsdkief == 3.1.78 +huaweicloudsdkimage == 3.1.78 +huaweicloudsdkimagesearch == 3.1.78 +huaweicloudsdkims == 3.1.78 +huaweicloudsdkiotanalytics == 3.1.78 +huaweicloudsdkiotda == 3.1.78 +huaweicloudsdkiotedge == 3.1.78 +huaweicloudsdkivs == 3.1.78 +huaweicloudsdkkafka == 3.1.78 +huaweicloudsdkkms == 3.1.78 +huaweicloudsdkkoomessage == 3.1.78 +huaweicloudsdkkps == 3.1.78 +huaweicloudsdklakeformation == 3.1.78 +huaweicloudsdklive == 3.1.78 +huaweicloudsdklts == 3.1.78 +huaweicloudsdkmapds == 3.1.78 +huaweicloudsdkmas == 3.1.78 +huaweicloudsdkmeeting == 3.1.78 +huaweicloudsdkmetastudio == 3.1.78 +huaweicloudsdkmoderation == 3.1.78 +huaweicloudsdkmpc == 3.1.78 +huaweicloudsdkmrs == 3.1.78 +huaweicloudsdkmsgsms == 3.1.78 +huaweicloudsdkmssi == 3.1.78 +huaweicloudsdknat == 3.1.78 +huaweicloudsdknlp == 3.1.78 +huaweicloudsdkobs == 3.1.78 +huaweicloudsdkocr == 3.1.78 +huaweicloudsdkoctopus == 3.1.78 +huaweicloudsdkoms == 3.1.78 +huaweicloudsdkoptverse == 3.1.78 +huaweicloudsdkorganizations == 3.1.78 +huaweicloudsdkoroas == 3.1.78 +huaweicloudsdkosm == 3.1.78 +huaweicloudsdkpangulargemodels == 3.1.78 +huaweicloudsdkprojectman == 3.1.78 +huaweicloudsdkrabbitmq == 3.1.78 +huaweicloudsdkram == 3.1.78 +huaweicloudsdkrds == 3.1.78 +huaweicloudsdkres == 3.1.78 +huaweicloudsdkrgc == 3.1.78 +huaweicloudsdkrms == 3.1.78 +huaweicloudsdkrocketmq == 3.1.78 +huaweicloudsdkroma == 3.1.78 +huaweicloudsdksa == 3.1.78 +huaweicloudsdkscm == 3.1.78 +huaweicloudsdksdrs == 3.1.78 +huaweicloudsdksecmaster == 3.1.78 +huaweicloudsdkservicestage == 3.1.78 +huaweicloudsdksfsturbo == 3.1.78 +huaweicloudsdksis == 3.1.78 +huaweicloudsdksmn == 3.1.78 +huaweicloudsdksms == 3.1.78 +huaweicloudsdkswr == 3.1.78 +huaweicloudsdktics == 3.1.78 +huaweicloudsdktms == 3.1.78 +huaweicloudsdkugo == 3.1.78 +huaweicloudsdkvas == 3.1.78 +huaweicloudsdkvcm == 3.1.78 +huaweicloudsdkvod == 3.1.78 +huaweicloudsdkvpc == 3.1.78 +huaweicloudsdkvpcep == 3.1.78 +huaweicloudsdkvpn == 3.1.78 +huaweicloudsdkwaf == 3.1.78 +huaweicloudsdkworkspace == 3.1.78 +huaweicloudsdkworkspaceapp == 3.1.78 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 5bddf3bbe0..9341fde8ac 100644 --- 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.77" +VERSION = "3.1.78" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,165 +34,165 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.77', - 'huaweicloudsdkaad==3.1.77', - 'huaweicloudsdkantiddos==3.1.77', - 'huaweicloudsdkaom==3.1.77', - 'huaweicloudsdkaos==3.1.77', - 'huaweicloudsdkapig==3.1.77', - 'huaweicloudsdkapm==3.1.77', - 'huaweicloudsdkas==3.1.77', - 'huaweicloudsdkasm==3.1.77', - 'huaweicloudsdkbcs==3.1.77', - 'huaweicloudsdkbms==3.1.77', - 'huaweicloudsdkbss==3.1.77', - 'huaweicloudsdkbssintl==3.1.77', - 'huaweicloudsdkcae==3.1.77', - 'huaweicloudsdkcampusgo==3.1.77', - 'huaweicloudsdkcbh==3.1.77', - 'huaweicloudsdkcbr==3.1.77', - 'huaweicloudsdkcbs==3.1.77', - 'huaweicloudsdkcc==3.1.77', - 'huaweicloudsdkcce==3.1.77', - 'huaweicloudsdkccm==3.1.77', - 'huaweicloudsdkcdm==3.1.77', - 'huaweicloudsdkcdn==3.1.77', - 'huaweicloudsdkces==3.1.77', - 'huaweicloudsdkcfw==3.1.77', - 'huaweicloudsdkcgs==3.1.77', - 'huaweicloudsdkclassroom==3.1.77', - 'huaweicloudsdkcloudide==3.1.77', - 'huaweicloudsdkcloudpond==3.1.77', - 'huaweicloudsdkcloudrtc==3.1.77', - 'huaweicloudsdkcloudtable==3.1.77', - 'huaweicloudsdkcloudtest==3.1.77', - 'huaweicloudsdkcodeartsartifact==3.1.77', - 'huaweicloudsdkcodeartsbuild==3.1.77', - 'huaweicloudsdkcodeartscheck==3.1.77', - 'huaweicloudsdkcodeartsdeploy==3.1.77', - 'huaweicloudsdkcodeartsinspector==3.1.77', - 'huaweicloudsdkcodeartspipeline==3.1.77', - 'huaweicloudsdkcodecraft==3.1.77', - 'huaweicloudsdkcodehub==3.1.77', - 'huaweicloudsdkconfig==3.1.77', - 'huaweicloudsdkcph==3.1.77', - 'huaweicloudsdkcpts==3.1.77', - 'huaweicloudsdkcse==3.1.77', - 'huaweicloudsdkcsms==3.1.77', - 'huaweicloudsdkcss==3.1.77', - 'huaweicloudsdkcts==3.1.77', - 'huaweicloudsdkdas==3.1.77', - 'huaweicloudsdkdataartsstudio==3.1.77', - 'huaweicloudsdkdbss==3.1.77', - 'huaweicloudsdkdc==3.1.77', - 'huaweicloudsdkdcs==3.1.77', - 'huaweicloudsdkddm==3.1.77', - 'huaweicloudsdkdds==3.1.77', - 'huaweicloudsdkdeh==3.1.77', - 'huaweicloudsdkdevsecurity==3.1.77', - 'huaweicloudsdkdevstar==3.1.77', - 'huaweicloudsdkdgc==3.1.77', - 'huaweicloudsdkdis==3.1.77', - 'huaweicloudsdkdlf==3.1.77', - 'huaweicloudsdkdli==3.1.77', - 'huaweicloudsdkdns==3.1.77', - 'huaweicloudsdkdris==3.1.77', - 'huaweicloudsdkdrs==3.1.77', - 'huaweicloudsdkdsc==3.1.77', - 'huaweicloudsdkdwr==3.1.77', - 'huaweicloudsdkdws==3.1.77', - 'huaweicloudsdkec==3.1.77', - 'huaweicloudsdkecs==3.1.77', - 'huaweicloudsdkedgesec==3.1.77', - 'huaweicloudsdkeg==3.1.77', - 'huaweicloudsdkeihealth==3.1.77', - 'huaweicloudsdkeip==3.1.77', - 'huaweicloudsdkelb==3.1.77', - 'huaweicloudsdkeps==3.1.77', - 'huaweicloudsdker==3.1.77', - 'huaweicloudsdkevs==3.1.77', - 'huaweicloudsdkfrs==3.1.77', - 'huaweicloudsdkfunctiongraph==3.1.77', - 'huaweicloudsdkga==3.1.77', - 'huaweicloudsdkgaussdb==3.1.77', - 'huaweicloudsdkgaussdbfornosql==3.1.77', - 'huaweicloudsdkgaussdbforopengauss==3.1.77', - 'huaweicloudsdkges==3.1.77', - 'huaweicloudsdkgsl==3.1.77', - 'huaweicloudsdkhilens==3.1.77', - 'huaweicloudsdkhss==3.1.77', - 'huaweicloudsdkiam==3.1.77', - 'huaweicloudsdkidentitycenter==3.1.77', - 'huaweicloudsdkidentitycenterstore==3.1.77', - 'huaweicloudsdkidme==3.1.77', - 'huaweicloudsdkidmeclassicapi==3.1.77', - 'huaweicloudsdkiec==3.1.77', - 'huaweicloudsdkief==3.1.77', - 'huaweicloudsdkimage==3.1.77', - 'huaweicloudsdkimagesearch==3.1.77', - 'huaweicloudsdkims==3.1.77', - 'huaweicloudsdkiotanalytics==3.1.77', - 'huaweicloudsdkiotda==3.1.77', - 'huaweicloudsdkiotedge==3.1.77', - 'huaweicloudsdkivs==3.1.77', - 'huaweicloudsdkkafka==3.1.77', - 'huaweicloudsdkkms==3.1.77', - 'huaweicloudsdkkoomessage==3.1.77', - 'huaweicloudsdkkps==3.1.77', - 'huaweicloudsdklakeformation==3.1.77', - 'huaweicloudsdklive==3.1.77', - 'huaweicloudsdklts==3.1.77', - 'huaweicloudsdkmapds==3.1.77', - 'huaweicloudsdkmas==3.1.77', - 'huaweicloudsdkmeeting==3.1.77', - 'huaweicloudsdkmetastudio==3.1.77', - 'huaweicloudsdkmoderation==3.1.77', - 'huaweicloudsdkmpc==3.1.77', - 'huaweicloudsdkmrs==3.1.77', - 'huaweicloudsdkmsgsms==3.1.77', - 'huaweicloudsdkmssi==3.1.77', - 'huaweicloudsdknat==3.1.77', - 'huaweicloudsdknlp==3.1.77', - 'huaweicloudsdkobs==3.1.77', - 'huaweicloudsdkocr==3.1.77', - 'huaweicloudsdkoctopus==3.1.77', - 'huaweicloudsdkoms==3.1.77', - 'huaweicloudsdkoptverse==3.1.77', - 'huaweicloudsdkorganizations==3.1.77', - 'huaweicloudsdkoroas==3.1.77', - 'huaweicloudsdkosm==3.1.77', - 'huaweicloudsdkpangulargemodels==3.1.77', - 'huaweicloudsdkprojectman==3.1.77', - 'huaweicloudsdkrabbitmq==3.1.77', - 'huaweicloudsdkram==3.1.77', - 'huaweicloudsdkrds==3.1.77', - 'huaweicloudsdkres==3.1.77', - 'huaweicloudsdkrgc==3.1.77', - 'huaweicloudsdkrms==3.1.77', - 'huaweicloudsdkrocketmq==3.1.77', - 'huaweicloudsdkroma==3.1.77', - 'huaweicloudsdksa==3.1.77', - 'huaweicloudsdkscm==3.1.77', - 'huaweicloudsdksdrs==3.1.77', - 'huaweicloudsdksecmaster==3.1.77', - 'huaweicloudsdkservicestage==3.1.77', - 'huaweicloudsdksfsturbo==3.1.77', - 'huaweicloudsdksis==3.1.77', - 'huaweicloudsdksmn==3.1.77', - 'huaweicloudsdksms==3.1.77', - 'huaweicloudsdkswr==3.1.77', - 'huaweicloudsdktics==3.1.77', - 'huaweicloudsdktms==3.1.77', - 'huaweicloudsdkugo==3.1.77', - 'huaweicloudsdkvas==3.1.77', - 'huaweicloudsdkvcm==3.1.77', - 'huaweicloudsdkvod==3.1.77', - 'huaweicloudsdkvpc==3.1.77', - 'huaweicloudsdkvpcep==3.1.77', - 'huaweicloudsdkvpn==3.1.77', - 'huaweicloudsdkwaf==3.1.77', - 'huaweicloudsdkworkspace==3.1.77', - 'huaweicloudsdkworkspaceapp==3.1.77', + 'huaweicloudsdkcore==3.1.78', + 'huaweicloudsdkaad==3.1.78', + 'huaweicloudsdkantiddos==3.1.78', + 'huaweicloudsdkaom==3.1.78', + 'huaweicloudsdkaos==3.1.78', + 'huaweicloudsdkapig==3.1.78', + 'huaweicloudsdkapm==3.1.78', + 'huaweicloudsdkas==3.1.78', + 'huaweicloudsdkasm==3.1.78', + 'huaweicloudsdkbcs==3.1.78', + 'huaweicloudsdkbms==3.1.78', + 'huaweicloudsdkbss==3.1.78', + 'huaweicloudsdkbssintl==3.1.78', + 'huaweicloudsdkcae==3.1.78', + 'huaweicloudsdkcampusgo==3.1.78', + 'huaweicloudsdkcbh==3.1.78', + 'huaweicloudsdkcbr==3.1.78', + 'huaweicloudsdkcbs==3.1.78', + 'huaweicloudsdkcc==3.1.78', + 'huaweicloudsdkcce==3.1.78', + 'huaweicloudsdkccm==3.1.78', + 'huaweicloudsdkcdm==3.1.78', + 'huaweicloudsdkcdn==3.1.78', + 'huaweicloudsdkces==3.1.78', + 'huaweicloudsdkcfw==3.1.78', + 'huaweicloudsdkcgs==3.1.78', + 'huaweicloudsdkclassroom==3.1.78', + 'huaweicloudsdkcloudide==3.1.78', + 'huaweicloudsdkcloudpond==3.1.78', + 'huaweicloudsdkcloudrtc==3.1.78', + 'huaweicloudsdkcloudtable==3.1.78', + 'huaweicloudsdkcloudtest==3.1.78', + 'huaweicloudsdkcodeartsartifact==3.1.78', + 'huaweicloudsdkcodeartsbuild==3.1.78', + 'huaweicloudsdkcodeartscheck==3.1.78', + 'huaweicloudsdkcodeartsdeploy==3.1.78', + 'huaweicloudsdkcodeartsinspector==3.1.78', + 'huaweicloudsdkcodeartspipeline==3.1.78', + 'huaweicloudsdkcodecraft==3.1.78', + 'huaweicloudsdkcodehub==3.1.78', + 'huaweicloudsdkconfig==3.1.78', + 'huaweicloudsdkcph==3.1.78', + 'huaweicloudsdkcpts==3.1.78', + 'huaweicloudsdkcse==3.1.78', + 'huaweicloudsdkcsms==3.1.78', + 'huaweicloudsdkcss==3.1.78', + 'huaweicloudsdkcts==3.1.78', + 'huaweicloudsdkdas==3.1.78', + 'huaweicloudsdkdataartsstudio==3.1.78', + 'huaweicloudsdkdbss==3.1.78', + 'huaweicloudsdkdc==3.1.78', + 'huaweicloudsdkdcs==3.1.78', + 'huaweicloudsdkddm==3.1.78', + 'huaweicloudsdkdds==3.1.78', + 'huaweicloudsdkdeh==3.1.78', + 'huaweicloudsdkdevsecurity==3.1.78', + 'huaweicloudsdkdevstar==3.1.78', + 'huaweicloudsdkdgc==3.1.78', + 'huaweicloudsdkdis==3.1.78', + 'huaweicloudsdkdlf==3.1.78', + 'huaweicloudsdkdli==3.1.78', + 'huaweicloudsdkdns==3.1.78', + 'huaweicloudsdkdris==3.1.78', + 'huaweicloudsdkdrs==3.1.78', + 'huaweicloudsdkdsc==3.1.78', + 'huaweicloudsdkdwr==3.1.78', + 'huaweicloudsdkdws==3.1.78', + 'huaweicloudsdkec==3.1.78', + 'huaweicloudsdkecs==3.1.78', + 'huaweicloudsdkedgesec==3.1.78', + 'huaweicloudsdkeg==3.1.78', + 'huaweicloudsdkeihealth==3.1.78', + 'huaweicloudsdkeip==3.1.78', + 'huaweicloudsdkelb==3.1.78', + 'huaweicloudsdkeps==3.1.78', + 'huaweicloudsdker==3.1.78', + 'huaweicloudsdkevs==3.1.78', + 'huaweicloudsdkfrs==3.1.78', + 'huaweicloudsdkfunctiongraph==3.1.78', + 'huaweicloudsdkga==3.1.78', + 'huaweicloudsdkgaussdb==3.1.78', + 'huaweicloudsdkgaussdbfornosql==3.1.78', + 'huaweicloudsdkgaussdbforopengauss==3.1.78', + 'huaweicloudsdkges==3.1.78', + 'huaweicloudsdkgsl==3.1.78', + 'huaweicloudsdkhilens==3.1.78', + 'huaweicloudsdkhss==3.1.78', + 'huaweicloudsdkiam==3.1.78', + 'huaweicloudsdkidentitycenter==3.1.78', + 'huaweicloudsdkidentitycenterstore==3.1.78', + 'huaweicloudsdkidme==3.1.78', + 'huaweicloudsdkidmeclassicapi==3.1.78', + 'huaweicloudsdkiec==3.1.78', + 'huaweicloudsdkief==3.1.78', + 'huaweicloudsdkimage==3.1.78', + 'huaweicloudsdkimagesearch==3.1.78', + 'huaweicloudsdkims==3.1.78', + 'huaweicloudsdkiotanalytics==3.1.78', + 'huaweicloudsdkiotda==3.1.78', + 'huaweicloudsdkiotedge==3.1.78', + 'huaweicloudsdkivs==3.1.78', + 'huaweicloudsdkkafka==3.1.78', + 'huaweicloudsdkkms==3.1.78', + 'huaweicloudsdkkoomessage==3.1.78', + 'huaweicloudsdkkps==3.1.78', + 'huaweicloudsdklakeformation==3.1.78', + 'huaweicloudsdklive==3.1.78', + 'huaweicloudsdklts==3.1.78', + 'huaweicloudsdkmapds==3.1.78', + 'huaweicloudsdkmas==3.1.78', + 'huaweicloudsdkmeeting==3.1.78', + 'huaweicloudsdkmetastudio==3.1.78', + 'huaweicloudsdkmoderation==3.1.78', + 'huaweicloudsdkmpc==3.1.78', + 'huaweicloudsdkmrs==3.1.78', + 'huaweicloudsdkmsgsms==3.1.78', + 'huaweicloudsdkmssi==3.1.78', + 'huaweicloudsdknat==3.1.78', + 'huaweicloudsdknlp==3.1.78', + 'huaweicloudsdkobs==3.1.78', + 'huaweicloudsdkocr==3.1.78', + 'huaweicloudsdkoctopus==3.1.78', + 'huaweicloudsdkoms==3.1.78', + 'huaweicloudsdkoptverse==3.1.78', + 'huaweicloudsdkorganizations==3.1.78', + 'huaweicloudsdkoroas==3.1.78', + 'huaweicloudsdkosm==3.1.78', + 'huaweicloudsdkpangulargemodels==3.1.78', + 'huaweicloudsdkprojectman==3.1.78', + 'huaweicloudsdkrabbitmq==3.1.78', + 'huaweicloudsdkram==3.1.78', + 'huaweicloudsdkrds==3.1.78', + 'huaweicloudsdkres==3.1.78', + 'huaweicloudsdkrgc==3.1.78', + 'huaweicloudsdkrms==3.1.78', + 'huaweicloudsdkrocketmq==3.1.78', + 'huaweicloudsdkroma==3.1.78', + 'huaweicloudsdksa==3.1.78', + 'huaweicloudsdkscm==3.1.78', + 'huaweicloudsdksdrs==3.1.78', + 'huaweicloudsdksecmaster==3.1.78', + 'huaweicloudsdkservicestage==3.1.78', + 'huaweicloudsdksfsturbo==3.1.78', + 'huaweicloudsdksis==3.1.78', + 'huaweicloudsdksmn==3.1.78', + 'huaweicloudsdksms==3.1.78', + 'huaweicloudsdkswr==3.1.78', + 'huaweicloudsdktics==3.1.78', + 'huaweicloudsdktms==3.1.78', + 'huaweicloudsdkugo==3.1.78', + 'huaweicloudsdkvas==3.1.78', + 'huaweicloudsdkvcm==3.1.78', + 'huaweicloudsdkvod==3.1.78', + 'huaweicloudsdkvpc==3.1.78', + 'huaweicloudsdkvpcep==3.1.78', + 'huaweicloudsdkvpn==3.1.78', + 'huaweicloudsdkwaf==3.1.78', + 'huaweicloudsdkworkspace==3.1.78', + 'huaweicloudsdkworkspaceapp==3.1.78', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py b/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py index bf89a97b60..2efa065a5b 100644 --- a/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py +++ b/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class AntiDDoSRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'AntiDDoS': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 759f92f99b..9c61832f7b 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py index 3f1d12fe92..abac59c809 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class AomRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aom': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py index 29b1057319..97c80e5087 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py @@ -24,7 +24,6 @@ from huaweicloudsdkaom.v2.model.app_rules import AppRules from huaweicloudsdkaom.v2.model.app_rules_body import AppRulesBody from huaweicloudsdkaom.v2.model.app_rules_spec import AppRulesSpec -from huaweicloudsdkaom.v2.model.application_model import ApplicationModel from huaweicloudsdkaom.v2.model.application_name_rule import ApplicationNameRule from huaweicloudsdkaom.v2.model.count_events_request import CountEventsRequest from huaweicloudsdkaom.v2.model.count_events_response import CountEventsResponse @@ -125,7 +124,9 @@ from huaweicloudsdkaom.v2.model.notifications import Notifications from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel +from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel from huaweicloudsdkaom.v2.model.prom_instance_eps_model import PromInstanceEpsModel +from huaweicloudsdkaom.v2.model.prom_instance_request_model import PromInstanceRequestModel from huaweicloudsdkaom.v2.model.push_events_request import PushEventsRequest from huaweicloudsdkaom.v2.model.push_events_response import PushEventsResponse from huaweicloudsdkaom.v2.model.query_alarm_result import QueryAlarmResult diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py index 55c44fcee6..8ce7b35aa7 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py @@ -22,7 +22,6 @@ from huaweicloudsdkaom.v2.model.app_rules import AppRules from huaweicloudsdkaom.v2.model.app_rules_body import AppRulesBody from huaweicloudsdkaom.v2.model.app_rules_spec import AppRulesSpec -from huaweicloudsdkaom.v2.model.application_model import ApplicationModel from huaweicloudsdkaom.v2.model.application_name_rule import ApplicationNameRule from huaweicloudsdkaom.v2.model.count_events_request import CountEventsRequest from huaweicloudsdkaom.v2.model.count_events_response import CountEventsResponse @@ -123,7 +122,9 @@ from huaweicloudsdkaom.v2.model.notifications import Notifications from huaweicloudsdkaom.v2.model.notified_histories_result import NotifiedHistoriesResult from huaweicloudsdkaom.v2.model.prom_config_model import PromConfigModel +from huaweicloudsdkaom.v2.model.prom_instance_eps_create_model import PromInstanceEpsCreateModel from huaweicloudsdkaom.v2.model.prom_instance_eps_model import PromInstanceEpsModel +from huaweicloudsdkaom.v2.model.prom_instance_request_model import PromInstanceRequestModel from huaweicloudsdkaom.v2.model.push_events_request import PushEventsRequest from huaweicloudsdkaom.v2.model.push_events_response import PushEventsResponse from huaweicloudsdkaom.v2.model.query_alarm_result import QueryAlarmResult diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py index a808ccbc2e..8d7a3b8d98 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py @@ -20,16 +20,20 @@ class AddOrUpdateServiceDiscoveryRulesResponse(SdkResponse): openapi_types = { 'error_code': 'str', 'error_message': 'str', - 'response_status': 'int' + 'response_status': 'int', + 'id': 'list[str]', + 'results': 'list[dict(str, str)]' } attribute_map = { 'error_code': 'errorCode', 'error_message': 'errorMessage', - 'response_status': 'responseStatus' + 'response_status': 'responseStatus', + 'id': 'id', + 'results': 'results' } - def __init__(self, error_code=None, error_message=None, response_status=None): + def __init__(self, error_code=None, error_message=None, response_status=None, id=None, results=None): """AddOrUpdateServiceDiscoveryRulesResponse The model defined in huaweicloud sdk @@ -38,8 +42,12 @@ def __init__(self, error_code=None, error_message=None, response_status=None): :type error_code: str :param error_message: 响应信息描述。 :type error_message: str - :param response_status: 响应状态码。 + :param response_status: 响应状态码(不再使用)。 :type response_status: int + :param id: 服务发现规则id列表,多AZ配置同步时使用。 + :type id: list[str] + :param results: 服务发现规则详细信息列表。 + :type results: list[dict(str, str)] """ super(AddOrUpdateServiceDiscoveryRulesResponse, self).__init__() @@ -47,6 +55,8 @@ def __init__(self, error_code=None, error_message=None, response_status=None): self._error_code = None self._error_message = None self._response_status = None + self._id = None + self._results = None self.discriminator = None if error_code is not None: @@ -55,6 +65,10 @@ def __init__(self, error_code=None, error_message=None, response_status=None): self.error_message = error_message if response_status is not None: self.response_status = response_status + if id is not None: + self.id = id + if results is not None: + self.results = results @property def error_code(self): @@ -104,7 +118,7 @@ def error_message(self, error_message): def response_status(self): """Gets the response_status of this AddOrUpdateServiceDiscoveryRulesResponse. - 响应状态码。 + 响应状态码(不再使用)。 :return: The response_status of this AddOrUpdateServiceDiscoveryRulesResponse. :rtype: int @@ -115,13 +129,57 @@ def response_status(self): def response_status(self, response_status): """Sets the response_status of this AddOrUpdateServiceDiscoveryRulesResponse. - 响应状态码。 + 响应状态码(不再使用)。 :param response_status: The response_status of this AddOrUpdateServiceDiscoveryRulesResponse. :type response_status: int """ self._response_status = response_status + @property + def id(self): + """Gets the id of this AddOrUpdateServiceDiscoveryRulesResponse. + + 服务发现规则id列表,多AZ配置同步时使用。 + + :return: The id of this AddOrUpdateServiceDiscoveryRulesResponse. + :rtype: list[str] + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AddOrUpdateServiceDiscoveryRulesResponse. + + 服务发现规则id列表,多AZ配置同步时使用。 + + :param id: The id of this AddOrUpdateServiceDiscoveryRulesResponse. + :type id: list[str] + """ + self._id = id + + @property + def results(self): + """Gets the results of this AddOrUpdateServiceDiscoveryRulesResponse. + + 服务发现规则详细信息列表。 + + :return: The results of this AddOrUpdateServiceDiscoveryRulesResponse. + :rtype: list[dict(str, str)] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this AddOrUpdateServiceDiscoveryRulesResponse. + + 服务发现规则详细信息列表。 + + :param results: The results of this AddOrUpdateServiceDiscoveryRulesResponse. + :type results: list[dict(str, str)] + """ + self._results = results + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_request.py index 977526dcec..ddb12be938 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_request.py @@ -17,7 +17,7 @@ class CreatePromInstanceRequest: sensitive_list = [] openapi_types = { - 'body': 'PromInstanceEpsModel' + 'body': 'PromInstanceRequestModel' } attribute_map = { @@ -30,7 +30,7 @@ def __init__(self, body=None): The model defined in huaweicloud sdk :param body: Body of the CreatePromInstanceRequest - :type body: :class:`huaweicloudsdkaom.v2.PromInstanceEpsModel` + :type body: :class:`huaweicloudsdkaom.v2.PromInstanceRequestModel` """ @@ -46,7 +46,7 @@ def body(self): """Gets the body of this CreatePromInstanceRequest. :return: The body of this CreatePromInstanceRequest. - :rtype: :class:`huaweicloudsdkaom.v2.PromInstanceEpsModel` + :rtype: :class:`huaweicloudsdkaom.v2.PromInstanceRequestModel` """ return self._body @@ -55,7 +55,7 @@ def body(self, body): """Sets the body of this CreatePromInstanceRequest. :param body: The body of this CreatePromInstanceRequest. - :type body: :class:`huaweicloudsdkaom.v2.PromInstanceEpsModel` + :type body: :class:`huaweicloudsdkaom.v2.PromInstanceRequestModel` """ self._body = body diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_response.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_response.py index cc745985d8..17b6a4cea0 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_response.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/create_prom_instance_response.py @@ -18,7 +18,7 @@ class CreatePromInstanceResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'prometheus': 'list[PromInstanceEpsModel]' + 'prometheus': 'list[PromInstanceEpsCreateModel]' } attribute_map = { @@ -31,7 +31,7 @@ def __init__(self, prometheus=None): The model defined in huaweicloud sdk :param prometheus: Prometheus实例名称列表。 - :type prometheus: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsModel`] + :type prometheus: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsCreateModel`] """ super(CreatePromInstanceResponse, self).__init__() @@ -49,7 +49,7 @@ def prometheus(self): Prometheus实例名称列表。 :return: The prometheus of this CreatePromInstanceResponse. - :rtype: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsModel`] + :rtype: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsCreateModel`] """ return self._prometheus @@ -60,7 +60,7 @@ def prometheus(self, prometheus): Prometheus实例名称列表。 :param prometheus: The prometheus of this CreatePromInstanceResponse. - :type prometheus: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsModel`] + :type prometheus: list[:class:`huaweicloudsdkaom.v2.PromInstanceEpsCreateModel`] """ self._prometheus = prometheus diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py index c4bd2245fe..d92ce1a731 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py @@ -38,7 +38,7 @@ def __init__(self, error_code=None, error_message=None, response_status=None): :type error_code: str :param error_message: 响应信息描述。 :type error_message: str - :param response_status: 响应状态码。 + :param response_status: 响应状态码(不再使用)。 :type response_status: int """ @@ -104,7 +104,7 @@ def error_message(self, error_message): def response_status(self): """Gets the response_status of this DeleteserviceDiscoveryRulesResponse. - 响应状态码。 + 响应状态码(不再使用)。 :return: The response_status of this DeleteserviceDiscoveryRulesResponse. :rtype: int @@ -115,7 +115,7 @@ def response_status(self): def response_status(self, response_status): """Sets the response_status of this DeleteserviceDiscoveryRulesResponse. - 响应状态码。 + 响应状态码(不再使用)。 :param response_status: The response_status of this DeleteserviceDiscoveryRulesResponse. :type response_status: int diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py index 05480680a7..b4dccc60e3 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_prom_instance_request.py @@ -35,9 +35,9 @@ def __init__(self, prom_id=None, prom_type=None, cce_cluster_enable=None, prom_s The model defined in huaweicloud sdk - :param prom_id: Prometheus实例id。 + :param prom_id: Prometheus实例id(prom_id与prom_type同时存在时,仅prom_id生效)。 :type prom_id: str - :param prom_type: Prometheus实例类型。 + :param prom_type: Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :type prom_type: str :param cce_cluster_enable: cce集群开关。 :type cce_cluster_enable: str @@ -66,7 +66,7 @@ def __init__(self, prom_id=None, prom_type=None, cce_cluster_enable=None, prom_s def prom_id(self): """Gets the prom_id of this ListPromInstanceRequest. - Prometheus实例id。 + Prometheus实例id(prom_id与prom_type同时存在时,仅prom_id生效)。 :return: The prom_id of this ListPromInstanceRequest. :rtype: str @@ -77,7 +77,7 @@ def prom_id(self): def prom_id(self, prom_id): """Sets the prom_id of this ListPromInstanceRequest. - Prometheus实例id。 + Prometheus实例id(prom_id与prom_type同时存在时,仅prom_id生效)。 :param prom_id: The prom_id of this ListPromInstanceRequest. :type prom_id: str @@ -88,7 +88,7 @@ def prom_id(self, prom_id): def prom_type(self): """Gets the prom_type of this ListPromInstanceRequest. - Prometheus实例类型。 + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :return: The prom_type of this ListPromInstanceRequest. :rtype: str @@ -99,7 +99,7 @@ def prom_type(self): def prom_type(self, prom_type): """Sets the prom_type of this ListPromInstanceRequest. - Prometheus实例类型。 + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :param prom_type: The prom_type of this ListPromInstanceRequest. :type prom_type: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py index 65507ae3c3..3164630e29 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py @@ -42,7 +42,7 @@ def __init__(self, app_rules=None, error_code=None, error_message=None, id=None) :type error_code: str :param error_message: 响应信息描述。 :type error_message: str - :param id: + :param id: 服务发现规则id列表,多AZ配置同步时使用。 :type id: list[str] """ @@ -133,6 +133,8 @@ def error_message(self, error_message): def id(self): """Gets the id of this ListServiceDiscoveryRulesResponse. + 服务发现规则id列表,多AZ配置同步时使用。 + :return: The id of this ListServiceDiscoveryRulesResponse. :rtype: list[str] """ @@ -142,6 +144,8 @@ def id(self): def id(self, id): """Sets the id of this ListServiceDiscoveryRulesResponse. + 服务发现规则id列表,多AZ配置同步时使用。 + :param id: The id of this ListServiceDiscoveryRulesResponse. :type id: list[str] """ diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_config_model.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_config_model.py index b4e35de49b..62538354b6 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_config_model.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_config_model.py @@ -43,7 +43,7 @@ def __init__(self, remote_write_url=None, remote_read_url=None, prom_http_api_en :type remote_read_url: str :param prom_http_api_endpoint: Prometheus实例调用url。 :type prom_http_api_endpoint: str - :param dashboard_id: Prometheus实例关联dashboard的dashboard id。 + :param dashboard_id: Prometheus实例关联dashboard的dashboard id(目前未使用)。 :type dashboard_id: str :param region_id: Prometheus实例所属的region。 :type region_id: str @@ -139,7 +139,7 @@ def prom_http_api_endpoint(self, prom_http_api_endpoint): def dashboard_id(self): """Gets the dashboard_id of this PromConfigModel. - Prometheus实例关联dashboard的dashboard id。 + Prometheus实例关联dashboard的dashboard id(目前未使用)。 :return: The dashboard_id of this PromConfigModel. :rtype: str @@ -150,7 +150,7 @@ def dashboard_id(self): def dashboard_id(self, dashboard_id): """Sets the dashboard_id of this PromConfigModel. - Prometheus实例关联dashboard的dashboard id。 + Prometheus实例关联dashboard的dashboard id(目前未使用)。 :param dashboard_id: The dashboard_id of this PromConfigModel. :type dashboard_id: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py new file mode 100644 index 0000000000..c12f673cba --- /dev/null +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py @@ -0,0 +1,428 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PromInstanceEpsCreateModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'prom_name': 'str', + 'prom_id': 'str', + 'prom_type': 'str', + 'prom_version': 'str', + 'prom_create_timestamp': 'int', + 'prom_update_timestamp': 'int', + 'prom_status': 'str', + 'enterprise_project_id': 'str', + 'project_id': 'str', + 'deleted_time': 'int', + 'prom_spec_config': 'PromConfigModel', + 'cce_spec_config': 'str' + } + + attribute_map = { + 'prom_name': 'prom_name', + 'prom_id': 'prom_id', + 'prom_type': 'prom_type', + 'prom_version': 'prom_version', + 'prom_create_timestamp': 'prom_create_timestamp', + 'prom_update_timestamp': 'prom_update_timestamp', + 'prom_status': 'prom_status', + 'enterprise_project_id': 'enterprise_project_id', + 'project_id': 'project_id', + 'deleted_time': 'deleted_time', + 'prom_spec_config': 'prom_spec_config', + 'cce_spec_config': 'cce_spec_config' + } + + def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=None, prom_create_timestamp=None, prom_update_timestamp=None, prom_status=None, enterprise_project_id=None, project_id=None, deleted_time=None, prom_spec_config=None, cce_spec_config=None): + """PromInstanceEpsCreateModel + + The model defined in huaweicloud sdk + + :param prom_name: Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + :type prom_name: str + :param prom_id: Prometheus实例id。 + :type prom_id: str + :param prom_type: Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + :type prom_type: str + :param prom_version: Prometheus实例版本号。 + :type prom_version: str + :param prom_create_timestamp: Prometheus实例创建时间戳。 + :type prom_create_timestamp: int + :param prom_update_timestamp: Prometheus实例更新时间戳。 + :type prom_update_timestamp: int + :param prom_status: Prometheus实例状态。 + :type prom_status: str + :param enterprise_project_id: Prometheus实例所属的企业项目。 + :type enterprise_project_id: str + :param project_id: Prometheus实例所属projectId。 + :type project_id: str + :param deleted_time: 删除时间。 + :type deleted_time: int + :param prom_spec_config: + :type prom_spec_config: :class:`huaweicloudsdkaom.v2.PromConfigModel` + :param cce_spec_config: Prometheus实例所属CCE特殊配置。 + :type cce_spec_config: str + """ + + + + self._prom_name = None + self._prom_id = None + self._prom_type = None + self._prom_version = None + self._prom_create_timestamp = None + self._prom_update_timestamp = None + self._prom_status = None + self._enterprise_project_id = None + self._project_id = None + self._deleted_time = None + self._prom_spec_config = None + self._cce_spec_config = None + self.discriminator = None + + self.prom_name = prom_name + if prom_id is not None: + self.prom_id = prom_id + self.prom_type = prom_type + if prom_version is not None: + self.prom_version = prom_version + if prom_create_timestamp is not None: + self.prom_create_timestamp = prom_create_timestamp + if prom_update_timestamp is not None: + self.prom_update_timestamp = prom_update_timestamp + if prom_status is not None: + self.prom_status = prom_status + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if project_id is not None: + self.project_id = project_id + if deleted_time is not None: + self.deleted_time = deleted_time + if prom_spec_config is not None: + self.prom_spec_config = prom_spec_config + if cce_spec_config is not None: + self.cce_spec_config = cce_spec_config + + @property + def prom_name(self): + """Gets the prom_name of this PromInstanceEpsCreateModel. + + Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + + :return: The prom_name of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._prom_name + + @prom_name.setter + def prom_name(self, prom_name): + """Sets the prom_name of this PromInstanceEpsCreateModel. + + Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + + :param prom_name: The prom_name of this PromInstanceEpsCreateModel. + :type prom_name: str + """ + self._prom_name = prom_name + + @property + def prom_id(self): + """Gets the prom_id of this PromInstanceEpsCreateModel. + + Prometheus实例id。 + + :return: The prom_id of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._prom_id + + @prom_id.setter + def prom_id(self, prom_id): + """Sets the prom_id of this PromInstanceEpsCreateModel. + + Prometheus实例id。 + + :param prom_id: The prom_id of this PromInstanceEpsCreateModel. + :type prom_id: str + """ + self._prom_id = prom_id + + @property + def prom_type(self): + """Gets the prom_type of this PromInstanceEpsCreateModel. + + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + + :return: The prom_type of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._prom_type + + @prom_type.setter + def prom_type(self, prom_type): + """Sets the prom_type of this PromInstanceEpsCreateModel. + + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + + :param prom_type: The prom_type of this PromInstanceEpsCreateModel. + :type prom_type: str + """ + self._prom_type = prom_type + + @property + def prom_version(self): + """Gets the prom_version of this PromInstanceEpsCreateModel. + + Prometheus实例版本号。 + + :return: The prom_version of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._prom_version + + @prom_version.setter + def prom_version(self, prom_version): + """Sets the prom_version of this PromInstanceEpsCreateModel. + + Prometheus实例版本号。 + + :param prom_version: The prom_version of this PromInstanceEpsCreateModel. + :type prom_version: str + """ + self._prom_version = prom_version + + @property + def prom_create_timestamp(self): + """Gets the prom_create_timestamp of this PromInstanceEpsCreateModel. + + Prometheus实例创建时间戳。 + + :return: The prom_create_timestamp of this PromInstanceEpsCreateModel. + :rtype: int + """ + return self._prom_create_timestamp + + @prom_create_timestamp.setter + def prom_create_timestamp(self, prom_create_timestamp): + """Sets the prom_create_timestamp of this PromInstanceEpsCreateModel. + + Prometheus实例创建时间戳。 + + :param prom_create_timestamp: The prom_create_timestamp of this PromInstanceEpsCreateModel. + :type prom_create_timestamp: int + """ + self._prom_create_timestamp = prom_create_timestamp + + @property + def prom_update_timestamp(self): + """Gets the prom_update_timestamp of this PromInstanceEpsCreateModel. + + Prometheus实例更新时间戳。 + + :return: The prom_update_timestamp of this PromInstanceEpsCreateModel. + :rtype: int + """ + return self._prom_update_timestamp + + @prom_update_timestamp.setter + def prom_update_timestamp(self, prom_update_timestamp): + """Sets the prom_update_timestamp of this PromInstanceEpsCreateModel. + + Prometheus实例更新时间戳。 + + :param prom_update_timestamp: The prom_update_timestamp of this PromInstanceEpsCreateModel. + :type prom_update_timestamp: int + """ + self._prom_update_timestamp = prom_update_timestamp + + @property + def prom_status(self): + """Gets the prom_status of this PromInstanceEpsCreateModel. + + Prometheus实例状态。 + + :return: The prom_status of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._prom_status + + @prom_status.setter + def prom_status(self, prom_status): + """Sets the prom_status of this PromInstanceEpsCreateModel. + + Prometheus实例状态。 + + :param prom_status: The prom_status of this PromInstanceEpsCreateModel. + :type prom_status: str + """ + self._prom_status = prom_status + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this PromInstanceEpsCreateModel. + + Prometheus实例所属的企业项目。 + + :return: The enterprise_project_id of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this PromInstanceEpsCreateModel. + + Prometheus实例所属的企业项目。 + + :param enterprise_project_id: The enterprise_project_id of this PromInstanceEpsCreateModel. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def project_id(self): + """Gets the project_id of this PromInstanceEpsCreateModel. + + Prometheus实例所属projectId。 + + :return: The project_id of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PromInstanceEpsCreateModel. + + Prometheus实例所属projectId。 + + :param project_id: The project_id of this PromInstanceEpsCreateModel. + :type project_id: str + """ + self._project_id = project_id + + @property + def deleted_time(self): + """Gets the deleted_time of this PromInstanceEpsCreateModel. + + 删除时间。 + + :return: The deleted_time of this PromInstanceEpsCreateModel. + :rtype: int + """ + return self._deleted_time + + @deleted_time.setter + def deleted_time(self, deleted_time): + """Sets the deleted_time of this PromInstanceEpsCreateModel. + + 删除时间。 + + :param deleted_time: The deleted_time of this PromInstanceEpsCreateModel. + :type deleted_time: int + """ + self._deleted_time = deleted_time + + @property + def prom_spec_config(self): + """Gets the prom_spec_config of this PromInstanceEpsCreateModel. + + :return: The prom_spec_config of this PromInstanceEpsCreateModel. + :rtype: :class:`huaweicloudsdkaom.v2.PromConfigModel` + """ + return self._prom_spec_config + + @prom_spec_config.setter + def prom_spec_config(self, prom_spec_config): + """Sets the prom_spec_config of this PromInstanceEpsCreateModel. + + :param prom_spec_config: The prom_spec_config of this PromInstanceEpsCreateModel. + :type prom_spec_config: :class:`huaweicloudsdkaom.v2.PromConfigModel` + """ + self._prom_spec_config = prom_spec_config + + @property + def cce_spec_config(self): + """Gets the cce_spec_config of this PromInstanceEpsCreateModel. + + Prometheus实例所属CCE特殊配置。 + + :return: The cce_spec_config of this PromInstanceEpsCreateModel. + :rtype: str + """ + return self._cce_spec_config + + @cce_spec_config.setter + def cce_spec_config(self, cce_spec_config): + """Sets the cce_spec_config of this PromInstanceEpsCreateModel. + + Prometheus实例所属CCE特殊配置。 + + :param cce_spec_config: The cce_spec_config of this PromInstanceEpsCreateModel. + :type cce_spec_config: str + """ + self._cce_spec_config = cce_spec_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, PromInstanceEpsCreateModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_model.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_model.py index 5ebd3d1789..c6831ddd66 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_model.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_eps_model.py @@ -21,8 +21,6 @@ class PromInstanceEpsModel: 'prom_id': 'str', 'prom_type': 'str', 'prom_version': 'str', - 'cce_spec': 'str', - 'prom_config': 'PromConfigModel', 'prom_create_timestamp': 'int', 'prom_update_timestamp': 'int', 'prom_status': 'str', @@ -31,8 +29,7 @@ class PromInstanceEpsModel: 'is_deleted_tag': 'int', 'deleted_time': 'int', 'prom_spec_config': 'PromConfigModel', - 'cce_spec_config': 'str', - 'application': 'ApplicationModel' + 'cce_spec_config': 'str' } attribute_map = { @@ -40,8 +37,6 @@ class PromInstanceEpsModel: 'prom_id': 'prom_id', 'prom_type': 'prom_type', 'prom_version': 'prom_version', - 'cce_spec': 'cce_spec', - 'prom_config': 'prom_config', 'prom_create_timestamp': 'prom_create_timestamp', 'prom_update_timestamp': 'prom_update_timestamp', 'prom_status': 'prom_status', @@ -50,11 +45,10 @@ class PromInstanceEpsModel: 'is_deleted_tag': 'is_deleted_tag', 'deleted_time': 'deleted_time', 'prom_spec_config': 'prom_spec_config', - 'cce_spec_config': 'cce_spec_config', - 'application': 'application' + 'cce_spec_config': 'cce_spec_config' } - def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=None, cce_spec=None, prom_config=None, prom_create_timestamp=None, prom_update_timestamp=None, prom_status=None, enterprise_project_id=None, project_id=None, is_deleted_tag=None, deleted_time=None, prom_spec_config=None, cce_spec_config=None, application=None): + def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=None, prom_create_timestamp=None, prom_update_timestamp=None, prom_status=None, enterprise_project_id=None, project_id=None, is_deleted_tag=None, deleted_time=None, prom_spec_config=None, cce_spec_config=None): """PromInstanceEpsModel The model defined in huaweicloud sdk @@ -63,14 +57,10 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No :type prom_name: str :param prom_id: Prometheus实例id。 :type prom_id: str - :param prom_type: Prometheus实例类型。 + :param prom_type: Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :type prom_type: str :param prom_version: Prometheus实例版本号。 :type prom_version: str - :param cce_spec: CCE场景特殊字段。 - :type cce_spec: str - :param prom_config: - :type prom_config: :class:`huaweicloudsdkaom.v2.PromConfigModel` :param prom_create_timestamp: Prometheus实例创建时间戳。 :type prom_create_timestamp: int :param prom_update_timestamp: Prometheus实例更新时间戳。 @@ -89,8 +79,6 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No :type prom_spec_config: :class:`huaweicloudsdkaom.v2.PromConfigModel` :param cce_spec_config: Prometheus实例所属CCE特殊配置。 :type cce_spec_config: str - :param application: - :type application: :class:`huaweicloudsdkaom.v2.ApplicationModel` """ @@ -99,8 +87,6 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No self._prom_id = None self._prom_type = None self._prom_version = None - self._cce_spec = None - self._prom_config = None self._prom_create_timestamp = None self._prom_update_timestamp = None self._prom_status = None @@ -110,7 +96,6 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No self._deleted_time = None self._prom_spec_config = None self._cce_spec_config = None - self._application = None self.discriminator = None self.prom_name = prom_name @@ -119,10 +104,6 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No self.prom_type = prom_type if prom_version is not None: self.prom_version = prom_version - if cce_spec is not None: - self.cce_spec = cce_spec - if prom_config is not None: - self.prom_config = prom_config if prom_create_timestamp is not None: self.prom_create_timestamp = prom_create_timestamp if prom_update_timestamp is not None: @@ -141,8 +122,6 @@ def __init__(self, prom_name=None, prom_id=None, prom_type=None, prom_version=No self.prom_spec_config = prom_spec_config if cce_spec_config is not None: self.cce_spec_config = cce_spec_config - if application is not None: - self.application = application @property def prom_name(self): @@ -192,7 +171,7 @@ def prom_id(self, prom_id): def prom_type(self): """Gets the prom_type of this PromInstanceEpsModel. - Prometheus实例类型。 + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :return: The prom_type of this PromInstanceEpsModel. :rtype: str @@ -203,7 +182,7 @@ def prom_type(self): def prom_type(self, prom_type): """Sets the prom_type of this PromInstanceEpsModel. - Prometheus实例类型。 + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 :param prom_type: The prom_type of this PromInstanceEpsModel. :type prom_type: str @@ -232,46 +211,6 @@ def prom_version(self, prom_version): """ self._prom_version = prom_version - @property - def cce_spec(self): - """Gets the cce_spec of this PromInstanceEpsModel. - - CCE场景特殊字段。 - - :return: The cce_spec of this PromInstanceEpsModel. - :rtype: str - """ - return self._cce_spec - - @cce_spec.setter - def cce_spec(self, cce_spec): - """Sets the cce_spec of this PromInstanceEpsModel. - - CCE场景特殊字段。 - - :param cce_spec: The cce_spec of this PromInstanceEpsModel. - :type cce_spec: str - """ - self._cce_spec = cce_spec - - @property - def prom_config(self): - """Gets the prom_config of this PromInstanceEpsModel. - - :return: The prom_config of this PromInstanceEpsModel. - :rtype: :class:`huaweicloudsdkaom.v2.PromConfigModel` - """ - return self._prom_config - - @prom_config.setter - def prom_config(self, prom_config): - """Sets the prom_config of this PromInstanceEpsModel. - - :param prom_config: The prom_config of this PromInstanceEpsModel. - :type prom_config: :class:`huaweicloudsdkaom.v2.PromConfigModel` - """ - self._prom_config = prom_config - @property def prom_create_timestamp(self): """Gets the prom_create_timestamp of this PromInstanceEpsModel. @@ -466,24 +405,6 @@ def cce_spec_config(self, cce_spec_config): """ self._cce_spec_config = cce_spec_config - @property - def application(self): - """Gets the application of this PromInstanceEpsModel. - - :return: The application of this PromInstanceEpsModel. - :rtype: :class:`huaweicloudsdkaom.v2.ApplicationModel` - """ - return self._application - - @application.setter - def application(self, application): - """Sets the application of this PromInstanceEpsModel. - - :param application: The application of this PromInstanceEpsModel. - :type application: :class:`huaweicloudsdkaom.v2.ApplicationModel` - """ - self._application = application - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_request_model.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_request_model.py new file mode 100644 index 0000000000..d00992d958 --- /dev/null +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/prom_instance_request_model.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PromInstanceRequestModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'prom_name': 'str', + 'prom_type': 'str', + 'prom_version': 'str', + 'enterprise_project_id': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'prom_name': 'prom_name', + 'prom_type': 'prom_type', + 'prom_version': 'prom_version', + 'enterprise_project_id': 'enterprise_project_id', + 'project_id': 'project_id' + } + + def __init__(self, prom_name=None, prom_type=None, prom_version=None, enterprise_project_id=None, project_id=None): + """PromInstanceRequestModel + + The model defined in huaweicloud sdk + + :param prom_name: Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + :type prom_name: str + :param prom_type: Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + :type prom_type: str + :param prom_version: Prometheus实例版本号。 + :type prom_version: str + :param enterprise_project_id: Prometheus实例所属的企业项目。 + :type enterprise_project_id: str + :param project_id: Prometheus实例所属projectId。 + :type project_id: str + """ + + + + self._prom_name = None + self._prom_type = None + self._prom_version = None + self._enterprise_project_id = None + self._project_id = None + self.discriminator = None + + self.prom_name = prom_name + self.prom_type = prom_type + if prom_version is not None: + self.prom_version = prom_version + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if project_id is not None: + self.project_id = project_id + + @property + def prom_name(self): + """Gets the prom_name of this PromInstanceRequestModel. + + Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + + :return: The prom_name of this PromInstanceRequestModel. + :rtype: str + """ + return self._prom_name + + @prom_name.setter + def prom_name(self, prom_name): + """Sets the prom_name of this PromInstanceRequestModel. + + Prometheus实例名称 名称不能以下划线或中划线开头结尾,只含有中文、英文、数字、下划线、中划线、长度1-100。 + + :param prom_name: The prom_name of this PromInstanceRequestModel. + :type prom_name: str + """ + self._prom_name = prom_name + + @property + def prom_type(self): + """Gets the prom_type of this PromInstanceRequestModel. + + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + + :return: The prom_type of this PromInstanceRequestModel. + :rtype: str + """ + return self._prom_type + + @prom_type.setter + def prom_type(self, prom_type): + """Sets the prom_type of this PromInstanceRequestModel. + + Prometheus实例类型(暂时不支持VPC、KUBERNETES)。 + + :param prom_type: The prom_type of this PromInstanceRequestModel. + :type prom_type: str + """ + self._prom_type = prom_type + + @property + def prom_version(self): + """Gets the prom_version of this PromInstanceRequestModel. + + Prometheus实例版本号。 + + :return: The prom_version of this PromInstanceRequestModel. + :rtype: str + """ + return self._prom_version + + @prom_version.setter + def prom_version(self, prom_version): + """Sets the prom_version of this PromInstanceRequestModel. + + Prometheus实例版本号。 + + :param prom_version: The prom_version of this PromInstanceRequestModel. + :type prom_version: str + """ + self._prom_version = prom_version + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this PromInstanceRequestModel. + + Prometheus实例所属的企业项目。 + + :return: The enterprise_project_id of this PromInstanceRequestModel. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this PromInstanceRequestModel. + + Prometheus实例所属的企业项目。 + + :param enterprise_project_id: The enterprise_project_id of this PromInstanceRequestModel. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def project_id(self): + """Gets the project_id of this PromInstanceRequestModel. + + Prometheus实例所属projectId。 + + :return: The project_id of this PromInstanceRequestModel. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this PromInstanceRequestModel. + + Prometheus实例所属projectId。 + + :param project_id: The project_id of this PromInstanceRequestModel. + :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, PromInstanceRequestModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py index 3f1d12fe92..abac59c809 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class AomRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aom': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py index 3f1d12fe92..abac59c809 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class AomRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aom': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 72e9f8c924..c51b89c7de 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py index 6fe51c0912..c2752d3a77 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -49,9 +46,9 @@ class AosRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -60,6 +57,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Aos': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 9795613f47..223a2455ab 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req.py index 548df530ca..912792ab91 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req.py @@ -77,7 +77,7 @@ def __init__(self, description=None, maintain_begin=None, maintain_end=None, ins :type instance_name: str :param instance_id: 实例编号,不填写自动生成 :type instance_id: str - :param spec_id: 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + :param spec_id: 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :type spec_id: str :param vpc_id: 虚拟私有云ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体方法请参见《虚拟私有云服务API参考》的“查询VPC列表”章节。 :type vpc_id: str @@ -95,7 +95,7 @@ def __init__(self, description=None, maintain_begin=None, maintain_end=None, ins :type bandwidth_size: int :param bandwidth_charging_mode: 出公网带宽计费类型,实例需要开启出公网功能时需要填写: - bandwidth:按带宽计费 - traffic:按流量计费 :type bandwidth_charging_mode: str - :param ipv6_enable: 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + :param ipv6_enable: 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :type ipv6_enable: bool :param loadbalancer_provider: 实例使用的负载均衡器类型 - lvs Linux虚拟服务器 - elb 弹性负载均衡,elb仅部分region支持 :type loadbalancer_provider: str @@ -288,7 +288,7 @@ def instance_id(self, instance_id): def spec_id(self): """Gets the spec_id of this InstanceCreateReq. - 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :return: The spec_id of this InstanceCreateReq. :rtype: str @@ -299,7 +299,7 @@ def spec_id(self): def spec_id(self, spec_id): """Sets the spec_id of this InstanceCreateReq. - 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :param spec_id: The spec_id of this InstanceCreateReq. :type spec_id: str @@ -486,7 +486,7 @@ def bandwidth_charging_mode(self, bandwidth_charging_mode): def ipv6_enable(self): """Gets the ipv6_enable of this InstanceCreateReq. - 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :return: The ipv6_enable of this InstanceCreateReq. :rtype: bool @@ -497,7 +497,7 @@ def ipv6_enable(self): def ipv6_enable(self, ipv6_enable): """Sets the ipv6_enable of this InstanceCreateReq. - 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :param ipv6_enable: The ipv6_enable of this InstanceCreateReq. :type ipv6_enable: bool diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req_v2.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req_v2.py index 409223e6a2..3ec9cf5e84 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req_v2.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/instance_create_req_v2.py @@ -77,7 +77,7 @@ def __init__(self, description=None, maintain_begin=None, maintain_end=None, ins :type instance_name: str :param instance_id: 实例编号,不填写自动生成 :type instance_id: str - :param spec_id: 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + :param spec_id: 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :type spec_id: str :param vpc_id: 虚拟私有云ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体方法请参见《虚拟私有云服务API参考》的“查询VPC列表”章节。 :type vpc_id: str @@ -95,7 +95,7 @@ def __init__(self, description=None, maintain_begin=None, maintain_end=None, ins :type bandwidth_size: int :param bandwidth_charging_mode: 带宽收费模式: - bandwidth - traffic :type bandwidth_charging_mode: str - :param ipv6_enable: 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + :param ipv6_enable: 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :type ipv6_enable: bool :param loadbalancer_provider: 负载均衡器类型: - lvs - elb :type loadbalancer_provider: str @@ -288,7 +288,7 @@ def instance_id(self, instance_id): def spec_id(self): """Gets the spec_id of this InstanceCreateReqV2. - 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :return: The spec_id of this InstanceCreateReqV2. :rtype: str @@ -299,7 +299,7 @@ def spec_id(self): def spec_id(self, spec_id): """Sets the spec_id of this InstanceCreateReqV2. - 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 + 实例规格: - BASIC:基础版实例 - PROFESSIONAL:专业版实例 - ENTERPRISE:企业版实例 - PLATINUM:铂金版实例 - BASIC_IPV6:基础版IPV6实例 - PROFESSIONAL_IPV6:专业版IPV6实例 - ENTERPRISE_IPV6:企业版IPV6实例 - PLATINUM_IPV6:铂金版IPV6实例 - PLATINUM_X2:铂金版 x2实例 - PLATINUM_X3:铂金版 x3实例 - PLATINUM_X4:铂金版 x4实例 - PLATINUM_X5:铂金版 x5实例 - PLATINUM_X6:铂金版 x6实例 - PLATINUM_X7:铂金版 x7实例 - PLATINUM_X8:铂金版 x8实例 当前仅部分region支持铂金版 x2、铂金版 x3、铂金版 x4、铂金版 x5、铂金版 x6、铂金版 x7、铂金版 x8 :param spec_id: The spec_id of this InstanceCreateReqV2. :type spec_id: str @@ -486,7 +486,7 @@ def bandwidth_charging_mode(self, bandwidth_charging_mode): def ipv6_enable(self): """Gets the ipv6_enable of this InstanceCreateReqV2. - 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :return: The ipv6_enable of this InstanceCreateReqV2. :rtype: bool @@ -497,7 +497,7 @@ def ipv6_enable(self): def ipv6_enable(self, ipv6_enable): """Sets the ipv6_enable of this InstanceCreateReqV2. - 实例是否支持IPv6。 当前仅部分region部分可用区支持IPv6 + 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6 :param ipv6_enable: The ipv6_enable of this InstanceCreateReqV2. :type ipv6_enable: bool diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/ip_details.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/ip_details.py index 5ef5aae4ee..e38c2cbbbe 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/ip_details.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/ip_details.py @@ -18,25 +18,21 @@ class IpDetails: openapi_types = { 'ip_address': 'str', - 'ipv6_address': 'str', 'bandwidth_size': 'int' } attribute_map = { 'ip_address': 'ip_address', - 'ipv6_address': 'ipv6_address', 'bandwidth_size': 'bandwidth_size' } - def __init__(self, ip_address=None, ipv6_address=None, bandwidth_size=None): + def __init__(self, ip_address=None, bandwidth_size=None): """IpDetails The model defined in huaweicloud sdk :param ip_address: IP地址 :type ip_address: str - :param ipv6_address: IPV6地址 - :type ipv6_address: str :param bandwidth_size: 带宽大小 :type bandwidth_size: int """ @@ -44,14 +40,11 @@ def __init__(self, ip_address=None, ipv6_address=None, bandwidth_size=None): self._ip_address = None - self._ipv6_address = None self._bandwidth_size = None self.discriminator = None if ip_address is not None: self.ip_address = ip_address - if ipv6_address is not None: - self.ipv6_address = ipv6_address if bandwidth_size is not None: self.bandwidth_size = bandwidth_size @@ -77,28 +70,6 @@ def ip_address(self, ip_address): """ self._ip_address = ip_address - @property - def ipv6_address(self): - """Gets the ipv6_address of this IpDetails. - - IPV6地址 - - :return: The ipv6_address of this IpDetails. - :rtype: str - """ - return self._ipv6_address - - @ipv6_address.setter - def ipv6_address(self, ipv6_address): - """Sets the ipv6_address of this IpDetails. - - IPV6地址 - - :param ipv6_address: The ipv6_address of this IpDetails. - :type ipv6_address: str - """ - self._ipv6_address = ipv6_address - @property def bandwidth_size(self): """Gets the bandwidth_size of this IpDetails. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_instance_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_instance_v2_response.py index 622745fc00..e01f29c6f5 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_instance_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_instance_v2_response.py @@ -55,12 +55,8 @@ class ShowDetailsOfInstanceV2Response(SdkResponse): 'endpoint_service': 'EndpointService', 'endpoint_services': 'list[EndpointService]', 'node_ips': 'NodeIps', - 'node_ipv6_ips': 'NodeIps', - 'public_ipv6_ips': 'list[str]', 'publicips': 'list[IpDetails]', 'privateips': 'list[IpDetails]', - 'unreliable_ips': 'list[str]', - 'enable_fullstack_ipv6': 'bool', 'is_releasable': 'bool', 'ingress_bandwidth_charging_mode': 'str' } @@ -103,17 +99,13 @@ class ShowDetailsOfInstanceV2Response(SdkResponse): 'endpoint_service': 'endpoint_service', 'endpoint_services': 'endpoint_services', 'node_ips': 'node_ips', - 'node_ipv6_ips': 'node_ipv6_ips', - 'public_ipv6_ips': 'public_ipv6_ips', 'publicips': 'publicips', 'privateips': 'privateips', - 'unreliable_ips': 'unreliable_ips', - 'enable_fullstack_ipv6': 'enable_fullstack_ipv6', 'is_releasable': 'is_releasable', 'ingress_bandwidth_charging_mode': 'ingress_bandwidth_charging_mode' } - def __init__(self, id=None, project_id=None, instance_name=None, status=None, instance_status=None, type=None, spec=None, create_time=None, enterprise_project_id=None, eip_address=None, charging_mode=None, cbc_metadata=None, loadbalancer_provider=None, cbc_operation_locks=None, description=None, vpc_id=None, subnet_id=None, security_group_id=None, maintain_begin=None, maintain_end=None, ingress_ip=None, ingress_ip_v6=None, user_id=None, nat_eip_ipv6_cidr=None, eip_ipv6_address=None, nat_eip_address=None, bandwidth_size=None, bandwidth_charging_mode=None, available_zone_ids=None, instance_version=None, virsubnet_id=None, roma_eip_address=None, listeners=None, supported_features=None, endpoint_service=None, endpoint_services=None, node_ips=None, node_ipv6_ips=None, public_ipv6_ips=None, publicips=None, privateips=None, unreliable_ips=None, enable_fullstack_ipv6=None, is_releasable=None, ingress_bandwidth_charging_mode=None): + def __init__(self, id=None, project_id=None, instance_name=None, status=None, instance_status=None, type=None, spec=None, create_time=None, enterprise_project_id=None, eip_address=None, charging_mode=None, cbc_metadata=None, loadbalancer_provider=None, cbc_operation_locks=None, description=None, vpc_id=None, subnet_id=None, security_group_id=None, maintain_begin=None, maintain_end=None, ingress_ip=None, ingress_ip_v6=None, user_id=None, nat_eip_ipv6_cidr=None, eip_ipv6_address=None, nat_eip_address=None, bandwidth_size=None, bandwidth_charging_mode=None, available_zone_ids=None, instance_version=None, virsubnet_id=None, roma_eip_address=None, listeners=None, supported_features=None, endpoint_service=None, endpoint_services=None, node_ips=None, publicips=None, privateips=None, is_releasable=None, ingress_bandwidth_charging_mode=None): """ShowDetailsOfInstanceV2Response The model defined in huaweicloud sdk @@ -192,18 +184,10 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in :type endpoint_services: list[:class:`huaweicloudsdkapig.v2.EndpointService`] :param node_ips: :type node_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - :param node_ipv6_ips: - :type node_ipv6_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - :param public_ipv6_ips: 实例IPV6出公网IP - :type public_ipv6_ips: list[str] :param publicips: 公网入口地址列表 :type publicips: list[:class:`huaweicloudsdkapig.v2.IpDetails`] :param privateips: 私网入口地址列表 :type privateips: list[:class:`huaweicloudsdkapig.v2.IpDetails`] - :param unreliable_ips: 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - :type unreliable_ips: list[str] - :param enable_fullstack_ipv6: 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - :type enable_fullstack_ipv6: bool :param is_releasable: 实例是否可释放 - true:可释放 - false:不可释放 :type is_releasable: bool :param ingress_bandwidth_charging_mode: 入公网带宽计费模式 @@ -249,12 +233,8 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in self._endpoint_service = None self._endpoint_services = None self._node_ips = None - self._node_ipv6_ips = None - self._public_ipv6_ips = None self._publicips = None self._privateips = None - self._unreliable_ips = None - self._enable_fullstack_ipv6 = None self._is_releasable = None self._ingress_bandwidth_charging_mode = None self.discriminator = None @@ -333,18 +313,10 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in self.endpoint_services = endpoint_services if node_ips is not None: self.node_ips = node_ips - if node_ipv6_ips is not None: - self.node_ipv6_ips = node_ipv6_ips - if public_ipv6_ips is not None: - self.public_ipv6_ips = public_ipv6_ips if publicips is not None: self.publicips = publicips if privateips is not None: self.privateips = privateips - if unreliable_ips is not None: - self.unreliable_ips = unreliable_ips - if enable_fullstack_ipv6 is not None: - self.enable_fullstack_ipv6 = enable_fullstack_ipv6 if is_releasable is not None: self.is_releasable = is_releasable if ingress_bandwidth_charging_mode is not None: @@ -1156,46 +1128,6 @@ def node_ips(self, node_ips): """ self._node_ips = node_ips - @property - def node_ipv6_ips(self): - """Gets the node_ipv6_ips of this ShowDetailsOfInstanceV2Response. - - :return: The node_ipv6_ips of this ShowDetailsOfInstanceV2Response. - :rtype: :class:`huaweicloudsdkapig.v2.NodeIps` - """ - return self._node_ipv6_ips - - @node_ipv6_ips.setter - def node_ipv6_ips(self, node_ipv6_ips): - """Sets the node_ipv6_ips of this ShowDetailsOfInstanceV2Response. - - :param node_ipv6_ips: The node_ipv6_ips of this ShowDetailsOfInstanceV2Response. - :type node_ipv6_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - """ - self._node_ipv6_ips = node_ipv6_ips - - @property - def public_ipv6_ips(self): - """Gets the public_ipv6_ips of this ShowDetailsOfInstanceV2Response. - - 实例IPV6出公网IP - - :return: The public_ipv6_ips of this ShowDetailsOfInstanceV2Response. - :rtype: list[str] - """ - return self._public_ipv6_ips - - @public_ipv6_ips.setter - def public_ipv6_ips(self, public_ipv6_ips): - """Sets the public_ipv6_ips of this ShowDetailsOfInstanceV2Response. - - 实例IPV6出公网IP - - :param public_ipv6_ips: The public_ipv6_ips of this ShowDetailsOfInstanceV2Response. - :type public_ipv6_ips: list[str] - """ - self._public_ipv6_ips = public_ipv6_ips - @property def publicips(self): """Gets the publicips of this ShowDetailsOfInstanceV2Response. @@ -1240,50 +1172,6 @@ def privateips(self, privateips): """ self._privateips = privateips - @property - def unreliable_ips(self): - """Gets the unreliable_ips of this ShowDetailsOfInstanceV2Response. - - 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - - :return: The unreliable_ips of this ShowDetailsOfInstanceV2Response. - :rtype: list[str] - """ - return self._unreliable_ips - - @unreliable_ips.setter - def unreliable_ips(self, unreliable_ips): - """Sets the unreliable_ips of this ShowDetailsOfInstanceV2Response. - - 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - - :param unreliable_ips: The unreliable_ips of this ShowDetailsOfInstanceV2Response. - :type unreliable_ips: list[str] - """ - self._unreliable_ips = unreliable_ips - - @property - def enable_fullstack_ipv6(self): - """Gets the enable_fullstack_ipv6 of this ShowDetailsOfInstanceV2Response. - - 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - - :return: The enable_fullstack_ipv6 of this ShowDetailsOfInstanceV2Response. - :rtype: bool - """ - return self._enable_fullstack_ipv6 - - @enable_fullstack_ipv6.setter - def enable_fullstack_ipv6(self, enable_fullstack_ipv6): - """Sets the enable_fullstack_ipv6 of this ShowDetailsOfInstanceV2Response. - - 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - - :param enable_fullstack_ipv6: The enable_fullstack_ipv6 of this ShowDetailsOfInstanceV2Response. - :type enable_fullstack_ipv6: bool - """ - self._enable_fullstack_ipv6 = enable_fullstack_ipv6 - @property def is_releasable(self): """Gets the is_releasable of this ShowDetailsOfInstanceV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_instance_v2_response.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_instance_v2_response.py index cf808fbdf3..7d216d5255 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_instance_v2_response.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_instance_v2_response.py @@ -55,12 +55,8 @@ class UpdateInstanceV2Response(SdkResponse): 'endpoint_service': 'EndpointService', 'endpoint_services': 'list[EndpointService]', 'node_ips': 'NodeIps', - 'node_ipv6_ips': 'NodeIps', - 'public_ipv6_ips': 'list[str]', 'publicips': 'list[IpDetails]', 'privateips': 'list[IpDetails]', - 'unreliable_ips': 'list[str]', - 'enable_fullstack_ipv6': 'bool', 'is_releasable': 'bool', 'ingress_bandwidth_charging_mode': 'str' } @@ -103,17 +99,13 @@ class UpdateInstanceV2Response(SdkResponse): 'endpoint_service': 'endpoint_service', 'endpoint_services': 'endpoint_services', 'node_ips': 'node_ips', - 'node_ipv6_ips': 'node_ipv6_ips', - 'public_ipv6_ips': 'public_ipv6_ips', 'publicips': 'publicips', 'privateips': 'privateips', - 'unreliable_ips': 'unreliable_ips', - 'enable_fullstack_ipv6': 'enable_fullstack_ipv6', 'is_releasable': 'is_releasable', 'ingress_bandwidth_charging_mode': 'ingress_bandwidth_charging_mode' } - def __init__(self, id=None, project_id=None, instance_name=None, status=None, instance_status=None, type=None, spec=None, create_time=None, enterprise_project_id=None, eip_address=None, charging_mode=None, cbc_metadata=None, loadbalancer_provider=None, cbc_operation_locks=None, description=None, vpc_id=None, subnet_id=None, security_group_id=None, maintain_begin=None, maintain_end=None, ingress_ip=None, ingress_ip_v6=None, user_id=None, nat_eip_ipv6_cidr=None, eip_ipv6_address=None, nat_eip_address=None, bandwidth_size=None, bandwidth_charging_mode=None, available_zone_ids=None, instance_version=None, virsubnet_id=None, roma_eip_address=None, listeners=None, supported_features=None, endpoint_service=None, endpoint_services=None, node_ips=None, node_ipv6_ips=None, public_ipv6_ips=None, publicips=None, privateips=None, unreliable_ips=None, enable_fullstack_ipv6=None, is_releasable=None, ingress_bandwidth_charging_mode=None): + def __init__(self, id=None, project_id=None, instance_name=None, status=None, instance_status=None, type=None, spec=None, create_time=None, enterprise_project_id=None, eip_address=None, charging_mode=None, cbc_metadata=None, loadbalancer_provider=None, cbc_operation_locks=None, description=None, vpc_id=None, subnet_id=None, security_group_id=None, maintain_begin=None, maintain_end=None, ingress_ip=None, ingress_ip_v6=None, user_id=None, nat_eip_ipv6_cidr=None, eip_ipv6_address=None, nat_eip_address=None, bandwidth_size=None, bandwidth_charging_mode=None, available_zone_ids=None, instance_version=None, virsubnet_id=None, roma_eip_address=None, listeners=None, supported_features=None, endpoint_service=None, endpoint_services=None, node_ips=None, publicips=None, privateips=None, is_releasable=None, ingress_bandwidth_charging_mode=None): """UpdateInstanceV2Response The model defined in huaweicloud sdk @@ -192,18 +184,10 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in :type endpoint_services: list[:class:`huaweicloudsdkapig.v2.EndpointService`] :param node_ips: :type node_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - :param node_ipv6_ips: - :type node_ipv6_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - :param public_ipv6_ips: 实例IPV6出公网IP - :type public_ipv6_ips: list[str] :param publicips: 公网入口地址列表 :type publicips: list[:class:`huaweicloudsdkapig.v2.IpDetails`] :param privateips: 私网入口地址列表 :type privateips: list[:class:`huaweicloudsdkapig.v2.IpDetails`] - :param unreliable_ips: 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - :type unreliable_ips: list[str] - :param enable_fullstack_ipv6: 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - :type enable_fullstack_ipv6: bool :param is_releasable: 实例是否可释放 - true:可释放 - false:不可释放 :type is_releasable: bool :param ingress_bandwidth_charging_mode: 入公网带宽计费模式 @@ -249,12 +233,8 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in self._endpoint_service = None self._endpoint_services = None self._node_ips = None - self._node_ipv6_ips = None - self._public_ipv6_ips = None self._publicips = None self._privateips = None - self._unreliable_ips = None - self._enable_fullstack_ipv6 = None self._is_releasable = None self._ingress_bandwidth_charging_mode = None self.discriminator = None @@ -333,18 +313,10 @@ def __init__(self, id=None, project_id=None, instance_name=None, status=None, in self.endpoint_services = endpoint_services if node_ips is not None: self.node_ips = node_ips - if node_ipv6_ips is not None: - self.node_ipv6_ips = node_ipv6_ips - if public_ipv6_ips is not None: - self.public_ipv6_ips = public_ipv6_ips if publicips is not None: self.publicips = publicips if privateips is not None: self.privateips = privateips - if unreliable_ips is not None: - self.unreliable_ips = unreliable_ips - if enable_fullstack_ipv6 is not None: - self.enable_fullstack_ipv6 = enable_fullstack_ipv6 if is_releasable is not None: self.is_releasable = is_releasable if ingress_bandwidth_charging_mode is not None: @@ -1156,46 +1128,6 @@ def node_ips(self, node_ips): """ self._node_ips = node_ips - @property - def node_ipv6_ips(self): - """Gets the node_ipv6_ips of this UpdateInstanceV2Response. - - :return: The node_ipv6_ips of this UpdateInstanceV2Response. - :rtype: :class:`huaweicloudsdkapig.v2.NodeIps` - """ - return self._node_ipv6_ips - - @node_ipv6_ips.setter - def node_ipv6_ips(self, node_ipv6_ips): - """Sets the node_ipv6_ips of this UpdateInstanceV2Response. - - :param node_ipv6_ips: The node_ipv6_ips of this UpdateInstanceV2Response. - :type node_ipv6_ips: :class:`huaweicloudsdkapig.v2.NodeIps` - """ - self._node_ipv6_ips = node_ipv6_ips - - @property - def public_ipv6_ips(self): - """Gets the public_ipv6_ips of this UpdateInstanceV2Response. - - 实例IPV6出公网IP - - :return: The public_ipv6_ips of this UpdateInstanceV2Response. - :rtype: list[str] - """ - return self._public_ipv6_ips - - @public_ipv6_ips.setter - def public_ipv6_ips(self, public_ipv6_ips): - """Sets the public_ipv6_ips of this UpdateInstanceV2Response. - - 实例IPV6出公网IP - - :param public_ipv6_ips: The public_ipv6_ips of this UpdateInstanceV2Response. - :type public_ipv6_ips: list[str] - """ - self._public_ipv6_ips = public_ipv6_ips - @property def publicips(self): """Gets the publicips of this UpdateInstanceV2Response. @@ -1240,50 +1172,6 @@ def privateips(self, privateips): """ self._privateips = privateips - @property - def unreliable_ips(self): - """Gets the unreliable_ips of this UpdateInstanceV2Response. - - 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - - :return: The unreliable_ips of this UpdateInstanceV2Response. - :rtype: list[str] - """ - return self._unreliable_ips - - @unreliable_ips.setter - def unreliable_ips(self, unreliable_ips): - """Sets the unreliable_ips of this UpdateInstanceV2Response. - - 不建议使用的实例入口列表:分组子域名解析未指向到该列表的IP,不能用该列表的IP直接访问DEFAULT分组 - - :param unreliable_ips: The unreliable_ips of this UpdateInstanceV2Response. - :type unreliable_ips: list[str] - """ - self._unreliable_ips = unreliable_ips - - @property - def enable_fullstack_ipv6(self): - """Gets the enable_fullstack_ipv6 of this UpdateInstanceV2Response. - - 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - - :return: The enable_fullstack_ipv6 of this UpdateInstanceV2Response. - :rtype: bool - """ - return self._enable_fullstack_ipv6 - - @enable_fullstack_ipv6.setter - def enable_fullstack_ipv6(self, enable_fullstack_ipv6): - """Sets the enable_fullstack_ipv6 of this UpdateInstanceV2Response. - - 实例是否支持全量IPv6 - true:支持,实例入口和实例出口都支持IPV6 - false:不支持,仅实例入口支持IPV6 - - :param enable_fullstack_ipv6: The enable_fullstack_ipv6 of this UpdateInstanceV2Response. - :type enable_fullstack_ipv6: bool - """ - self._enable_fullstack_ipv6 = enable_fullstack_ipv6 - @property def is_releasable(self): """Gets the is_releasable of this UpdateInstanceV2Response. diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py index b484feb861..1cd7967894 100644 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class ApigRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Apig': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index c6e707496f..d2650a7dfc 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py b/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py index 95be2c45ed..f971c31a9a 100644 --- a/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py +++ b/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class ApmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Apm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 1cc4881a16..bbccf67581 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py index 075974d4f3..a55c9e3670 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class AsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'As': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 9d9d06b387..00cd71b898 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/huaweicloudsdkasm/v1/region/asm_region.py b/huaweicloud-sdk-asm/huaweicloudsdkasm/v1/region/asm_region.py index 57fcf65e12..da41b0198a 100644 --- a/huaweicloud-sdk-asm/huaweicloudsdkasm/v1/region/asm_region.py +++ b/huaweicloud-sdk-asm/huaweicloudsdkasm/v1/region/asm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class AsmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Asm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index 77d2d4361b..1703cf9f95 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py index 07da982a96..9ee7678ab0 100644 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -48,9 +45,9 @@ class BcsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -59,6 +56,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Bcs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index d1ea5d4edf..d956a69ba4 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py index 0623ecc1c5..9092501830 100644 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -70,9 +67,9 @@ class BmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -81,6 +78,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Bms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index d951b3906d..3fdda86ac3 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py index 1b96711259..fd947ec8ab 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class BssRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Bss': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 27467adc7d..18c57b5602 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py index d1c1faad10..37559522fe 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class BssintlRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Bssintl': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index d3506e44fd..6e62a95241 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/access_configuration_port.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/access_configuration_port.py index 3121f30c5d..3a1e7be8f3 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/access_configuration_port.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/access_configuration_port.py @@ -23,7 +23,7 @@ class AccessConfigurationPort: 'default_certificate': 'str', 'certificate': 'str', 'policy': 'str', - 'path': 'list[AccessConfigurationHttpPath]', + 'paths': 'list[AccessConfigurationHttpPath]', 'elb_id': 'str' } @@ -34,11 +34,11 @@ class AccessConfigurationPort: 'default_certificate': 'default_certificate', 'certificate': 'certificate', 'policy': 'policy', - 'path': 'path', + 'paths': 'paths', 'elb_id': 'elb_id' } - def __init__(self, target_port=None, port=None, protocol=None, default_certificate=None, certificate=None, policy=None, path=None, elb_id=None): + def __init__(self, target_port=None, port=None, protocol=None, default_certificate=None, certificate=None, policy=None, paths=None, elb_id=None): """AccessConfigurationPort The model defined in huaweicloud sdk @@ -55,8 +55,8 @@ def __init__(self, target_port=None, port=None, protocol=None, default_certifica :type certificate: str :param policy: 安全策略。 :type policy: str - :param path: - :type path: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`] + :param paths: + :type paths: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`] :param elb_id: 用户选择的elb的ID。 :type elb_id: str """ @@ -69,7 +69,7 @@ def __init__(self, target_port=None, port=None, protocol=None, default_certifica self._default_certificate = None self._certificate = None self._policy = None - self._path = None + self._paths = None self._elb_id = None self.discriminator = None @@ -85,8 +85,8 @@ def __init__(self, target_port=None, port=None, protocol=None, default_certifica self.certificate = certificate if policy is not None: self.policy = policy - if path is not None: - self.path = path + if paths is not None: + self.paths = paths if elb_id is not None: self.elb_id = elb_id @@ -223,22 +223,22 @@ def policy(self, policy): self._policy = policy @property - def path(self): - """Gets the path of this AccessConfigurationPort. + def paths(self): + """Gets the paths of this AccessConfigurationPort. - :return: The path of this AccessConfigurationPort. + :return: The paths of this AccessConfigurationPort. :rtype: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`] """ - return self._path + return self._paths - @path.setter - def path(self, path): - """Sets the path of this AccessConfigurationPort. + @paths.setter + def paths(self, paths): + """Sets the paths of this AccessConfigurationPort. - :param path: The path of this AccessConfigurationPort. - :type path: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`] + :param paths: The paths of this AccessConfigurationPort. + :type paths: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationHttpPath`] """ - self._path = path + self._paths = paths @property def elb_id(self): diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_request_data_spec.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_request_data_spec.py index 839afffaef..3eeeb10a6d 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_request_data_spec.py @@ -83,41 +83,41 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username The model defined in huaweicloud sdk - :param rds_id: RDS数据库实例ID。 type为\"rds\"时,配置此参数。 + :param rds_id: RDS数据库实例ID。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_id: str - :param rds_db_name: RDS数据库名称。 type为\"rds\"时,配置此参数。 + :param rds_db_name: RDS数据库名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_db_name: str - :param rds_address: RDS数据库地址。 type为\"rds\"时,配置此参数。 + :param rds_address: RDS数据库地址。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_address: str - :param rds_username: RDS数据库用户名称。 type为\"rds\"时,配置此参数。 + :param rds_username: RDS数据库用户名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_username: str - :param rds_password: RDS数据库密码。 type为\"rds\"时,配置此参数。 + :param rds_password: RDS数据库密码。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_password: str - :param rds_port: RDS数据库端口。 type为\"rds\"时,配置此参数。 + :param rds_port: RDS数据库端口。 ConfigurationItem.type为\"rds\"时,配置此参数。 :type rds_port: str - :param config_center_addr: CSE配置中心地址。 type为\"cse\"时,配置此参数。 + :param config_center_addr: CSE配置中心地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :type config_center_addr: str - :param service_center_addr: CSE服务注册发现地址。 type为\"cse\"时,配置此参数。 + :param service_center_addr: CSE服务注册发现地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :type service_center_addr: str - :param cse_id: CSE引擎ID。 type为\"cse\"时,配置此参数。 + :param cse_id: CSE引擎ID。 ConfigurationItem.type为\"cse\"时,配置此参数。 :type cse_id: str :param envs: 环境变量配置。 常用环境变量如下: - TZ: 时区设置,东八区可设置为Asia/Shanghai。 - LANG: 语言字符集设置,中文UTF8可设置为zh_CN.UTF-8。 :type envs: dict(str, str) :param ip: 弹性公网IP,响应体参数,未配置域名时返回此参数。 :type ip: str - :param items: 访问方式配置列表。 type为\"access\"时,配置此参数。 + :param items: 访问方式配置列表。 ConfigurationItem.type为\"access\"时,配置此参数。 :type items: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] - :param scale_strategy: 伸缩策略配置策略类型。 type为\"scaling\"时,配置此参数。 + :param scale_strategy: 伸缩策略配置策略类型。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :type scale_strategy: str - :param max_replica_count: 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,配置此参数。 + :param max_replica_count: 伸缩策略配置最大伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :type max_replica_count: int - :param min_replica_count: 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,配置此参数。 + :param min_replica_count: 伸缩策略配置最小伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :type min_replica_count: int :param advanced: :type advanced: :class:`huaweicloudsdkcae.v1.ScaleConfigurationDataAdvanced` - :param triggers: 伸缩策略配置触发器列表。 type为\"scaling\"时,配置此参数。 + :param triggers: 伸缩策略配置触发器列表。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :type triggers: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] - :param volumes: 云存储配置列表。 type为\"volume\"时,配置此参数。 + :param volumes: 云存储配置列表。 ConfigurationItem.type为\"volume\"时,配置此参数。 :type volumes: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] :param liveness_probe: :type liveness_probe: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationLivenessProbe` @@ -129,15 +129,15 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username :type post_start: :class:`huaweicloudsdkcae.v1.ConfigurationRequestDataSpecPostStart` :param pre_stop: :type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationRequestDataSpecPreStop` - :param log_paths: 自定义日志路径数组。 type为\"log\"时,配置此参数。 + :param log_paths: 自定义日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。 :type log_paths: list[str] - :param instrumentation: 探针注入方式。 type为\"apm2\"时,配置此参数。 + :param instrumentation: 探针注入方式。 ConfigurationItem.type为\"apm2\"时,配置此参数。 :type instrumentation: str - :param path: 自定义监控指标配置采集路径。 type为\"customMetric\"时,配置此参数。 + :param path: 自定义监控指标配置采集路径。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :type path: str - :param port: 自定义监控指标配置采集端口。 type为\"customMetric\"时,配置此参数。 + :param port: 自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :type port: str - :param metrics: 自定义监控指标配置指标名称。 type为\"customMetric\"时,配置此参数。 + :param metrics: 自定义监控指标配置指标名称。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :type metrics: list[str] """ @@ -234,7 +234,7 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username def rds_id(self): """Gets the rds_id of this ConfigurationRequestDataSpec. - RDS数据库实例ID。 type为\"rds\"时,配置此参数。 + RDS数据库实例ID。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_id of this ConfigurationRequestDataSpec. :rtype: str @@ -245,7 +245,7 @@ def rds_id(self): def rds_id(self, rds_id): """Sets the rds_id of this ConfigurationRequestDataSpec. - RDS数据库实例ID。 type为\"rds\"时,配置此参数。 + RDS数据库实例ID。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_id: The rds_id of this ConfigurationRequestDataSpec. :type rds_id: str @@ -256,7 +256,7 @@ def rds_id(self, rds_id): def rds_db_name(self): """Gets the rds_db_name of this ConfigurationRequestDataSpec. - RDS数据库名称。 type为\"rds\"时,配置此参数。 + RDS数据库名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_db_name of this ConfigurationRequestDataSpec. :rtype: str @@ -267,7 +267,7 @@ def rds_db_name(self): def rds_db_name(self, rds_db_name): """Sets the rds_db_name of this ConfigurationRequestDataSpec. - RDS数据库名称。 type为\"rds\"时,配置此参数。 + RDS数据库名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_db_name: The rds_db_name of this ConfigurationRequestDataSpec. :type rds_db_name: str @@ -278,7 +278,7 @@ def rds_db_name(self, rds_db_name): def rds_address(self): """Gets the rds_address of this ConfigurationRequestDataSpec. - RDS数据库地址。 type为\"rds\"时,配置此参数。 + RDS数据库地址。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_address of this ConfigurationRequestDataSpec. :rtype: str @@ -289,7 +289,7 @@ def rds_address(self): def rds_address(self, rds_address): """Sets the rds_address of this ConfigurationRequestDataSpec. - RDS数据库地址。 type为\"rds\"时,配置此参数。 + RDS数据库地址。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_address: The rds_address of this ConfigurationRequestDataSpec. :type rds_address: str @@ -300,7 +300,7 @@ def rds_address(self, rds_address): def rds_username(self): """Gets the rds_username of this ConfigurationRequestDataSpec. - RDS数据库用户名称。 type为\"rds\"时,配置此参数。 + RDS数据库用户名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_username of this ConfigurationRequestDataSpec. :rtype: str @@ -311,7 +311,7 @@ def rds_username(self): def rds_username(self, rds_username): """Sets the rds_username of this ConfigurationRequestDataSpec. - RDS数据库用户名称。 type为\"rds\"时,配置此参数。 + RDS数据库用户名称。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_username: The rds_username of this ConfigurationRequestDataSpec. :type rds_username: str @@ -322,7 +322,7 @@ def rds_username(self, rds_username): def rds_password(self): """Gets the rds_password of this ConfigurationRequestDataSpec. - RDS数据库密码。 type为\"rds\"时,配置此参数。 + RDS数据库密码。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_password of this ConfigurationRequestDataSpec. :rtype: str @@ -333,7 +333,7 @@ def rds_password(self): def rds_password(self, rds_password): """Sets the rds_password of this ConfigurationRequestDataSpec. - RDS数据库密码。 type为\"rds\"时,配置此参数。 + RDS数据库密码。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_password: The rds_password of this ConfigurationRequestDataSpec. :type rds_password: str @@ -344,7 +344,7 @@ def rds_password(self, rds_password): def rds_port(self): """Gets the rds_port of this ConfigurationRequestDataSpec. - RDS数据库端口。 type为\"rds\"时,配置此参数。 + RDS数据库端口。 ConfigurationItem.type为\"rds\"时,配置此参数。 :return: The rds_port of this ConfigurationRequestDataSpec. :rtype: str @@ -355,7 +355,7 @@ def rds_port(self): def rds_port(self, rds_port): """Sets the rds_port of this ConfigurationRequestDataSpec. - RDS数据库端口。 type为\"rds\"时,配置此参数。 + RDS数据库端口。 ConfigurationItem.type为\"rds\"时,配置此参数。 :param rds_port: The rds_port of this ConfigurationRequestDataSpec. :type rds_port: str @@ -366,7 +366,7 @@ def rds_port(self, rds_port): def config_center_addr(self): """Gets the config_center_addr of this ConfigurationRequestDataSpec. - CSE配置中心地址。 type为\"cse\"时,配置此参数。 + CSE配置中心地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :return: The config_center_addr of this ConfigurationRequestDataSpec. :rtype: str @@ -377,7 +377,7 @@ def config_center_addr(self): def config_center_addr(self, config_center_addr): """Sets the config_center_addr of this ConfigurationRequestDataSpec. - CSE配置中心地址。 type为\"cse\"时,配置此参数。 + CSE配置中心地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :param config_center_addr: The config_center_addr of this ConfigurationRequestDataSpec. :type config_center_addr: str @@ -388,7 +388,7 @@ def config_center_addr(self, config_center_addr): def service_center_addr(self): """Gets the service_center_addr of this ConfigurationRequestDataSpec. - CSE服务注册发现地址。 type为\"cse\"时,配置此参数。 + CSE服务注册发现地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :return: The service_center_addr of this ConfigurationRequestDataSpec. :rtype: str @@ -399,7 +399,7 @@ def service_center_addr(self): def service_center_addr(self, service_center_addr): """Sets the service_center_addr of this ConfigurationRequestDataSpec. - CSE服务注册发现地址。 type为\"cse\"时,配置此参数。 + CSE服务注册发现地址。 ConfigurationItem.type为\"cse\"时,配置此参数。 :param service_center_addr: The service_center_addr of this ConfigurationRequestDataSpec. :type service_center_addr: str @@ -410,7 +410,7 @@ def service_center_addr(self, service_center_addr): def cse_id(self): """Gets the cse_id of this ConfigurationRequestDataSpec. - CSE引擎ID。 type为\"cse\"时,配置此参数。 + CSE引擎ID。 ConfigurationItem.type为\"cse\"时,配置此参数。 :return: The cse_id of this ConfigurationRequestDataSpec. :rtype: str @@ -421,7 +421,7 @@ def cse_id(self): def cse_id(self, cse_id): """Sets the cse_id of this ConfigurationRequestDataSpec. - CSE引擎ID。 type为\"cse\"时,配置此参数。 + CSE引擎ID。 ConfigurationItem.type为\"cse\"时,配置此参数。 :param cse_id: The cse_id of this ConfigurationRequestDataSpec. :type cse_id: str @@ -476,7 +476,7 @@ def ip(self, ip): def items(self): """Gets the items of this ConfigurationRequestDataSpec. - 访问方式配置列表。 type为\"access\"时,配置此参数。 + 访问方式配置列表。 ConfigurationItem.type为\"access\"时,配置此参数。 :return: The items of this ConfigurationRequestDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] @@ -487,7 +487,7 @@ def items(self): def items(self, items): """Sets the items of this ConfigurationRequestDataSpec. - 访问方式配置列表。 type为\"access\"时,配置此参数。 + 访问方式配置列表。 ConfigurationItem.type为\"access\"时,配置此参数。 :param items: The items of this ConfigurationRequestDataSpec. :type items: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] @@ -498,7 +498,7 @@ def items(self, items): def scale_strategy(self): """Gets the scale_strategy of this ConfigurationRequestDataSpec. - 伸缩策略配置策略类型。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置策略类型。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :return: The scale_strategy of this ConfigurationRequestDataSpec. :rtype: str @@ -509,7 +509,7 @@ def scale_strategy(self): def scale_strategy(self, scale_strategy): """Sets the scale_strategy of this ConfigurationRequestDataSpec. - 伸缩策略配置策略类型。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置策略类型。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :param scale_strategy: The scale_strategy of this ConfigurationRequestDataSpec. :type scale_strategy: str @@ -520,7 +520,7 @@ def scale_strategy(self, scale_strategy): def max_replica_count(self): """Gets the max_replica_count of this ConfigurationRequestDataSpec. - 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置最大伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :return: The max_replica_count of this ConfigurationRequestDataSpec. :rtype: int @@ -531,7 +531,7 @@ def max_replica_count(self): def max_replica_count(self, max_replica_count): """Sets the max_replica_count of this ConfigurationRequestDataSpec. - 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置最大伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :param max_replica_count: The max_replica_count of this ConfigurationRequestDataSpec. :type max_replica_count: int @@ -542,7 +542,7 @@ def max_replica_count(self, max_replica_count): def min_replica_count(self): """Gets the min_replica_count of this ConfigurationRequestDataSpec. - 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置最小伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :return: The min_replica_count of this ConfigurationRequestDataSpec. :rtype: int @@ -553,7 +553,7 @@ def min_replica_count(self): def min_replica_count(self, min_replica_count): """Sets the min_replica_count of this ConfigurationRequestDataSpec. - 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置最小伸缩个数。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :param min_replica_count: The min_replica_count of this ConfigurationRequestDataSpec. :type min_replica_count: int @@ -582,7 +582,7 @@ def advanced(self, advanced): def triggers(self): """Gets the triggers of this ConfigurationRequestDataSpec. - 伸缩策略配置触发器列表。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置触发器列表。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :return: The triggers of this ConfigurationRequestDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] @@ -593,7 +593,7 @@ def triggers(self): def triggers(self, triggers): """Sets the triggers of this ConfigurationRequestDataSpec. - 伸缩策略配置触发器列表。 type为\"scaling\"时,配置此参数。 + 伸缩策略配置触发器列表。 ConfigurationItem.type为\"scaling\"时,配置此参数。 :param triggers: The triggers of this ConfigurationRequestDataSpec. :type triggers: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] @@ -604,7 +604,7 @@ def triggers(self, triggers): def volumes(self): """Gets the volumes of this ConfigurationRequestDataSpec. - 云存储配置列表。 type为\"volume\"时,配置此参数。 + 云存储配置列表。 ConfigurationItem.type为\"volume\"时,配置此参数。 :return: The volumes of this ConfigurationRequestDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] @@ -615,7 +615,7 @@ def volumes(self): def volumes(self, volumes): """Sets the volumes of this ConfigurationRequestDataSpec. - 云存储配置列表。 type为\"volume\"时,配置此参数。 + 云存储配置列表。 ConfigurationItem.type为\"volume\"时,配置此参数。 :param volumes: The volumes of this ConfigurationRequestDataSpec. :type volumes: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] @@ -716,7 +716,7 @@ def pre_stop(self, pre_stop): def log_paths(self): """Gets the log_paths of this ConfigurationRequestDataSpec. - 自定义日志路径数组。 type为\"log\"时,配置此参数。 + 自定义日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。 :return: The log_paths of this ConfigurationRequestDataSpec. :rtype: list[str] @@ -727,7 +727,7 @@ def log_paths(self): def log_paths(self, log_paths): """Sets the log_paths of this ConfigurationRequestDataSpec. - 自定义日志路径数组。 type为\"log\"时,配置此参数。 + 自定义日志路径数组。 ConfigurationItem.type为\"log\"时,配置此参数。 :param log_paths: The log_paths of this ConfigurationRequestDataSpec. :type log_paths: list[str] @@ -738,7 +738,7 @@ def log_paths(self, log_paths): def instrumentation(self): """Gets the instrumentation of this ConfigurationRequestDataSpec. - 探针注入方式。 type为\"apm2\"时,配置此参数。 + 探针注入方式。 ConfigurationItem.type为\"apm2\"时,配置此参数。 :return: The instrumentation of this ConfigurationRequestDataSpec. :rtype: str @@ -749,7 +749,7 @@ def instrumentation(self): def instrumentation(self, instrumentation): """Sets the instrumentation of this ConfigurationRequestDataSpec. - 探针注入方式。 type为\"apm2\"时,配置此参数。 + 探针注入方式。 ConfigurationItem.type为\"apm2\"时,配置此参数。 :param instrumentation: The instrumentation of this ConfigurationRequestDataSpec. :type instrumentation: str @@ -760,7 +760,7 @@ def instrumentation(self, instrumentation): def path(self): """Gets the path of this ConfigurationRequestDataSpec. - 自定义监控指标配置采集路径。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置采集路径。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :return: The path of this ConfigurationRequestDataSpec. :rtype: str @@ -771,7 +771,7 @@ def path(self): def path(self, path): """Sets the path of this ConfigurationRequestDataSpec. - 自定义监控指标配置采集路径。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置采集路径。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :param path: The path of this ConfigurationRequestDataSpec. :type path: str @@ -782,7 +782,7 @@ def path(self, path): def port(self): """Gets the port of this ConfigurationRequestDataSpec. - 自定义监控指标配置采集端口。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :return: The port of this ConfigurationRequestDataSpec. :rtype: str @@ -793,7 +793,7 @@ def port(self): def port(self, port): """Sets the port of this ConfigurationRequestDataSpec. - 自定义监控指标配置采集端口。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置采集端口。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :param port: The port of this ConfigurationRequestDataSpec. :type port: str @@ -804,7 +804,7 @@ def port(self, port): def metrics(self): """Gets the metrics of this ConfigurationRequestDataSpec. - 自定义监控指标配置指标名称。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置指标名称。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :return: The metrics of this ConfigurationRequestDataSpec. :rtype: list[str] @@ -815,7 +815,7 @@ def metrics(self): def metrics(self, metrics): """Sets the metrics of this ConfigurationRequestDataSpec. - 自定义监控指标配置指标名称。 type为\"customMetric\"时,配置此参数。 + 自定义监控指标配置指标名称。 ConfigurationItem.type为\"customMetric\"时,配置此参数。 :param metrics: The metrics of this ConfigurationRequestDataSpec. :type metrics: list[str] diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_response_data_spec.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_response_data_spec.py index ff009a385d..2f4713757e 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/configuration_response_data_spec.py @@ -103,41 +103,41 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username The model defined in huaweicloud sdk - :param rds_id: RDS数据库实例ID。 type为\"rds\"时,返回此参数。 + :param rds_id: RDS数据库实例ID。 Configuration.type为\"rds\"时,返回此参数。 :type rds_id: str - :param rds_db_name: RDS数据库名称。 type为\"rds\"时,返回此参数。 + :param rds_db_name: RDS数据库名称。 Configuration.type为\"rds\"时,返回此参数。 :type rds_db_name: str - :param rds_address: RDS数据库地址。 type为\"rds\"时,返回此参数。 + :param rds_address: RDS数据库地址。 Configuration.type为\"rds\"时,返回此参数。 :type rds_address: str - :param rds_username: RDS数据库用户名称。 type为\"rds\"时,返回此参数。 + :param rds_username: RDS数据库用户名称。 Configuration.type为\"rds\"时,返回此参数。 :type rds_username: str - :param rds_password: RDS数据库密码。 type为\"rds\"时,返回此参数。 + :param rds_password: RDS数据库密码。 Configuration.type为\"rds\"时,返回此参数。 :type rds_password: str - :param rds_port: RDS数据库端口。 type为\"rds\"时,返回此参数。 + :param rds_port: RDS数据库端口。 Configuration.type为\"rds\"时,返回此参数。 :type rds_port: str - :param config_center_addr: CSE配置中心地址。 type为\"cse\"时,返回此参数。 + :param config_center_addr: CSE配置中心地址。 Configuration.type为\"cse\"时,返回此参数。 :type config_center_addr: str - :param service_center_addr: CSE服务注册发现地址。 type为\"cse\"时,返回此参数。 + :param service_center_addr: CSE服务注册发现地址。 Configuration.type为\"cse\"时,返回此参数。 :type service_center_addr: str - :param cse_id: CSE引擎ID。 type为\"cse\"时,返回此参数。 + :param cse_id: CSE引擎ID。 Configuration.type为\"cse\"时,返回此参数。 :type cse_id: str :param envs: 环境变量配置。 常用环境变量如下: - TZ: 时区设置,东八区可设置为Asia/Shanghai。 - LANG: 语言字符集设置,中文UTF8可设置为zh_CN.UTF-8。 :type envs: dict(str, str) :param ip: 弹性公网IP,响应体参数,未配置域名时返回此参数。 :type ip: str - :param items: 访问方式配置列表。 type为\"access\"时,返回此参数。 + :param items: 访问方式配置列表。 Configuration.type为\"access\"时,返回此参数。 :type items: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] - :param scale_strategy: 伸缩策略配置策略类型。 type为\"scaling\"时,返回此参数。 + :param scale_strategy: 伸缩策略配置策略类型。 Configuration.type为\"scaling\"时,返回此参数。 :type scale_strategy: str - :param max_replica_count: 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,返回此参数。 + :param max_replica_count: 伸缩策略配置最大伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :type max_replica_count: int - :param min_replica_count: 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,返回此参数。 + :param min_replica_count: 伸缩策略配置最小伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :type min_replica_count: int :param advanced: :type advanced: :class:`huaweicloudsdkcae.v1.ScaleConfigurationDataAdvanced` - :param triggers: 伸缩策略配置触发器列表。 type为\"scaling\"时,返回此参数。 + :param triggers: 伸缩策略配置触发器列表。 Configuration.type为\"scaling\"时,返回此参数。 :type triggers: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] - :param volumes: 云存储配置列表。 type为\"volume\"时,返回此参数。 + :param volumes: 云存储配置列表。 Configuration.type为\"volume\"时,返回此参数。 :type volumes: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] :param liveness_probe: :type liveness_probe: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationLivenessProbe` @@ -149,35 +149,35 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username :type post_start: :class:`huaweicloudsdkcae.v1.ConfigurationResponseDataSpecPostStart` :param pre_stop: :type pre_stop: :class:`huaweicloudsdkcae.v1.ConfigurationResponseDataSpecPreStop` - :param log_paths: 自定义日志路径数组。 type为\"log\"时,返回此参数。 + :param log_paths: 自定义日志路径数组。 Configuration.type为\"log\"时,返回此参数。 :type log_paths: list[str] - :param instrumentation: 探针注入方式。 type为\"apm2\"时,返回此参数。 + :param instrumentation: 探针注入方式。 Configuration.type为\"apm2\"时,返回此参数。 :type instrumentation: str - :param apm_application: apm2应用。 type为\"apm2\"时,返回此参数。 + :param apm_application: apm2应用。 Configuration.type为\"apm2\"时,返回此参数。 :type apm_application: str - :param type: 监控系统类别,包括apm2和opentelemetry。 type为\"apm2\"时,返回此参数。 + :param type: 监控系统类别,包括apm2和opentelemetry。 Configuration.type为\"apm2\"时,返回此参数。 :type type: str - :param app_name: apm2组件。 type为\"apm2\"时,返回此参数。 + :param app_name: apm2组件。 Configuration.type为\"apm2\"时,返回此参数。 :type app_name: str - :param instance_name: apm2实例。 type为\"apm2\"时,返回此参数。 + :param instance_name: apm2实例。 Configuration.type为\"apm2\"时,返回此参数。 :type instance_name: str - :param env_name: apm2环境。 type为\"apm2\"时,返回此参数。 + :param env_name: apm2环境。 Configuration.type为\"apm2\"时,返回此参数。 :type env_name: str - :param image_pull_policy: 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 type为\"apm2\"时,返回此参数。 + :param image_pull_policy: 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 Configuration.type为\"apm2\"时,返回此参数。 :type image_pull_policy: str - :param version: 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + :param version: 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :type version: str - :param access_key: apm2访问密钥Key,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + :param access_key: apm2访问密钥Key,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :type access_key: str - :param access_value: apm2访问密钥value,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + :param access_value: apm2访问密钥value,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :type access_value: str - :param business: apm2应用,同apm_application,已废弃。 type为\"apm2\"时,返回此参数。 + :param business: apm2应用,同apm_application,已废弃。 Configuration.type为\"apm2\"时,返回此参数。 :type business: str - :param path: 自定义监控指标配置采集路径。 type为\"customMetric\"时,返回此参数。 + :param path: 自定义监控指标配置采集路径。 Configuration.type为\"customMetric\"时,返回此参数。 :type path: str - :param port: 自定义监控指标配置采集端口。 type为\"customMetric\"时,返回此参数。 + :param port: 自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。 :type port: str - :param metrics: 自定义监控指标配置指标名称。 type为\"customMetric\"时,返回此参数。 + :param metrics: 自定义监控指标配置指标名称。 Configuration.type为\"customMetric\"时,返回此参数。 :type metrics: list[str] """ @@ -304,7 +304,7 @@ def __init__(self, rds_id=None, rds_db_name=None, rds_address=None, rds_username def rds_id(self): """Gets the rds_id of this ConfigurationResponseDataSpec. - RDS数据库实例ID。 type为\"rds\"时,返回此参数。 + RDS数据库实例ID。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_id of this ConfigurationResponseDataSpec. :rtype: str @@ -315,7 +315,7 @@ def rds_id(self): def rds_id(self, rds_id): """Sets the rds_id of this ConfigurationResponseDataSpec. - RDS数据库实例ID。 type为\"rds\"时,返回此参数。 + RDS数据库实例ID。 Configuration.type为\"rds\"时,返回此参数。 :param rds_id: The rds_id of this ConfigurationResponseDataSpec. :type rds_id: str @@ -326,7 +326,7 @@ def rds_id(self, rds_id): def rds_db_name(self): """Gets the rds_db_name of this ConfigurationResponseDataSpec. - RDS数据库名称。 type为\"rds\"时,返回此参数。 + RDS数据库名称。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_db_name of this ConfigurationResponseDataSpec. :rtype: str @@ -337,7 +337,7 @@ def rds_db_name(self): def rds_db_name(self, rds_db_name): """Sets the rds_db_name of this ConfigurationResponseDataSpec. - RDS数据库名称。 type为\"rds\"时,返回此参数。 + RDS数据库名称。 Configuration.type为\"rds\"时,返回此参数。 :param rds_db_name: The rds_db_name of this ConfigurationResponseDataSpec. :type rds_db_name: str @@ -348,7 +348,7 @@ def rds_db_name(self, rds_db_name): def rds_address(self): """Gets the rds_address of this ConfigurationResponseDataSpec. - RDS数据库地址。 type为\"rds\"时,返回此参数。 + RDS数据库地址。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_address of this ConfigurationResponseDataSpec. :rtype: str @@ -359,7 +359,7 @@ def rds_address(self): def rds_address(self, rds_address): """Sets the rds_address of this ConfigurationResponseDataSpec. - RDS数据库地址。 type为\"rds\"时,返回此参数。 + RDS数据库地址。 Configuration.type为\"rds\"时,返回此参数。 :param rds_address: The rds_address of this ConfigurationResponseDataSpec. :type rds_address: str @@ -370,7 +370,7 @@ def rds_address(self, rds_address): def rds_username(self): """Gets the rds_username of this ConfigurationResponseDataSpec. - RDS数据库用户名称。 type为\"rds\"时,返回此参数。 + RDS数据库用户名称。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_username of this ConfigurationResponseDataSpec. :rtype: str @@ -381,7 +381,7 @@ def rds_username(self): def rds_username(self, rds_username): """Sets the rds_username of this ConfigurationResponseDataSpec. - RDS数据库用户名称。 type为\"rds\"时,返回此参数。 + RDS数据库用户名称。 Configuration.type为\"rds\"时,返回此参数。 :param rds_username: The rds_username of this ConfigurationResponseDataSpec. :type rds_username: str @@ -392,7 +392,7 @@ def rds_username(self, rds_username): def rds_password(self): """Gets the rds_password of this ConfigurationResponseDataSpec. - RDS数据库密码。 type为\"rds\"时,返回此参数。 + RDS数据库密码。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_password of this ConfigurationResponseDataSpec. :rtype: str @@ -403,7 +403,7 @@ def rds_password(self): def rds_password(self, rds_password): """Sets the rds_password of this ConfigurationResponseDataSpec. - RDS数据库密码。 type为\"rds\"时,返回此参数。 + RDS数据库密码。 Configuration.type为\"rds\"时,返回此参数。 :param rds_password: The rds_password of this ConfigurationResponseDataSpec. :type rds_password: str @@ -414,7 +414,7 @@ def rds_password(self, rds_password): def rds_port(self): """Gets the rds_port of this ConfigurationResponseDataSpec. - RDS数据库端口。 type为\"rds\"时,返回此参数。 + RDS数据库端口。 Configuration.type为\"rds\"时,返回此参数。 :return: The rds_port of this ConfigurationResponseDataSpec. :rtype: str @@ -425,7 +425,7 @@ def rds_port(self): def rds_port(self, rds_port): """Sets the rds_port of this ConfigurationResponseDataSpec. - RDS数据库端口。 type为\"rds\"时,返回此参数。 + RDS数据库端口。 Configuration.type为\"rds\"时,返回此参数。 :param rds_port: The rds_port of this ConfigurationResponseDataSpec. :type rds_port: str @@ -436,7 +436,7 @@ def rds_port(self, rds_port): def config_center_addr(self): """Gets the config_center_addr of this ConfigurationResponseDataSpec. - CSE配置中心地址。 type为\"cse\"时,返回此参数。 + CSE配置中心地址。 Configuration.type为\"cse\"时,返回此参数。 :return: The config_center_addr of this ConfigurationResponseDataSpec. :rtype: str @@ -447,7 +447,7 @@ def config_center_addr(self): def config_center_addr(self, config_center_addr): """Sets the config_center_addr of this ConfigurationResponseDataSpec. - CSE配置中心地址。 type为\"cse\"时,返回此参数。 + CSE配置中心地址。 Configuration.type为\"cse\"时,返回此参数。 :param config_center_addr: The config_center_addr of this ConfigurationResponseDataSpec. :type config_center_addr: str @@ -458,7 +458,7 @@ def config_center_addr(self, config_center_addr): def service_center_addr(self): """Gets the service_center_addr of this ConfigurationResponseDataSpec. - CSE服务注册发现地址。 type为\"cse\"时,返回此参数。 + CSE服务注册发现地址。 Configuration.type为\"cse\"时,返回此参数。 :return: The service_center_addr of this ConfigurationResponseDataSpec. :rtype: str @@ -469,7 +469,7 @@ def service_center_addr(self): def service_center_addr(self, service_center_addr): """Sets the service_center_addr of this ConfigurationResponseDataSpec. - CSE服务注册发现地址。 type为\"cse\"时,返回此参数。 + CSE服务注册发现地址。 Configuration.type为\"cse\"时,返回此参数。 :param service_center_addr: The service_center_addr of this ConfigurationResponseDataSpec. :type service_center_addr: str @@ -480,7 +480,7 @@ def service_center_addr(self, service_center_addr): def cse_id(self): """Gets the cse_id of this ConfigurationResponseDataSpec. - CSE引擎ID。 type为\"cse\"时,返回此参数。 + CSE引擎ID。 Configuration.type为\"cse\"时,返回此参数。 :return: The cse_id of this ConfigurationResponseDataSpec. :rtype: str @@ -491,7 +491,7 @@ def cse_id(self): def cse_id(self, cse_id): """Sets the cse_id of this ConfigurationResponseDataSpec. - CSE引擎ID。 type为\"cse\"时,返回此参数。 + CSE引擎ID。 Configuration.type为\"cse\"时,返回此参数。 :param cse_id: The cse_id of this ConfigurationResponseDataSpec. :type cse_id: str @@ -546,7 +546,7 @@ def ip(self, ip): def items(self): """Gets the items of this ConfigurationResponseDataSpec. - 访问方式配置列表。 type为\"access\"时,返回此参数。 + 访问方式配置列表。 Configuration.type为\"access\"时,返回此参数。 :return: The items of this ConfigurationResponseDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] @@ -557,7 +557,7 @@ def items(self): def items(self, items): """Sets the items of this ConfigurationResponseDataSpec. - 访问方式配置列表。 type为\"access\"时,返回此参数。 + 访问方式配置列表。 Configuration.type为\"access\"时,返回此参数。 :param items: The items of this ConfigurationResponseDataSpec. :type items: list[:class:`huaweicloudsdkcae.v1.AccessConfigurationDataItems`] @@ -568,7 +568,7 @@ def items(self, items): def scale_strategy(self): """Gets the scale_strategy of this ConfigurationResponseDataSpec. - 伸缩策略配置策略类型。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置策略类型。 Configuration.type为\"scaling\"时,返回此参数。 :return: The scale_strategy of this ConfigurationResponseDataSpec. :rtype: str @@ -579,7 +579,7 @@ def scale_strategy(self): def scale_strategy(self, scale_strategy): """Sets the scale_strategy of this ConfigurationResponseDataSpec. - 伸缩策略配置策略类型。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置策略类型。 Configuration.type为\"scaling\"时,返回此参数。 :param scale_strategy: The scale_strategy of this ConfigurationResponseDataSpec. :type scale_strategy: str @@ -590,7 +590,7 @@ def scale_strategy(self, scale_strategy): def max_replica_count(self): """Gets the max_replica_count of this ConfigurationResponseDataSpec. - 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置最大伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :return: The max_replica_count of this ConfigurationResponseDataSpec. :rtype: int @@ -601,7 +601,7 @@ def max_replica_count(self): def max_replica_count(self, max_replica_count): """Sets the max_replica_count of this ConfigurationResponseDataSpec. - 伸缩策略配置最大伸缩个数。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置最大伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :param max_replica_count: The max_replica_count of this ConfigurationResponseDataSpec. :type max_replica_count: int @@ -612,7 +612,7 @@ def max_replica_count(self, max_replica_count): def min_replica_count(self): """Gets the min_replica_count of this ConfigurationResponseDataSpec. - 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置最小伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :return: The min_replica_count of this ConfigurationResponseDataSpec. :rtype: int @@ -623,7 +623,7 @@ def min_replica_count(self): def min_replica_count(self, min_replica_count): """Sets the min_replica_count of this ConfigurationResponseDataSpec. - 伸缩策略配置最小伸缩个数。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置最小伸缩个数。 Configuration.type为\"scaling\"时,返回此参数。 :param min_replica_count: The min_replica_count of this ConfigurationResponseDataSpec. :type min_replica_count: int @@ -652,7 +652,7 @@ def advanced(self, advanced): def triggers(self): """Gets the triggers of this ConfigurationResponseDataSpec. - 伸缩策略配置触发器列表。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置触发器列表。 Configuration.type为\"scaling\"时,返回此参数。 :return: The triggers of this ConfigurationResponseDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] @@ -663,7 +663,7 @@ def triggers(self): def triggers(self, triggers): """Sets the triggers of this ConfigurationResponseDataSpec. - 伸缩策略配置触发器列表。 type为\"scaling\"时,返回此参数。 + 伸缩策略配置触发器列表。 Configuration.type为\"scaling\"时,返回此参数。 :param triggers: The triggers of this ConfigurationResponseDataSpec. :type triggers: list[:class:`huaweicloudsdkcae.v1.ScaleConfigurationDataTrigger`] @@ -674,7 +674,7 @@ def triggers(self, triggers): def volumes(self): """Gets the volumes of this ConfigurationResponseDataSpec. - 云存储配置列表。 type为\"volume\"时,返回此参数。 + 云存储配置列表。 Configuration.type为\"volume\"时,返回此参数。 :return: The volumes of this ConfigurationResponseDataSpec. :rtype: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] @@ -685,7 +685,7 @@ def volumes(self): def volumes(self, volumes): """Sets the volumes of this ConfigurationResponseDataSpec. - 云存储配置列表。 type为\"volume\"时,返回此参数。 + 云存储配置列表。 Configuration.type为\"volume\"时,返回此参数。 :param volumes: The volumes of this ConfigurationResponseDataSpec. :type volumes: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationDataVolume`] @@ -786,7 +786,7 @@ def pre_stop(self, pre_stop): def log_paths(self): """Gets the log_paths of this ConfigurationResponseDataSpec. - 自定义日志路径数组。 type为\"log\"时,返回此参数。 + 自定义日志路径数组。 Configuration.type为\"log\"时,返回此参数。 :return: The log_paths of this ConfigurationResponseDataSpec. :rtype: list[str] @@ -797,7 +797,7 @@ def log_paths(self): def log_paths(self, log_paths): """Sets the log_paths of this ConfigurationResponseDataSpec. - 自定义日志路径数组。 type为\"log\"时,返回此参数。 + 自定义日志路径数组。 Configuration.type为\"log\"时,返回此参数。 :param log_paths: The log_paths of this ConfigurationResponseDataSpec. :type log_paths: list[str] @@ -808,7 +808,7 @@ def log_paths(self, log_paths): def instrumentation(self): """Gets the instrumentation of this ConfigurationResponseDataSpec. - 探针注入方式。 type为\"apm2\"时,返回此参数。 + 探针注入方式。 Configuration.type为\"apm2\"时,返回此参数。 :return: The instrumentation of this ConfigurationResponseDataSpec. :rtype: str @@ -819,7 +819,7 @@ def instrumentation(self): def instrumentation(self, instrumentation): """Sets the instrumentation of this ConfigurationResponseDataSpec. - 探针注入方式。 type为\"apm2\"时,返回此参数。 + 探针注入方式。 Configuration.type为\"apm2\"时,返回此参数。 :param instrumentation: The instrumentation of this ConfigurationResponseDataSpec. :type instrumentation: str @@ -830,7 +830,7 @@ def instrumentation(self, instrumentation): def apm_application(self): """Gets the apm_application of this ConfigurationResponseDataSpec. - apm2应用。 type为\"apm2\"时,返回此参数。 + apm2应用。 Configuration.type为\"apm2\"时,返回此参数。 :return: The apm_application of this ConfigurationResponseDataSpec. :rtype: str @@ -841,7 +841,7 @@ def apm_application(self): def apm_application(self, apm_application): """Sets the apm_application of this ConfigurationResponseDataSpec. - apm2应用。 type为\"apm2\"时,返回此参数。 + apm2应用。 Configuration.type为\"apm2\"时,返回此参数。 :param apm_application: The apm_application of this ConfigurationResponseDataSpec. :type apm_application: str @@ -852,7 +852,7 @@ def apm_application(self, apm_application): def type(self): """Gets the type of this ConfigurationResponseDataSpec. - 监控系统类别,包括apm2和opentelemetry。 type为\"apm2\"时,返回此参数。 + 监控系统类别,包括apm2和opentelemetry。 Configuration.type为\"apm2\"时,返回此参数。 :return: The type of this ConfigurationResponseDataSpec. :rtype: str @@ -863,7 +863,7 @@ def type(self): def type(self, type): """Sets the type of this ConfigurationResponseDataSpec. - 监控系统类别,包括apm2和opentelemetry。 type为\"apm2\"时,返回此参数。 + 监控系统类别,包括apm2和opentelemetry。 Configuration.type为\"apm2\"时,返回此参数。 :param type: The type of this ConfigurationResponseDataSpec. :type type: str @@ -874,7 +874,7 @@ def type(self, type): def app_name(self): """Gets the app_name of this ConfigurationResponseDataSpec. - apm2组件。 type为\"apm2\"时,返回此参数。 + apm2组件。 Configuration.type为\"apm2\"时,返回此参数。 :return: The app_name of this ConfigurationResponseDataSpec. :rtype: str @@ -885,7 +885,7 @@ def app_name(self): def app_name(self, app_name): """Sets the app_name of this ConfigurationResponseDataSpec. - apm2组件。 type为\"apm2\"时,返回此参数。 + apm2组件。 Configuration.type为\"apm2\"时,返回此参数。 :param app_name: The app_name of this ConfigurationResponseDataSpec. :type app_name: str @@ -896,7 +896,7 @@ def app_name(self, app_name): def instance_name(self): """Gets the instance_name of this ConfigurationResponseDataSpec. - apm2实例。 type为\"apm2\"时,返回此参数。 + apm2实例。 Configuration.type为\"apm2\"时,返回此参数。 :return: The instance_name of this ConfigurationResponseDataSpec. :rtype: str @@ -907,7 +907,7 @@ def instance_name(self): def instance_name(self, instance_name): """Sets the instance_name of this ConfigurationResponseDataSpec. - apm2实例。 type为\"apm2\"时,返回此参数。 + apm2实例。 Configuration.type为\"apm2\"时,返回此参数。 :param instance_name: The instance_name of this ConfigurationResponseDataSpec. :type instance_name: str @@ -918,7 +918,7 @@ def instance_name(self, instance_name): def env_name(self): """Gets the env_name of this ConfigurationResponseDataSpec. - apm2环境。 type为\"apm2\"时,返回此参数。 + apm2环境。 Configuration.type为\"apm2\"时,返回此参数。 :return: The env_name of this ConfigurationResponseDataSpec. :rtype: str @@ -929,7 +929,7 @@ def env_name(self): def env_name(self, env_name): """Sets the env_name of this ConfigurationResponseDataSpec. - apm2环境。 type为\"apm2\"时,返回此参数。 + apm2环境。 Configuration.type为\"apm2\"时,返回此参数。 :param env_name: The env_name of this ConfigurationResponseDataSpec. :type env_name: str @@ -940,7 +940,7 @@ def env_name(self, env_name): def image_pull_policy(self): """Gets the image_pull_policy of this ConfigurationResponseDataSpec. - 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 type为\"apm2\"时,返回此参数。 + 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 Configuration.type为\"apm2\"时,返回此参数。 :return: The image_pull_policy of this ConfigurationResponseDataSpec. :rtype: str @@ -951,7 +951,7 @@ def image_pull_policy(self): def image_pull_policy(self, image_pull_policy): """Sets the image_pull_policy of this ConfigurationResponseDataSpec. - 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 type为\"apm2\"时,返回此参数。 + 探针镜像更新策略,已废弃,迁移到监控系统。 - Always,重启自动升级:每次都尝试重新下载镜像。 - IfNotPresent,手动升级: 如果本地有该镜像,则继续使用本地镜像,不下载镜像。 Configuration.type为\"apm2\"时,返回此参数。 :param image_pull_policy: The image_pull_policy of this ConfigurationResponseDataSpec. :type image_pull_policy: str @@ -962,7 +962,7 @@ def image_pull_policy(self, image_pull_policy): def version(self): """Gets the version of this ConfigurationResponseDataSpec. - 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :return: The version of this ConfigurationResponseDataSpec. :rtype: str @@ -973,7 +973,7 @@ def version(self): def version(self, version): """Sets the version of this ConfigurationResponseDataSpec. - 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + 增强型探针/opentelemetry探针版本,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :param version: The version of this ConfigurationResponseDataSpec. :type version: str @@ -984,7 +984,7 @@ def version(self, version): def access_key(self): """Gets the access_key of this ConfigurationResponseDataSpec. - apm2访问密钥Key,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + apm2访问密钥Key,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :return: The access_key of this ConfigurationResponseDataSpec. :rtype: str @@ -995,7 +995,7 @@ def access_key(self): def access_key(self, access_key): """Sets the access_key of this ConfigurationResponseDataSpec. - apm2访问密钥Key,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + apm2访问密钥Key,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :param access_key: The access_key of this ConfigurationResponseDataSpec. :type access_key: str @@ -1006,7 +1006,7 @@ def access_key(self, access_key): def access_value(self): """Gets the access_value of this ConfigurationResponseDataSpec. - apm2访问密钥value,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + apm2访问密钥value,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :return: The access_value of this ConfigurationResponseDataSpec. :rtype: str @@ -1017,7 +1017,7 @@ def access_value(self): def access_value(self, access_value): """Sets the access_value of this ConfigurationResponseDataSpec. - apm2访问密钥value,已废弃,迁移到监控系统。 type为\"apm2\"时,返回此参数。 + apm2访问密钥value,已废弃,迁移到监控系统。 Configuration.type为\"apm2\"时,返回此参数。 :param access_value: The access_value of this ConfigurationResponseDataSpec. :type access_value: str @@ -1028,7 +1028,7 @@ def access_value(self, access_value): def business(self): """Gets the business of this ConfigurationResponseDataSpec. - apm2应用,同apm_application,已废弃。 type为\"apm2\"时,返回此参数。 + apm2应用,同apm_application,已废弃。 Configuration.type为\"apm2\"时,返回此参数。 :return: The business of this ConfigurationResponseDataSpec. :rtype: str @@ -1039,7 +1039,7 @@ def business(self): def business(self, business): """Sets the business of this ConfigurationResponseDataSpec. - apm2应用,同apm_application,已废弃。 type为\"apm2\"时,返回此参数。 + apm2应用,同apm_application,已废弃。 Configuration.type为\"apm2\"时,返回此参数。 :param business: The business of this ConfigurationResponseDataSpec. :type business: str @@ -1050,7 +1050,7 @@ def business(self, business): def path(self): """Gets the path of this ConfigurationResponseDataSpec. - 自定义监控指标配置采集路径。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置采集路径。 Configuration.type为\"customMetric\"时,返回此参数。 :return: The path of this ConfigurationResponseDataSpec. :rtype: str @@ -1061,7 +1061,7 @@ def path(self): def path(self, path): """Sets the path of this ConfigurationResponseDataSpec. - 自定义监控指标配置采集路径。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置采集路径。 Configuration.type为\"customMetric\"时,返回此参数。 :param path: The path of this ConfigurationResponseDataSpec. :type path: str @@ -1072,7 +1072,7 @@ def path(self, path): def port(self): """Gets the port of this ConfigurationResponseDataSpec. - 自定义监控指标配置采集端口。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。 :return: The port of this ConfigurationResponseDataSpec. :rtype: str @@ -1083,7 +1083,7 @@ def port(self): def port(self, port): """Sets the port of this ConfigurationResponseDataSpec. - 自定义监控指标配置采集端口。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置采集端口。 Configuration.type为\"customMetric\"时,返回此参数。 :param port: The port of this ConfigurationResponseDataSpec. :type port: str @@ -1094,7 +1094,7 @@ def port(self, port): def metrics(self): """Gets the metrics of this ConfigurationResponseDataSpec. - 自定义监控指标配置指标名称。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置指标名称。 Configuration.type为\"customMetric\"时,返回此参数。 :return: The metrics of this ConfigurationResponseDataSpec. :rtype: list[str] @@ -1105,7 +1105,7 @@ def metrics(self): def metrics(self, metrics): """Sets the metrics of this ConfigurationResponseDataSpec. - 自定义监控指标配置指标名称。 type为\"customMetric\"时,返回此参数。 + 自定义监控指标配置指标名称。 Configuration.type为\"customMetric\"时,返回此参数。 :param metrics: The metrics of this ConfigurationResponseDataSpec. :type metrics: list[str] diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/scaling_trigger_meta.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/scaling_trigger_meta.py index f47ff9d840..8f7d81181c 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/scaling_trigger_meta.py @@ -35,13 +35,13 @@ def __init__(self, type=None, value=None, period_type=None, schedulers=None): The model defined in huaweicloud sdk - :param type: 数据类型,当前只支持利用率,默认值为Utilization。 type为\"cpu、memory\"时,配置此参数。 + :param type: 数据类型,当前只支持利用率,默认值为Utilization。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :type type: str - :param value: 触发指标的阈值。 type为\"cpu、memory\"时,配置此参数。 + :param value: 触发指标的阈值。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :type value: str - :param period_type: 生效周期。 type为\"cron\"时,配置此参数。 + :param period_type: 生效周期。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :type period_type: str - :param schedulers: 每个周期内触发的时间点和实例数。 type为\"cron\"时,配置此参数。 + :param schedulers: 每个周期内触发的时间点和实例数。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :type schedulers: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`] """ @@ -66,7 +66,7 @@ def __init__(self, type=None, value=None, period_type=None, schedulers=None): def type(self): """Gets the type of this ScalingTriggerMeta. - 数据类型,当前只支持利用率,默认值为Utilization。 type为\"cpu、memory\"时,配置此参数。 + 数据类型,当前只支持利用率,默认值为Utilization。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :return: The type of this ScalingTriggerMeta. :rtype: str @@ -77,7 +77,7 @@ def type(self): def type(self, type): """Sets the type of this ScalingTriggerMeta. - 数据类型,当前只支持利用率,默认值为Utilization。 type为\"cpu、memory\"时,配置此参数。 + 数据类型,当前只支持利用率,默认值为Utilization。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :param type: The type of this ScalingTriggerMeta. :type type: str @@ -88,7 +88,7 @@ def type(self, type): def value(self): """Gets the value of this ScalingTriggerMeta. - 触发指标的阈值。 type为\"cpu、memory\"时,配置此参数。 + 触发指标的阈值。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :return: The value of this ScalingTriggerMeta. :rtype: str @@ -99,7 +99,7 @@ def value(self): def value(self, value): """Sets the value of this ScalingTriggerMeta. - 触发指标的阈值。 type为\"cpu、memory\"时,配置此参数。 + 触发指标的阈值。 ScaleConfigurationDataTrigger.type为\"cpu、memory\"时,配置此参数。 :param value: The value of this ScalingTriggerMeta. :type value: str @@ -110,7 +110,7 @@ def value(self, value): def period_type(self): """Gets the period_type of this ScalingTriggerMeta. - 生效周期。 type为\"cron\"时,配置此参数。 + 生效周期。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :return: The period_type of this ScalingTriggerMeta. :rtype: str @@ -121,7 +121,7 @@ def period_type(self): def period_type(self, period_type): """Sets the period_type of this ScalingTriggerMeta. - 生效周期。 type为\"cron\"时,配置此参数。 + 生效周期。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :param period_type: The period_type of this ScalingTriggerMeta. :type period_type: str @@ -132,7 +132,7 @@ def period_type(self, period_type): def schedulers(self): """Gets the schedulers of this ScalingTriggerMeta. - 每个周期内触发的时间点和实例数。 type为\"cron\"时,配置此参数。 + 每个周期内触发的时间点和实例数。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :return: The schedulers of this ScalingTriggerMeta. :rtype: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`] @@ -143,7 +143,7 @@ def schedulers(self): def schedulers(self, schedulers): """Sets the schedulers of this ScalingTriggerMeta. - 每个周期内触发的时间点和实例数。 type为\"cron\"时,配置此参数。 + 每个周期内触发的时间点和实例数。 ScaleConfigurationDataTrigger.type为\"cron\"时,配置此参数。 :param schedulers: The schedulers of this ScalingTriggerMeta. :type schedulers: list[:class:`huaweicloudsdkcae.v1.CronTriggerScheduler`] diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py index f54da1ca55..abc35d8164 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py @@ -21,6 +21,7 @@ class VolumeConfigurationDataVolume: 'resource_name': 'str', 'resource_type': 'str', 'resource_sub_type': 'str', + 'umask': 'str', 'mount_info': 'list[VolumeConfigurationMountInfo]' } @@ -29,10 +30,11 @@ class VolumeConfigurationDataVolume: 'resource_name': 'resource_name', 'resource_type': 'resource_type', 'resource_sub_type': 'resource_sub_type', + 'umask': 'umask', 'mount_info': 'mount_info' } - def __init__(self, volume_id=None, resource_name=None, resource_type=None, resource_sub_type=None, mount_info=None): + def __init__(self, volume_id=None, resource_name=None, resource_type=None, resource_sub_type=None, umask=None, mount_info=None): """VolumeConfigurationDataVolume The model defined in huaweicloud sdk @@ -45,6 +47,8 @@ def __init__(self, volume_id=None, resource_name=None, resource_type=None, resou :type resource_type: str :param resource_sub_type: 云存储子类型。 :type resource_sub_type: str + :param umask: 设置目录或文件缺省权限,默认值0027,sfs3.0类型的云存储不支持配置此参数。 + :type umask: str :param mount_info: :type mount_info: list[:class:`huaweicloudsdkcae.v1.VolumeConfigurationMountInfo`] """ @@ -55,6 +59,7 @@ def __init__(self, volume_id=None, resource_name=None, resource_type=None, resou self._resource_name = None self._resource_type = None self._resource_sub_type = None + self._umask = None self._mount_info = None self.discriminator = None @@ -66,6 +71,8 @@ def __init__(self, volume_id=None, resource_name=None, resource_type=None, resou self.resource_type = resource_type if resource_sub_type is not None: self.resource_sub_type = resource_sub_type + if umask is not None: + self.umask = umask if mount_info is not None: self.mount_info = mount_info @@ -157,6 +164,28 @@ def resource_sub_type(self, resource_sub_type): """ self._resource_sub_type = resource_sub_type + @property + def umask(self): + """Gets the umask of this VolumeConfigurationDataVolume. + + 设置目录或文件缺省权限,默认值0027,sfs3.0类型的云存储不支持配置此参数。 + + :return: The umask of this VolumeConfigurationDataVolume. + :rtype: str + """ + return self._umask + + @umask.setter + def umask(self, umask): + """Sets the umask of this VolumeConfigurationDataVolume. + + 设置目录或文件缺省权限,默认值0027,sfs3.0类型的云存储不支持配置此参数。 + + :param umask: The umask of this VolumeConfigurationDataVolume. + :type umask: str + """ + self._umask = umask + @property def mount_info(self): """Gets the mount_info of this VolumeConfigurationDataVolume. diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py index dcc2fb3e10..f12b0b4558 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -28,9 +25,9 @@ class CaeRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -39,6 +36,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cae': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index eba99e365d..280818fed7 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py b/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py index bd28ab21ad..1094891e38 100644 --- a/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py +++ b/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -31,9 +28,9 @@ class CampusGoRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -42,6 +39,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CampusGo': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 4e5bd7f848..7ed369599b 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py index fd8ac4f5b1..c4d0a44999 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -46,9 +43,9 @@ class CbhRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -57,6 +54,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cbh': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py index fd8ac4f5b1..c4d0a44999 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -46,9 +43,9 @@ class CbhRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -57,6 +54,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cbh': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 11fb17aab1..c98b0ab99f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py index 4ea8f3576e..26f680f72f 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -85,9 +82,9 @@ class CbrRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +93,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cbr': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 251b40ad65..b19c885571 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py b/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py index e3de60808a..dd75142892 100644 --- a/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py +++ b/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class CbsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cbs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index c72d53b922..73652eb4c9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/huaweicloudsdkcc/v2/region/cc_region.py b/huaweicloud-sdk-cc/huaweicloudsdkcc/v2/region/cc_region.py index 774f17978a..634f7845bc 100644 --- a/huaweicloud-sdk-cc/huaweicloudsdkcc/v2/region/cc_region.py +++ b/huaweicloud-sdk-cc/huaweicloudsdkcc/v2/region/cc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class CcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py b/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py index 774f17978a..634f7845bc 100644 --- a/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py +++ b/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class CcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 9aefb2aeb7..3ef4842f03 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py index 7d8373ae82..a30d59423b 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cluster_spec.py @@ -20,6 +20,7 @@ class ClusterSpec: 'category': 'str', 'type': 'str', 'flavor': 'str', + 'enable_autopilot': 'bool', 'version': 'str', 'platform_version': 'str', 'description': 'str', @@ -46,6 +47,7 @@ class ClusterSpec: 'category': 'category', 'type': 'type', 'flavor': 'flavor', + 'enable_autopilot': 'enableAutopilot', 'version': 'version', 'platform_version': 'platformVersion', 'description': 'description', @@ -68,7 +70,7 @@ class ClusterSpec: 'configurations_override': 'configurationsOverride' } - def __init__(self, category=None, type=None, flavor=None, version=None, platform_version=None, description=None, custom_san=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None, enable_master_volume_encryption=None, configurations_override=None): + def __init__(self, category=None, type=None, flavor=None, enable_autopilot=None, version=None, platform_version=None, description=None, custom_san=None, ipv6enable=None, host_network=None, container_network=None, eni_network=None, service_network=None, authentication=None, billing_mode=None, masters=None, kubernetes_svc_ip_range=None, cluster_tags=None, kube_proxy_mode=None, az=None, extend_param=None, support_istio=None, enable_master_volume_encryption=None, configurations_override=None): """ClusterSpec The model defined in huaweicloud sdk @@ -79,6 +81,8 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform :type type: str :param flavor: 集群规格,当集群为v1.15及以上版本时支持创建后变更,详情请参见[变更集群规格](ResizeCluster.xml)。请按实际业务需求进行选择: - cce.s1.small: 小规模单控制节点CCE集群(最大50节点) - cce.s1.medium: 中等规模单控制节点CCE集群(最大200节点) - cce.s2.small: 小规模多控制节点CCE集群(最大50节点) - cce.s2.medium: 中等规模多控制节点CCE集群(最大200节点) - cce.s2.large: 大规模多控制节点CCE集群(最大1000节点) - cce.s2.xlarge: 超大规模多控制节点CCE集群(最大2000节点) > 关于规格参数中的字段说明如下: > - s1:单控制节点的集群,控制节点数为1。单控制节点故障后,集群将不可用,但已运行工作负载不受影响。 > - s2:多控制节点的集群,即高可用集群,控制节点数为3。当某个控制节点故障时,集群仍然可用。 > [- dec:表示专属云的CCE集群规格。例如cce.dec.s1.small表示小规模单控制节点的专属云CCE集群(最大50节点)。](tag:hws,hws_hk) > - small:表示集群支持管理的最大节点规模为50节点。 > - medium:表示集群支持管理的最大节点规模为200节点。 > - large:表示集群支持管理的最大节点规模为1000节点。 > - xlarge:表示集群支持管理的最大节点规模为2000节点。 :type flavor: str + :param enable_autopilot: CCE Autopilot集群开关: - true:创建集群为CCE Autopilot集群 + :type enable_autopilot: bool :param version: 集群版本,与Kubernetes社区基线版本保持一致,建议选择最新版本。 在CCE控制台支持创建两种最新版本的集群。可登录CCE控制台创建集群,在“版本”处获取到集群版本。 其它集群版本,当前仍可通过api创建,但后续会逐渐下线,具体下线策略请关注CCE官方公告。 > - 若不配置,默认创建最新版本的集群。 > - 若指定集群基线版本但是不指定具体r版本,则系统默认选择对应集群版本的最新r版本。建议不指定具体r版本由系统选择最新版本。 [> - Turbo集群支持1.19及以上版本商用。](tag:hws,hws_hk,dt) [> - Turbo集群支持1.23及以上版本商用。](tag:hcs,g42,sbc) :type version: str :param platform_version: CCE集群平台版本号,表示集群版本(version)下的内部版本。用于跟踪某一集群版本内的迭代,集群版本内唯一,跨集群版本重新计数。不支持用户指定,集群创建时自动选择对应集群版本的最新平台版本。 platformVersion格式为:cce.X.Y - X: 表示内部特性版本。集群版本中特性或者补丁修复,或者OS支持等变更场景。其值从1开始单调递增。 - Y: 表示内部特性版本的补丁版本。仅用于特性版本上线后的软件包更新,不涉及其他修改。其值从0开始单调递增。 @@ -126,6 +130,7 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform self._category = None self._type = None self._flavor = None + self._enable_autopilot = None self._version = None self._platform_version = None self._description = None @@ -153,6 +158,8 @@ def __init__(self, category=None, type=None, flavor=None, version=None, platform if type is not None: self.type = type self.flavor = flavor + if enable_autopilot is not None: + self.enable_autopilot = enable_autopilot if version is not None: self.version = version if platform_version is not None: @@ -258,6 +265,28 @@ def flavor(self, flavor): """ self._flavor = flavor + @property + def enable_autopilot(self): + """Gets the enable_autopilot of this ClusterSpec. + + CCE Autopilot集群开关: - true:创建集群为CCE Autopilot集群 + + :return: The enable_autopilot of this ClusterSpec. + :rtype: bool + """ + return self._enable_autopilot + + @enable_autopilot.setter + def enable_autopilot(self, enable_autopilot): + """Sets the enable_autopilot of this ClusterSpec. + + CCE Autopilot集群开关: - true:创建集群为CCE Autopilot集群 + + :param enable_autopilot: The enable_autopilot of this ClusterSpec. + :type enable_autopilot: bool + """ + self._enable_autopilot = enable_autopilot + @property def version(self): """Gets the version of this ClusterSpec. diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py index 1abd76a7c6..7f6d25df75 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,6 +52,8 @@ class CceRegion: "https://cce.ae-ad-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://cce.eu-west-101.myhuaweicloud.eu") + CN_NORTH_11 = Region("cn-north-11", + "https://cce.cn-north-11.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -80,14 +79,15 @@ class CceRegion: "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, "eu-west-101": EU_WEST_101, + "cn-north-11": CN_NORTH_11, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +96,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cce': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index bc38003fea..3e49143978 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py b/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py index 86dca00a3e..ce5c3bb585 100644 --- a/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py +++ b/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class CcmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ccm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index c7404f2b11..383be62bf9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py index 3b084687ea..122c88a960 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py @@ -17,6 +17,7 @@ from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req import CdmRestartClusterReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req_restart import CdmRestartClusterReqRestart from huaweicloudsdkcdm.v1.model.cdm_start_cluster_req import CdmStartClusterReq +from huaweicloudsdkcdm.v1.model.cdm_start_job_req import CdmStartJobReq from huaweicloudsdkcdm.v1.model.cdm_stop_cluster_req import CdmStopClusterReq from huaweicloudsdkcdm.v1.model.cdm_stop_cluster_req_stop import CdmStopClusterReqStop from huaweicloudsdkcdm.v1.model.cdm_update_job_json_req import CdmUpdateJobJsonReq diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py index ed1dc2e3e0..7af35eb757 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py @@ -1087,13 +1087,15 @@ def _start_job_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py index 3da3714dd5..c5386e4829 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py @@ -1087,13 +1087,15 @@ def _start_job_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py index 38a875c353..cb5c3578f9 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py @@ -15,6 +15,7 @@ from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req import CdmRestartClusterReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req_restart import CdmRestartClusterReqRestart from huaweicloudsdkcdm.v1.model.cdm_start_cluster_req import CdmStartClusterReq +from huaweicloudsdkcdm.v1.model.cdm_start_job_req import CdmStartJobReq from huaweicloudsdkcdm.v1.model.cdm_stop_cluster_req import CdmStopClusterReq from huaweicloudsdkcdm.v1.model.cdm_stop_cluster_req_stop import CdmStopClusterReqStop from huaweicloudsdkcdm.v1.model.cdm_update_job_json_req import CdmUpdateJobJsonReq diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_start_job_req.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_start_job_req.py new file mode 100644 index 0000000000..d73824ac7c --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_start_job_req.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmStartJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'variables': 'object' + } + + attribute_map = { + 'variables': 'variables' + } + + def __init__(self, variables=None): + """CdmStartJobReq + + The model defined in huaweicloud sdk + + :param variables: 启动作业,配置变量参数,作业配置无变量时,为空对象 + :type variables: object + """ + + + + self._variables = None + self.discriminator = None + + if variables is not None: + self.variables = variables + + @property + def variables(self): + """Gets the variables of this CdmStartJobReq. + + 启动作业,配置变量参数,作业配置无变量时,为空对象 + + :return: The variables of this CdmStartJobReq. + :rtype: object + """ + return self._variables + + @variables.setter + def variables(self, variables): + """Sets the variables of this CdmStartJobReq. + + 启动作业,配置变量参数,作业配置无变量时,为空对象 + + :param variables: The variables of this CdmStartJobReq. + :type variables: object + """ + self._variables = variables + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmStartJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/start_job_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/start_job_request.py index e7b2a05cfc..5a28cc7896 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/start_job_request.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/start_job_request.py @@ -18,15 +18,17 @@ class StartJobRequest: openapi_types = { 'cluster_id': 'str', - 'job_name': 'str' + 'job_name': 'str', + 'body': 'CdmStartJobReq' } attribute_map = { 'cluster_id': 'cluster_id', - 'job_name': 'job_name' + 'job_name': 'job_name', + 'body': 'body' } - def __init__(self, cluster_id=None, job_name=None): + def __init__(self, cluster_id=None, job_name=None, body=None): """StartJobRequest The model defined in huaweicloud sdk @@ -35,16 +37,21 @@ def __init__(self, cluster_id=None, job_name=None): :type cluster_id: str :param job_name: 作业名称 :type job_name: str + :param body: Body of the StartJobRequest + :type body: :class:`huaweicloudsdkcdm.v1.CdmStartJobReq` """ self._cluster_id = None self._job_name = None + self._body = None self.discriminator = None self.cluster_id = cluster_id self.job_name = job_name + if body is not None: + self.body = body @property def cluster_id(self): @@ -90,6 +97,24 @@ def job_name(self, job_name): """ self._job_name = job_name + @property + def body(self): + """Gets the body of this StartJobRequest. + + :return: The body of this StartJobRequest. + :rtype: :class:`huaweicloudsdkcdm.v1.CdmStartJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartJobRequest. + + :param body: The body of this StartJobRequest. + :type body: :class:`huaweicloudsdkcdm.v1.CdmStartJobReq` + """ + self._body = body + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py index fff698ef91..fc7b3df34a 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class CdmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cdm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index cccbefb9ef..50706d31bd 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_top_url_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_top_url_request.py index 3f6542ee5b..aedc1b599e 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_top_url_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_top_url_request.py @@ -47,7 +47,7 @@ def __init__(self, enterprise_project_id=None, start_time=None, end_time=None, d :type end_time: int :param domain_name: 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。 :type domain_name: str - :param service_area: mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。 + :param service_area: mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为global(全球)。 :type service_area: str :param stat_type: 参数类型支持:flux(流量),req_num(请求总数)。 :type stat_type: str @@ -164,7 +164,7 @@ def domain_name(self, domain_name): def service_area(self): """Gets the service_area of this ShowTopUrlRequest. - mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。 + mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为global(全球)。 :return: The service_area of this ShowTopUrlRequest. :rtype: str @@ -175,7 +175,7 @@ def service_area(self): def service_area(self, service_area): """Sets the service_area of this ShowTopUrlRequest. - mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。 + mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为global(全球)。 :param service_area: The service_area of this ShowTopUrlRequest. :type service_area: str diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py index 29deca05fc..2c7215b09a 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -13,18 +10,21 @@ class CdnRegion: "https://cdn.myhuaweicloud.com") AP_SOUTHEAST_1 = Region("ap-southeast-1", "https://cdn.myhuaweicloud.com") + EU_WEST_101 = Region("eu-west-101", + "https://cdn.myhuaweicloud.eu") static_fields = { "cn-north-1": CN_NORTH_1, "ap-southeast-1": AP_SOUTHEAST_1, + "eu-west-101": EU_WEST_101, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cdn': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/__init__.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/__init__.py index 8c64c8b261..6b4e4d39f9 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/__init__.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/__init__.py @@ -49,6 +49,8 @@ from huaweicloudsdkcdn.v2.model.ip_filter import IpFilter from huaweicloudsdkcdn.v2.model.ip_frequency_limit import IpFrequencyLimit from huaweicloudsdkcdn.v2.model.ip_frequency_limit_query import IpFrequencyLimitQuery +from huaweicloudsdkcdn.v2.model.list_cdn_domain_top_refers_request import ListCdnDomainTopRefersRequest +from huaweicloudsdkcdn.v2.model.list_cdn_domain_top_refers_response import ListCdnDomainTopRefersResponse from huaweicloudsdkcdn.v2.model.list_domains_request import ListDomainsRequest from huaweicloudsdkcdn.v2.model.list_domains_response import ListDomainsResponse from huaweicloudsdkcdn.v2.model.modify_domain_config_request_body import ModifyDomainConfigRequestBody @@ -91,6 +93,7 @@ from huaweicloudsdkcdn.v2.model.sources_config import SourcesConfig from huaweicloudsdkcdn.v2.model.sources_domain_config import SourcesDomainConfig from huaweicloudsdkcdn.v2.model.tasks_object import TasksObject +from huaweicloudsdkcdn.v2.model.top_refer_summary import TopReferSummary from huaweicloudsdkcdn.v2.model.top_url_summary import TopUrlSummary from huaweicloudsdkcdn.v2.model.update_domain_full_config_request import UpdateDomainFullConfigRequest from huaweicloudsdkcdn.v2.model.update_domain_full_config_response import UpdateDomainFullConfigResponse diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_async_client.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_async_client.py index 9595ad32c5..9192738d88 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_async_client.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_async_client.py @@ -418,6 +418,89 @@ def _download_statistics_excel_http_info(self, request): return http_info + def list_cdn_domain_top_refers_async(self, request): + """查询统计TOP100 referer数据明细 + + - 查询TOP100 referer数据。 + + - 支持查询90天内的数据。 + + - 查询跨度不能超过31天。 + + - 单租户调用频率:2次/s。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListCdnDomainTopRefers + :type request: :class:`huaweicloudsdkcdn.v2.ListCdnDomainTopRefersRequest` + :rtype: :class:`huaweicloudsdkcdn.v2.ListCdnDomainTopRefersResponse` + """ + http_info = self._list_cdn_domain_top_refers_http_info(request) + return self._call_api(**http_info) + + def list_cdn_domain_top_refers_async_invoker(self, request): + http_info = self._list_cdn_domain_top_refers_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_cdn_domain_top_refers_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.0/cdn/statistics/top-refers", + "request_type": request.__class__.__name__, + "response_type": "ListCdnDomainTopRefersResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'stat_type' in local_var_params: + query_params.append(('stat_type', local_var_params['stat_type'])) + if 'service_area' in local_var_params: + query_params.append(('service_area', local_var_params['service_area'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'include_ratio' in local_var_params: + query_params.append(('include_ratio', local_var_params['include_ratio'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_domains_async(self, request): """查询加速域名 diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_client.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_client.py index 4849b0453f..034a56f603 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_client.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/cdn_client.py @@ -418,6 +418,89 @@ def _download_statistics_excel_http_info(cls, request): return http_info + def list_cdn_domain_top_refers(self, request): + """查询统计TOP100 referer数据明细 + + - 查询TOP100 referer数据。 + + - 支持查询90天内的数据。 + + - 查询跨度不能超过31天。 + + - 单租户调用频率:2次/s。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListCdnDomainTopRefers + :type request: :class:`huaweicloudsdkcdn.v2.ListCdnDomainTopRefersRequest` + :rtype: :class:`huaweicloudsdkcdn.v2.ListCdnDomainTopRefersResponse` + """ + http_info = self._list_cdn_domain_top_refers_http_info(request) + return self._call_api(**http_info) + + def list_cdn_domain_top_refers_invoker(self, request): + http_info = self._list_cdn_domain_top_refers_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_cdn_domain_top_refers_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.0/cdn/statistics/top-refers", + "request_type": request.__class__.__name__, + "response_type": "ListCdnDomainTopRefersResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'domain_name' in local_var_params: + query_params.append(('domain_name', local_var_params['domain_name'])) + if 'stat_type' in local_var_params: + query_params.append(('stat_type', local_var_params['stat_type'])) + if 'service_area' in local_var_params: + query_params.append(('service_area', local_var_params['service_area'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'include_ratio' in local_var_params: + query_params.append(('include_ratio', local_var_params['include_ratio'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_domains(self, request): """查询加速域名 diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/__init__.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/__init__.py index 886d5e0d6e..5011da2bef 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/__init__.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/__init__.py @@ -47,6 +47,8 @@ from huaweicloudsdkcdn.v2.model.ip_filter import IpFilter from huaweicloudsdkcdn.v2.model.ip_frequency_limit import IpFrequencyLimit from huaweicloudsdkcdn.v2.model.ip_frequency_limit_query import IpFrequencyLimitQuery +from huaweicloudsdkcdn.v2.model.list_cdn_domain_top_refers_request import ListCdnDomainTopRefersRequest +from huaweicloudsdkcdn.v2.model.list_cdn_domain_top_refers_response import ListCdnDomainTopRefersResponse from huaweicloudsdkcdn.v2.model.list_domains_request import ListDomainsRequest from huaweicloudsdkcdn.v2.model.list_domains_response import ListDomainsResponse from huaweicloudsdkcdn.v2.model.modify_domain_config_request_body import ModifyDomainConfigRequestBody @@ -89,6 +91,7 @@ from huaweicloudsdkcdn.v2.model.sources_config import SourcesConfig from huaweicloudsdkcdn.v2.model.sources_domain_config import SourcesDomainConfig from huaweicloudsdkcdn.v2.model.tasks_object import TasksObject +from huaweicloudsdkcdn.v2.model.top_refer_summary import TopReferSummary from huaweicloudsdkcdn.v2.model.top_url_summary import TopUrlSummary from huaweicloudsdkcdn.v2.model.update_domain_full_config_request import UpdateDomainFullConfigRequest from huaweicloudsdkcdn.v2.model.update_domain_full_config_response import UpdateDomainFullConfigResponse diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_request.py new file mode 100644 index 0000000000..77aa47fc74 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_request.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListCdnDomainTopRefersRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'int', + 'end_time': 'int', + 'domain_name': 'str', + 'stat_type': 'str', + 'service_area': 'str', + 'enterprise_project_id': 'str', + 'include_ratio': 'bool' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'domain_name': 'domain_name', + 'stat_type': 'stat_type', + 'service_area': 'service_area', + 'enterprise_project_id': 'enterprise_project_id', + 'include_ratio': 'include_ratio' + } + + def __init__(self, start_time=None, end_time=None, domain_name=None, stat_type=None, service_area=None, enterprise_project_id=None, include_ratio=None): + """ListCdnDomainTopRefersRequest + + The model defined in huaweicloud sdk + + :param start_time: 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00) + :type start_time: int + :param end_time: 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00) + :type end_time: int + :param domain_name: 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。 + :type domain_name: str + :param stat_type: - 统计指标类型 - 目前只支持flux(流量),req_num(请求数) + :type stat_type: str + :param service_area: 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) + :type service_area: str + :param enterprise_project_id: 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。 + :type enterprise_project_id: str + :param include_ratio: 是否包含百分比数据,默认false + :type include_ratio: bool + """ + + + + self._start_time = None + self._end_time = None + self._domain_name = None + self._stat_type = None + self._service_area = None + self._enterprise_project_id = None + self._include_ratio = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + self.domain_name = domain_name + self.stat_type = stat_type + if service_area is not None: + self.service_area = service_area + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if include_ratio is not None: + self.include_ratio = include_ratio + + @property + def start_time(self): + """Gets the start_time of this ListCdnDomainTopRefersRequest. + + 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00) + + :return: The start_time of this ListCdnDomainTopRefersRequest. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListCdnDomainTopRefersRequest. + + 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00) + + :param start_time: The start_time of this ListCdnDomainTopRefersRequest. + :type start_time: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListCdnDomainTopRefersRequest. + + 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00) + + :return: The end_time of this ListCdnDomainTopRefersRequest. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListCdnDomainTopRefersRequest. + + 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00) + + :param end_time: The end_time of this ListCdnDomainTopRefersRequest. + :type end_time: int + """ + self._end_time = end_time + + @property + def domain_name(self): + """Gets the domain_name of this ListCdnDomainTopRefersRequest. + + 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。 + + :return: The domain_name of this ListCdnDomainTopRefersRequest. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ListCdnDomainTopRefersRequest. + + 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。 + + :param domain_name: The domain_name of this ListCdnDomainTopRefersRequest. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def stat_type(self): + """Gets the stat_type of this ListCdnDomainTopRefersRequest. + + - 统计指标类型 - 目前只支持flux(流量),req_num(请求数) + + :return: The stat_type of this ListCdnDomainTopRefersRequest. + :rtype: str + """ + return self._stat_type + + @stat_type.setter + def stat_type(self, stat_type): + """Sets the stat_type of this ListCdnDomainTopRefersRequest. + + - 统计指标类型 - 目前只支持flux(流量),req_num(请求数) + + :param stat_type: The stat_type of this ListCdnDomainTopRefersRequest. + :type stat_type: str + """ + self._stat_type = stat_type + + @property + def service_area(self): + """Gets the service_area of this ListCdnDomainTopRefersRequest. + + 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) + + :return: The service_area of this ListCdnDomainTopRefersRequest. + :rtype: str + """ + return self._service_area + + @service_area.setter + def service_area(self, service_area): + """Sets the service_area of this ListCdnDomainTopRefersRequest. + + 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) + + :param service_area: The service_area of this ListCdnDomainTopRefersRequest. + :type service_area: str + """ + self._service_area = service_area + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListCdnDomainTopRefersRequest. + + 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。 + + :return: The enterprise_project_id of this ListCdnDomainTopRefersRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this ListCdnDomainTopRefersRequest. + + 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。 + + :param enterprise_project_id: The enterprise_project_id of this ListCdnDomainTopRefersRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def include_ratio(self): + """Gets the include_ratio of this ListCdnDomainTopRefersRequest. + + 是否包含百分比数据,默认false + + :return: The include_ratio of this ListCdnDomainTopRefersRequest. + :rtype: bool + """ + return self._include_ratio + + @include_ratio.setter + def include_ratio(self, include_ratio): + """Sets the include_ratio of this ListCdnDomainTopRefersRequest. + + 是否包含百分比数据,默认false + + :param include_ratio: The include_ratio of this ListCdnDomainTopRefersRequest. + :type include_ratio: bool + """ + self._include_ratio = include_ratio + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCdnDomainTopRefersRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_response.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_response.py new file mode 100644 index 0000000000..28ec12e957 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/list_cdn_domain_top_refers_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListCdnDomainTopRefersResponse(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 = { + 'top_refer_summary': 'list[TopReferSummary]' + } + + attribute_map = { + 'top_refer_summary': 'top_refer_summary' + } + + def __init__(self, top_refer_summary=None): + """ListCdnDomainTopRefersResponse + + The model defined in huaweicloud sdk + + :param top_refer_summary: 详情数据对象。 + :type top_refer_summary: list[:class:`huaweicloudsdkcdn.v2.TopReferSummary`] + """ + + super(ListCdnDomainTopRefersResponse, self).__init__() + + self._top_refer_summary = None + self.discriminator = None + + if top_refer_summary is not None: + self.top_refer_summary = top_refer_summary + + @property + def top_refer_summary(self): + """Gets the top_refer_summary of this ListCdnDomainTopRefersResponse. + + 详情数据对象。 + + :return: The top_refer_summary of this ListCdnDomainTopRefersResponse. + :rtype: list[:class:`huaweicloudsdkcdn.v2.TopReferSummary`] + """ + return self._top_refer_summary + + @top_refer_summary.setter + def top_refer_summary(self, top_refer_summary): + """Sets the top_refer_summary of this ListCdnDomainTopRefersResponse. + + 详情数据对象。 + + :param top_refer_summary: The top_refer_summary of this ListCdnDomainTopRefersResponse. + :type top_refer_summary: list[:class:`huaweicloudsdkcdn.v2.TopReferSummary`] + """ + self._top_refer_summary = top_refer_summary + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListCdnDomainTopRefersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_top_url_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_top_url_request.py index c33398bd1d..238e6e85b3 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_top_url_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_top_url_request.py @@ -47,7 +47,7 @@ def __init__(self, start_time=None, end_time=None, domain_name=None, stat_type=N :type domain_name: str :param stat_type: - 参数类型支持:flux(流量),req_num(请求数) :type stat_type: str - :param service_area: 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china + :param service_area: 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) :type service_area: str :param enterprise_project_id: 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。 :type enterprise_project_id: str @@ -164,7 +164,7 @@ def stat_type(self, stat_type): def service_area(self): """Gets the service_area of this ShowTopUrlRequest. - 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china + 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) :return: The service_area of this ShowTopUrlRequest. :rtype: str @@ -175,7 +175,7 @@ def service_area(self): def service_area(self, service_area): """Sets the service_area of this ShowTopUrlRequest. - 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china + 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为global(全球) :param service_area: The service_area of this ShowTopUrlRequest. :type service_area: str diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/top_refer_summary.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/top_refer_summary.py new file mode 100644 index 0000000000..8d2b3c74b1 --- /dev/null +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/top_refer_summary.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TopReferSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'refer': 'str', + 'value': 'int', + 'ratio': 'float' + } + + attribute_map = { + 'refer': 'refer', + 'value': 'value', + 'ratio': 'ratio' + } + + def __init__(self, refer=None, value=None, ratio=None): + """TopReferSummary + + The model defined in huaweicloud sdk + + :param refer: referer值。 + :type refer: str + :param value: 对应查询类型的值。(流量单位:Byte) + :type value: int + :param ratio: 该referer的流量(或请求数)占当前查询条件下总流量(或请求数)的比例。保留4位小数 + :type ratio: float + """ + + + + self._refer = None + self._value = None + self._ratio = None + self.discriminator = None + + if refer is not None: + self.refer = refer + if value is not None: + self.value = value + if ratio is not None: + self.ratio = ratio + + @property + def refer(self): + """Gets the refer of this TopReferSummary. + + referer值。 + + :return: The refer of this TopReferSummary. + :rtype: str + """ + return self._refer + + @refer.setter + def refer(self, refer): + """Sets the refer of this TopReferSummary. + + referer值。 + + :param refer: The refer of this TopReferSummary. + :type refer: str + """ + self._refer = refer + + @property + def value(self): + """Gets the value of this TopReferSummary. + + 对应查询类型的值。(流量单位:Byte) + + :return: The value of this TopReferSummary. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TopReferSummary. + + 对应查询类型的值。(流量单位:Byte) + + :param value: The value of this TopReferSummary. + :type value: int + """ + self._value = value + + @property + def ratio(self): + """Gets the ratio of this TopReferSummary. + + 该referer的流量(或请求数)占当前查询条件下总流量(或请求数)的比例。保留4位小数 + + :return: The ratio of this TopReferSummary. + :rtype: float + """ + return self._ratio + + @ratio.setter + def ratio(self, ratio): + """Sets the ratio of this TopReferSummary. + + 该referer的流量(或请求数)占当前查询条件下总流量(或请求数)的比例。保留4位小数 + + :param ratio: The ratio of this TopReferSummary. + :type ratio: float + """ + self._ratio = ratio + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TopReferSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py index 29deca05fc..2c7215b09a 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -13,18 +10,21 @@ class CdnRegion: "https://cdn.myhuaweicloud.com") AP_SOUTHEAST_1 = Region("ap-southeast-1", "https://cdn.myhuaweicloud.com") + EU_WEST_101 = Region("eu-west-101", + "https://cdn.myhuaweicloud.eu") static_fields = { "cn-north-1": CN_NORTH_1, "ap-southeast-1": AP_SOUTHEAST_1, + "eu-west-101": EU_WEST_101, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cdn': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index d84cccf49f..928971ddf9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py index abf5638d4a..00be565134 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class CesRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ces': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py index abf5638d4a..00be565134 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class CesRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ces': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py index abf5638d4a..00be565134 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v3/region/ces_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class CesRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ces': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 97bb267acc..bfc66e1f5b 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py index a49a494457..782b7aa5e6 100644 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class CfwRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cfw': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 0ffa7de1a0..319593c990 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py b/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py index a8ca5233a0..55391e8bb7 100644 --- a/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py +++ b/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class CgsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cgs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 118b64beb6..32a32a8511 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py b/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py index ad2626d318..eb2b0f0cee 100644 --- a/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py +++ b/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class ClassroomRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Classroom': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index d1d2888841..d2de2c967c 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py index e8fa33b25b..19c4078248 100644 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CloudIDERegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CloudIDE': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index aa89b45f56..a000202fc9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/region/cloudpond_region.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/region/cloudpond_region.py index 25e2d8374b..acd90a8367 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/region/cloudpond_region.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/region/cloudpond_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CloudPondRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CloudPond': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 75a741977b..826091baa6 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py index ee801ffd5c..fc32743478 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CloudRTCRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CloudRTC': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py index ee801ffd5c..fc32743478 100644 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CloudRTCRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CloudRTC': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index c6acd03dab..1eccbee7d8 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py index e52fd984ab..6dbe96c539 100644 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -52,9 +49,9 @@ class CloudTableRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -63,6 +60,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CloudTable': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 60cc832615..3e8f84440c 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py b/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py index d82f2d141d..77e3611d27 100644 --- a/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py +++ b/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class CloudtestRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cloudtest': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 4daac86cee..e63c988c68 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py index 21b05797ab..967efddf38 100644 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -37,9 +34,9 @@ class CodeArtsArtifactRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -48,6 +45,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsArtifact': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 4247c8de60..60decfc951 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py index cb29a8a513..b573988788 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -46,9 +43,9 @@ class CodeArtsBuildRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -57,6 +54,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsBuild': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 6acc2d9f7e..19e4f6573e 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/huaweicloudsdkcodeartscheck/v2/region/codeartscheck_region.py b/huaweicloud-sdk-codeartscheck/huaweicloudsdkcodeartscheck/v2/region/codeartscheck_region.py index 2d78a60f95..a6627fce6b 100644 --- a/huaweicloud-sdk-codeartscheck/huaweicloudsdkcodeartscheck/v2/region/codeartscheck_region.py +++ b/huaweicloud-sdk-codeartscheck/huaweicloudsdkcodeartscheck/v2/region/codeartscheck_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -45,9 +42,9 @@ class CodeArtsCheckRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -56,6 +53,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsCheck': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 03367d2a73..7751d33cf7 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/region/codeartsdeploy_region.py b/huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/region/codeartsdeploy_region.py index 2a48e03738..87934a181e 100644 --- a/huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/region/codeartsdeploy_region.py +++ b/huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/region/codeartsdeploy_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class CodeArtsDeployRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsDeploy': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index bcfef54b39..98d527ed9e 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/huaweicloudsdkcodeartsinspector/v3/region/codeartsinspector_region.py b/huaweicloud-sdk-codeartsinspector/huaweicloudsdkcodeartsinspector/v3/region/codeartsinspector_region.py index 5f955b0853..ed31244ae7 100644 --- a/huaweicloud-sdk-codeartsinspector/huaweicloudsdkcodeartsinspector/v3/region/codeartsinspector_region.py +++ b/huaweicloud-sdk-codeartsinspector/huaweicloudsdkcodeartsinspector/v3/region/codeartsinspector_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CodeArtsInspectorRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsInspector': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index e18b75d56c..8519b147c9 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/region/codeartspipeline_region.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/region/codeartspipeline_region.py index 46c6859df8..dbe92197fc 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/region/codeartspipeline_region.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/region/codeartspipeline_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -49,9 +46,9 @@ class CodeArtsPipelineRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -60,6 +57,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeArtsPipeline': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 3f6db0e4ab..f84ff110d5 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py b/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py index f2852cb101..9a0ec05394 100644 --- a/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py +++ b/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class CodeCraftRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeCraft': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index a8e30a6125..68c721c31e 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py b/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py index 2e70bec083..dfc66e9200 100644 --- a/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py +++ b/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class CodeHubRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'CodeHub': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 6d7f63924f..b782cfb723 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/region/config_region.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/region/config_region.py index df287fbb1e..2688790c9f 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/region/config_region.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/region/config_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class ConfigRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Config': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index bf44c65af5..164db0a312 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index cf7cf0a94b..4c0796b4c3 100644 --- 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.77" +VERSION = "3.1.78" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py b/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py index a758fb3be2..36046d5d5f 100644 --- a/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py +++ b/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class CphRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cph': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 20b65370f8..29b7f8a3c1 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_async_client.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_async_client.py index b4be723425..717e45b3d2 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_async_client.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_async_client.py @@ -100,9 +100,9 @@ def _batch_update_task_status_http_info(self, request): return http_info def create_case_async(self, request): - """创建用例 + """创建用例(旧版) - 创建用例 + 创建用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -232,9 +232,9 @@ def _create_directory_http_info(self, request): return http_info def create_new_case_async(self, request): - """创建用例v2 + """创建用例 - 创建用例v2 + 创建用例 Please refer to HUAWEI cloud API Explorer for details. @@ -297,9 +297,9 @@ def _create_new_case_http_info(self, request): return http_info def create_new_task_async(self, request): - """创建任务v3 + """创建任务 - 创建任务v3 + 创建任务 Please refer to HUAWEI cloud API Explorer for details. @@ -362,9 +362,9 @@ def _create_new_task_http_info(self, request): return http_info def create_task_async(self, request): - """创建任务 + """创建任务(旧版) - 创建任务 + 创建任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -630,9 +630,9 @@ def _debug_case_http_info(self, request): return http_info def delete_case_async(self, request): - """删除用例 + """删除用例(旧版) - 删除用例 + 删除用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -762,9 +762,9 @@ def _delete_directory_http_info(self, request): return http_info def delete_new_case_async(self, request): - """删除用例v2 + """删除用例 - 删除用例v2 + 删除用例 Please refer to HUAWEI cloud API Explorer for details. @@ -827,9 +827,9 @@ def _delete_new_case_http_info(self, request): return http_info def delete_new_task_async(self, request): - """删除任务v3 + """删除任务 - 删除任务v3 + 删除任务 Please refer to HUAWEI cloud API Explorer for details. @@ -892,9 +892,9 @@ def _delete_new_task_http_info(self, request): return http_info def delete_task_async(self, request): - """删除任务 + """删除任务(旧版) - 删除任务 + 删除任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -1483,9 +1483,9 @@ def _show_history_run_info_http_info(self, request): return http_info def show_merge_case_detail_async(self, request): - """内外融合单个用例的详情数据 + """查询用例报告详情 - 查询单个用例的详情数据 + 查询用例报告详情 Please refer to HUAWEI cloud API Explorer for details. @@ -1550,9 +1550,9 @@ def _show_merge_case_detail_http_info(self, request): return http_info def show_merge_report_logs_outline_async(self, request): - """查询报告汇总数据接口 + """查询报告汇总数据 - 查询报告汇总数据接口 + 查询报告汇总数据 Please refer to HUAWEI cloud API Explorer for details. @@ -1615,9 +1615,9 @@ def _show_merge_report_logs_outline_http_info(self, request): return http_info def show_merge_task_case_async(self, request): - """内外融合当前任务用例列表接口 + """查询任务报告的用例列表 - 查询当前任务用例列表接口 + 查询任务报告的用例列表 Please refer to HUAWEI cloud API Explorer for details. @@ -1749,9 +1749,9 @@ def _show_report_http_info(self, request): return http_info def show_task_async(self, request): - """查询任务 + """查询任务(旧版) - 查询任务 + 查询任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -1814,9 +1814,9 @@ def _show_task_http_info(self, request): return http_info def show_task_case_aw_chart_async(self, request): - """内外融合获取用例的AW曲线图获取接口 + """查询用例的AW曲线图 - 内外融合获取用例的AW曲线图获取接口 + 查询用例的AW曲线图 Please refer to HUAWEI cloud API Explorer for details. @@ -2153,9 +2153,9 @@ def _update_agent_health_status_http_info(self, request): return http_info def update_case_async(self, request): - """修改用例 + """修改用例(旧版) - 修改用例 + 修改用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -2291,9 +2291,9 @@ def _update_directory_http_info(self, request): return http_info def update_new_case_async(self, request): - """修改用例v2 + """修改用例 - 修改用例v2 + 修改用例 Please refer to HUAWEI cloud API Explorer for details. @@ -2358,9 +2358,9 @@ def _update_new_case_http_info(self, request): return http_info def update_task_async(self, request): - """修改任务 + """修改任务(旧版) - 修改任务 + 修改任务(旧版) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_client.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_client.py index e00b3b2c02..9a97a2c83d 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_client.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/cpts_client.py @@ -100,9 +100,9 @@ def _batch_update_task_status_http_info(cls, request): return http_info def create_case(self, request): - """创建用例 + """创建用例(旧版) - 创建用例 + 创建用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -232,9 +232,9 @@ def _create_directory_http_info(cls, request): return http_info def create_new_case(self, request): - """创建用例v2 + """创建用例 - 创建用例v2 + 创建用例 Please refer to HUAWEI cloud API Explorer for details. @@ -297,9 +297,9 @@ def _create_new_case_http_info(cls, request): return http_info def create_new_task(self, request): - """创建任务v3 + """创建任务 - 创建任务v3 + 创建任务 Please refer to HUAWEI cloud API Explorer for details. @@ -362,9 +362,9 @@ def _create_new_task_http_info(cls, request): return http_info def create_task(self, request): - """创建任务 + """创建任务(旧版) - 创建任务 + 创建任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -630,9 +630,9 @@ def _debug_case_http_info(cls, request): return http_info def delete_case(self, request): - """删除用例 + """删除用例(旧版) - 删除用例 + 删除用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -762,9 +762,9 @@ def _delete_directory_http_info(cls, request): return http_info def delete_new_case(self, request): - """删除用例v2 + """删除用例 - 删除用例v2 + 删除用例 Please refer to HUAWEI cloud API Explorer for details. @@ -827,9 +827,9 @@ def _delete_new_case_http_info(cls, request): return http_info def delete_new_task(self, request): - """删除任务v3 + """删除任务 - 删除任务v3 + 删除任务 Please refer to HUAWEI cloud API Explorer for details. @@ -892,9 +892,9 @@ def _delete_new_task_http_info(cls, request): return http_info def delete_task(self, request): - """删除任务 + """删除任务(旧版) - 删除任务 + 删除任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -1483,9 +1483,9 @@ def _show_history_run_info_http_info(cls, request): return http_info def show_merge_case_detail(self, request): - """内外融合单个用例的详情数据 + """查询用例报告详情 - 查询单个用例的详情数据 + 查询用例报告详情 Please refer to HUAWEI cloud API Explorer for details. @@ -1550,9 +1550,9 @@ def _show_merge_case_detail_http_info(cls, request): return http_info def show_merge_report_logs_outline(self, request): - """查询报告汇总数据接口 + """查询报告汇总数据 - 查询报告汇总数据接口 + 查询报告汇总数据 Please refer to HUAWEI cloud API Explorer for details. @@ -1615,9 +1615,9 @@ def _show_merge_report_logs_outline_http_info(cls, request): return http_info def show_merge_task_case(self, request): - """内外融合当前任务用例列表接口 + """查询任务报告的用例列表 - 查询当前任务用例列表接口 + 查询任务报告的用例列表 Please refer to HUAWEI cloud API Explorer for details. @@ -1749,9 +1749,9 @@ def _show_report_http_info(cls, request): return http_info def show_task(self, request): - """查询任务 + """查询任务(旧版) - 查询任务 + 查询任务(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -1814,9 +1814,9 @@ def _show_task_http_info(cls, request): return http_info def show_task_case_aw_chart(self, request): - """内外融合获取用例的AW曲线图获取接口 + """查询用例的AW曲线图 - 内外融合获取用例的AW曲线图获取接口 + 查询用例的AW曲线图 Please refer to HUAWEI cloud API Explorer for details. @@ -2153,9 +2153,9 @@ def _update_agent_health_status_http_info(cls, request): return http_info def update_case(self, request): - """修改用例 + """修改用例(旧版) - 修改用例 + 修改用例(旧版) Please refer to HUAWEI cloud API Explorer for details. @@ -2291,9 +2291,9 @@ def _update_directory_http_info(cls, request): return http_info def update_new_case(self, request): - """修改用例v2 + """修改用例 - 修改用例v2 + 修改用例 Please refer to HUAWEI cloud API Explorer for details. @@ -2358,9 +2358,9 @@ def _update_new_case_http_info(cls, request): return http_info def update_task(self, request): - """修改任务 + """修改任务(旧版) - 修改任务 + 修改任务(旧版) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/agent_config.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/agent_config.py index b49dc562d8..49a86cee3a 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/agent_config.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/agent_config.py @@ -38,9 +38,7 @@ class AgentConfig: 'clickhouse_shadow_repository': 'str', 'pulsar_enable': 'bool', 'pulsar_shadow_topic_prefix': 'str', - 'elasticsearch_enable': 'bool', - 'elasticsearch_shadow_type': 'str', - 'elasticsearch_shadow_repository': 'str' + 'extensions': 'str' } attribute_map = { @@ -65,12 +63,10 @@ class AgentConfig: 'clickhouse_shadow_repository': 'clickhouse_shadow_repository', 'pulsar_enable': 'pulsar_enable', 'pulsar_shadow_topic_prefix': 'pulsar_shadow_topic_prefix', - 'elasticsearch_enable': 'elasticsearch_enable', - 'elasticsearch_shadow_type': 'elasticsearch_shadow_type', - 'elasticsearch_shadow_repository': 'elasticsearch_shadow_repository' + 'extensions': 'extensions' } - def __init__(self, agent_id=None, db_enable=None, db_shadow_repository=None, db_shadow_type=None, log_level=None, log_path=None, main_switch=None, redis_enable=None, redis_shadow_key_prefix=None, redis_shadow_repository=None, redis_shadow_type=None, kafka_enable=None, kafka_shadow_topic_prefix=None, app_log_level=None, app_log_path=None, mock_rule_list=None, clickhouse_enable=None, clickhouse_shadow_type=None, clickhouse_shadow_repository=None, pulsar_enable=None, pulsar_shadow_topic_prefix=None, elasticsearch_enable=None, elasticsearch_shadow_type=None, elasticsearch_shadow_repository=None): + def __init__(self, agent_id=None, db_enable=None, db_shadow_repository=None, db_shadow_type=None, log_level=None, log_path=None, main_switch=None, redis_enable=None, redis_shadow_key_prefix=None, redis_shadow_repository=None, redis_shadow_type=None, kafka_enable=None, kafka_shadow_topic_prefix=None, app_log_level=None, app_log_path=None, mock_rule_list=None, clickhouse_enable=None, clickhouse_shadow_type=None, clickhouse_shadow_repository=None, pulsar_enable=None, pulsar_shadow_topic_prefix=None, extensions=None): """AgentConfig The model defined in huaweicloud sdk @@ -117,12 +113,8 @@ def __init__(self, agent_id=None, db_enable=None, db_shadow_repository=None, db_ :type pulsar_enable: bool :param pulsar_shadow_topic_prefix: pulsar影子库前缀 :type pulsar_shadow_topic_prefix: str - :param elasticsearch_enable: elasticsearch影子规则开关 - :type elasticsearch_enable: bool - :param elasticsearch_shadow_type: elasticsearch影子规则类型 - :type elasticsearch_shadow_type: str - :param elasticsearch_shadow_repository: elasticsearch影子库映射信息 - :type elasticsearch_shadow_repository: str + :param extensions: 自定义配置 + :type extensions: str """ @@ -148,9 +140,7 @@ def __init__(self, agent_id=None, db_enable=None, db_shadow_repository=None, db_ self._clickhouse_shadow_repository = None self._pulsar_enable = None self._pulsar_shadow_topic_prefix = None - self._elasticsearch_enable = None - self._elasticsearch_shadow_type = None - self._elasticsearch_shadow_repository = None + self._extensions = None self.discriminator = None if agent_id is not None: @@ -195,12 +185,8 @@ def __init__(self, agent_id=None, db_enable=None, db_shadow_repository=None, db_ self.pulsar_enable = pulsar_enable if pulsar_shadow_topic_prefix is not None: self.pulsar_shadow_topic_prefix = pulsar_shadow_topic_prefix - if elasticsearch_enable is not None: - self.elasticsearch_enable = elasticsearch_enable - if elasticsearch_shadow_type is not None: - self.elasticsearch_shadow_type = elasticsearch_shadow_type - if elasticsearch_shadow_repository is not None: - self.elasticsearch_shadow_repository = elasticsearch_shadow_repository + if extensions is not None: + self.extensions = extensions @property def agent_id(self): @@ -665,70 +651,26 @@ def pulsar_shadow_topic_prefix(self, pulsar_shadow_topic_prefix): self._pulsar_shadow_topic_prefix = pulsar_shadow_topic_prefix @property - def elasticsearch_enable(self): - """Gets the elasticsearch_enable of this AgentConfig. + def extensions(self): + """Gets the extensions of this AgentConfig. - elasticsearch影子规则开关 + 自定义配置 - :return: The elasticsearch_enable of this AgentConfig. - :rtype: bool - """ - return self._elasticsearch_enable - - @elasticsearch_enable.setter - def elasticsearch_enable(self, elasticsearch_enable): - """Sets the elasticsearch_enable of this AgentConfig. - - elasticsearch影子规则开关 - - :param elasticsearch_enable: The elasticsearch_enable of this AgentConfig. - :type elasticsearch_enable: bool - """ - self._elasticsearch_enable = elasticsearch_enable - - @property - def elasticsearch_shadow_type(self): - """Gets the elasticsearch_shadow_type of this AgentConfig. - - elasticsearch影子规则类型 - - :return: The elasticsearch_shadow_type of this AgentConfig. - :rtype: str - """ - return self._elasticsearch_shadow_type - - @elasticsearch_shadow_type.setter - def elasticsearch_shadow_type(self, elasticsearch_shadow_type): - """Sets the elasticsearch_shadow_type of this AgentConfig. - - elasticsearch影子规则类型 - - :param elasticsearch_shadow_type: The elasticsearch_shadow_type of this AgentConfig. - :type elasticsearch_shadow_type: str - """ - self._elasticsearch_shadow_type = elasticsearch_shadow_type - - @property - def elasticsearch_shadow_repository(self): - """Gets the elasticsearch_shadow_repository of this AgentConfig. - - elasticsearch影子库映射信息 - - :return: The elasticsearch_shadow_repository of this AgentConfig. + :return: The extensions of this AgentConfig. :rtype: str """ - return self._elasticsearch_shadow_repository + return self._extensions - @elasticsearch_shadow_repository.setter - def elasticsearch_shadow_repository(self, elasticsearch_shadow_repository): - """Sets the elasticsearch_shadow_repository of this AgentConfig. + @extensions.setter + def extensions(self, extensions): + """Sets the extensions of this AgentConfig. - elasticsearch影子库映射信息 + 自定义配置 - :param elasticsearch_shadow_repository: The elasticsearch_shadow_repository of this AgentConfig. - :type elasticsearch_shadow_repository: str + :param extensions: The extensions of this AgentConfig. + :type extensions: str """ - self._elasticsearch_shadow_repository = elasticsearch_shadow_repository + self._extensions = extensions def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/batch_update_task_status_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/batch_update_task_status_request_body.py index 197e1e324c..74a268fb1d 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/batch_update_task_status_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/batch_update_task_status_request_body.py @@ -51,15 +51,15 @@ def __init__(self, type=None, project_id=None, task_id_list=None, cluster_id=Non :type project_id: int :param task_id_list: 任务id列表 :type task_id_list: list[int] - :param cluster_id: cluster_id + :param cluster_id: 资源组id :type cluster_id: int - :param cluster_type: cluster_type + :param cluster_type: 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :type cluster_type: str - :param without_package: without_package + :param without_package: 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :type without_package: int :param network_info: :type network_info: :class:`huaweicloudsdkcpts.v1.NetworkInfo` - :param status: status + :param status: 状态(9:启动任务;2:停止任务) :type status: int :param enterprise_project_id: 企业项目id :type enterprise_project_id: str @@ -162,7 +162,7 @@ def task_id_list(self, task_id_list): def cluster_id(self): """Gets the cluster_id of this BatchUpdateTaskStatusRequestBody. - cluster_id + 资源组id :return: The cluster_id of this BatchUpdateTaskStatusRequestBody. :rtype: int @@ -173,7 +173,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this BatchUpdateTaskStatusRequestBody. - cluster_id + 资源组id :param cluster_id: The cluster_id of this BatchUpdateTaskStatusRequestBody. :type cluster_id: int @@ -184,7 +184,7 @@ def cluster_id(self, cluster_id): def cluster_type(self): """Gets the cluster_type of this BatchUpdateTaskStatusRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :return: The cluster_type of this BatchUpdateTaskStatusRequestBody. :rtype: str @@ -195,7 +195,7 @@ def cluster_type(self): def cluster_type(self, cluster_type): """Sets the cluster_type of this BatchUpdateTaskStatusRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :param cluster_type: The cluster_type of this BatchUpdateTaskStatusRequestBody. :type cluster_type: str @@ -206,7 +206,7 @@ def cluster_type(self, cluster_type): def without_package(self): """Gets the without_package of this BatchUpdateTaskStatusRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :return: The without_package of this BatchUpdateTaskStatusRequestBody. :rtype: int @@ -217,7 +217,7 @@ def without_package(self): def without_package(self, without_package): """Sets the without_package of this BatchUpdateTaskStatusRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :param without_package: The without_package of this BatchUpdateTaskStatusRequestBody. :type without_package: int @@ -246,7 +246,7 @@ def network_info(self, network_info): def status(self): """Gets the status of this BatchUpdateTaskStatusRequestBody. - status + 状态(9:启动任务;2:停止任务) :return: The status of this BatchUpdateTaskStatusRequestBody. :rtype: int @@ -257,7 +257,7 @@ def status(self): def status(self, status): """Sets the status of this BatchUpdateTaskStatusRequestBody. - status + 状态(9:启动任务;2:停止任务) :param status: The status of this BatchUpdateTaskStatusRequestBody. :type status: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_aw_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_aw_info.py index 296b0f37d9..68460a0fe8 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_aw_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_aw_info.py @@ -51,7 +51,7 @@ def __init__(self, aw=None, aw_list=None, case_aw_id=None, case_uri=None, case_u The model defined in huaweicloud sdk - :param aw: aw信息Dto + :param aw: aw信息 :type aw: list[:class:`huaweicloudsdkcpts.v1.AwInfoDTO`] :param aw_list: aw详细信息列表 :type aw_list: list[:class:`huaweicloudsdkcpts.v1.DetailItem`] @@ -122,7 +122,7 @@ def __init__(self, aw=None, aw_list=None, case_aw_id=None, case_uri=None, case_u def aw(self): """Gets the aw of this CaseAwInfo. - aw信息Dto + aw信息 :return: The aw of this CaseAwInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.AwInfoDTO`] @@ -133,7 +133,7 @@ def aw(self): def aw(self, aw): """Sets the aw of this CaseAwInfo. - aw信息Dto + aw信息 :param aw: The aw of this CaseAwInfo. :type aw: list[:class:`huaweicloudsdkcpts.v1.AwInfoDTO`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_info_detail.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_info_detail.py index 128347565d..510a0557be 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_info_detail.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_info_detail.py @@ -59,23 +59,23 @@ def __init__(self, case_id=None, name=None, case_type=None, contents=None, for_l The model defined in huaweicloud sdk - :param case_id: case_id + :param case_id: 用例id :type case_id: int :param name: 用例名称 :type name: str - :param case_type: case_type + :param case_type: 用例类型(0:常规用例;) :type case_type: int - :param contents: contents + :param contents: 用例脚本信息 :type contents: list[:class:`huaweicloudsdkcpts.v1.Contents`] - :param for_loop_params: for_loop_params + :param for_loop_params: 旧版本逻辑控制器字段,当前已未使用 :type for_loop_params: list[object] - :param increase_setting: increase_setting + :param increase_setting: 梯度递增 :type increase_setting: list[object] - :param stages: stages + :param stages: 阶段信息 :type stages: list[:class:`huaweicloudsdkcpts.v1.TestCaseStage`] :param status: 状态,0:已删除;1:启用;2:禁用 :type status: int - :param temp_id: temp_id + :param temp_id: 用例id :type temp_id: int :param sort: 排序字段 :type sort: int @@ -150,7 +150,7 @@ def __init__(self, case_id=None, name=None, case_type=None, contents=None, for_l def case_id(self): """Gets the case_id of this CaseInfoDetail. - case_id + 用例id :return: The case_id of this CaseInfoDetail. :rtype: int @@ -161,7 +161,7 @@ def case_id(self): def case_id(self, case_id): """Sets the case_id of this CaseInfoDetail. - case_id + 用例id :param case_id: The case_id of this CaseInfoDetail. :type case_id: int @@ -194,7 +194,7 @@ def name(self, name): def case_type(self): """Gets the case_type of this CaseInfoDetail. - case_type + 用例类型(0:常规用例;) :return: The case_type of this CaseInfoDetail. :rtype: int @@ -205,7 +205,7 @@ def case_type(self): def case_type(self, case_type): """Sets the case_type of this CaseInfoDetail. - case_type + 用例类型(0:常规用例;) :param case_type: The case_type of this CaseInfoDetail. :type case_type: int @@ -216,7 +216,7 @@ def case_type(self, case_type): def contents(self): """Gets the contents of this CaseInfoDetail. - contents + 用例脚本信息 :return: The contents of this CaseInfoDetail. :rtype: list[:class:`huaweicloudsdkcpts.v1.Contents`] @@ -227,7 +227,7 @@ def contents(self): def contents(self, contents): """Sets the contents of this CaseInfoDetail. - contents + 用例脚本信息 :param contents: The contents of this CaseInfoDetail. :type contents: list[:class:`huaweicloudsdkcpts.v1.Contents`] @@ -238,7 +238,7 @@ def contents(self, contents): def for_loop_params(self): """Gets the for_loop_params of this CaseInfoDetail. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :return: The for_loop_params of this CaseInfoDetail. :rtype: list[object] @@ -249,7 +249,7 @@ def for_loop_params(self): def for_loop_params(self, for_loop_params): """Sets the for_loop_params of this CaseInfoDetail. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :param for_loop_params: The for_loop_params of this CaseInfoDetail. :type for_loop_params: list[object] @@ -260,7 +260,7 @@ def for_loop_params(self, for_loop_params): def increase_setting(self): """Gets the increase_setting of this CaseInfoDetail. - increase_setting + 梯度递增 :return: The increase_setting of this CaseInfoDetail. :rtype: list[object] @@ -271,7 +271,7 @@ def increase_setting(self): def increase_setting(self, increase_setting): """Sets the increase_setting of this CaseInfoDetail. - increase_setting + 梯度递增 :param increase_setting: The increase_setting of this CaseInfoDetail. :type increase_setting: list[object] @@ -282,7 +282,7 @@ def increase_setting(self, increase_setting): def stages(self): """Gets the stages of this CaseInfoDetail. - stages + 阶段信息 :return: The stages of this CaseInfoDetail. :rtype: list[:class:`huaweicloudsdkcpts.v1.TestCaseStage`] @@ -293,7 +293,7 @@ def stages(self): def stages(self, stages): """Sets the stages of this CaseInfoDetail. - stages + 阶段信息 :param stages: The stages of this CaseInfoDetail. :type stages: list[:class:`huaweicloudsdkcpts.v1.TestCaseStage`] @@ -326,7 +326,7 @@ def status(self, status): def temp_id(self): """Gets the temp_id of this CaseInfoDetail. - temp_id + 用例id :return: The temp_id of this CaseInfoDetail. :rtype: int @@ -337,7 +337,7 @@ def temp_id(self): def temp_id(self, temp_id): """Sets the temp_id of this CaseInfoDetail. - temp_id + 用例id :param temp_id: The temp_id of this CaseInfoDetail. :type temp_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_report_detail.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_report_detail.py index a46c0d6e47..e5f3cc2d96 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_report_detail.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/case_report_detail.py @@ -441,7 +441,7 @@ def __init__(self, max_success_rate_check_point=None, alias=None, average_resp_t :type avg_tran_resp_time_check_point: float :param avg_tran_resp_time_check_res: 事务平均响应时间检查结果 :type avg_tran_resp_time_check_res: bool - :param aw_id: awId + :param aw_id: 请求id :type aw_id: str :param case_uri: 用例Uri :type case_uri: str @@ -1712,7 +1712,7 @@ def avg_tran_resp_time_check_res(self, avg_tran_resp_time_check_res): def aw_id(self): """Gets the aw_id of this CaseReportDetail. - awId + 请求id :return: The aw_id of this CaseReportDetail. :rtype: str @@ -1723,7 +1723,7 @@ def aw_id(self): def aw_id(self, aw_id): """Sets the aw_id of this CaseReportDetail. - awId + 请求id :param aw_id: The aw_id of this CaseReportDetail. :type aw_id: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/code_message_resq.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/code_message_resq.py index 034c742bed..354cc7e067 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/code_message_resq.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/code_message_resq.py @@ -31,9 +31,9 @@ def __init__(self, code=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str """ @@ -52,7 +52,7 @@ def __init__(self, code=None, message=None): def code(self): """Gets the code of this CodeMessageResq. - code + 响应码 :return: The code of this CodeMessageResq. :rtype: str @@ -63,7 +63,7 @@ def code(self): def code(self, code): """Sets the code of this CodeMessageResq. - code + 响应码 :param code: The code of this CodeMessageResq. :type code: str @@ -74,7 +74,7 @@ def code(self, code): def message(self): """Gets the message of this CodeMessageResq. - message + 响应消息 :return: The message of this CodeMessageResq. :rtype: str @@ -85,7 +85,7 @@ def message(self): def message(self, message): """Sets the message of this CodeMessageResq. - message + 响应消息 :param message: The message of this CodeMessageResq. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content.py index 5bdb6ade6d..1d74f96845 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content.py @@ -31,7 +31,7 @@ def __init__(self, content_type=None, content=None): The model defined in huaweicloud sdk - :param content_type: content_type + :param content_type: 用例卡片类型(1:思考时间;2:报文;3:检查点;4:变量提取) :type content_type: int :param content: :type content: :class:`huaweicloudsdkcpts.v1.ContentInfo` @@ -52,7 +52,7 @@ def __init__(self, content_type=None, content=None): def content_type(self): """Gets the content_type of this Content. - content_type + 用例卡片类型(1:思考时间;2:报文;3:检查点;4:变量提取) :return: The content_type of this Content. :rtype: int @@ -63,7 +63,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this Content. - content_type + 用例卡片类型(1:思考时间;2:报文;3:检查点;4:变量提取) :param content_type: The content_type of this Content. :type content_type: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_header.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_header.py index bd741f2b98..ff9f23830e 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_header.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_header.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: key + :param key: 键 :type key: str - :param value: value + :param value: 值 :type value: str """ @@ -52,7 +52,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this ContentHeader. - key + 键 :return: The key of this ContentHeader. :rtype: str @@ -63,7 +63,7 @@ def key(self): def key(self, key): """Sets the key of this ContentHeader. - key + 键 :param key: The key of this ContentHeader. :type key: str @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this ContentHeader. - value + 值 :return: The value of this ContentHeader. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this ContentHeader. - value + 值 :param value: The value of this ContentHeader. :type value: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_info.py index 3d212e6c18..88fcfddf99 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/content_info.py @@ -69,7 +69,7 @@ def __init__(self, body_type=None, bodys=None, check_end_length=None, check_end_ The model defined in huaweicloud sdk - :param body_type: body_type + :param body_type: body类型(0:字符串;1:form-data格式;3:x-www-form-urlencoded格式) :type body_type: int :param bodys: bodys :type bodys: list[object] @@ -79,25 +79,25 @@ def __init__(self, body_type=None, bodys=None, check_end_length=None, check_end_ :type check_end_str: object :param check_end_type: TCP/UDP协议返回结束类型,1:返回数据长度;2:结束符 :type check_end_type: object - :param connect_timeout: connect_timeout + :param connect_timeout: 超时时间 :type connect_timeout: int - :param connect_type: connect_type + :param connect_type: 连接设置,当前版本已未使用 :type connect_type: int - :param headers: headers + :param headers: 请求头 :type headers: list[:class:`huaweicloudsdkcpts.v1.ContentHeader`] - :param http_version: http_version + :param http_version: HTTP版本 :type http_version: str - :param method: method + :param method: HTTP方法 :type method: str - :param name: name + :param name: 用例名称 :type name: str - :param protocol_type: protocol_type + :param protocol_type: 协议类型(1:HTTP;2:HTTPS;3:TCP;4:UDP;7:HLS/RTMP;9:WebSocket;10:HTTP-FLV) :type protocol_type: int - :param return_timeout: return_timeout + :param return_timeout: 响应超时 :type return_timeout: int - :param return_timeout_param: return_timeout_param + :param return_timeout_param: 响应超时参数 :type return_timeout_param: str - :param url: url + :param url: 请求地址 :type url: str :param rtmp_url: rtmp地址 :type rtmp_url: str @@ -105,7 +105,7 @@ def __init__(self, body_type=None, bodys=None, check_end_length=None, check_end_ :type flv_url: str :param bitrate_type: 分辨率策略 :type bitrate_type: int - :param duration: duration + :param duration: 持续时间 :type duration: int :param retry_delay: HLS重试延迟时间 :type retry_delay: int @@ -185,7 +185,7 @@ def __init__(self, body_type=None, bodys=None, check_end_length=None, check_end_ def body_type(self): """Gets the body_type of this ContentInfo. - body_type + body类型(0:字符串;1:form-data格式;3:x-www-form-urlencoded格式) :return: The body_type of this ContentInfo. :rtype: int @@ -196,7 +196,7 @@ def body_type(self): def body_type(self, body_type): """Sets the body_type of this ContentInfo. - body_type + body类型(0:字符串;1:form-data格式;3:x-www-form-urlencoded格式) :param body_type: The body_type of this ContentInfo. :type body_type: int @@ -295,7 +295,7 @@ def check_end_type(self, check_end_type): def connect_timeout(self): """Gets the connect_timeout of this ContentInfo. - connect_timeout + 超时时间 :return: The connect_timeout of this ContentInfo. :rtype: int @@ -306,7 +306,7 @@ def connect_timeout(self): def connect_timeout(self, connect_timeout): """Sets the connect_timeout of this ContentInfo. - connect_timeout + 超时时间 :param connect_timeout: The connect_timeout of this ContentInfo. :type connect_timeout: int @@ -317,7 +317,7 @@ def connect_timeout(self, connect_timeout): def connect_type(self): """Gets the connect_type of this ContentInfo. - connect_type + 连接设置,当前版本已未使用 :return: The connect_type of this ContentInfo. :rtype: int @@ -328,7 +328,7 @@ def connect_type(self): def connect_type(self, connect_type): """Sets the connect_type of this ContentInfo. - connect_type + 连接设置,当前版本已未使用 :param connect_type: The connect_type of this ContentInfo. :type connect_type: int @@ -339,7 +339,7 @@ def connect_type(self, connect_type): def headers(self): """Gets the headers of this ContentInfo. - headers + 请求头 :return: The headers of this ContentInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.ContentHeader`] @@ -350,7 +350,7 @@ def headers(self): def headers(self, headers): """Sets the headers of this ContentInfo. - headers + 请求头 :param headers: The headers of this ContentInfo. :type headers: list[:class:`huaweicloudsdkcpts.v1.ContentHeader`] @@ -361,7 +361,7 @@ def headers(self, headers): def http_version(self): """Gets the http_version of this ContentInfo. - http_version + HTTP版本 :return: The http_version of this ContentInfo. :rtype: str @@ -372,7 +372,7 @@ def http_version(self): def http_version(self, http_version): """Sets the http_version of this ContentInfo. - http_version + HTTP版本 :param http_version: The http_version of this ContentInfo. :type http_version: str @@ -383,7 +383,7 @@ def http_version(self, http_version): def method(self): """Gets the method of this ContentInfo. - method + HTTP方法 :return: The method of this ContentInfo. :rtype: str @@ -394,7 +394,7 @@ def method(self): def method(self, method): """Sets the method of this ContentInfo. - method + HTTP方法 :param method: The method of this ContentInfo. :type method: str @@ -405,7 +405,7 @@ def method(self, method): def name(self): """Gets the name of this ContentInfo. - name + 用例名称 :return: The name of this ContentInfo. :rtype: str @@ -416,7 +416,7 @@ def name(self): def name(self, name): """Sets the name of this ContentInfo. - name + 用例名称 :param name: The name of this ContentInfo. :type name: str @@ -427,7 +427,7 @@ def name(self, name): def protocol_type(self): """Gets the protocol_type of this ContentInfo. - protocol_type + 协议类型(1:HTTP;2:HTTPS;3:TCP;4:UDP;7:HLS/RTMP;9:WebSocket;10:HTTP-FLV) :return: The protocol_type of this ContentInfo. :rtype: int @@ -438,7 +438,7 @@ def protocol_type(self): def protocol_type(self, protocol_type): """Sets the protocol_type of this ContentInfo. - protocol_type + 协议类型(1:HTTP;2:HTTPS;3:TCP;4:UDP;7:HLS/RTMP;9:WebSocket;10:HTTP-FLV) :param protocol_type: The protocol_type of this ContentInfo. :type protocol_type: int @@ -449,7 +449,7 @@ def protocol_type(self, protocol_type): def return_timeout(self): """Gets the return_timeout of this ContentInfo. - return_timeout + 响应超时 :return: The return_timeout of this ContentInfo. :rtype: int @@ -460,7 +460,7 @@ def return_timeout(self): def return_timeout(self, return_timeout): """Sets the return_timeout of this ContentInfo. - return_timeout + 响应超时 :param return_timeout: The return_timeout of this ContentInfo. :type return_timeout: int @@ -471,7 +471,7 @@ def return_timeout(self, return_timeout): def return_timeout_param(self): """Gets the return_timeout_param of this ContentInfo. - return_timeout_param + 响应超时参数 :return: The return_timeout_param of this ContentInfo. :rtype: str @@ -482,7 +482,7 @@ def return_timeout_param(self): def return_timeout_param(self, return_timeout_param): """Sets the return_timeout_param of this ContentInfo. - return_timeout_param + 响应超时参数 :param return_timeout_param: The return_timeout_param of this ContentInfo. :type return_timeout_param: str @@ -493,7 +493,7 @@ def return_timeout_param(self, return_timeout_param): def url(self): """Gets the url of this ContentInfo. - url + 请求地址 :return: The url of this ContentInfo. :rtype: str @@ -504,7 +504,7 @@ def url(self): def url(self, url): """Sets the url of this ContentInfo. - url + 请求地址 :param url: The url of this ContentInfo. :type url: str @@ -581,7 +581,7 @@ def bitrate_type(self, bitrate_type): def duration(self): """Gets the duration of this ContentInfo. - duration + 持续时间 :return: The duration of this ContentInfo. :rtype: int @@ -592,7 +592,7 @@ def duration(self): def duration(self, duration): """Sets the duration of this ContentInfo. - duration + 持续时间 :param duration: The duration of this ContentInfo. :type duration: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/contents.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/contents.py index 68777efeab..c0f60900ff 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/contents.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/contents.py @@ -45,11 +45,11 @@ def __init__(self, content_id=None, content=None, index=None, selected_temp_name :param content_id: 事务id,若不为0表示此卡片为事务;为0表示非事务 :type content_id: int - :param content: content + :param content: 内容 :type content: list[:class:`huaweicloudsdkcpts.v1.Content`] :param index: 排序索引标识 :type index: int - :param selected_temp_name: selected_temp_name + :param selected_temp_name: 选择的事务或者用例名称 :type selected_temp_name: str :param data: 数据(循环、条件控制器作用的数据) :type data: object @@ -116,7 +116,7 @@ def content_id(self, content_id): def content(self): """Gets the content of this Contents. - content + 内容 :return: The content of this Contents. :rtype: list[:class:`huaweicloudsdkcpts.v1.Content`] @@ -127,7 +127,7 @@ def content(self): def content(self, content): """Sets the content of this Contents. - content + 内容 :param content: The content of this Contents. :type content: list[:class:`huaweicloudsdkcpts.v1.Content`] @@ -160,7 +160,7 @@ def index(self, index): def selected_temp_name(self): """Gets the selected_temp_name of this Contents. - selected_temp_name + 选择的事务或者用例名称 :return: The selected_temp_name of this Contents. :rtype: str @@ -171,7 +171,7 @@ def selected_temp_name(self): def selected_temp_name(self, selected_temp_name): """Sets the selected_temp_name of this Contents. - selected_temp_name + 选择的事务或者用例名称 :param selected_temp_name: The selected_temp_name of this Contents. :type selected_temp_name: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_request_body.py index a54352778b..931b47ce55 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_request_body.py @@ -33,11 +33,11 @@ def __init__(self, name=None, type=None, task_id=None): The model defined in huaweicloud sdk - :param name: name + :param name: 名称 :type name: str :param type: type(0-常规用例,1-视频流用例,2-预制用例) :type type: int - :param task_id: task_id + :param task_id: 所属任务id :type task_id: int """ @@ -56,7 +56,7 @@ def __init__(self, name=None, type=None, task_id=None): def name(self): """Gets the name of this CreateCaseRequestBody. - name + 名称 :return: The name of this CreateCaseRequestBody. :rtype: str @@ -67,7 +67,7 @@ def name(self): def name(self, name): """Sets the name of this CreateCaseRequestBody. - name + 名称 :param name: The name of this CreateCaseRequestBody. :type name: str @@ -100,7 +100,7 @@ def type(self, type): def task_id(self): """Gets the task_id of this CreateCaseRequestBody. - task_id + 所属任务id :return: The task_id of this CreateCaseRequestBody. :rtype: int @@ -111,7 +111,7 @@ def task_id(self): def task_id(self, task_id): """Sets the task_id of this CreateCaseRequestBody. - task_id + 所属任务id :param task_id: The task_id of this CreateCaseRequestBody. :type task_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_response.py index 06703f2a9f..0eb109e512 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, json=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str :param json: :type json: :class:`huaweicloudsdkcpts.v1.CreateCaseResultJson` - :param message: message + :param message: 响应消息 :type message: str """ @@ -60,7 +60,7 @@ def __init__(self, code=None, json=None, message=None): def code(self): """Gets the code of this CreateCaseResponse. - code + 响应码 :return: The code of this CreateCaseResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this CreateCaseResponse. - code + 响应码 :param code: The code of this CreateCaseResponse. :type code: str @@ -100,7 +100,7 @@ def json(self, json): def message(self): """Gets the message of this CreateCaseResponse. - message + 响应消息 :return: The message of this CreateCaseResponse. :rtype: str @@ -111,7 +111,7 @@ def message(self): def message(self, message): """Sets the message of this CreateCaseResponse. - message + 响应消息 :param message: The message of this CreateCaseResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_result_json.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_result_json.py index 91651161d2..4cefcbb095 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_result_json.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_case_result_json.py @@ -29,7 +29,7 @@ def __init__(self, task_case_id=None): The model defined in huaweicloud sdk - :param task_case_id: task_case_id + :param task_case_id: 用例id :type task_case_id: int """ @@ -45,7 +45,7 @@ def __init__(self, task_case_id=None): def task_case_id(self): """Gets the task_case_id of this CreateCaseResultJson. - task_case_id + 用例id :return: The task_case_id of this CreateCaseResultJson. :rtype: int @@ -56,7 +56,7 @@ def task_case_id(self): def task_case_id(self, task_case_id): """Sets the task_case_id of this CreateCaseResultJson. - task_case_id + 用例id :param task_case_id: The task_case_id of this CreateCaseResultJson. :type task_case_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_request_body.py index 0b77ca983e..7cf2438ce2 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_request_body.py @@ -31,9 +31,9 @@ def __init__(self, name=None, description=None): The model defined in huaweicloud sdk - :param name: name + :param name: 名称 :type name: str - :param description: description + :param description: 描述 :type description: str """ @@ -51,7 +51,7 @@ def __init__(self, name=None, description=None): def name(self): """Gets the name of this CreateProjectRequestBody. - name + 名称 :return: The name of this CreateProjectRequestBody. :rtype: str @@ -62,7 +62,7 @@ def name(self): def name(self, name): """Sets the name of this CreateProjectRequestBody. - name + 名称 :param name: The name of this CreateProjectRequestBody. :type name: str @@ -73,7 +73,7 @@ def name(self, name): def description(self): """Gets the description of this CreateProjectRequestBody. - description + 描述 :return: The description of this CreateProjectRequestBody. :rtype: str @@ -84,7 +84,7 @@ def description(self): def description(self, description): """Sets the description of this CreateProjectRequestBody. - description + 描述 :param description: The description of this CreateProjectRequestBody. :type description: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_response.py index 93bb931a42..efb678f918 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_project_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, message=None, project_id=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param project_id: project_id + :param project_id: 项目ID :type project_id: int """ @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, project_id=None): def code(self): """Gets the code of this CreateProjectResponse. - code + 响应码 :return: The code of this CreateProjectResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this CreateProjectResponse. - code + 响应码 :param code: The code of this CreateProjectResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this CreateProjectResponse. - message + 响应消息 :return: The message of this CreateProjectResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this CreateProjectResponse. - message + 响应消息 :param message: The message of this CreateProjectResponse. :type message: str @@ -104,7 +104,7 @@ def message(self, message): def project_id(self): """Gets the project_id of this CreateProjectResponse. - project_id + 项目ID :return: The project_id of this CreateProjectResponse. :rtype: int @@ -115,7 +115,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateProjectResponse. - project_id + 项目ID :param project_id: The project_id of this CreateProjectResponse. :type project_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_request_body.py index 30cbc53871..8d58b80936 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_request_body.py @@ -37,15 +37,15 @@ def __init__(self, name=None, project_id=None, temps=None, operate_mode=None, be The model defined in huaweicloud sdk - :param name: name + :param name: 名称 :type name: str - :param project_id: project_id + :param project_id: 工程id :type project_id: int - :param temps: temps + :param temps: 事务信息 :type temps: list[str] - :param operate_mode: operate_mode + :param operate_mode: 压力阶段模式,0:时长模式;1:次数模式;2:混合模式 :type operate_mode: int - :param bench_concurrent: bench_concurrent + :param bench_concurrent: 基准并发 :type bench_concurrent: int """ @@ -71,7 +71,7 @@ def __init__(self, name=None, project_id=None, temps=None, operate_mode=None, be def name(self): """Gets the name of this CreateTaskRequestBody. - name + 名称 :return: The name of this CreateTaskRequestBody. :rtype: str @@ -82,7 +82,7 @@ def name(self): def name(self, name): """Sets the name of this CreateTaskRequestBody. - name + 名称 :param name: The name of this CreateTaskRequestBody. :type name: str @@ -93,7 +93,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreateTaskRequestBody. - project_id + 工程id :return: The project_id of this CreateTaskRequestBody. :rtype: int @@ -104,7 +104,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateTaskRequestBody. - project_id + 工程id :param project_id: The project_id of this CreateTaskRequestBody. :type project_id: int @@ -115,7 +115,7 @@ def project_id(self, project_id): def temps(self): """Gets the temps of this CreateTaskRequestBody. - temps + 事务信息 :return: The temps of this CreateTaskRequestBody. :rtype: list[str] @@ -126,7 +126,7 @@ def temps(self): def temps(self, temps): """Sets the temps of this CreateTaskRequestBody. - temps + 事务信息 :param temps: The temps of this CreateTaskRequestBody. :type temps: list[str] @@ -137,7 +137,7 @@ def temps(self, temps): def operate_mode(self): """Gets the operate_mode of this CreateTaskRequestBody. - operate_mode + 压力阶段模式,0:时长模式;1:次数模式;2:混合模式 :return: The operate_mode of this CreateTaskRequestBody. :rtype: int @@ -148,7 +148,7 @@ def operate_mode(self): def operate_mode(self, operate_mode): """Sets the operate_mode of this CreateTaskRequestBody. - operate_mode + 压力阶段模式,0:时长模式;1:次数模式;2:混合模式 :param operate_mode: The operate_mode of this CreateTaskRequestBody. :type operate_mode: int @@ -159,7 +159,7 @@ def operate_mode(self, operate_mode): def bench_concurrent(self): """Gets the bench_concurrent of this CreateTaskRequestBody. - bench_concurrent + 基准并发 :return: The bench_concurrent of this CreateTaskRequestBody. :rtype: int @@ -170,7 +170,7 @@ def bench_concurrent(self): def bench_concurrent(self, bench_concurrent): """Sets the bench_concurrent of this CreateTaskRequestBody. - bench_concurrent + 基准并发 :param bench_concurrent: The bench_concurrent of this CreateTaskRequestBody. :type bench_concurrent: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_response.py index 2026b67810..cfe053c6f6 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_task_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, message=None, task_id=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param task_id: task_id + :param task_id: 任务id :type task_id: int """ @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, task_id=None): def code(self): """Gets the code of this CreateTaskResponse. - code + 响应码 :return: The code of this CreateTaskResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this CreateTaskResponse. - code + 响应码 :param code: The code of this CreateTaskResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this CreateTaskResponse. - message + 响应消息 :return: The message of this CreateTaskResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this CreateTaskResponse. - message + 响应消息 :param message: The message of this CreateTaskResponse. :type message: str @@ -104,7 +104,7 @@ def message(self, message): def task_id(self): """Gets the task_id of this CreateTaskResponse. - task_id + 任务id :return: The task_id of this CreateTaskResponse. :rtype: int @@ -115,7 +115,7 @@ def task_id(self): def task_id(self, task_id): """Sets the task_id of this CreateTaskResponse. - task_id + 任务id :param task_id: The task_id of this CreateTaskResponse. :type task_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_request_body.py index 4c48834641..5f9bc0b4a7 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_request_body.py @@ -37,15 +37,15 @@ def __init__(self, project_id=None, temp_type=None, name=None, description=None, The model defined in huaweicloud sdk - :param project_id: project_id + :param project_id: 所属工程id :type project_id: int - :param temp_type: temp_type + :param temp_type: 事务类型 :type temp_type: int - :param name: name + :param name: 事务名称 :type name: str - :param description: description + :param description: 描述信息 :type description: str - :param contents: contents + :param contents: 事务脚本信息 :type contents: list[object] """ @@ -70,7 +70,7 @@ def __init__(self, project_id=None, temp_type=None, name=None, description=None, def project_id(self): """Gets the project_id of this CreateTempRequestBody. - project_id + 所属工程id :return: The project_id of this CreateTempRequestBody. :rtype: int @@ -81,7 +81,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateTempRequestBody. - project_id + 所属工程id :param project_id: The project_id of this CreateTempRequestBody. :type project_id: int @@ -92,7 +92,7 @@ def project_id(self, project_id): def temp_type(self): """Gets the temp_type of this CreateTempRequestBody. - temp_type + 事务类型 :return: The temp_type of this CreateTempRequestBody. :rtype: int @@ -103,7 +103,7 @@ def temp_type(self): def temp_type(self, temp_type): """Sets the temp_type of this CreateTempRequestBody. - temp_type + 事务类型 :param temp_type: The temp_type of this CreateTempRequestBody. :type temp_type: int @@ -114,7 +114,7 @@ def temp_type(self, temp_type): def name(self): """Gets the name of this CreateTempRequestBody. - name + 事务名称 :return: The name of this CreateTempRequestBody. :rtype: str @@ -125,7 +125,7 @@ def name(self): def name(self, name): """Sets the name of this CreateTempRequestBody. - name + 事务名称 :param name: The name of this CreateTempRequestBody. :type name: str @@ -136,7 +136,7 @@ def name(self, name): def description(self): """Gets the description of this CreateTempRequestBody. - description + 描述信息 :return: The description of this CreateTempRequestBody. :rtype: str @@ -147,7 +147,7 @@ def description(self): def description(self, description): """Sets the description of this CreateTempRequestBody. - description + 描述信息 :param description: The description of this CreateTempRequestBody. :type description: str @@ -158,7 +158,7 @@ def description(self, description): def contents(self): """Gets the contents of this CreateTempRequestBody. - contents + 事务脚本信息 :return: The contents of this CreateTempRequestBody. :rtype: list[object] @@ -169,7 +169,7 @@ def contents(self): def contents(self, contents): """Sets the contents of this CreateTempRequestBody. - contents + 事务脚本信息 :param contents: The contents of this CreateTempRequestBody. :type contents: list[object] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_response.py index d8aeb369af..aeb768d708 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_temp_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, temp_id=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param temp_id: tempId + :param temp_id: 事务id :type temp_id: int - :param message: message + :param message: 响应消息 :type message: str """ @@ -60,7 +60,7 @@ def __init__(self, code=None, temp_id=None, message=None): def code(self): """Gets the code of this CreateTempResponse. - code + 响应码 :return: The code of this CreateTempResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this CreateTempResponse. - code + 响应码 :param code: The code of this CreateTempResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def temp_id(self): """Gets the temp_id of this CreateTempResponse. - tempId + 事务id :return: The temp_id of this CreateTempResponse. :rtype: int @@ -93,7 +93,7 @@ def temp_id(self): def temp_id(self, temp_id): """Sets the temp_id of this CreateTempResponse. - tempId + 事务id :param temp_id: The temp_id of this CreateTempResponse. :type temp_id: int @@ -104,7 +104,7 @@ def temp_id(self, temp_id): def message(self): """Gets the message of this CreateTempResponse. - message + 响应消息 :return: The message of this CreateTempResponse. :rtype: str @@ -115,7 +115,7 @@ def message(self): def message(self, message): """Sets the message of this CreateTempResponse. - message + 响应消息 :param message: The message of this CreateTempResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_request_body.py index 15bae8ad59..28d873ae7c 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_request_body.py @@ -37,13 +37,13 @@ def __init__(self, id=None, name=None, variable_type=None, variable=None, is_quo The model defined in huaweicloud sdk - :param id: id + :param id: 变量id :type id: int - :param name: name + :param name: 变量名称 :type name: str - :param variable_type: variable_type + :param variable_type: 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :type variable_type: int - :param variable: variable + :param variable: 变量值 :type variable: list[object] :param is_quoted: 是否被引用 :type is_quoted: bool @@ -68,7 +68,7 @@ def __init__(self, id=None, name=None, variable_type=None, variable=None, is_quo def id(self): """Gets the id of this CreateVariableRequestBody. - id + 变量id :return: The id of this CreateVariableRequestBody. :rtype: int @@ -79,7 +79,7 @@ def id(self): def id(self, id): """Sets the id of this CreateVariableRequestBody. - id + 变量id :param id: The id of this CreateVariableRequestBody. :type id: int @@ -90,7 +90,7 @@ def id(self, id): def name(self): """Gets the name of this CreateVariableRequestBody. - name + 变量名称 :return: The name of this CreateVariableRequestBody. :rtype: str @@ -101,7 +101,7 @@ def name(self): def name(self, name): """Sets the name of this CreateVariableRequestBody. - name + 变量名称 :param name: The name of this CreateVariableRequestBody. :type name: str @@ -112,7 +112,7 @@ def name(self, name): def variable_type(self): """Gets the variable_type of this CreateVariableRequestBody. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :return: The variable_type of this CreateVariableRequestBody. :rtype: int @@ -123,7 +123,7 @@ def variable_type(self): def variable_type(self, variable_type): """Sets the variable_type of this CreateVariableRequestBody. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :param variable_type: The variable_type of this CreateVariableRequestBody. :type variable_type: int @@ -134,7 +134,7 @@ def variable_type(self, variable_type): def variable(self): """Gets the variable of this CreateVariableRequestBody. - variable + 变量值 :return: The variable of this CreateVariableRequestBody. :rtype: list[object] @@ -145,7 +145,7 @@ def variable(self): def variable(self, variable): """Sets the variable of this CreateVariableRequestBody. - variable + 变量值 :param variable: The variable of this CreateVariableRequestBody. :type variable: list[object] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_response.py index 7271328c01..37f6703ba9 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, json=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str :param json: :type json: :class:`huaweicloudsdkcpts.v1.CreateVariableResultJson` - :param message: message + :param message: 响应消息 :type message: str """ @@ -60,7 +60,7 @@ def __init__(self, code=None, json=None, message=None): def code(self): """Gets the code of this CreateVariableResponse. - code + 响应码 :return: The code of this CreateVariableResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this CreateVariableResponse. - code + 响应码 :param code: The code of this CreateVariableResponse. :type code: str @@ -100,7 +100,7 @@ def json(self, json): def message(self): """Gets the message of this CreateVariableResponse. - message + 响应消息 :return: The message of this CreateVariableResponse. :rtype: str @@ -111,7 +111,7 @@ def message(self): def message(self, message): """Sets the message of this CreateVariableResponse. - message + 响应消息 :param message: The message of this CreateVariableResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_result_json.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_result_json.py index 027b4e3da8..017e760b2f 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_result_json.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/create_variable_result_json.py @@ -29,7 +29,7 @@ def __init__(self, variable_id=None): The model defined in huaweicloud sdk - :param variable_id: variable_id + :param variable_id: 变量id :type variable_id: int """ @@ -45,7 +45,7 @@ def __init__(self, variable_id=None): def variable_id(self): """Gets the variable_id of this CreateVariableResultJson. - variable_id + 变量id :return: The variable_id of this CreateVariableResultJson. :rtype: int @@ -56,7 +56,7 @@ def variable_id(self): def variable_id(self, variable_id): """Sets the variable_id of this CreateVariableResultJson. - variable_id + 变量id :param variable_id: The variable_id of this CreateVariableResultJson. :type variable_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_request_body.py index d7673eb760..f7d93bf576 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_request_body.py @@ -35,13 +35,13 @@ def __init__(self, status=None, cluster_id=None, cluster_type=None, without_pack The model defined in huaweicloud sdk - :param status: status + :param status: 状态(9:启动调试) :type status: int - :param cluster_id: cluster_id + :param cluster_id: 资源组id :type cluster_id: int - :param cluster_type: cluster_type + :param cluster_type: 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :type cluster_type: str - :param without_package: without_package + :param without_package: 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :type without_package: int """ @@ -62,7 +62,7 @@ def __init__(self, status=None, cluster_id=None, cluster_type=None, without_pack def status(self): """Gets the status of this DebugCaseRequestBody. - status + 状态(9:启动调试) :return: The status of this DebugCaseRequestBody. :rtype: int @@ -73,7 +73,7 @@ def status(self): def status(self, status): """Sets the status of this DebugCaseRequestBody. - status + 状态(9:启动调试) :param status: The status of this DebugCaseRequestBody. :type status: int @@ -84,7 +84,7 @@ def status(self, status): def cluster_id(self): """Gets the cluster_id of this DebugCaseRequestBody. - cluster_id + 资源组id :return: The cluster_id of this DebugCaseRequestBody. :rtype: int @@ -95,7 +95,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this DebugCaseRequestBody. - cluster_id + 资源组id :param cluster_id: The cluster_id of this DebugCaseRequestBody. :type cluster_id: int @@ -106,7 +106,7 @@ def cluster_id(self, cluster_id): def cluster_type(self): """Gets the cluster_type of this DebugCaseRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :return: The cluster_type of this DebugCaseRequestBody. :rtype: str @@ -117,7 +117,7 @@ def cluster_type(self): def cluster_type(self, cluster_type): """Sets the cluster_type of this DebugCaseRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :param cluster_type: The cluster_type of this DebugCaseRequestBody. :type cluster_type: str @@ -128,7 +128,7 @@ def cluster_type(self, cluster_type): def without_package(self): """Gets the without_package of this DebugCaseRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :return: The without_package of this DebugCaseRequestBody. :rtype: int @@ -139,7 +139,7 @@ def without_package(self): def without_package(self, without_package): """Sets the without_package of this DebugCaseRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :param without_package: The without_package of this DebugCaseRequestBody. :type without_package: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_response.py index 6bd0e03b5c..8797a4fd7f 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_response.py @@ -36,13 +36,13 @@ def __init__(self, code=None, message=None, extend=None, result=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param extend: extend + :param extend: 扩展信息 :type extend: str - :param result: result + :param result: 结果 :type result: list[:class:`huaweicloudsdkcpts.v1.DebugCaseResult`] """ @@ -67,7 +67,7 @@ def __init__(self, code=None, message=None, extend=None, result=None): def code(self): """Gets the code of this DebugCaseResponse. - code + 响应码 :return: The code of this DebugCaseResponse. :rtype: str @@ -78,7 +78,7 @@ def code(self): def code(self, code): """Sets the code of this DebugCaseResponse. - code + 响应码 :param code: The code of this DebugCaseResponse. :type code: str @@ -89,7 +89,7 @@ def code(self, code): def message(self): """Gets the message of this DebugCaseResponse. - message + 响应消息 :return: The message of this DebugCaseResponse. :rtype: str @@ -100,7 +100,7 @@ def message(self): def message(self, message): """Sets the message of this DebugCaseResponse. - message + 响应消息 :param message: The message of this DebugCaseResponse. :type message: str @@ -111,7 +111,7 @@ def message(self, message): def extend(self): """Gets the extend of this DebugCaseResponse. - extend + 扩展信息 :return: The extend of this DebugCaseResponse. :rtype: str @@ -122,7 +122,7 @@ def extend(self): def extend(self, extend): """Sets the extend of this DebugCaseResponse. - extend + 扩展信息 :param extend: The extend of this DebugCaseResponse. :type extend: str @@ -133,7 +133,7 @@ def extend(self, extend): def result(self): """Gets the result of this DebugCaseResponse. - result + 结果 :return: The result of this DebugCaseResponse. :rtype: list[:class:`huaweicloudsdkcpts.v1.DebugCaseResult`] @@ -144,7 +144,7 @@ def result(self): def result(self, result): """Sets the result of this DebugCaseResponse. - result + 结果 :param result: The result of this DebugCaseResponse. :type result: list[:class:`huaweicloudsdkcpts.v1.DebugCaseResult`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result.py index 4261c01772..d89f1bf494 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result.py @@ -47,25 +47,25 @@ def __init__(self, body=None, error_reason=None, header=None, name=None, respons The model defined in huaweicloud sdk - :param body: body + :param body: 响应内容 :type body: str - :param error_reason: errorReason + :param error_reason: 错误原因 :type error_reason: str :param header: :type header: :class:`huaweicloudsdkcpts.v1.DebugCaseResultHeader` - :param name: name + :param name: 请求名称 :type name: str - :param response_time: responseTime + :param response_time: 响应时间 :type response_time: int - :param result: result + :param result: 调试结果(1:成功;) :type result: int - :param return_body: returnBody + :param return_body: 响应正文 :type return_body: str :param return_header: :type return_header: :class:`huaweicloudsdkcpts.v1.DebugCaseReturnHeader` - :param status_code: statusCode + :param status_code: 响应状态码 :type status_code: str - :param url: url + :param url: 请求地址 :type url: str """ @@ -108,7 +108,7 @@ def __init__(self, body=None, error_reason=None, header=None, name=None, respons def body(self): """Gets the body of this DebugCaseResult. - body + 响应内容 :return: The body of this DebugCaseResult. :rtype: str @@ -119,7 +119,7 @@ def body(self): def body(self, body): """Sets the body of this DebugCaseResult. - body + 响应内容 :param body: The body of this DebugCaseResult. :type body: str @@ -130,7 +130,7 @@ def body(self, body): def error_reason(self): """Gets the error_reason of this DebugCaseResult. - errorReason + 错误原因 :return: The error_reason of this DebugCaseResult. :rtype: str @@ -141,7 +141,7 @@ def error_reason(self): def error_reason(self, error_reason): """Sets the error_reason of this DebugCaseResult. - errorReason + 错误原因 :param error_reason: The error_reason of this DebugCaseResult. :type error_reason: str @@ -170,7 +170,7 @@ def header(self, header): def name(self): """Gets the name of this DebugCaseResult. - name + 请求名称 :return: The name of this DebugCaseResult. :rtype: str @@ -181,7 +181,7 @@ def name(self): def name(self, name): """Sets the name of this DebugCaseResult. - name + 请求名称 :param name: The name of this DebugCaseResult. :type name: str @@ -192,7 +192,7 @@ def name(self, name): def response_time(self): """Gets the response_time of this DebugCaseResult. - responseTime + 响应时间 :return: The response_time of this DebugCaseResult. :rtype: int @@ -203,7 +203,7 @@ def response_time(self): def response_time(self, response_time): """Sets the response_time of this DebugCaseResult. - responseTime + 响应时间 :param response_time: The response_time of this DebugCaseResult. :type response_time: int @@ -214,7 +214,7 @@ def response_time(self, response_time): def result(self): """Gets the result of this DebugCaseResult. - result + 调试结果(1:成功;) :return: The result of this DebugCaseResult. :rtype: int @@ -225,7 +225,7 @@ def result(self): def result(self, result): """Sets the result of this DebugCaseResult. - result + 调试结果(1:成功;) :param result: The result of this DebugCaseResult. :type result: int @@ -236,7 +236,7 @@ def result(self, result): def return_body(self): """Gets the return_body of this DebugCaseResult. - returnBody + 响应正文 :return: The return_body of this DebugCaseResult. :rtype: str @@ -247,7 +247,7 @@ def return_body(self): def return_body(self, return_body): """Sets the return_body of this DebugCaseResult. - returnBody + 响应正文 :param return_body: The return_body of this DebugCaseResult. :type return_body: str @@ -276,7 +276,7 @@ def return_header(self, return_header): def status_code(self): """Gets the status_code of this DebugCaseResult. - statusCode + 响应状态码 :return: The status_code of this DebugCaseResult. :rtype: str @@ -287,7 +287,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this DebugCaseResult. - statusCode + 响应状态码 :param status_code: The status_code of this DebugCaseResult. :type status_code: str @@ -298,7 +298,7 @@ def status_code(self, status_code): def url(self): """Gets the url of this DebugCaseResult. - url + 请求地址 :return: The url of this DebugCaseResult. :rtype: str @@ -309,7 +309,7 @@ def url(self): def url(self, url): """Sets the url of this DebugCaseResult. - url + 请求地址 :param url: The url of this DebugCaseResult. :type url: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result_header.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result_header.py index 57414091c2..72b10a45d5 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result_header.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_result_header.py @@ -33,11 +33,11 @@ def __init__(self, connection=None, content_type=None, host=None): The model defined in huaweicloud sdk - :param connection: Connection + :param connection: 连接 :type connection: str - :param content_type: Content-Type + :param content_type: 内容类型 :type content_type: str - :param host: Host + :param host: 主机 :type host: str """ @@ -59,7 +59,7 @@ def __init__(self, connection=None, content_type=None, host=None): def connection(self): """Gets the connection of this DebugCaseResultHeader. - Connection + 连接 :return: The connection of this DebugCaseResultHeader. :rtype: str @@ -70,7 +70,7 @@ def connection(self): def connection(self, connection): """Sets the connection of this DebugCaseResultHeader. - Connection + 连接 :param connection: The connection of this DebugCaseResultHeader. :type connection: str @@ -81,7 +81,7 @@ def connection(self, connection): def content_type(self): """Gets the content_type of this DebugCaseResultHeader. - Content-Type + 内容类型 :return: The content_type of this DebugCaseResultHeader. :rtype: str @@ -92,7 +92,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this DebugCaseResultHeader. - Content-Type + 内容类型 :param content_type: The content_type of this DebugCaseResultHeader. :type content_type: str @@ -103,7 +103,7 @@ def content_type(self, content_type): def host(self): """Gets the host of this DebugCaseResultHeader. - Host + 主机 :return: The host of this DebugCaseResultHeader. :rtype: str @@ -114,7 +114,7 @@ def host(self): def host(self, host): """Sets the host of this DebugCaseResultHeader. - Host + 主机 :param host: The host of this DebugCaseResultHeader. :type host: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_return_header.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_return_header.py index f6e3f0cb83..7302752d75 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_return_header.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/debug_case_return_header.py @@ -37,15 +37,15 @@ def __init__(self, connection=None, content_length=None, content_type=None, date The model defined in huaweicloud sdk - :param connection: Connection + :param connection: 连接 :type connection: str - :param content_length: Content-Length + :param content_length: 内容长度 :type content_length: str - :param content_type: Content-Type + :param content_type: 内容类型 :type content_type: str - :param date: Date + :param date: 时间 :type date: str - :param vary: Vary + :param vary: 兼容性保留,当前版本未使用 :type vary: str """ @@ -73,7 +73,7 @@ def __init__(self, connection=None, content_length=None, content_type=None, date def connection(self): """Gets the connection of this DebugCaseReturnHeader. - Connection + 连接 :return: The connection of this DebugCaseReturnHeader. :rtype: str @@ -84,7 +84,7 @@ def connection(self): def connection(self, connection): """Sets the connection of this DebugCaseReturnHeader. - Connection + 连接 :param connection: The connection of this DebugCaseReturnHeader. :type connection: str @@ -95,7 +95,7 @@ def connection(self, connection): def content_length(self): """Gets the content_length of this DebugCaseReturnHeader. - Content-Length + 内容长度 :return: The content_length of this DebugCaseReturnHeader. :rtype: str @@ -106,7 +106,7 @@ def content_length(self): def content_length(self, content_length): """Sets the content_length of this DebugCaseReturnHeader. - Content-Length + 内容长度 :param content_length: The content_length of this DebugCaseReturnHeader. :type content_length: str @@ -117,7 +117,7 @@ def content_length(self, content_length): def content_type(self): """Gets the content_type of this DebugCaseReturnHeader. - Content-Type + 内容类型 :return: The content_type of this DebugCaseReturnHeader. :rtype: str @@ -128,7 +128,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this DebugCaseReturnHeader. - Content-Type + 内容类型 :param content_type: The content_type of this DebugCaseReturnHeader. :type content_type: str @@ -139,7 +139,7 @@ def content_type(self, content_type): def date(self): """Gets the date of this DebugCaseReturnHeader. - Date + 时间 :return: The date of this DebugCaseReturnHeader. :rtype: str @@ -150,7 +150,7 @@ def date(self): def date(self, date): """Sets the date of this DebugCaseReturnHeader. - Date + 时间 :param date: The date of this DebugCaseReturnHeader. :type date: str @@ -161,7 +161,7 @@ def date(self, date): def vary(self): """Gets the vary of this DebugCaseReturnHeader. - Vary + 兼容性保留,当前版本未使用 :return: The vary of this DebugCaseReturnHeader. :rtype: str @@ -172,7 +172,7 @@ def vary(self): def vary(self, vary): """Sets the vary of this DebugCaseReturnHeader. - Vary + 兼容性保留,当前版本未使用 :param vary: The vary of this DebugCaseReturnHeader. :type vary: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/delete_temp_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/delete_temp_response.py index a32a15a565..d12da1ee9a 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/delete_temp_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/delete_temp_response.py @@ -32,9 +32,9 @@ def __init__(self, code=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str """ @@ -53,7 +53,7 @@ def __init__(self, code=None, message=None): def code(self): """Gets the code of this DeleteTempResponse. - code + 响应码 :return: The code of this DeleteTempResponse. :rtype: str @@ -64,7 +64,7 @@ def code(self): def code(self, code): """Sets the code of this DeleteTempResponse. - code + 响应码 :param code: The code of this DeleteTempResponse. :type code: str @@ -75,7 +75,7 @@ def code(self, code): def message(self): """Gets the message of this DeleteTempResponse. - message + 响应消息 :return: The message of this DeleteTempResponse. :rtype: str @@ -86,7 +86,7 @@ def message(self): def message(self, message): """Sets the message of this DeleteTempResponse. - message + 响应消息 :param message: The message of this DeleteTempResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/history_run_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/history_run_info.py index e50b6ed7c9..952d1cc715 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/history_run_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/history_run_info.py @@ -43,19 +43,19 @@ def __init__(self, name=None, run_id=None, run_type=None, start_time=None, end_t The model defined in huaweicloud sdk - :param name: name + :param name: 名称 :type name: str - :param run_id: run_id + :param run_id: 报告id :type run_id: float - :param run_type: run_type + :param run_type: 任务类型(0:旧版本任务;1:融合版本任务) :type run_type: float - :param start_time: start_time + :param start_time: 开始时间 :type start_time: str :param end_time: 结束时间 :type end_time: str - :param continue_time: continue_time + :param continue_time: 继续时间 :type continue_time: float - :param temp_names: temp_names + :param temp_names: 用例或者事务名称 :type temp_names: list[:class:`huaweicloudsdkcpts.v1.TempName`] :param parallel: 任务间用例是否并行执行 :type parallel: bool @@ -94,7 +94,7 @@ def __init__(self, name=None, run_id=None, run_type=None, start_time=None, end_t def name(self): """Gets the name of this HistoryRunInfo. - name + 名称 :return: The name of this HistoryRunInfo. :rtype: str @@ -105,7 +105,7 @@ def name(self): def name(self, name): """Sets the name of this HistoryRunInfo. - name + 名称 :param name: The name of this HistoryRunInfo. :type name: str @@ -116,7 +116,7 @@ def name(self, name): def run_id(self): """Gets the run_id of this HistoryRunInfo. - run_id + 报告id :return: The run_id of this HistoryRunInfo. :rtype: float @@ -127,7 +127,7 @@ def run_id(self): def run_id(self, run_id): """Sets the run_id of this HistoryRunInfo. - run_id + 报告id :param run_id: The run_id of this HistoryRunInfo. :type run_id: float @@ -138,7 +138,7 @@ def run_id(self, run_id): def run_type(self): """Gets the run_type of this HistoryRunInfo. - run_type + 任务类型(0:旧版本任务;1:融合版本任务) :return: The run_type of this HistoryRunInfo. :rtype: float @@ -149,7 +149,7 @@ def run_type(self): def run_type(self, run_type): """Sets the run_type of this HistoryRunInfo. - run_type + 任务类型(0:旧版本任务;1:融合版本任务) :param run_type: The run_type of this HistoryRunInfo. :type run_type: float @@ -160,7 +160,7 @@ def run_type(self, run_type): def start_time(self): """Gets the start_time of this HistoryRunInfo. - start_time + 开始时间 :return: The start_time of this HistoryRunInfo. :rtype: str @@ -171,7 +171,7 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this HistoryRunInfo. - start_time + 开始时间 :param start_time: The start_time of this HistoryRunInfo. :type start_time: str @@ -204,7 +204,7 @@ def end_time(self, end_time): def continue_time(self): """Gets the continue_time of this HistoryRunInfo. - continue_time + 继续时间 :return: The continue_time of this HistoryRunInfo. :rtype: float @@ -215,7 +215,7 @@ def continue_time(self): def continue_time(self, continue_time): """Sets the continue_time of this HistoryRunInfo. - continue_time + 继续时间 :param continue_time: The continue_time of this HistoryRunInfo. :type continue_time: float @@ -226,7 +226,7 @@ def continue_time(self, continue_time): def temp_names(self): """Gets the temp_names of this HistoryRunInfo. - temp_names + 用例或者事务名称 :return: The temp_names of this HistoryRunInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.TempName`] @@ -237,7 +237,7 @@ def temp_names(self): def temp_names(self, temp_names): """Sets the temp_names of this HistoryRunInfo. - temp_names + 用例或者事务名称 :param temp_names: The temp_names of this HistoryRunInfo. :type temp_names: list[:class:`huaweicloudsdkcpts.v1.TempName`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/list_variables_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/list_variables_response.py index 28f931ed1b..7e9a74e3a1 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/list_variables_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/list_variables_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, message=None, variable_list=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应吗 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param variable_list: variable_list + :param variable_list: 变量列表 :type variable_list: list[:class:`huaweicloudsdkcpts.v1.VariableDetail`] """ @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, variable_list=None): def code(self): """Gets the code of this ListVariablesResponse. - code + 响应吗 :return: The code of this ListVariablesResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ListVariablesResponse. - code + 响应吗 :param code: The code of this ListVariablesResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ListVariablesResponse. - message + 响应消息 :return: The message of this ListVariablesResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ListVariablesResponse. - message + 响应消息 :param message: The message of this ListVariablesResponse. :type message: str @@ -104,7 +104,7 @@ def message(self, message): def variable_list(self): """Gets the variable_list of this ListVariablesResponse. - variable_list + 变量列表 :return: The variable_list of this ListVariablesResponse. :rtype: list[:class:`huaweicloudsdkcpts.v1.VariableDetail`] @@ -115,7 +115,7 @@ def variable_list(self): def variable_list(self, variable_list): """Sets the variable_list of this ListVariablesResponse. - variable_list + 变量列表 :param variable_list: The variable_list of this ListVariablesResponse. :type variable_list: list[:class:`huaweicloudsdkcpts.v1.VariableDetail`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/logic_controller.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/logic_controller.py index 95cbcbfe89..27e71ccfd0 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/logic_controller.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/logic_controller.py @@ -31,9 +31,9 @@ def __init__(self, for_loop_params=None, condition=None): The model defined in huaweicloud sdk - :param for_loop_params: for_loop_params + :param for_loop_params: 旧版本逻辑控制器字段,当前已未使用 :type for_loop_params: str - :param condition: condition + :param condition: 逻辑控制器条件 :type condition: str """ @@ -52,7 +52,7 @@ def __init__(self, for_loop_params=None, condition=None): def for_loop_params(self): """Gets the for_loop_params of this LogicController. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :return: The for_loop_params of this LogicController. :rtype: str @@ -63,7 +63,7 @@ def for_loop_params(self): def for_loop_params(self, for_loop_params): """Sets the for_loop_params of this LogicController. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :param for_loop_params: The for_loop_params of this LogicController. :type for_loop_params: str @@ -74,7 +74,7 @@ def for_loop_params(self, for_loop_params): def condition(self): """Gets the condition of this LogicController. - condition + 逻辑控制器条件 :return: The condition of this LogicController. :rtype: str @@ -85,7 +85,7 @@ def condition(self): def condition(self, condition): """Sets the condition of this LogicController. - condition + 逻辑控制器条件 :param condition: The condition of this LogicController. :type condition: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/network_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/network_info.py index ea68f3cafa..95af437609 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/network_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/network_info.py @@ -29,7 +29,7 @@ def __init__(self, network_type=None): The model defined in huaweicloud sdk - :param network_type: network_type + :param network_type: 网络类型(固定值:internet) :type network_type: str """ @@ -44,7 +44,7 @@ def __init__(self, network_type=None): def network_type(self): """Gets the network_type of this NetworkInfo. - network_type + 网络类型(固定值:internet) :return: The network_type of this NetworkInfo. :rtype: str @@ -55,7 +55,7 @@ def network_type(self): def network_type(self, network_type): """Sets the network_type of this NetworkInfo. - network_type + 网络类型(固定值:internet) :param network_type: The network_type of this NetworkInfo. :type network_type: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/peak_metric.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/peak_metric.py index 2bb1ad72a6..e648f417c0 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/peak_metric.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/peak_metric.py @@ -37,11 +37,11 @@ def __init__(self, vuser=None, rps=None, avg_rt=None, success_rate=None, peak_ti The model defined in huaweicloud sdk - :param vuser: vusers + :param vuser: 虚拟用户数 :type vuser: int - :param rps: tps + :param rps: 每秒事务数 :type rps: float - :param avg_rt: avgRT + :param avg_rt: 平均响应时间 :type avg_rt: float :param success_rate: 成功率 :type success_rate: float @@ -73,7 +73,7 @@ def __init__(self, vuser=None, rps=None, avg_rt=None, success_rate=None, peak_ti def vuser(self): """Gets the vuser of this PeakMetric. - vusers + 虚拟用户数 :return: The vuser of this PeakMetric. :rtype: int @@ -84,7 +84,7 @@ def vuser(self): def vuser(self, vuser): """Sets the vuser of this PeakMetric. - vusers + 虚拟用户数 :param vuser: The vuser of this PeakMetric. :type vuser: int @@ -95,7 +95,7 @@ def vuser(self, vuser): def rps(self): """Gets the rps of this PeakMetric. - tps + 每秒事务数 :return: The rps of this PeakMetric. :rtype: float @@ -106,7 +106,7 @@ def rps(self): def rps(self, rps): """Sets the rps of this PeakMetric. - tps + 每秒事务数 :param rps: The rps of this PeakMetric. :type rps: float @@ -117,7 +117,7 @@ def rps(self, rps): def avg_rt(self): """Gets the avg_rt of this PeakMetric. - avgRT + 平均响应时间 :return: The avg_rt of this PeakMetric. :rtype: float @@ -128,7 +128,7 @@ def avg_rt(self): def avg_rt(self, avg_rt): """Sets the avg_rt of this PeakMetric. - avgRT + 平均响应时间 :param avg_rt: The avg_rt of this PeakMetric. :type avg_rt: float diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/project.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/project.py index c9bc17e621..79046cd527 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/project.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/project.py @@ -41,19 +41,19 @@ def __init__(self, create_time=None, description=None, group=None, id=None, name The model defined in huaweicloud sdk - :param create_time: create_time + :param create_time: 创建时间 :type create_time: str - :param description: description + :param description: 描述 :type description: str - :param group: group + :param group: 租户id(domain_id) :type group: str - :param id: id + :param id: 工程id :type id: int - :param name: name + :param name: 工程名称 :type name: str - :param source: source + :param source: 来源(0-PerfTest;2-CloudTest) :type source: int - :param update_time: update_time + :param update_time: 更新时间 :type update_time: str """ @@ -87,7 +87,7 @@ def __init__(self, create_time=None, description=None, group=None, id=None, name def create_time(self): """Gets the create_time of this Project. - create_time + 创建时间 :return: The create_time of this Project. :rtype: str @@ -98,7 +98,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this Project. - create_time + 创建时间 :param create_time: The create_time of this Project. :type create_time: str @@ -109,7 +109,7 @@ def create_time(self, create_time): def description(self): """Gets the description of this Project. - description + 描述 :return: The description of this Project. :rtype: str @@ -120,7 +120,7 @@ def description(self): def description(self, description): """Sets the description of this Project. - description + 描述 :param description: The description of this Project. :type description: str @@ -131,7 +131,7 @@ def description(self, description): def group(self): """Gets the group of this Project. - group + 租户id(domain_id) :return: The group of this Project. :rtype: str @@ -142,7 +142,7 @@ def group(self): def group(self, group): """Sets the group of this Project. - group + 租户id(domain_id) :param group: The group of this Project. :type group: str @@ -153,7 +153,7 @@ def group(self, group): def id(self): """Gets the id of this Project. - id + 工程id :return: The id of this Project. :rtype: int @@ -164,7 +164,7 @@ def id(self): def id(self, id): """Sets the id of this Project. - id + 工程id :param id: The id of this Project. :type id: int @@ -175,7 +175,7 @@ def id(self, id): def name(self): """Gets the name of this Project. - name + 工程名称 :return: The name of this Project. :rtype: str @@ -186,7 +186,7 @@ def name(self): def name(self, name): """Sets the name of this Project. - name + 工程名称 :param name: The name of this Project. :type name: str @@ -197,7 +197,7 @@ def name(self, name): def source(self): """Gets the source of this Project. - source + 来源(0-PerfTest;2-CloudTest) :return: The source of this Project. :rtype: int @@ -208,7 +208,7 @@ def source(self): def source(self, source): """Sets the source of this Project. - source + 来源(0-PerfTest;2-CloudTest) :param source: The source of this Project. :type source: int @@ -219,7 +219,7 @@ def source(self, source): def update_time(self): """Gets the update_time of this Project. - update_time + 更新时间 :return: The update_time of this Project. :rtype: str @@ -230,7 +230,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this Project. - update_time + 更新时间 :param update_time: The update_time of this Project. :type update_time: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/related_temp_running_data.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/related_temp_running_data.py index ec5952b929..02a38e5d9f 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/related_temp_running_data.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/related_temp_running_data.py @@ -21,6 +21,7 @@ class RelatedTempRunningData: 'related_temp_running_id': 'int', 'temp_id': 'int', 'temp_name': 'str', + 'content_method_url': 'list[str]', 'related_temp_running_data': 'list[TempRunningData]' } @@ -29,23 +30,26 @@ class RelatedTempRunningData: 'related_temp_running_id': 'related_temp_running_id', 'temp_id': 'temp_id', 'temp_name': 'temp_name', + 'content_method_url': 'content_method_url', 'related_temp_running_data': 'related_temp_running_data' } - def __init__(self, task_run_info_id=None, related_temp_running_id=None, temp_id=None, temp_name=None, related_temp_running_data=None): + def __init__(self, task_run_info_id=None, related_temp_running_id=None, temp_id=None, temp_name=None, content_method_url=None, related_temp_running_data=None): """RelatedTempRunningData The model defined in huaweicloud sdk - :param task_run_info_id: task_run_info_id + :param task_run_info_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_info_id: int - :param related_temp_running_id: related_temp_running_id + :param related_temp_running_id: 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :type related_temp_running_id: int - :param temp_id: temp_id + :param temp_id: 用例id :type temp_id: int - :param temp_name: temp_name + :param temp_name: 用例名称 :type temp_name: str - :param related_temp_running_data: related_temp_running_data + :param content_method_url: 请求信息,包括请求名称,方法,url信息 + :type content_method_url: list[str] + :param related_temp_running_data: 最近一次运行的报告简略信息 :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.TempRunningData`] """ @@ -55,6 +59,7 @@ def __init__(self, task_run_info_id=None, related_temp_running_id=None, temp_id= self._related_temp_running_id = None self._temp_id = None self._temp_name = None + self._content_method_url = None self._related_temp_running_data = None self.discriminator = None @@ -66,6 +71,8 @@ def __init__(self, task_run_info_id=None, related_temp_running_id=None, temp_id= self.temp_id = temp_id if temp_name is not None: self.temp_name = temp_name + if content_method_url is not None: + self.content_method_url = content_method_url if related_temp_running_data is not None: self.related_temp_running_data = related_temp_running_data @@ -73,7 +80,7 @@ def __init__(self, task_run_info_id=None, related_temp_running_id=None, temp_id= def task_run_info_id(self): """Gets the task_run_info_id of this RelatedTempRunningData. - task_run_info_id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_info_id of this RelatedTempRunningData. :rtype: int @@ -84,7 +91,7 @@ def task_run_info_id(self): def task_run_info_id(self, task_run_info_id): """Sets the task_run_info_id of this RelatedTempRunningData. - task_run_info_id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_info_id: The task_run_info_id of this RelatedTempRunningData. :type task_run_info_id: int @@ -95,7 +102,7 @@ def task_run_info_id(self, task_run_info_id): def related_temp_running_id(self): """Gets the related_temp_running_id of this RelatedTempRunningData. - related_temp_running_id + 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :return: The related_temp_running_id of this RelatedTempRunningData. :rtype: int @@ -106,7 +113,7 @@ def related_temp_running_id(self): def related_temp_running_id(self, related_temp_running_id): """Sets the related_temp_running_id of this RelatedTempRunningData. - related_temp_running_id + 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :param related_temp_running_id: The related_temp_running_id of this RelatedTempRunningData. :type related_temp_running_id: int @@ -117,7 +124,7 @@ def related_temp_running_id(self, related_temp_running_id): def temp_id(self): """Gets the temp_id of this RelatedTempRunningData. - temp_id + 用例id :return: The temp_id of this RelatedTempRunningData. :rtype: int @@ -128,7 +135,7 @@ def temp_id(self): def temp_id(self, temp_id): """Sets the temp_id of this RelatedTempRunningData. - temp_id + 用例id :param temp_id: The temp_id of this RelatedTempRunningData. :type temp_id: int @@ -139,7 +146,7 @@ def temp_id(self, temp_id): def temp_name(self): """Gets the temp_name of this RelatedTempRunningData. - temp_name + 用例名称 :return: The temp_name of this RelatedTempRunningData. :rtype: str @@ -150,18 +157,40 @@ def temp_name(self): def temp_name(self, temp_name): """Sets the temp_name of this RelatedTempRunningData. - temp_name + 用例名称 :param temp_name: The temp_name of this RelatedTempRunningData. :type temp_name: str """ self._temp_name = temp_name + @property + def content_method_url(self): + """Gets the content_method_url of this RelatedTempRunningData. + + 请求信息,包括请求名称,方法,url信息 + + :return: The content_method_url of this RelatedTempRunningData. + :rtype: list[str] + """ + return self._content_method_url + + @content_method_url.setter + def content_method_url(self, content_method_url): + """Sets the content_method_url of this RelatedTempRunningData. + + 请求信息,包括请求名称,方法,url信息 + + :param content_method_url: The content_method_url of this RelatedTempRunningData. + :type content_method_url: list[str] + """ + self._content_method_url = content_method_url + @property def related_temp_running_data(self): """Gets the related_temp_running_data of this RelatedTempRunningData. - related_temp_running_data + 最近一次运行的报告简略信息 :return: The related_temp_running_data of this RelatedTempRunningData. :rtype: list[:class:`huaweicloudsdkcpts.v1.TempRunningData`] @@ -172,7 +201,7 @@ def related_temp_running_data(self): def related_temp_running_data(self, related_temp_running_data): """Sets the related_temp_running_data of this RelatedTempRunningData. - related_temp_running_data + 最近一次运行的报告简略信息 :param related_temp_running_data: The related_temp_running_data of this RelatedTempRunningData. :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.TempRunningData`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_history_run_info_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_history_run_info_response.py index cde0cca601..3b0f465424 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_history_run_info_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_history_run_info_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, message=None, log_list=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param log_list: log_list + :param log_list: 报告列表 :type log_list: list[:class:`huaweicloudsdkcpts.v1.HistoryRunInfo`] """ @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, log_list=None): def code(self): """Gets the code of this ShowHistoryRunInfoResponse. - code + 响应码 :return: The code of this ShowHistoryRunInfoResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ShowHistoryRunInfoResponse. - code + 响应码 :param code: The code of this ShowHistoryRunInfoResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ShowHistoryRunInfoResponse. - message + 响应消息 :return: The message of this ShowHistoryRunInfoResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ShowHistoryRunInfoResponse. - message + 响应消息 :param message: The message of this ShowHistoryRunInfoResponse. :type message: str @@ -104,7 +104,7 @@ def message(self, message): def log_list(self): """Gets the log_list of this ShowHistoryRunInfoResponse. - log_list + 报告列表 :return: The log_list of this ShowHistoryRunInfoResponse. :rtype: list[:class:`huaweicloudsdkcpts.v1.HistoryRunInfo`] @@ -115,7 +115,7 @@ def log_list(self): def log_list(self, log_list): """Sets the log_list of this ShowHistoryRunInfoResponse. - log_list + 报告列表 :param log_list: The log_list of this ShowHistoryRunInfoResponse. :type log_list: list[:class:`huaweicloudsdkcpts.v1.HistoryRunInfo`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_case_detail_request.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_case_detail_request.py index 2805825367..5f8ca882a3 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_case_detail_request.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_case_detail_request.py @@ -31,9 +31,9 @@ def __init__(self, task_run_id=None, case_run_id=None): The model defined in huaweicloud sdk - :param task_run_id: 任务运行id(报告id) + :param task_run_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_id: int - :param case_run_id: 用例运行id + :param case_run_id: 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :type case_run_id: int """ @@ -50,7 +50,7 @@ def __init__(self, task_run_id=None, case_run_id=None): def task_run_id(self): """Gets the task_run_id of this ShowMergeCaseDetailRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_id of this ShowMergeCaseDetailRequest. :rtype: int @@ -61,7 +61,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this ShowMergeCaseDetailRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_id: The task_run_id of this ShowMergeCaseDetailRequest. :type task_run_id: int @@ -72,7 +72,7 @@ def task_run_id(self, task_run_id): def case_run_id(self): """Gets the case_run_id of this ShowMergeCaseDetailRequest. - 用例运行id + 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :return: The case_run_id of this ShowMergeCaseDetailRequest. :rtype: int @@ -83,7 +83,7 @@ def case_run_id(self): def case_run_id(self, case_run_id): """Sets the case_run_id of this ShowMergeCaseDetailRequest. - 用例运行id + 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :param case_run_id: The case_run_id of this ShowMergeCaseDetailRequest. :type case_run_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_report_logs_outline_request.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_report_logs_outline_request.py index 961d610a34..53532345c7 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_report_logs_outline_request.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_report_logs_outline_request.py @@ -29,7 +29,7 @@ def __init__(self, task_run_id=None): The model defined in huaweicloud sdk - :param task_run_id: 任务运行id(报告id) + :param task_run_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_id: int """ @@ -44,7 +44,7 @@ def __init__(self, task_run_id=None): def task_run_id(self): """Gets the task_run_id of this ShowMergeReportLogsOutlineRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_id of this ShowMergeReportLogsOutlineRequest. :rtype: int @@ -55,7 +55,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this ShowMergeReportLogsOutlineRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_id: The task_run_id of this ShowMergeReportLogsOutlineRequest. :type task_run_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_task_case_request.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_task_case_request.py index 2e75dec40d..5552e8c840 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_task_case_request.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_merge_task_case_request.py @@ -29,7 +29,7 @@ def __init__(self, task_run_id=None): The model defined in huaweicloud sdk - :param task_run_id: 任务运行id(报告id) + :param task_run_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_id: int """ @@ -44,7 +44,7 @@ def __init__(self, task_run_id=None): def task_run_id(self): """Gets the task_run_id of this ShowMergeTaskCaseRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_id of this ShowMergeTaskCaseRequest. :rtype: int @@ -55,7 +55,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this ShowMergeTaskCaseRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_id: The task_run_id of this ShowMergeTaskCaseRequest. :type task_run_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_process_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_process_response.py index 90b118e121..55eef94851 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_process_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_process_response.py @@ -36,13 +36,13 @@ def __init__(self, code=None, message=None, json=None, extend=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param json: :type json: :class:`huaweicloudsdkcpts.v1.UploadProcessJson` - :param extend: extend + :param extend: 扩展信息 :type extend: str """ @@ -67,7 +67,7 @@ def __init__(self, code=None, message=None, json=None, extend=None): def code(self): """Gets the code of this ShowProcessResponse. - code + 响应码 :return: The code of this ShowProcessResponse. :rtype: str @@ -78,7 +78,7 @@ def code(self): def code(self, code): """Sets the code of this ShowProcessResponse. - code + 响应码 :param code: The code of this ShowProcessResponse. :type code: str @@ -89,7 +89,7 @@ def code(self, code): def message(self): """Gets the message of this ShowProcessResponse. - message + 响应消息 :return: The message of this ShowProcessResponse. :rtype: str @@ -100,7 +100,7 @@ def message(self): def message(self, message): """Sets the message of this ShowProcessResponse. - message + 响应消息 :param message: The message of this ShowProcessResponse. :type message: str @@ -129,7 +129,7 @@ def json(self, json): def extend(self): """Gets the extend of this ShowProcessResponse. - extend + 扩展信息 :return: The extend of this ShowProcessResponse. :rtype: str @@ -140,7 +140,7 @@ def extend(self): def extend(self, extend): """Sets the extend of this ShowProcessResponse. - extend + 扩展信息 :param extend: The extend of this ShowProcessResponse. :type extend: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_project_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_project_response.py index f55188f1ce..741b694ccb 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_project_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_project_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, project=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param project: :type project: :class:`huaweicloudsdkcpts.v1.Project` @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, project=None): def code(self): """Gets the code of this ShowProjectResponse. - code + 响应码 :return: The code of this ShowProjectResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ShowProjectResponse. - code + 响应码 :param code: The code of this ShowProjectResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ShowProjectResponse. - message + 响应消息 :return: The message of this ShowProjectResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ShowProjectResponse. - message + 响应消息 :param message: The message of this ShowProjectResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_request.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_request.py index 5c3d44377a..57b1bbc07f 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_request.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_request.py @@ -33,9 +33,9 @@ def __init__(self, task_run_id=None, case_run_id=None, brokens_limit_count=None) The model defined in huaweicloud sdk - :param task_run_id: 运行任务id + :param task_run_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_id: int - :param case_run_id: 运行用例id + :param case_run_id: 运行用例id,报告管理中的“内外融合当前任务用例列表”接口,使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :type case_run_id: int :param brokens_limit_count: 曲线图点数 :type brokens_limit_count: int @@ -56,7 +56,7 @@ def __init__(self, task_run_id=None, case_run_id=None, brokens_limit_count=None) def task_run_id(self): """Gets the task_run_id of this ShowReportRequest. - 运行任务id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_id of this ShowReportRequest. :rtype: int @@ -67,7 +67,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this ShowReportRequest. - 运行任务id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_id: The task_run_id of this ShowReportRequest. :type task_run_id: int @@ -78,7 +78,7 @@ def task_run_id(self, task_run_id): def case_run_id(self): """Gets the case_run_id of this ShowReportRequest. - 运行用例id + 运行用例id,报告管理中的“内外融合当前任务用例列表”接口,使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :return: The case_run_id of this ShowReportRequest. :rtype: int @@ -89,7 +89,7 @@ def case_run_id(self): def case_run_id(self, case_run_id): """Sets the case_run_id of this ShowReportRequest. - 运行用例id + 运行用例id,报告管理中的“内外融合当前任务用例列表”接口,使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :param case_run_id: The case_run_id of this ShowReportRequest. :type case_run_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_response.py index a64c53a04f..d0ba479e26 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_report_response.py @@ -36,11 +36,11 @@ def __init__(self, code=None, message=None, extend=None, result=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param extend: extend + :param extend: 扩展信息 :type extend: str :param result: :type result: :class:`huaweicloudsdkcpts.v1.ReportInfo` @@ -67,7 +67,7 @@ def __init__(self, code=None, message=None, extend=None, result=None): def code(self): """Gets the code of this ShowReportResponse. - code + 响应码 :return: The code of this ShowReportResponse. :rtype: str @@ -78,7 +78,7 @@ def code(self): def code(self, code): """Sets the code of this ShowReportResponse. - code + 响应码 :param code: The code of this ShowReportResponse. :type code: str @@ -89,7 +89,7 @@ def code(self, code): def message(self): """Gets the message of this ShowReportResponse. - message + 响应消息 :return: The message of this ShowReportResponse. :rtype: str @@ -100,7 +100,7 @@ def message(self): def message(self, message): """Sets the message of this ShowReportResponse. - message + 响应消息 :param message: The message of this ShowReportResponse. :type message: str @@ -111,7 +111,7 @@ def message(self, message): def extend(self): """Gets the extend of this ShowReportResponse. - extend + 扩展信息 :return: The extend of this ShowReportResponse. :rtype: str @@ -122,7 +122,7 @@ def extend(self): def extend(self, extend): """Sets the extend of this ShowReportResponse. - extend + 扩展信息 :param extend: The extend of this ShowReportResponse. :type extend: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_case_aw_chart_request.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_case_aw_chart_request.py index 2cca9c4524..38328fd0e1 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_case_aw_chart_request.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_case_aw_chart_request.py @@ -33,11 +33,11 @@ def __init__(self, task_run_id=None, case_run_id=None, detail_id=None): The model defined in huaweicloud sdk - :param task_run_id: 任务运行id(报告id) + :param task_run_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_id: int - :param case_run_id: 用例运行id + :param case_run_id: 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :type case_run_id: int - :param detail_id: 详情id + :param detail_id: 运行用例详情id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用运行任务id(task_run_id)作为路径参数,可以查询到该报告关联的运行用例详情id集合,即返回结构体中result.case_aw_info_list[index].testcaseId为索引为index的运行用例详情id(detail_id)。 :type detail_id: str """ @@ -56,7 +56,7 @@ def __init__(self, task_run_id=None, case_run_id=None, detail_id=None): def task_run_id(self): """Gets the task_run_id of this ShowTaskCaseAwChartRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_id of this ShowTaskCaseAwChartRequest. :rtype: int @@ -67,7 +67,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this ShowTaskCaseAwChartRequest. - 任务运行id(报告id) + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_id: The task_run_id of this ShowTaskCaseAwChartRequest. :type task_run_id: int @@ -78,7 +78,7 @@ def task_run_id(self, task_run_id): def case_run_id(self): """Gets the case_run_id of this ShowTaskCaseAwChartRequest. - 用例运行id + 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :return: The case_run_id of this ShowTaskCaseAwChartRequest. :rtype: int @@ -89,7 +89,7 @@ def case_run_id(self): def case_run_id(self, case_run_id): """Sets the case_run_id of this ShowTaskCaseAwChartRequest. - 用例运行id + 运行用例id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用任务运行id(task_run_id)作为路径参数,可以查询到该报告关联的用例运行id集合,即返回结构体中result.case_aw_info_list[index].case_uri_i为索引为index的运行用例id(case_run_id)。 :param case_run_id: The case_run_id of this ShowTaskCaseAwChartRequest. :type case_run_id: int @@ -100,7 +100,7 @@ def case_run_id(self, case_run_id): def detail_id(self): """Gets the detail_id of this ShowTaskCaseAwChartRequest. - 详情id + 运行用例详情id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用运行任务id(task_run_id)作为路径参数,可以查询到该报告关联的运行用例详情id集合,即返回结构体中result.case_aw_info_list[index].testcaseId为索引为index的运行用例详情id(detail_id)。 :return: The detail_id of this ShowTaskCaseAwChartRequest. :rtype: str @@ -111,7 +111,7 @@ def detail_id(self): def detail_id(self, detail_id): """Sets the detail_id of this ShowTaskCaseAwChartRequest. - 详情id + 运行用例详情id,通过报告管理中的“内外融合当前任务用例列表”接口获取:使用运行任务id(task_run_id)作为路径参数,可以查询到该报告关联的运行用例详情id集合,即返回结构体中result.case_aw_info_list[index].testcaseId为索引为index的运行用例详情id(detail_id)。 :param detail_id: The detail_id of this ShowTaskCaseAwChartRequest. :type detail_id: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_response.py index cf7e961288..d9b9913ffe 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, task_info=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param task_info: :type task_info: :class:`huaweicloudsdkcpts.v1.TaskInfo` @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, task_info=None): def code(self): """Gets the code of this ShowTaskResponse. - code + 响应码 :return: The code of this ShowTaskResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ShowTaskResponse. - code + 响应码 :param code: The code of this ShowTaskResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ShowTaskResponse. - message + 响应消息 :return: The message of this ShowTaskResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ShowTaskResponse. - message + 响应消息 :param message: The message of this ShowTaskResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_set_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_set_response.py index a05a02f3ab..3c09a8f89b 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_set_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_task_set_response.py @@ -36,11 +36,11 @@ def __init__(self, code=None, extend=None, message=None, tasks=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param extend: extend + :param extend: 扩展信息 :type extend: list[str] - :param message: message + :param message: 响应消息 :type message: str :param tasks: 工程集详细信息 :type tasks: list[:class:`huaweicloudsdkcpts.v1.Task`] @@ -67,7 +67,7 @@ def __init__(self, code=None, extend=None, message=None, tasks=None): def code(self): """Gets the code of this ShowTaskSetResponse. - code + 响应码 :return: The code of this ShowTaskSetResponse. :rtype: str @@ -78,7 +78,7 @@ def code(self): def code(self, code): """Sets the code of this ShowTaskSetResponse. - code + 响应码 :param code: The code of this ShowTaskSetResponse. :type code: str @@ -89,7 +89,7 @@ def code(self, code): def extend(self): """Gets the extend of this ShowTaskSetResponse. - extend + 扩展信息 :return: The extend of this ShowTaskSetResponse. :rtype: list[str] @@ -100,7 +100,7 @@ def extend(self): def extend(self, extend): """Sets the extend of this ShowTaskSetResponse. - extend + 扩展信息 :param extend: The extend of this ShowTaskSetResponse. :type extend: list[str] @@ -111,7 +111,7 @@ def extend(self, extend): def message(self): """Gets the message of this ShowTaskSetResponse. - message + 响应消息 :return: The message of this ShowTaskSetResponse. :rtype: str @@ -122,7 +122,7 @@ def message(self): def message(self, message): """Sets the message of this ShowTaskSetResponse. - message + 响应消息 :param message: The message of this ShowTaskSetResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_response.py index 4959318878..99b54dcf57 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, temp_info=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param temp_info: :type temp_info: :class:`huaweicloudsdkcpts.v1.TempInfo` @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, temp_info=None): def code(self): """Gets the code of this ShowTempResponse. - code + 响应码 :return: The code of this ShowTempResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ShowTempResponse. - code + 响应码 :param code: The code of this ShowTempResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ShowTempResponse. - message + 响应消息 :return: The message of this ShowTempResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ShowTempResponse. - message + 响应消息 :param message: The message of this ShowTempResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_set_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_set_response.py index ab35c5f19d..afd8f69db0 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_set_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/show_temp_set_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, temps=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param temps: temps :type temps: list[:class:`huaweicloudsdkcpts.v1.TempDetailInfo`] @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, temps=None): def code(self): """Gets the code of this ShowTempSetResponse. - code + 响应码 :return: The code of this ShowTempSetResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this ShowTempSetResponse. - code + 响应码 :param code: The code of this ShowTempSetResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this ShowTempSetResponse. - message + 响应消息 :return: The message of this ShowTempSetResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this ShowTempSetResponse. - message + 响应消息 :param message: The message of this ShowTempSetResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_info.py index cbfa2e7a71..3776ba31aa 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_info.py @@ -49,27 +49,27 @@ def __init__(self, bench_concurrent=None, case_list=None, create_time=None, desc The model defined in huaweicloud sdk - :param bench_concurrent: bench_concurrent + :param bench_concurrent: 基准并发 :type bench_concurrent: int - :param case_list: case_list + :param case_list: 用例Id列表 :type case_list: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] :param create_time: 创建时间 :type create_time: datetime - :param description: description + :param description: 描述信息 :type description: str - :param name: name + :param name: 任务名称 :type name: str - :param operate_mode: operate_mode + :param operate_mode: 任务模式(0:时长模式;1:次数模式;2:混合模式) :type operate_mode: int - :param project_id: project_id + :param project_id: 任务所属工程id :type project_id: int - :param related_temp_running_data: related_temp_running_data + :param related_temp_running_data: 最近一次运行的报告简略信息,包括运行任务id,即本对象的task_run_info_id。运行用例id,即本对象的related_temp_running_id。 :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] - :param run_status: run_status + :param run_status: 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :type run_status: int - :param update_time: update_time + :param update_time: 任务更新时间 :type update_time: str - :param parallel: parallel + :param parallel: 任务间用例是否并行执行 :type parallel: bool """ @@ -115,7 +115,7 @@ def __init__(self, bench_concurrent=None, case_list=None, create_time=None, desc def bench_concurrent(self): """Gets the bench_concurrent of this TaskInfo. - bench_concurrent + 基准并发 :return: The bench_concurrent of this TaskInfo. :rtype: int @@ -126,7 +126,7 @@ def bench_concurrent(self): def bench_concurrent(self, bench_concurrent): """Sets the bench_concurrent of this TaskInfo. - bench_concurrent + 基准并发 :param bench_concurrent: The bench_concurrent of this TaskInfo. :type bench_concurrent: int @@ -137,7 +137,7 @@ def bench_concurrent(self, bench_concurrent): def case_list(self): """Gets the case_list of this TaskInfo. - case_list + 用例Id列表 :return: The case_list of this TaskInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] @@ -148,7 +148,7 @@ def case_list(self): def case_list(self, case_list): """Sets the case_list of this TaskInfo. - case_list + 用例Id列表 :param case_list: The case_list of this TaskInfo. :type case_list: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] @@ -181,7 +181,7 @@ def create_time(self, create_time): def description(self): """Gets the description of this TaskInfo. - description + 描述信息 :return: The description of this TaskInfo. :rtype: str @@ -192,7 +192,7 @@ def description(self): def description(self, description): """Sets the description of this TaskInfo. - description + 描述信息 :param description: The description of this TaskInfo. :type description: str @@ -203,7 +203,7 @@ def description(self, description): def name(self): """Gets the name of this TaskInfo. - name + 任务名称 :return: The name of this TaskInfo. :rtype: str @@ -214,7 +214,7 @@ def name(self): def name(self, name): """Sets the name of this TaskInfo. - name + 任务名称 :param name: The name of this TaskInfo. :type name: str @@ -225,7 +225,7 @@ def name(self, name): def operate_mode(self): """Gets the operate_mode of this TaskInfo. - operate_mode + 任务模式(0:时长模式;1:次数模式;2:混合模式) :return: The operate_mode of this TaskInfo. :rtype: int @@ -236,7 +236,7 @@ def operate_mode(self): def operate_mode(self, operate_mode): """Sets the operate_mode of this TaskInfo. - operate_mode + 任务模式(0:时长模式;1:次数模式;2:混合模式) :param operate_mode: The operate_mode of this TaskInfo. :type operate_mode: int @@ -247,7 +247,7 @@ def operate_mode(self, operate_mode): def project_id(self): """Gets the project_id of this TaskInfo. - project_id + 任务所属工程id :return: The project_id of this TaskInfo. :rtype: int @@ -258,7 +258,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this TaskInfo. - project_id + 任务所属工程id :param project_id: The project_id of this TaskInfo. :type project_id: int @@ -269,7 +269,7 @@ def project_id(self, project_id): def related_temp_running_data(self): """Gets the related_temp_running_data of this TaskInfo. - related_temp_running_data + 最近一次运行的报告简略信息,包括运行任务id,即本对象的task_run_info_id。运行用例id,即本对象的related_temp_running_id。 :return: The related_temp_running_data of this TaskInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] @@ -280,7 +280,7 @@ def related_temp_running_data(self): def related_temp_running_data(self, related_temp_running_data): """Sets the related_temp_running_data of this TaskInfo. - related_temp_running_data + 最近一次运行的报告简略信息,包括运行任务id,即本对象的task_run_info_id。运行用例id,即本对象的related_temp_running_id。 :param related_temp_running_data: The related_temp_running_data of this TaskInfo. :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] @@ -291,7 +291,7 @@ def related_temp_running_data(self, related_temp_running_data): def run_status(self): """Gets the run_status of this TaskInfo. - run_status + 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :return: The run_status of this TaskInfo. :rtype: int @@ -302,7 +302,7 @@ def run_status(self): def run_status(self, run_status): """Sets the run_status of this TaskInfo. - run_status + 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :param run_status: The run_status of this TaskInfo. :type run_status: int @@ -313,7 +313,7 @@ def run_status(self, run_status): def update_time(self): """Gets the update_time of this TaskInfo. - update_time + 任务更新时间 :return: The update_time of this TaskInfo. :rtype: str @@ -324,7 +324,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this TaskInfo. - update_time + 任务更新时间 :param update_time: The update_time of this TaskInfo. :type update_time: str @@ -335,7 +335,7 @@ def update_time(self, update_time): def parallel(self): """Gets the parallel of this TaskInfo. - parallel + 任务间用例是否并行执行 :return: The parallel of this TaskInfo. :rtype: bool @@ -346,7 +346,7 @@ def parallel(self): def parallel(self, parallel): """Sets the parallel of this TaskInfo. - parallel + 任务间用例是否并行执行 :param parallel: The parallel of this TaskInfo. :type parallel: bool diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_run_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_run_info.py index 6141c6c4e9..70a0a01a9e 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_run_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/task_run_info.py @@ -31,9 +31,9 @@ def __init__(self, id=None, run_type=None): The model defined in huaweicloud sdk - :param id: id + :param id: 任务id :type id: int - :param run_type: run_type + :param run_type: 任务类型(0:旧版本任务;1:新版本任务) :type run_type: int """ @@ -52,7 +52,7 @@ def __init__(self, id=None, run_type=None): def id(self): """Gets the id of this TaskRunInfo. - id + 任务id :return: The id of this TaskRunInfo. :rtype: int @@ -63,7 +63,7 @@ def id(self): def id(self, id): """Sets the id of this TaskRunInfo. - id + 任务id :param id: The id of this TaskRunInfo. :type id: int @@ -74,7 +74,7 @@ def id(self, id): def run_type(self): """Gets the run_type of this TaskRunInfo. - run_type + 任务类型(0:旧版本任务;1:新版本任务) :return: The run_type of this TaskRunInfo. :rtype: int @@ -85,7 +85,7 @@ def run_type(self): def run_type(self, run_type): """Sets the run_type of this TaskRunInfo. - run_type + 任务类型(0:旧版本任务;1:新版本任务) :param run_type: The run_type of this TaskRunInfo. :type run_type: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_content_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_content_info.py index d3365d756c..debb71c095 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_content_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_content_info.py @@ -37,15 +37,15 @@ def __init__(self, content_id=None, content=None, index=None, data=None, data_ty The model defined in huaweicloud sdk - :param content_id: content_id + :param content_id: 报文id或者事务id或者插件id :type content_id: int - :param content: content + :param content: 内容 :type content: list[:class:`huaweicloudsdkcpts.v1.Content`] - :param index: index + :param index: 索引 :type index: int - :param data: data + :param data: 数据指令内容 :type data: object - :param data_type: data_type + :param data_type: 数据指令类型(0:默认请求卡片;1:数据指令;201:循环指令;202:条件指令;203:vu百分比控制器;204:吞吐量控制器;301:集合点;302:插件请求) :type data_type: int """ @@ -73,7 +73,7 @@ def __init__(self, content_id=None, content=None, index=None, data=None, data_ty def content_id(self): """Gets the content_id of this TempContentInfo. - content_id + 报文id或者事务id或者插件id :return: The content_id of this TempContentInfo. :rtype: int @@ -84,7 +84,7 @@ def content_id(self): def content_id(self, content_id): """Sets the content_id of this TempContentInfo. - content_id + 报文id或者事务id或者插件id :param content_id: The content_id of this TempContentInfo. :type content_id: int @@ -95,7 +95,7 @@ def content_id(self, content_id): def content(self): """Gets the content of this TempContentInfo. - content + 内容 :return: The content of this TempContentInfo. :rtype: list[:class:`huaweicloudsdkcpts.v1.Content`] @@ -106,7 +106,7 @@ def content(self): def content(self, content): """Sets the content of this TempContentInfo. - content + 内容 :param content: The content of this TempContentInfo. :type content: list[:class:`huaweicloudsdkcpts.v1.Content`] @@ -117,7 +117,7 @@ def content(self, content): def index(self): """Gets the index of this TempContentInfo. - index + 索引 :return: The index of this TempContentInfo. :rtype: int @@ -128,7 +128,7 @@ def index(self): def index(self, index): """Sets the index of this TempContentInfo. - index + 索引 :param index: The index of this TempContentInfo. :type index: int @@ -139,7 +139,7 @@ def index(self, index): def data(self): """Gets the data of this TempContentInfo. - data + 数据指令内容 :return: The data of this TempContentInfo. :rtype: object @@ -150,7 +150,7 @@ def data(self): def data(self, data): """Sets the data of this TempContentInfo. - data + 数据指令内容 :param data: The data of this TempContentInfo. :type data: object @@ -161,7 +161,7 @@ def data(self, data): def data_type(self): """Gets the data_type of this TempContentInfo. - data_type + 数据指令类型(0:默认请求卡片;1:数据指令;201:循环指令;202:条件指令;203:vu百分比控制器;204:吞吐量控制器;301:集合点;302:插件请求) :return: The data_type of this TempContentInfo. :rtype: int @@ -172,7 +172,7 @@ def data_type(self): def data_type(self, data_type): """Sets the data_type of this TempContentInfo. - data_type + 数据指令类型(0:默认请求卡片;1:数据指令;201:循环指令;202:条件指令;203:vu百分比控制器;204:吞吐量控制器;301:集合点;302:插件请求) :param data_type: The data_type of this TempContentInfo. :type data_type: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_detail_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_detail_info.py index 1c6bb75a13..77aa8072d2 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_detail_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_detail_info.py @@ -39,17 +39,17 @@ def __init__(self, description=None, id=None, is_quoted=None, name=None, temp_ty The model defined in huaweicloud sdk - :param description: description + :param description: 描述 :type description: str - :param id: id + :param id: 事务id :type id: int :param is_quoted: 是否被引用 :type is_quoted: bool - :param name: name + :param name: 事务名称 :type name: str - :param temp_type: temp_type + :param temp_type: 事务类型(已弃用,兼容性保留) :type temp_type: int - :param update_time: update_time + :param update_time: 更新时间 :type update_time: str """ @@ -80,7 +80,7 @@ def __init__(self, description=None, id=None, is_quoted=None, name=None, temp_ty def description(self): """Gets the description of this TempDetailInfo. - description + 描述 :return: The description of this TempDetailInfo. :rtype: str @@ -91,7 +91,7 @@ def description(self): def description(self, description): """Sets the description of this TempDetailInfo. - description + 描述 :param description: The description of this TempDetailInfo. :type description: str @@ -102,7 +102,7 @@ def description(self, description): def id(self): """Gets the id of this TempDetailInfo. - id + 事务id :return: The id of this TempDetailInfo. :rtype: int @@ -113,7 +113,7 @@ def id(self): def id(self, id): """Sets the id of this TempDetailInfo. - id + 事务id :param id: The id of this TempDetailInfo. :type id: int @@ -146,7 +146,7 @@ def is_quoted(self, is_quoted): def name(self): """Gets the name of this TempDetailInfo. - name + 事务名称 :return: The name of this TempDetailInfo. :rtype: str @@ -157,7 +157,7 @@ def name(self): def name(self, name): """Sets the name of this TempDetailInfo. - name + 事务名称 :param name: The name of this TempDetailInfo. :type name: str @@ -168,7 +168,7 @@ def name(self, name): def temp_type(self): """Gets the temp_type of this TempDetailInfo. - temp_type + 事务类型(已弃用,兼容性保留) :return: The temp_type of this TempDetailInfo. :rtype: int @@ -179,7 +179,7 @@ def temp_type(self): def temp_type(self, temp_type): """Sets the temp_type of this TempDetailInfo. - temp_type + 事务类型(已弃用,兼容性保留) :param temp_type: The temp_type of this TempDetailInfo. :type temp_type: int @@ -190,7 +190,7 @@ def temp_type(self, temp_type): def update_time(self): """Gets the update_time of this TempDetailInfo. - update_time + 更新时间 :return: The update_time of this TempDetailInfo. :rtype: str @@ -201,7 +201,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this TempDetailInfo. - update_time + 更新时间 :param update_time: The update_time of this TempDetailInfo. :type update_time: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_info.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_info.py index 19a24ae32c..9625365204 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_info.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_info.py @@ -47,25 +47,25 @@ def __init__(self, id=None, project_id=None, name=None, description=None, variab The model defined in huaweicloud sdk - :param id: id + :param id: 事务id :type id: int - :param project_id: project_id + :param project_id: 工程id :type project_id: int - :param name: name + :param name: 事务名称 :type name: str - :param description: description + :param description: 事务描述 :type description: str - :param variables: variables + :param variables: 变量 :type variables: str - :param contents: contents + :param contents: 事务脚本信息 :type contents: list[object] - :param temp_type: temp_type + :param temp_type: 事务类型(弃用) :type temp_type: int - :param for_loop_params: for_loop_params + :param for_loop_params: 旧版本逻辑控制器字段,当前已未使用 :type for_loop_params: list[object] :param logic_controller: :type logic_controller: :class:`huaweicloudsdkcpts.v1.LogicController` - :param enable_pre: enable_pre + :param enable_pre: 是否启用预置事务,当前版本已未使用 :type enable_pre: bool """ @@ -108,7 +108,7 @@ def __init__(self, id=None, project_id=None, name=None, description=None, variab def id(self): """Gets the id of this TempInfo. - id + 事务id :return: The id of this TempInfo. :rtype: int @@ -119,7 +119,7 @@ def id(self): def id(self, id): """Sets the id of this TempInfo. - id + 事务id :param id: The id of this TempInfo. :type id: int @@ -130,7 +130,7 @@ def id(self, id): def project_id(self): """Gets the project_id of this TempInfo. - project_id + 工程id :return: The project_id of this TempInfo. :rtype: int @@ -141,7 +141,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this TempInfo. - project_id + 工程id :param project_id: The project_id of this TempInfo. :type project_id: int @@ -152,7 +152,7 @@ def project_id(self, project_id): def name(self): """Gets the name of this TempInfo. - name + 事务名称 :return: The name of this TempInfo. :rtype: str @@ -163,7 +163,7 @@ def name(self): def name(self, name): """Sets the name of this TempInfo. - name + 事务名称 :param name: The name of this TempInfo. :type name: str @@ -174,7 +174,7 @@ def name(self, name): def description(self): """Gets the description of this TempInfo. - description + 事务描述 :return: The description of this TempInfo. :rtype: str @@ -185,7 +185,7 @@ def description(self): def description(self, description): """Sets the description of this TempInfo. - description + 事务描述 :param description: The description of this TempInfo. :type description: str @@ -196,7 +196,7 @@ def description(self, description): def variables(self): """Gets the variables of this TempInfo. - variables + 变量 :return: The variables of this TempInfo. :rtype: str @@ -207,7 +207,7 @@ def variables(self): def variables(self, variables): """Sets the variables of this TempInfo. - variables + 变量 :param variables: The variables of this TempInfo. :type variables: str @@ -218,7 +218,7 @@ def variables(self, variables): def contents(self): """Gets the contents of this TempInfo. - contents + 事务脚本信息 :return: The contents of this TempInfo. :rtype: list[object] @@ -229,7 +229,7 @@ def contents(self): def contents(self, contents): """Sets the contents of this TempInfo. - contents + 事务脚本信息 :param contents: The contents of this TempInfo. :type contents: list[object] @@ -240,7 +240,7 @@ def contents(self, contents): def temp_type(self): """Gets the temp_type of this TempInfo. - temp_type + 事务类型(弃用) :return: The temp_type of this TempInfo. :rtype: int @@ -251,7 +251,7 @@ def temp_type(self): def temp_type(self, temp_type): """Sets the temp_type of this TempInfo. - temp_type + 事务类型(弃用) :param temp_type: The temp_type of this TempInfo. :type temp_type: int @@ -262,7 +262,7 @@ def temp_type(self, temp_type): def for_loop_params(self): """Gets the for_loop_params of this TempInfo. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :return: The for_loop_params of this TempInfo. :rtype: list[object] @@ -273,7 +273,7 @@ def for_loop_params(self): def for_loop_params(self, for_loop_params): """Sets the for_loop_params of this TempInfo. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :param for_loop_params: The for_loop_params of this TempInfo. :type for_loop_params: list[object] @@ -302,7 +302,7 @@ def logic_controller(self, logic_controller): def enable_pre(self): """Gets the enable_pre of this TempInfo. - enable_pre + 是否启用预置事务,当前版本已未使用 :return: The enable_pre of this TempInfo. :rtype: bool @@ -313,7 +313,7 @@ def enable_pre(self): def enable_pre(self, enable_pre): """Sets the enable_pre of this TempInfo. - enable_pre + 是否启用预置事务,当前版本已未使用 :param enable_pre: The enable_pre of this TempInfo. :type enable_pre: bool diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_name.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_name.py index 4f522ba817..d300758aea 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_name.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_name.py @@ -29,7 +29,7 @@ def __init__(self, name=None): The model defined in huaweicloud sdk - :param name: name + :param name: 名称 :type name: str """ @@ -45,7 +45,7 @@ def __init__(self, name=None): def name(self): """Gets the name of this TempName. - name + 名称 :return: The name of this TempName. :rtype: str @@ -56,7 +56,7 @@ def name(self): def name(self, name): """Sets the name of this TempName. - name + 名称 :param name: The name of this TempName. :type name: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_running_data.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_running_data.py index 01fab95760..af7dfc4d35 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_running_data.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/temp_running_data.py @@ -41,19 +41,19 @@ def __init__(self, content_method_url=None, crawler_status=None, related_temp_ru The model defined in huaweicloud sdk - :param content_method_url: content_method_url + :param content_method_url: 请求信息,包括请求名称,方法,url信息 :type content_method_url: list[str] - :param crawler_status: crawler_status + :param crawler_status: 请求运行状态(0:正常返回;1:解析失败; 2:比对失败; 3:响应超时;) :type crawler_status: int - :param related_temp_running_id: related_temp_running_id + :param related_temp_running_id: 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :type related_temp_running_id: int - :param task_run_info_id: task_run_info_id + :param task_run_info_id: 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :type task_run_info_id: int - :param temp_id: temp_id + :param temp_id: 用例或者事务id :type temp_id: int - :param temp_name: temp_name + :param temp_name: 用例或者事务名称 :type temp_name: str - :param temp_running_status: temp_running_status + :param temp_running_status: 运行状态(9:表示等待运行;0:表示运行中;2:表示结束;3:异常中止;4:用户主动终止(完成状态);5:用户主动终止(终止中状态)) :type temp_running_status: int """ @@ -87,7 +87,7 @@ def __init__(self, content_method_url=None, crawler_status=None, related_temp_ru def content_method_url(self): """Gets the content_method_url of this TempRunningData. - content_method_url + 请求信息,包括请求名称,方法,url信息 :return: The content_method_url of this TempRunningData. :rtype: list[str] @@ -98,7 +98,7 @@ def content_method_url(self): def content_method_url(self, content_method_url): """Sets the content_method_url of this TempRunningData. - content_method_url + 请求信息,包括请求名称,方法,url信息 :param content_method_url: The content_method_url of this TempRunningData. :type content_method_url: list[str] @@ -109,7 +109,7 @@ def content_method_url(self, content_method_url): def crawler_status(self): """Gets the crawler_status of this TempRunningData. - crawler_status + 请求运行状态(0:正常返回;1:解析失败; 2:比对失败; 3:响应超时;) :return: The crawler_status of this TempRunningData. :rtype: int @@ -120,7 +120,7 @@ def crawler_status(self): def crawler_status(self, crawler_status): """Sets the crawler_status of this TempRunningData. - crawler_status + 请求运行状态(0:正常返回;1:解析失败; 2:比对失败; 3:响应超时;) :param crawler_status: The crawler_status of this TempRunningData. :type crawler_status: int @@ -131,7 +131,7 @@ def crawler_status(self, crawler_status): def related_temp_running_id(self): """Gets the related_temp_running_id of this TempRunningData. - related_temp_running_id + 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :return: The related_temp_running_id of this TempRunningData. :rtype: int @@ -142,7 +142,7 @@ def related_temp_running_id(self): def related_temp_running_id(self, related_temp_running_id): """Sets the related_temp_running_id of this TempRunningData. - related_temp_running_id + 运行用例id。对应其他(如报告)接口的运行用例id(case_run_id)。 :param related_temp_running_id: The related_temp_running_id of this TempRunningData. :type related_temp_running_id: int @@ -153,7 +153,7 @@ def related_temp_running_id(self, related_temp_running_id): def task_run_info_id(self): """Gets the task_run_info_id of this TempRunningData. - task_run_info_id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :return: The task_run_info_id of this TempRunningData. :rtype: int @@ -164,7 +164,7 @@ def task_run_info_id(self): def task_run_info_id(self, task_run_info_id): """Sets the task_run_info_id of this TempRunningData. - task_run_info_id + 运行任务id,即报告id。启动任务(更新任务状态或批量启停任务)接口,会返回运行任务id。 :param task_run_info_id: The task_run_info_id of this TempRunningData. :type task_run_info_id: int @@ -175,7 +175,7 @@ def task_run_info_id(self, task_run_info_id): def temp_id(self): """Gets the temp_id of this TempRunningData. - temp_id + 用例或者事务id :return: The temp_id of this TempRunningData. :rtype: int @@ -186,7 +186,7 @@ def temp_id(self): def temp_id(self, temp_id): """Sets the temp_id of this TempRunningData. - temp_id + 用例或者事务id :param temp_id: The temp_id of this TempRunningData. :type temp_id: int @@ -197,7 +197,7 @@ def temp_id(self, temp_id): def temp_name(self): """Gets the temp_name of this TempRunningData. - temp_name + 用例或者事务名称 :return: The temp_name of this TempRunningData. :rtype: str @@ -208,7 +208,7 @@ def temp_name(self): def temp_name(self, temp_name): """Sets the temp_name of this TempRunningData. - temp_name + 用例或者事务名称 :param temp_name: The temp_name of this TempRunningData. :type temp_name: str @@ -219,7 +219,7 @@ def temp_name(self, temp_name): def temp_running_status(self): """Gets the temp_running_status of this TempRunningData. - temp_running_status + 运行状态(9:表示等待运行;0:表示运行中;2:表示结束;3:异常中止;4:用户主动终止(完成状态);5:用户主动终止(终止中状态)) :return: The temp_running_status of this TempRunningData. :rtype: int @@ -230,7 +230,7 @@ def temp_running_status(self): def temp_running_status(self, temp_running_status): """Sets the temp_running_status of this TempRunningData. - temp_running_status + 运行状态(9:表示等待运行;0:表示运行中;2:表示结束;3:异常中止;4:用户主动终止(完成状态);5:用户主动终止(终止中状态)) :param temp_running_status: The temp_running_status of this TempRunningData. :type temp_running_status: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_project_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_project_request_body.py index 7114a045ff..43a70c1170 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_project_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_project_request_body.py @@ -39,17 +39,17 @@ def __init__(self, id=None, name=None, description=None, variables_no_file=None, The model defined in huaweicloud sdk - :param id: id + :param id: 工程id :type id: int - :param name: name + :param name: 工程名称 :type name: str - :param description: description + :param description: 工程描述 :type description: str - :param variables_no_file: variables_no_file + :param variables_no_file: 导入工程时,缺失的存在于变量文件中的变量 :type variables_no_file: list[str] - :param source: source + :param source: 来源(0-PerfTest;2-CloudTest) :type source: int - :param external_params: external_params + :param external_params: 扩展参数 :type external_params: object """ @@ -78,7 +78,7 @@ def __init__(self, id=None, name=None, description=None, variables_no_file=None, def id(self): """Gets the id of this UpdateProjectRequestBody. - id + 工程id :return: The id of this UpdateProjectRequestBody. :rtype: int @@ -89,7 +89,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateProjectRequestBody. - id + 工程id :param id: The id of this UpdateProjectRequestBody. :type id: int @@ -100,7 +100,7 @@ def id(self, id): def name(self): """Gets the name of this UpdateProjectRequestBody. - name + 工程名称 :return: The name of this UpdateProjectRequestBody. :rtype: str @@ -111,7 +111,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateProjectRequestBody. - name + 工程名称 :param name: The name of this UpdateProjectRequestBody. :type name: str @@ -122,7 +122,7 @@ def name(self, name): def description(self): """Gets the description of this UpdateProjectRequestBody. - description + 工程描述 :return: The description of this UpdateProjectRequestBody. :rtype: str @@ -133,7 +133,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateProjectRequestBody. - description + 工程描述 :param description: The description of this UpdateProjectRequestBody. :type description: str @@ -144,7 +144,7 @@ def description(self, description): def variables_no_file(self): """Gets the variables_no_file of this UpdateProjectRequestBody. - variables_no_file + 导入工程时,缺失的存在于变量文件中的变量 :return: The variables_no_file of this UpdateProjectRequestBody. :rtype: list[str] @@ -155,7 +155,7 @@ def variables_no_file(self): def variables_no_file(self, variables_no_file): """Sets the variables_no_file of this UpdateProjectRequestBody. - variables_no_file + 导入工程时,缺失的存在于变量文件中的变量 :param variables_no_file: The variables_no_file of this UpdateProjectRequestBody. :type variables_no_file: list[str] @@ -166,7 +166,7 @@ def variables_no_file(self, variables_no_file): def source(self): """Gets the source of this UpdateProjectRequestBody. - source + 来源(0-PerfTest;2-CloudTest) :return: The source of this UpdateProjectRequestBody. :rtype: int @@ -177,7 +177,7 @@ def source(self): def source(self, source): """Sets the source of this UpdateProjectRequestBody. - source + 来源(0-PerfTest;2-CloudTest) :param source: The source of this UpdateProjectRequestBody. :type source: int @@ -188,7 +188,7 @@ def source(self, source): def external_params(self): """Gets the external_params of this UpdateProjectRequestBody. - external_params + 扩展参数 :return: The external_params of this UpdateProjectRequestBody. :rtype: object @@ -199,7 +199,7 @@ def external_params(self): def external_params(self, external_params): """Sets the external_params of this UpdateProjectRequestBody. - external_params + 扩展参数 :param external_params: The external_params of this UpdateProjectRequestBody. :type external_params: object diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_related_test_case_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_related_test_case_response.py index bfc3ddfddc..b96bad3ff8 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_related_test_case_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_related_test_case_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, task_info=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param task_info: :type task_info: :class:`huaweicloudsdkcpts.v1.TaskInfo` @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, task_info=None): def code(self): """Gets the code of this UpdateTaskRelatedTestCaseResponse. - code + 响应码 :return: The code of this UpdateTaskRelatedTestCaseResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this UpdateTaskRelatedTestCaseResponse. - code + 响应码 :param code: The code of this UpdateTaskRelatedTestCaseResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this UpdateTaskRelatedTestCaseResponse. - message + 响应消息 :return: The message of this UpdateTaskRelatedTestCaseResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this UpdateTaskRelatedTestCaseResponse. - message + 响应消息 :param message: The message of this UpdateTaskRelatedTestCaseResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_request_body.py index fcdfb5fdac..b0a848188f 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_request_body.py @@ -49,27 +49,27 @@ def __init__(self, id=None, name=None, description=None, project_id=None, run_st The model defined in huaweicloud sdk - :param id: id + :param id: 任务id :type id: int - :param name: name + :param name: 任务名称 :type name: str - :param description: description + :param description: 描述 :type description: str - :param project_id: project_id + :param project_id: 工程id :type project_id: int - :param run_status: run_status + :param run_status: 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :type run_status: int - :param run_type: run_type + :param run_type: 任务类型(0:旧版本任务;1:融合版本任务) :type run_type: int :param task_run_info: :type task_run_info: :class:`huaweicloudsdkcpts.v1.TaskRunInfo` - :param case_list: case_list + :param case_list: 用例信息 :type case_list: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] - :param operate_mode: operate_mode + :param operate_mode: 压力阶段模式,0:时长模式;1:次数模式 :type operate_mode: int - :param bench_concurrent: bench_concurrent + :param bench_concurrent: 基准并发 :type bench_concurrent: int - :param related_temp_running_data: related_temp_running_data + :param related_temp_running_data: 最近一次运行的报告简略信息 :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] """ @@ -112,7 +112,7 @@ def __init__(self, id=None, name=None, description=None, project_id=None, run_st def id(self): """Gets the id of this UpdateTaskRequestBody. - id + 任务id :return: The id of this UpdateTaskRequestBody. :rtype: int @@ -123,7 +123,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateTaskRequestBody. - id + 任务id :param id: The id of this UpdateTaskRequestBody. :type id: int @@ -134,7 +134,7 @@ def id(self, id): def name(self): """Gets the name of this UpdateTaskRequestBody. - name + 任务名称 :return: The name of this UpdateTaskRequestBody. :rtype: str @@ -145,7 +145,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateTaskRequestBody. - name + 任务名称 :param name: The name of this UpdateTaskRequestBody. :type name: str @@ -156,7 +156,7 @@ def name(self, name): def description(self): """Gets the description of this UpdateTaskRequestBody. - description + 描述 :return: The description of this UpdateTaskRequestBody. :rtype: str @@ -167,7 +167,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateTaskRequestBody. - description + 描述 :param description: The description of this UpdateTaskRequestBody. :type description: str @@ -178,7 +178,7 @@ def description(self, description): def project_id(self): """Gets the project_id of this UpdateTaskRequestBody. - project_id + 工程id :return: The project_id of this UpdateTaskRequestBody. :rtype: int @@ -189,7 +189,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this UpdateTaskRequestBody. - project_id + 工程id :param project_id: The project_id of this UpdateTaskRequestBody. :type project_id: int @@ -200,7 +200,7 @@ def project_id(self, project_id): def run_status(self): """Gets the run_status of this UpdateTaskRequestBody. - run_status + 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :return: The run_status of this UpdateTaskRequestBody. :rtype: int @@ -211,7 +211,7 @@ def run_status(self): def run_status(self, run_status): """Sets the run_status of this UpdateTaskRequestBody. - run_status + 任务运行状态(9:等待运行;0:运行中;1:暂停;2:结束; 3:异常中止;4:用户主动终止(完成状态);5:用户主动终止) :param run_status: The run_status of this UpdateTaskRequestBody. :type run_status: int @@ -222,7 +222,7 @@ def run_status(self, run_status): def run_type(self): """Gets the run_type of this UpdateTaskRequestBody. - run_type + 任务类型(0:旧版本任务;1:融合版本任务) :return: The run_type of this UpdateTaskRequestBody. :rtype: int @@ -233,7 +233,7 @@ def run_type(self): def run_type(self, run_type): """Sets the run_type of this UpdateTaskRequestBody. - run_type + 任务类型(0:旧版本任务;1:融合版本任务) :param run_type: The run_type of this UpdateTaskRequestBody. :type run_type: int @@ -262,7 +262,7 @@ def task_run_info(self, task_run_info): def case_list(self): """Gets the case_list of this UpdateTaskRequestBody. - case_list + 用例信息 :return: The case_list of this UpdateTaskRequestBody. :rtype: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] @@ -273,7 +273,7 @@ def case_list(self): def case_list(self, case_list): """Sets the case_list of this UpdateTaskRequestBody. - case_list + 用例信息 :param case_list: The case_list of this UpdateTaskRequestBody. :type case_list: list[:class:`huaweicloudsdkcpts.v1.CaseInfoDetail`] @@ -284,7 +284,7 @@ def case_list(self, case_list): def operate_mode(self): """Gets the operate_mode of this UpdateTaskRequestBody. - operate_mode + 压力阶段模式,0:时长模式;1:次数模式 :return: The operate_mode of this UpdateTaskRequestBody. :rtype: int @@ -295,7 +295,7 @@ def operate_mode(self): def operate_mode(self, operate_mode): """Sets the operate_mode of this UpdateTaskRequestBody. - operate_mode + 压力阶段模式,0:时长模式;1:次数模式 :param operate_mode: The operate_mode of this UpdateTaskRequestBody. :type operate_mode: int @@ -306,7 +306,7 @@ def operate_mode(self, operate_mode): def bench_concurrent(self): """Gets the bench_concurrent of this UpdateTaskRequestBody. - bench_concurrent + 基准并发 :return: The bench_concurrent of this UpdateTaskRequestBody. :rtype: int @@ -317,7 +317,7 @@ def bench_concurrent(self): def bench_concurrent(self, bench_concurrent): """Sets the bench_concurrent of this UpdateTaskRequestBody. - bench_concurrent + 基准并发 :param bench_concurrent: The bench_concurrent of this UpdateTaskRequestBody. :type bench_concurrent: int @@ -328,7 +328,7 @@ def bench_concurrent(self, bench_concurrent): def related_temp_running_data(self): """Gets the related_temp_running_data of this UpdateTaskRequestBody. - related_temp_running_data + 最近一次运行的报告简略信息 :return: The related_temp_running_data of this UpdateTaskRequestBody. :rtype: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] @@ -339,7 +339,7 @@ def related_temp_running_data(self): def related_temp_running_data(self, related_temp_running_data): """Sets the related_temp_running_data of this UpdateTaskRequestBody. - related_temp_running_data + 最近一次运行的报告简略信息 :param related_temp_running_data: The related_temp_running_data of this UpdateTaskRequestBody. :type related_temp_running_data: list[:class:`huaweicloudsdkcpts.v1.RelatedTempRunningData`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_response.py index 82dbb82680..256dc3d03b 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_response.py @@ -34,9 +34,9 @@ def __init__(self, code=None, message=None, task_info=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str :param task_info: :type task_info: :class:`huaweicloudsdkcpts.v1.TaskInfo` @@ -60,7 +60,7 @@ def __init__(self, code=None, message=None, task_info=None): def code(self): """Gets the code of this UpdateTaskResponse. - code + 响应码 :return: The code of this UpdateTaskResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this UpdateTaskResponse. - code + 响应码 :param code: The code of this UpdateTaskResponse. :type code: str @@ -82,7 +82,7 @@ def code(self, code): def message(self): """Gets the message of this UpdateTaskResponse. - message + 响应消息 :return: The message of this UpdateTaskResponse. :rtype: str @@ -93,7 +93,7 @@ def message(self): def message(self, message): """Sets the message of this UpdateTaskResponse. - message + 响应消息 :param message: The message of this UpdateTaskResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_request_body.py index 4d647912e8..63ba615b23 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_request_body.py @@ -39,15 +39,15 @@ def __init__(self, cluster_id=None, cluster_type=None, without_package=None, net The model defined in huaweicloud sdk - :param cluster_id: cluster_id + :param cluster_id: 资源组id :type cluster_id: int - :param cluster_type: cluster_type + :param cluster_type: 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :type cluster_type: str - :param without_package: without_package + :param without_package: 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :type without_package: int :param network_info: :type network_info: :class:`huaweicloudsdkcpts.v1.NetworkInfo` - :param status: status + :param status: 状态(9:启动任务;2:停止任务) :type status: int :param enterprise_project_id: 企业项目id :type enterprise_project_id: str @@ -75,7 +75,7 @@ def __init__(self, cluster_id=None, cluster_type=None, without_package=None, net def cluster_id(self): """Gets the cluster_id of this UpdateTaskStatusRequestBody. - cluster_id + 资源组id :return: The cluster_id of this UpdateTaskStatusRequestBody. :rtype: int @@ -86,7 +86,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this UpdateTaskStatusRequestBody. - cluster_id + 资源组id :param cluster_id: The cluster_id of this UpdateTaskStatusRequestBody. :type cluster_id: int @@ -97,7 +97,7 @@ def cluster_id(self, cluster_id): def cluster_type(self): """Gets the cluster_type of this UpdateTaskStatusRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :return: The cluster_type of this UpdateTaskStatusRequestBody. :rtype: str @@ -108,7 +108,7 @@ def cluster_type(self): def cluster_type(self, cluster_type): """Sets the cluster_type of this UpdateTaskStatusRequestBody. - cluster_type + 资源组类型(共享资源组:shared-cluster-internet;私有资源组:private-cluster) :param cluster_type: The cluster_type of this UpdateTaskStatusRequestBody. :type cluster_type: str @@ -119,7 +119,7 @@ def cluster_type(self, cluster_type): def without_package(self): """Gets the without_package of this UpdateTaskStatusRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :return: The without_package of this UpdateTaskStatusRequestBody. :rtype: int @@ -130,7 +130,7 @@ def without_package(self): def without_package(self, without_package): """Sets the without_package of this UpdateTaskStatusRequestBody. - without_package + 套餐包VUM不足的情况下用户选择是不是要走按需计费模式(当前版本固定值:0) :param without_package: The without_package of this UpdateTaskStatusRequestBody. :type without_package: int @@ -159,7 +159,7 @@ def network_info(self, network_info): def status(self): """Gets the status of this UpdateTaskStatusRequestBody. - status + 状态(9:启动任务;2:停止任务) :return: The status of this UpdateTaskStatusRequestBody. :rtype: int @@ -170,7 +170,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateTaskStatusRequestBody. - status + 状态(9:启动任务;2:停止任务) :param status: The status of this UpdateTaskStatusRequestBody. :type status: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_response.py index b8e6725cad..42f3d43e4b 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_response.py @@ -36,11 +36,11 @@ def __init__(self, code=None, message=None, extend=None, result=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str - :param message: message + :param message: 响应消息 :type message: str - :param extend: extend + :param extend: 扩展信息 :type extend: str :param result: :type result: :class:`huaweicloudsdkcpts.v1.UpdateTaskStatusResult` @@ -67,7 +67,7 @@ def __init__(self, code=None, message=None, extend=None, result=None): def code(self): """Gets the code of this UpdateTaskStatusResponse. - code + 响应码 :return: The code of this UpdateTaskStatusResponse. :rtype: str @@ -78,7 +78,7 @@ def code(self): def code(self, code): """Sets the code of this UpdateTaskStatusResponse. - code + 响应码 :param code: The code of this UpdateTaskStatusResponse. :type code: str @@ -89,7 +89,7 @@ def code(self, code): def message(self): """Gets the message of this UpdateTaskStatusResponse. - message + 响应消息 :return: The message of this UpdateTaskStatusResponse. :rtype: str @@ -100,7 +100,7 @@ def message(self): def message(self, message): """Sets the message of this UpdateTaskStatusResponse. - message + 响应消息 :param message: The message of this UpdateTaskStatusResponse. :type message: str @@ -111,7 +111,7 @@ def message(self, message): def extend(self): """Gets the extend of this UpdateTaskStatusResponse. - extend + 扩展信息 :return: The extend of this UpdateTaskStatusResponse. :rtype: str @@ -122,7 +122,7 @@ def extend(self): def extend(self, extend): """Sets the extend of this UpdateTaskStatusResponse. - extend + 扩展信息 :param extend: The extend of this UpdateTaskStatusResponse. :type extend: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_result.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_result.py index 66f9576f2b..4bbaaa6ff9 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_result.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_task_status_result.py @@ -29,7 +29,7 @@ def __init__(self, task_run_id=None): The model defined in huaweicloud sdk - :param task_run_id: task_run_id + :param task_run_id: 运行任务id,即报告id :type task_run_id: int """ @@ -45,7 +45,7 @@ def __init__(self, task_run_id=None): def task_run_id(self): """Gets the task_run_id of this UpdateTaskStatusResult. - task_run_id + 运行任务id,即报告id :return: The task_run_id of this UpdateTaskStatusResult. :rtype: int @@ -56,7 +56,7 @@ def task_run_id(self): def task_run_id(self, task_run_id): """Sets the task_run_id of this UpdateTaskStatusResult. - task_run_id + 运行任务id,即报告id :param task_run_id: The task_run_id of this UpdateTaskStatusResult. :type task_run_id: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_temp_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_temp_request_body.py index fe22a0190c..035f81525b 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_temp_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_temp_request_body.py @@ -43,21 +43,21 @@ def __init__(self, id=None, project_id=None, name=None, temp_type=None, descript The model defined in huaweicloud sdk - :param id: id + :param id: 事务id :type id: int - :param project_id: project_id + :param project_id: 工程id :type project_id: int - :param name: name + :param name: 事务名称 :type name: str - :param temp_type: temp_type + :param temp_type: 事务类型 :type temp_type: int - :param description: description + :param description: 描述信息 :type description: str - :param for_loop_params: for_loop_params + :param for_loop_params: 旧版本逻辑控制器字段,当前已未使用 :type for_loop_params: list[object] - :param enable_pre: enable_pre + :param enable_pre: 是否启用预置事务,当前版本已未使用 :type enable_pre: bool - :param contents: contents + :param contents: 事务脚本信息 :type contents: list[:class:`huaweicloudsdkcpts.v1.TempContentInfo`] """ @@ -91,7 +91,7 @@ def __init__(self, id=None, project_id=None, name=None, temp_type=None, descript def id(self): """Gets the id of this UpdateTempRequestBody. - id + 事务id :return: The id of this UpdateTempRequestBody. :rtype: int @@ -102,7 +102,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateTempRequestBody. - id + 事务id :param id: The id of this UpdateTempRequestBody. :type id: int @@ -113,7 +113,7 @@ def id(self, id): def project_id(self): """Gets the project_id of this UpdateTempRequestBody. - project_id + 工程id :return: The project_id of this UpdateTempRequestBody. :rtype: int @@ -124,7 +124,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this UpdateTempRequestBody. - project_id + 工程id :param project_id: The project_id of this UpdateTempRequestBody. :type project_id: int @@ -135,7 +135,7 @@ def project_id(self, project_id): def name(self): """Gets the name of this UpdateTempRequestBody. - name + 事务名称 :return: The name of this UpdateTempRequestBody. :rtype: str @@ -146,7 +146,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateTempRequestBody. - name + 事务名称 :param name: The name of this UpdateTempRequestBody. :type name: str @@ -157,7 +157,7 @@ def name(self, name): def temp_type(self): """Gets the temp_type of this UpdateTempRequestBody. - temp_type + 事务类型 :return: The temp_type of this UpdateTempRequestBody. :rtype: int @@ -168,7 +168,7 @@ def temp_type(self): def temp_type(self, temp_type): """Sets the temp_type of this UpdateTempRequestBody. - temp_type + 事务类型 :param temp_type: The temp_type of this UpdateTempRequestBody. :type temp_type: int @@ -179,7 +179,7 @@ def temp_type(self, temp_type): def description(self): """Gets the description of this UpdateTempRequestBody. - description + 描述信息 :return: The description of this UpdateTempRequestBody. :rtype: str @@ -190,7 +190,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateTempRequestBody. - description + 描述信息 :param description: The description of this UpdateTempRequestBody. :type description: str @@ -201,7 +201,7 @@ def description(self, description): def for_loop_params(self): """Gets the for_loop_params of this UpdateTempRequestBody. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :return: The for_loop_params of this UpdateTempRequestBody. :rtype: list[object] @@ -212,7 +212,7 @@ def for_loop_params(self): def for_loop_params(self, for_loop_params): """Sets the for_loop_params of this UpdateTempRequestBody. - for_loop_params + 旧版本逻辑控制器字段,当前已未使用 :param for_loop_params: The for_loop_params of this UpdateTempRequestBody. :type for_loop_params: list[object] @@ -223,7 +223,7 @@ def for_loop_params(self, for_loop_params): def enable_pre(self): """Gets the enable_pre of this UpdateTempRequestBody. - enable_pre + 是否启用预置事务,当前版本已未使用 :return: The enable_pre of this UpdateTempRequestBody. :rtype: bool @@ -234,7 +234,7 @@ def enable_pre(self): def enable_pre(self, enable_pre): """Sets the enable_pre of this UpdateTempRequestBody. - enable_pre + 是否启用预置事务,当前版本已未使用 :param enable_pre: The enable_pre of this UpdateTempRequestBody. :type enable_pre: bool @@ -245,7 +245,7 @@ def enable_pre(self, enable_pre): def contents(self): """Gets the contents of this UpdateTempRequestBody. - contents + 事务脚本信息 :return: The contents of this UpdateTempRequestBody. :rtype: list[:class:`huaweicloudsdkcpts.v1.TempContentInfo`] @@ -256,7 +256,7 @@ def contents(self): def contents(self, contents): """Sets the contents of this UpdateTempRequestBody. - contents + 事务脚本信息 :param contents: The contents of this UpdateTempRequestBody. :type contents: list[:class:`huaweicloudsdkcpts.v1.TempContentInfo`] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_request_body.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_request_body.py index 1f5e64b175..04281af4c7 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_request_body.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_request_body.py @@ -35,13 +35,13 @@ def __init__(self, id=None, name=None, variable_type=None, variable=None): The model defined in huaweicloud sdk - :param id: id + :param id: 变量id :type id: int - :param name: name + :param name: 变量名称 :type name: str - :param variable_type: variable_type + :param variable_type: 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :type variable_type: int - :param variable: variable + :param variable: 变量值 :type variable: list[object] """ @@ -62,7 +62,7 @@ def __init__(self, id=None, name=None, variable_type=None, variable=None): def id(self): """Gets the id of this UpdateVariableRequestBody. - id + 变量id :return: The id of this UpdateVariableRequestBody. :rtype: int @@ -73,7 +73,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateVariableRequestBody. - id + 变量id :param id: The id of this UpdateVariableRequestBody. :type id: int @@ -84,7 +84,7 @@ def id(self, id): def name(self): """Gets the name of this UpdateVariableRequestBody. - name + 变量名称 :return: The name of this UpdateVariableRequestBody. :rtype: str @@ -95,7 +95,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateVariableRequestBody. - name + 变量名称 :param name: The name of this UpdateVariableRequestBody. :type name: str @@ -106,7 +106,7 @@ def name(self, name): def variable_type(self): """Gets the variable_type of this UpdateVariableRequestBody. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :return: The variable_type of this UpdateVariableRequestBody. :rtype: int @@ -117,7 +117,7 @@ def variable_type(self): def variable_type(self, variable_type): """Sets the variable_type of this UpdateVariableRequestBody. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :param variable_type: The variable_type of this UpdateVariableRequestBody. :type variable_type: int @@ -128,7 +128,7 @@ def variable_type(self, variable_type): def variable(self): """Gets the variable of this UpdateVariableRequestBody. - variable + 变量值 :return: The variable of this UpdateVariableRequestBody. :rtype: list[object] @@ -139,7 +139,7 @@ def variable(self): def variable(self, variable): """Sets the variable of this UpdateVariableRequestBody. - variable + 变量值 :param variable: The variable of this UpdateVariableRequestBody. :type variable: list[object] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_response.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_response.py index dbc00fb82c..8025a2afb7 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_response.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/update_variable_response.py @@ -34,11 +34,11 @@ def __init__(self, code=None, json=None, message=None): The model defined in huaweicloud sdk - :param code: code + :param code: 响应码 :type code: str :param json: :type json: :class:`huaweicloudsdkcpts.v1.CreateVariableResultJson` - :param message: message + :param message: 响应消息 :type message: str """ @@ -60,7 +60,7 @@ def __init__(self, code=None, json=None, message=None): def code(self): """Gets the code of this UpdateVariableResponse. - code + 响应码 :return: The code of this UpdateVariableResponse. :rtype: str @@ -71,7 +71,7 @@ def code(self): def code(self, code): """Sets the code of this UpdateVariableResponse. - code + 响应码 :param code: The code of this UpdateVariableResponse. :type code: str @@ -100,7 +100,7 @@ def json(self, json): def message(self): """Gets the message of this UpdateVariableResponse. - message + 响应消息 :return: The message of this UpdateVariableResponse. :rtype: str @@ -111,7 +111,7 @@ def message(self): def message(self, message): """Sets the message of this UpdateVariableResponse. - message + 响应消息 :param message: The message of this UpdateVariableResponse. :type message: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json.py index 6bbdb24eec..049c31e580 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json.py @@ -31,9 +31,9 @@ def __init__(self, details=None, process_status=None): The model defined in huaweicloud sdk - :param details: details + :param details: 工程导入进度明细信息 :type details: list[:class:`huaweicloudsdkcpts.v1.UploadProcessJsonDetail`] - :param process_status: process_status + :param process_status: 总状态(0:导入中;1:导入完成) :type process_status: int """ @@ -52,7 +52,7 @@ def __init__(self, details=None, process_status=None): def details(self): """Gets the details of this UploadProcessJson. - details + 工程导入进度明细信息 :return: The details of this UploadProcessJson. :rtype: list[:class:`huaweicloudsdkcpts.v1.UploadProcessJsonDetail`] @@ -63,7 +63,7 @@ def details(self): def details(self, details): """Sets the details of this UploadProcessJson. - details + 工程导入进度明细信息 :param details: The details of this UploadProcessJson. :type details: list[:class:`huaweicloudsdkcpts.v1.UploadProcessJsonDetail`] @@ -74,7 +74,7 @@ def details(self, details): def process_status(self): """Gets the process_status of this UploadProcessJson. - process_status + 总状态(0:导入中;1:导入完成) :return: The process_status of this UploadProcessJson. :rtype: int @@ -85,7 +85,7 @@ def process_status(self): def process_status(self, process_status): """Sets the process_status of this UploadProcessJson. - process_status + 总状态(0:导入中;1:导入完成) :param process_status: The process_status of this UploadProcessJson. :type process_status: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json_detail.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json_detail.py index f0ec50a539..4efc0caba6 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json_detail.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/upload_process_json_detail.py @@ -35,13 +35,13 @@ def __init__(self, id=None, name=None, status=None, cause=None): The model defined in huaweicloud sdk - :param id: id + :param id: 导入进度Id :type id: int - :param name: name + :param name: 工程名称 :type name: str - :param status: status + :param status: 导入状态(0:导入中;1:成功;2:失败) :type status: int - :param cause: cause + :param cause: 失败原因 :type cause: str """ @@ -66,7 +66,7 @@ def __init__(self, id=None, name=None, status=None, cause=None): def id(self): """Gets the id of this UploadProcessJsonDetail. - id + 导入进度Id :return: The id of this UploadProcessJsonDetail. :rtype: int @@ -77,7 +77,7 @@ def id(self): def id(self, id): """Sets the id of this UploadProcessJsonDetail. - id + 导入进度Id :param id: The id of this UploadProcessJsonDetail. :type id: int @@ -88,7 +88,7 @@ def id(self, id): def name(self): """Gets the name of this UploadProcessJsonDetail. - name + 工程名称 :return: The name of this UploadProcessJsonDetail. :rtype: str @@ -99,7 +99,7 @@ def name(self): def name(self, name): """Sets the name of this UploadProcessJsonDetail. - name + 工程名称 :param name: The name of this UploadProcessJsonDetail. :type name: str @@ -110,7 +110,7 @@ def name(self, name): def status(self): """Gets the status of this UploadProcessJsonDetail. - status + 导入状态(0:导入中;1:成功;2:失败) :return: The status of this UploadProcessJsonDetail. :rtype: int @@ -121,7 +121,7 @@ def status(self): def status(self, status): """Sets the status of this UploadProcessJsonDetail. - status + 导入状态(0:导入中;1:成功;2:失败) :param status: The status of this UploadProcessJsonDetail. :type status: int @@ -132,7 +132,7 @@ def status(self, status): def cause(self): """Gets the cause of this UploadProcessJsonDetail. - cause + 失败原因 :return: The cause of this UploadProcessJsonDetail. :rtype: str @@ -143,7 +143,7 @@ def cause(self): def cause(self, cause): """Sets the cause of this UploadProcessJsonDetail. - cause + 失败原因 :param cause: The cause of this UploadProcessJsonDetail. :type cause: str diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/variable_detail.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/variable_detail.py index 2b6c9beb32..946fccb415 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/variable_detail.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/variable_detail.py @@ -43,17 +43,17 @@ def __init__(self, file_size=None, id=None, is_quoted=None, name=None, variable= The model defined in huaweicloud sdk - :param file_size: file_size + :param file_size: 文件大小 :type file_size: int - :param id: id + :param id: 变量id :type id: int :param is_quoted: 是否被引用 :type is_quoted: bool - :param name: name + :param name: 变量名称 :type name: str - :param variable: variable + :param variable: 变量值 :type variable: list[object] - :param variable_type: variable_type + :param variable_type: 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :type variable_type: int :param variable_mode: 变量读取模式,0:顺序模式;1:随机模式 :type variable_mode: int @@ -94,7 +94,7 @@ def __init__(self, file_size=None, id=None, is_quoted=None, name=None, variable= def file_size(self): """Gets the file_size of this VariableDetail. - file_size + 文件大小 :return: The file_size of this VariableDetail. :rtype: int @@ -105,7 +105,7 @@ def file_size(self): def file_size(self, file_size): """Sets the file_size of this VariableDetail. - file_size + 文件大小 :param file_size: The file_size of this VariableDetail. :type file_size: int @@ -116,7 +116,7 @@ def file_size(self, file_size): def id(self): """Gets the id of this VariableDetail. - id + 变量id :return: The id of this VariableDetail. :rtype: int @@ -127,7 +127,7 @@ def id(self): def id(self, id): """Sets the id of this VariableDetail. - id + 变量id :param id: The id of this VariableDetail. :type id: int @@ -160,7 +160,7 @@ def is_quoted(self, is_quoted): def name(self): """Gets the name of this VariableDetail. - name + 变量名称 :return: The name of this VariableDetail. :rtype: str @@ -171,7 +171,7 @@ def name(self): def name(self, name): """Sets the name of this VariableDetail. - name + 变量名称 :param name: The name of this VariableDetail. :type name: str @@ -182,7 +182,7 @@ def name(self, name): def variable(self): """Gets the variable of this VariableDetail. - variable + 变量值 :return: The variable of this VariableDetail. :rtype: list[object] @@ -193,7 +193,7 @@ def variable(self): def variable(self, variable): """Sets the variable of this VariableDetail. - variable + 变量值 :param variable: The variable of this VariableDetail. :type variable: list[object] @@ -204,7 +204,7 @@ def variable(self, variable): def variable_type(self): """Gets the variable_type of this VariableDetail. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :return: The variable_type of this VariableDetail. :rtype: int @@ -215,7 +215,7 @@ def variable_type(self): def variable_type(self, variable_type): """Sets the variable_type of this VariableDetail. - variable_type + 变量类型(1:整数;2:枚举;3:文件;5:文本(hcs暂无此类型)) :param variable_type: The variable_type of this VariableDetail. :type variable_type: int diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/vusers_brokens.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/vusers_brokens.py index a1e1ab6574..c6406d3593 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/vusers_brokens.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/model/vusers_brokens.py @@ -29,7 +29,7 @@ def __init__(self, vusers=None): The model defined in huaweicloud sdk - :param vusers: vusers + :param vusers: 虚拟用户数 :type vusers: list[float] """ @@ -45,7 +45,7 @@ def __init__(self, vusers=None): def vusers(self): """Gets the vusers of this VusersBrokens. - vusers + 虚拟用户数 :return: The vusers of this VusersBrokens. :rtype: list[float] @@ -56,7 +56,7 @@ def vusers(self): def vusers(self, vusers): """Sets the vusers of this VusersBrokens. - vusers + 虚拟用户数 :param vusers: The vusers of this VusersBrokens. :type vusers: list[float] diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py index 13b0e746c4..1621c7f9a9 100644 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -52,9 +49,9 @@ class CptsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -63,6 +60,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cpts': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 69bdfd3d09..4953805d3e 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py b/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py index 63b1540b66..47c9635227 100644 --- a/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py +++ b/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class CseRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cse': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 6eda4c43f1..efa6fb61a8 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py b/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py index 69034658aa..2a8c00de88 100644 --- a/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py +++ b/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class CsmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Csms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 6daadd9579..e2ce2ebdf2 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py index 55975d2619..96c09fde22 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -51,6 +48,8 @@ class CssRegion: "https://css.ap-southeast-4.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://css.ae-ad-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://css.cn-east-5.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -74,14 +73,15 @@ class CssRegion: "tr-west-1": TR_WEST_1, "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, + "cn-east-5": CN_EAST_5, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Css': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py index 55975d2619..96c09fde22 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -51,6 +48,8 @@ class CssRegion: "https://css.ap-southeast-4.myhuaweicloud.com") AE_AD_1 = Region("ae-ad-1", "https://css.ae-ad-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://css.cn-east-5.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -74,14 +73,15 @@ class CssRegion: "tr-west-1": TR_WEST_1, "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, + "cn-east-5": CN_EAST_5, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Css': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 0970a6f454..a52a0adcbe 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py index 617f0f64fc..6d52fa4d56 100644 --- a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py +++ b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,6 +73,8 @@ class CtsRegion: "https://cts.tr-west-1.myhuaweicloud.cn") ME_EAST_1 = Region("me-east-1", "https://cts.me-east-1.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://cts.eu-west-0.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -101,14 +100,15 @@ class CtsRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "me-east-1": ME_EAST_1, + "eu-west-0": EU_WEST_0, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -117,6 +117,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Cts': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index cc84340427..a9c12069b2 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py index ae9211e086..6179d61a0c 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class DasRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Das': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index c4cc2e0379..da46d5449e 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 6c8410db48..5ec50def57 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -319,6 +319,7 @@ from huaweicloudsdkdataartsstudio.v1.model.instance_for_api_action_dto import InstanceForApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.instance_host_dto import InstanceHostDTO from huaweicloudsdkdataartsstudio.v1.model.instance_overview_vo import InstanceOverviewVo +from huaweicloudsdkdataartsstudio.v1.model.job_and_node_info import JobAndNodeInfo from huaweicloudsdkdataartsstudio.v1.model.job_info_request import JobInfoRequest from huaweicloudsdkdataartsstudio.v1.model.job_log_request import JobLogRequest from huaweicloudsdkdataartsstudio.v1.model.job_param import JobParam @@ -330,6 +331,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l2_statistic import L2Statistic from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath +from huaweicloudsdkdataartsstudio.v1.model.lineage import Lineage from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest @@ -599,12 +601,16 @@ from huaweicloudsdkdataartsstudio.v1.model.show_condition_by_id_response import ShowConditionByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_consistency_task_detail_request import ShowConsistencyTaskDetailRequest from huaweicloudsdkdataartsstudio.v1.model.show_consistency_task_detail_response import ShowConsistencyTaskDetailResponse +from huaweicloudsdkdataartsstudio.v1.model.show_data_detail_request import ShowDataDetailRequest +from huaweicloudsdkdataartsstudio.v1.model.show_data_detail_response import ShowDataDetailResponse from huaweicloudsdkdataartsstudio.v1.model.show_data_profile_request import ShowDataProfileRequest from huaweicloudsdkdataartsstudio.v1.model.show_data_profile_response import ShowDataProfileResponse from huaweicloudsdkdataartsstudio.v1.model.show_data_sets_request import ShowDataSetsRequest from huaweicloudsdkdataartsstudio.v1.model.show_data_sets_response import ShowDataSetsResponse from huaweicloudsdkdataartsstudio.v1.model.show_dataconnection_request import ShowDataconnectionRequest from huaweicloudsdkdataartsstudio.v1.model.show_dataconnection_response import ShowDataconnectionResponse +from huaweicloudsdkdataartsstudio.v1.model.show_datamap_lineage_request import ShowDatamapLineageRequest +from huaweicloudsdkdataartsstudio.v1.model.show_datamap_lineage_response import ShowDatamapLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_derivative_index_by_id_request import ShowDerivativeIndexByIdRequest from huaweicloudsdkdataartsstudio.v1.model.show_derivative_index_by_id_response import ShowDerivativeIndexByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_dimension_by_id_request import ShowDimensionByIdRequest @@ -623,10 +629,14 @@ from huaweicloudsdkdataartsstudio.v1.model.show_factory_supplement_data_response import ShowFactorySupplementDataResponse from huaweicloudsdkdataartsstudio.v1.model.show_glossary_list_request import ShowGlossaryListRequest from huaweicloudsdkdataartsstudio.v1.model.show_glossary_list_response import ShowGlossaryListResponse +from huaweicloudsdkdataartsstudio.v1.model.show_instance_infos_request import ShowInstanceInfosRequest +from huaweicloudsdkdataartsstudio.v1.model.show_instance_infos_response import ShowInstanceInfosResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_request import ShowInstanceLogRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_response import ShowInstanceLogResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_request import ShowInstanceResultRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_response import ShowInstanceResultResponse +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_bulk_request import ShowLineageBulkRequest +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_bulk_response import ShowLineageBulkResponse from huaweicloudsdkdataartsstudio.v1.model.show_lineage_request import ShowLineageRequest from huaweicloudsdkdataartsstudio.v1.model.show_lineage_response import ShowLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_request import ShowMessageDetailRequest @@ -635,6 +645,8 @@ from huaweicloudsdkdataartsstudio.v1.model.show_metric_assets_response import ShowMetricAssetsResponse from huaweicloudsdkdataartsstudio.v1.model.show_metric_tree_request import ShowMetricTreeRequest from huaweicloudsdkdataartsstudio.v1.model.show_metric_tree_response import ShowMetricTreeResponse +from huaweicloudsdkdataartsstudio.v1.model.show_nodes_request import ShowNodesRequest +from huaweicloudsdkdataartsstudio.v1.model.show_nodes_response import ShowNodesResponse from huaweicloudsdkdataartsstudio.v1.model.show_path_by_id_request import ShowPathByIdRequest from huaweicloudsdkdataartsstudio.v1.model.show_path_by_id_response import ShowPathByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_path_object_by_id_request import ShowPathObjectByIdRequest @@ -691,6 +703,7 @@ from huaweicloudsdkdataartsstudio.v1.model.sync_status_enum import SyncStatusEnum from huaweicloudsdkdataartsstudio.v1.model.table_info import TableInfo from huaweicloudsdkdataartsstudio.v1.model.table_lineage import TableLineage +from huaweicloudsdkdataartsstudio.v1.model.table_lineage_info import TableLineageInfo from huaweicloudsdkdataartsstudio.v1.model.table_mapping_detail_vo import TableMappingDetailVO from huaweicloudsdkdataartsstudio.v1.model.table_mapping_vo import TableMappingVO from huaweicloudsdkdataartsstudio.v1.model.table_model_attribute_vo import TableModelAttributeVO diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index 9c70351bc4..57746d4f2d 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -12690,6 +12690,75 @@ def _show_consistency_task_detail_http_info(self, request): return http_info + def show_data_detail_async(self, request): + """资产详情(邀测) + + 资产详情接口,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDataDetail + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowDataDetailRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowDataDetailResponse` + """ + http_info = self._show_data_detail_http_info(request) + return self._call_api(**http_info) + + def show_data_detail_async_invoker(self, request): + http_info = self._show_data_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_data_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/entities/guid/{guid}", + "request_type": request.__class__.__name__, + "response_type": "ShowDataDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'ignore_relationships' in local_var_params: + query_params.append(('ignore_relationships', local_var_params['ignore_relationships'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_data_profile_async(self, request): """资产信息 @@ -12897,6 +12966,88 @@ def _show_dataconnection_http_info(self, request): return http_info + def show_datamap_lineage_async(self, request): + """资产血缘(邀测) + + 资产血缘接口,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDatamapLineage + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowDatamapLineageRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowDatamapLineageResponse` + """ + http_info = self._show_datamap_lineage_http_info(request) + return self._call_api(**http_info) + + def show_datamap_lineage_async_invoker(self, request): + http_info = self._show_datamap_lineage_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_datamap_lineage_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/datamap/lineage/guid/{guid}", + "request_type": request.__class__.__name__, + "response_type": "ShowDatamapLineageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'direction' in local_var_params: + query_params.append(('direction', local_var_params['direction'])) + if 'relationship_types' in local_var_params: + query_params.append(('relationship_types', local_var_params['relationship_types'])) + collection_formats['relationship_types'] = 'csv' + if 'relationship_type_categories' in local_var_params: + query_params.append(('relationship_type_categories', local_var_params['relationship_type_categories'])) + collection_formats['relationship_type_categories'] = 'csv' + if 'related_entity_types' in local_var_params: + query_params.append(('related_entity_types', local_var_params['related_entity_types'])) + collection_formats['related_entity_types'] = 'csv' + if 'extend_process_data_flow' in local_var_params: + query_params.append(('extend_process_data_flow', local_var_params['extend_process_data_flow'])) + if 'include_parent_entity' in local_var_params: + query_params.append(('include_parent_entity', local_var_params['include_parent_entity'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_derivative_index_by_id_async(self, request): """查看衍生指标详情 @@ -13536,6 +13687,85 @@ def _show_glossary_list_http_info(self, request): return http_info + def show_instance_infos_async(self, request): + """产出信息(邀测) + + 查询表相关的作业算子运行实例信息,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceInfos + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowInstanceInfosRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowInstanceInfosResponse` + """ + http_info = self._show_instance_infos_http_info(request) + return self._call_api(**http_info) + + def show_instance_infos_async_invoker(self, request): + http_info = self._show_instance_infos_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_infos_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/node/{task_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceInfosResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'workspace_id' in local_var_params: + query_params.append(('workspace_id', local_var_params['workspace_id'])) + if 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + 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' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_instance_log_async(self, request): """获取任务日志 @@ -13745,6 +13975,75 @@ def _show_lineage_http_info(self, request): return http_info + def show_lineage_bulk_async(self, request): + """批量血缘(邀测) + + 批量血缘接口,根据作业算子分页批量查询血缘。该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowLineageBulk + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageBulkRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageBulkResponse` + """ + http_info = self._show_lineage_bulk_http_info(request) + return self._call_api(**http_info) + + def show_lineage_bulk_async_invoker(self, request): + http_info = self._show_lineage_bulk_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_lineage_bulk_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/lineage/bulk", + "request_type": request.__class__.__name__, + "response_type": "ShowLineageBulkResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_message_detail_async(self, request): """获取消息详情 @@ -13946,6 +14245,73 @@ def _show_metric_tree_http_info(self, request): return http_info + def show_nodes_async(self, request): + """表关联作业算子列表(邀测) + + 查询表相关的作业算子列表,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowNodes + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowNodesRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowNodesResponse` + """ + http_info = self._show_nodes_http_info(request) + return self._call_api(**http_info) + + def show_nodes_async_invoker(self, request): + http_info = self._show_nodes_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_nodes_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/table/{guid}/node", + "request_type": request.__class__.__name__, + "response_type": "ShowNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_path_by_id_async(self, request): """通过id获取路径 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index 1063c22952..532f34c283 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -12690,6 +12690,75 @@ def _show_consistency_task_detail_http_info(cls, request): return http_info + def show_data_detail(self, request): + """资产详情(邀测) + + 资产详情接口,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDataDetail + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowDataDetailRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowDataDetailResponse` + """ + http_info = self._show_data_detail_http_info(request) + return self._call_api(**http_info) + + def show_data_detail_invoker(self, request): + http_info = self._show_data_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_data_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/entities/guid/{guid}", + "request_type": request.__class__.__name__, + "response_type": "ShowDataDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'ignore_relationships' in local_var_params: + query_params.append(('ignore_relationships', local_var_params['ignore_relationships'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_data_profile(self, request): """资产信息 @@ -12897,6 +12966,88 @@ def _show_dataconnection_http_info(cls, request): return http_info + def show_datamap_lineage(self, request): + """资产血缘(邀测) + + 资产血缘接口,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDatamapLineage + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowDatamapLineageRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowDatamapLineageResponse` + """ + http_info = self._show_datamap_lineage_http_info(request) + return self._call_api(**http_info) + + def show_datamap_lineage_invoker(self, request): + http_info = self._show_datamap_lineage_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_datamap_lineage_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/datamap/lineage/guid/{guid}", + "request_type": request.__class__.__name__, + "response_type": "ShowDatamapLineageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'direction' in local_var_params: + query_params.append(('direction', local_var_params['direction'])) + if 'relationship_types' in local_var_params: + query_params.append(('relationship_types', local_var_params['relationship_types'])) + collection_formats['relationship_types'] = 'csv' + if 'relationship_type_categories' in local_var_params: + query_params.append(('relationship_type_categories', local_var_params['relationship_type_categories'])) + collection_formats['relationship_type_categories'] = 'csv' + if 'related_entity_types' in local_var_params: + query_params.append(('related_entity_types', local_var_params['related_entity_types'])) + collection_formats['related_entity_types'] = 'csv' + if 'extend_process_data_flow' in local_var_params: + query_params.append(('extend_process_data_flow', local_var_params['extend_process_data_flow'])) + if 'include_parent_entity' in local_var_params: + query_params.append(('include_parent_entity', local_var_params['include_parent_entity'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_derivative_index_by_id(self, request): """查看衍生指标详情 @@ -13536,6 +13687,85 @@ def _show_glossary_list_http_info(cls, request): return http_info + def show_instance_infos(self, request): + """产出信息(邀测) + + 查询表相关的作业算子运行实例信息,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceInfos + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowInstanceInfosRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowInstanceInfosResponse` + """ + http_info = self._show_instance_infos_http_info(request) + return self._call_api(**http_info) + + def show_instance_infos_invoker(self, request): + http_info = self._show_instance_infos_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_infos_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/node/{task_id}/instances", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceInfosResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + if 'workspace_id' in local_var_params: + query_params.append(('workspace_id', local_var_params['workspace_id'])) + if 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + 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' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_instance_log(self, request): """获取任务日志 @@ -13745,6 +13975,75 @@ def _show_lineage_http_info(cls, request): return http_info + def show_lineage_bulk(self, request): + """批量血缘(邀测) + + 批量血缘接口,根据作业算子分页批量查询血缘。该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowLineageBulk + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageBulkRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageBulkResponse` + """ + http_info = self._show_lineage_bulk_http_info(request) + return self._call_api(**http_info) + + def show_lineage_bulk_invoker(self, request): + http_info = self._show_lineage_bulk_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_lineage_bulk_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/lineage/bulk", + "request_type": request.__class__.__name__, + "response_type": "ShowLineageBulkResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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'])) + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_message_detail(self, request): """获取消息详情 @@ -13946,6 +14245,73 @@ def _show_metric_tree_http_info(cls, request): return http_info + def show_nodes(self, request): + """表关联作业算子列表(邀测) + + 查询表相关的作业算子列表,该接口功能处于邀测阶段,后续将随功能公测将逐步开放。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowNodes + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowNodesRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowNodesResponse` + """ + http_info = self._show_nodes_http_info(request) + return self._call_api(**http_info) + + def show_nodes_invoker(self, request): + http_info = self._show_nodes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_nodes_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/datamap/table/{guid}/node", + "request_type": request.__class__.__name__, + "response_type": "ShowNodesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + + header_params = {} + if 'instance' in local_var_params: + header_params['instance'] = local_var_params['instance'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_path_by_id(self, request): """通过id获取路径 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index e8c8f94f39..87e6908332 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -317,6 +317,7 @@ from huaweicloudsdkdataartsstudio.v1.model.instance_for_api_action_dto import InstanceForApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.instance_host_dto import InstanceHostDTO from huaweicloudsdkdataartsstudio.v1.model.instance_overview_vo import InstanceOverviewVo +from huaweicloudsdkdataartsstudio.v1.model.job_and_node_info import JobAndNodeInfo from huaweicloudsdkdataartsstudio.v1.model.job_info_request import JobInfoRequest from huaweicloudsdkdataartsstudio.v1.model.job_log_request import JobLogRequest from huaweicloudsdkdataartsstudio.v1.model.job_param import JobParam @@ -328,6 +329,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l2_statistic import L2Statistic from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath +from huaweicloudsdkdataartsstudio.v1.model.lineage import Lineage from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest @@ -597,12 +599,16 @@ from huaweicloudsdkdataartsstudio.v1.model.show_condition_by_id_response import ShowConditionByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_consistency_task_detail_request import ShowConsistencyTaskDetailRequest from huaweicloudsdkdataartsstudio.v1.model.show_consistency_task_detail_response import ShowConsistencyTaskDetailResponse +from huaweicloudsdkdataartsstudio.v1.model.show_data_detail_request import ShowDataDetailRequest +from huaweicloudsdkdataartsstudio.v1.model.show_data_detail_response import ShowDataDetailResponse from huaweicloudsdkdataartsstudio.v1.model.show_data_profile_request import ShowDataProfileRequest from huaweicloudsdkdataartsstudio.v1.model.show_data_profile_response import ShowDataProfileResponse from huaweicloudsdkdataartsstudio.v1.model.show_data_sets_request import ShowDataSetsRequest from huaweicloudsdkdataartsstudio.v1.model.show_data_sets_response import ShowDataSetsResponse from huaweicloudsdkdataartsstudio.v1.model.show_dataconnection_request import ShowDataconnectionRequest from huaweicloudsdkdataartsstudio.v1.model.show_dataconnection_response import ShowDataconnectionResponse +from huaweicloudsdkdataartsstudio.v1.model.show_datamap_lineage_request import ShowDatamapLineageRequest +from huaweicloudsdkdataartsstudio.v1.model.show_datamap_lineage_response import ShowDatamapLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_derivative_index_by_id_request import ShowDerivativeIndexByIdRequest from huaweicloudsdkdataartsstudio.v1.model.show_derivative_index_by_id_response import ShowDerivativeIndexByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_dimension_by_id_request import ShowDimensionByIdRequest @@ -621,10 +627,14 @@ from huaweicloudsdkdataartsstudio.v1.model.show_factory_supplement_data_response import ShowFactorySupplementDataResponse from huaweicloudsdkdataartsstudio.v1.model.show_glossary_list_request import ShowGlossaryListRequest from huaweicloudsdkdataartsstudio.v1.model.show_glossary_list_response import ShowGlossaryListResponse +from huaweicloudsdkdataartsstudio.v1.model.show_instance_infos_request import ShowInstanceInfosRequest +from huaweicloudsdkdataartsstudio.v1.model.show_instance_infos_response import ShowInstanceInfosResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_request import ShowInstanceLogRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_response import ShowInstanceLogResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_request import ShowInstanceResultRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_response import ShowInstanceResultResponse +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_bulk_request import ShowLineageBulkRequest +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_bulk_response import ShowLineageBulkResponse from huaweicloudsdkdataartsstudio.v1.model.show_lineage_request import ShowLineageRequest from huaweicloudsdkdataartsstudio.v1.model.show_lineage_response import ShowLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_request import ShowMessageDetailRequest @@ -633,6 +643,8 @@ from huaweicloudsdkdataartsstudio.v1.model.show_metric_assets_response import ShowMetricAssetsResponse from huaweicloudsdkdataartsstudio.v1.model.show_metric_tree_request import ShowMetricTreeRequest from huaweicloudsdkdataartsstudio.v1.model.show_metric_tree_response import ShowMetricTreeResponse +from huaweicloudsdkdataartsstudio.v1.model.show_nodes_request import ShowNodesRequest +from huaweicloudsdkdataartsstudio.v1.model.show_nodes_response import ShowNodesResponse from huaweicloudsdkdataartsstudio.v1.model.show_path_by_id_request import ShowPathByIdRequest from huaweicloudsdkdataartsstudio.v1.model.show_path_by_id_response import ShowPathByIdResponse from huaweicloudsdkdataartsstudio.v1.model.show_path_object_by_id_request import ShowPathObjectByIdRequest @@ -689,6 +701,7 @@ from huaweicloudsdkdataartsstudio.v1.model.sync_status_enum import SyncStatusEnum from huaweicloudsdkdataartsstudio.v1.model.table_info import TableInfo from huaweicloudsdkdataartsstudio.v1.model.table_lineage import TableLineage +from huaweicloudsdkdataartsstudio.v1.model.table_lineage_info import TableLineageInfo from huaweicloudsdkdataartsstudio.v1.model.table_mapping_detail_vo import TableMappingDetailVO from huaweicloudsdkdataartsstudio.v1.model.table_mapping_vo import TableMappingVO from huaweicloudsdkdataartsstudio.v1.model.table_model_attribute_vo import TableModelAttributeVO diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_and_node_info.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_and_node_info.py new file mode 100644 index 0000000000..470d1f6a08 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_and_node_info.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobAndNodeInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_id': 'str', + 'job_name': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id', + 'job_name': 'job_name', + 'workspace_id': 'workspace_id' + } + + def __init__(self, task_id=None, job_name=None, workspace_id=None): + """JobAndNodeInfo + + The model defined in huaweicloud sdk + + :param task_id: 作业算子id + :type task_id: str + :param job_name: 作业算子名称 + :type job_name: str + :param workspace_id: 作业算子所在空间id + :type workspace_id: str + """ + + + + self._task_id = None + self._job_name = None + self._workspace_id = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if job_name is not None: + self.job_name = job_name + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def task_id(self): + """Gets the task_id of this JobAndNodeInfo. + + 作业算子id + + :return: The task_id of this JobAndNodeInfo. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this JobAndNodeInfo. + + 作业算子id + + :param task_id: The task_id of this JobAndNodeInfo. + :type task_id: str + """ + self._task_id = task_id + + @property + def job_name(self): + """Gets the job_name of this JobAndNodeInfo. + + 作业算子名称 + + :return: The job_name of this JobAndNodeInfo. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this JobAndNodeInfo. + + 作业算子名称 + + :param job_name: The job_name of this JobAndNodeInfo. + :type job_name: str + """ + self._job_name = job_name + + @property + def workspace_id(self): + """Gets the workspace_id of this JobAndNodeInfo. + + 作业算子所在空间id + + :return: The workspace_id of this JobAndNodeInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this JobAndNodeInfo. + + 作业算子所在空间id + + :param workspace_id: The workspace_id of this JobAndNodeInfo. + :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, JobAndNodeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage.py new file mode 100644 index 0000000000..1d05d2634a --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage.py @@ -0,0 +1,774 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Lineage: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'relation_type_name': 'str', + 'direction': 'str', + 'ep1_id': 'str', + 'ep1_type_name': 'str', + 'ep2_id': 'str', + 'ep2_type_name': 'str', + 'end1': 'Entity', + 'end2': 'Entity', + 'propagate_tag': 'str', + 'guid': 'str', + 'type_name': 'str', + 'type_display_name': 'str', + 'display_text': 'str', + 'attributes': 'object', + 'updated_attributes': 'list[str]', + 'project_id': 'str', + 'domain_id': 'str', + 'instance_id': 'list[str]', + 'workspace_id': 'list[str]', + 'status': 'str', + 'created_by': 'str', + 'updated_by': 'str', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'relation_type_name': 'relation_type_name', + 'direction': 'direction', + 'ep1_id': 'ep1_id', + 'ep1_type_name': 'ep1_type_name', + 'ep2_id': 'ep2_id', + 'ep2_type_name': 'ep2_type_name', + 'end1': 'end1', + 'end2': 'end2', + 'propagate_tag': 'propagate_tag', + 'guid': 'guid', + 'type_name': 'type_name', + 'type_display_name': 'type_display_name', + 'display_text': 'display_text', + 'attributes': 'attributes', + 'updated_attributes': 'updated_attributes', + 'project_id': 'project_id', + 'domain_id': 'domain_id', + 'instance_id': 'instance_id', + 'workspace_id': 'workspace_id', + 'status': 'status', + 'created_by': 'created_by', + 'updated_by': 'updated_by', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, relation_type_name=None, direction=None, ep1_id=None, ep1_type_name=None, ep2_id=None, ep2_type_name=None, end1=None, end2=None, propagate_tag=None, guid=None, type_name=None, type_display_name=None, display_text=None, attributes=None, updated_attributes=None, project_id=None, domain_id=None, instance_id=None, workspace_id=None, status=None, created_by=None, updated_by=None, create_time=None, update_time=None): + """Lineage + + The model defined in huaweicloud sdk + + :param relation_type_name: 关系类型。PARENT_CHILD,LOGICAL_PHYSICAL,PK_FK,DATA_FLOW,INSTANCE_OF,JOIN,IS_A,UP_DOWN,ASSOCIATION,WORK_FLOW + :type relation_type_name: str + :param direction: 血缘流向,IN,OUT,BOTH + :type direction: str + :param ep1_id: 节点一资产guid + :type ep1_id: str + :param ep1_type_name: 节点一资产类型 + :type ep1_type_name: str + :param ep2_id: 节点二资产guid + :type ep2_id: str + :param ep2_type_name: 节点二资产类型 + :type ep2_type_name: str + :param end1: + :type end1: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + :param end2: + :type end2: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + :param propagate_tag: 关系类型。NONE,ONE_TO_TWO,TWO_TO_ONE,BOTH + :type propagate_tag: str + :param guid: 资产guid + :type guid: str + :param type_name: 资产类型名称 + :type type_name: str + :param type_display_name: 类型展示名称 + :type type_display_name: str + :param display_text: 展示名称 + :type display_text: str + :param attributes: 资产属性,Map<String, Object> + :type attributes: object + :param updated_attributes: 修改属性列表 + :type updated_attributes: list[str] + :param project_id: 项目id + :type project_id: str + :param domain_id: 主账号id + :type domain_id: str + :param instance_id: 实例id + :type instance_id: list[str] + :param workspace_id: 空间id列表 + :type workspace_id: list[str] + :param status: 状态 + :type status: str + :param created_by: 创建人 + :type created_by: str + :param updated_by: 修改人 + :type updated_by: str + :param create_time: 创建时间 + :type create_time: str + :param update_time: 修改时间 + :type update_time: str + """ + + + + self._relation_type_name = None + self._direction = None + self._ep1_id = None + self._ep1_type_name = None + self._ep2_id = None + self._ep2_type_name = None + self._end1 = None + self._end2 = None + self._propagate_tag = None + self._guid = None + self._type_name = None + self._type_display_name = None + self._display_text = None + self._attributes = None + self._updated_attributes = None + self._project_id = None + self._domain_id = None + self._instance_id = None + self._workspace_id = None + self._status = None + self._created_by = None + self._updated_by = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if relation_type_name is not None: + self.relation_type_name = relation_type_name + if direction is not None: + self.direction = direction + if ep1_id is not None: + self.ep1_id = ep1_id + if ep1_type_name is not None: + self.ep1_type_name = ep1_type_name + if ep2_id is not None: + self.ep2_id = ep2_id + if ep2_type_name is not None: + self.ep2_type_name = ep2_type_name + if end1 is not None: + self.end1 = end1 + if end2 is not None: + self.end2 = end2 + if propagate_tag is not None: + self.propagate_tag = propagate_tag + if guid is not None: + self.guid = guid + if type_name is not None: + self.type_name = type_name + if type_display_name is not None: + self.type_display_name = type_display_name + if display_text is not None: + self.display_text = display_text + if attributes is not None: + self.attributes = attributes + if updated_attributes is not None: + self.updated_attributes = updated_attributes + if project_id is not None: + self.project_id = project_id + if domain_id is not None: + self.domain_id = domain_id + if instance_id is not None: + self.instance_id = instance_id + if workspace_id is not None: + self.workspace_id = workspace_id + if status is not None: + self.status = status + if created_by is not None: + self.created_by = created_by + if updated_by is not None: + self.updated_by = updated_by + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def relation_type_name(self): + """Gets the relation_type_name of this Lineage. + + 关系类型。PARENT_CHILD,LOGICAL_PHYSICAL,PK_FK,DATA_FLOW,INSTANCE_OF,JOIN,IS_A,UP_DOWN,ASSOCIATION,WORK_FLOW + + :return: The relation_type_name of this Lineage. + :rtype: str + """ + return self._relation_type_name + + @relation_type_name.setter + def relation_type_name(self, relation_type_name): + """Sets the relation_type_name of this Lineage. + + 关系类型。PARENT_CHILD,LOGICAL_PHYSICAL,PK_FK,DATA_FLOW,INSTANCE_OF,JOIN,IS_A,UP_DOWN,ASSOCIATION,WORK_FLOW + + :param relation_type_name: The relation_type_name of this Lineage. + :type relation_type_name: str + """ + self._relation_type_name = relation_type_name + + @property + def direction(self): + """Gets the direction of this Lineage. + + 血缘流向,IN,OUT,BOTH + + :return: The direction of this Lineage. + :rtype: str + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this Lineage. + + 血缘流向,IN,OUT,BOTH + + :param direction: The direction of this Lineage. + :type direction: str + """ + self._direction = direction + + @property + def ep1_id(self): + """Gets the ep1_id of this Lineage. + + 节点一资产guid + + :return: The ep1_id of this Lineage. + :rtype: str + """ + return self._ep1_id + + @ep1_id.setter + def ep1_id(self, ep1_id): + """Sets the ep1_id of this Lineage. + + 节点一资产guid + + :param ep1_id: The ep1_id of this Lineage. + :type ep1_id: str + """ + self._ep1_id = ep1_id + + @property + def ep1_type_name(self): + """Gets the ep1_type_name of this Lineage. + + 节点一资产类型 + + :return: The ep1_type_name of this Lineage. + :rtype: str + """ + return self._ep1_type_name + + @ep1_type_name.setter + def ep1_type_name(self, ep1_type_name): + """Sets the ep1_type_name of this Lineage. + + 节点一资产类型 + + :param ep1_type_name: The ep1_type_name of this Lineage. + :type ep1_type_name: str + """ + self._ep1_type_name = ep1_type_name + + @property + def ep2_id(self): + """Gets the ep2_id of this Lineage. + + 节点二资产guid + + :return: The ep2_id of this Lineage. + :rtype: str + """ + return self._ep2_id + + @ep2_id.setter + def ep2_id(self, ep2_id): + """Sets the ep2_id of this Lineage. + + 节点二资产guid + + :param ep2_id: The ep2_id of this Lineage. + :type ep2_id: str + """ + self._ep2_id = ep2_id + + @property + def ep2_type_name(self): + """Gets the ep2_type_name of this Lineage. + + 节点二资产类型 + + :return: The ep2_type_name of this Lineage. + :rtype: str + """ + return self._ep2_type_name + + @ep2_type_name.setter + def ep2_type_name(self, ep2_type_name): + """Sets the ep2_type_name of this Lineage. + + 节点二资产类型 + + :param ep2_type_name: The ep2_type_name of this Lineage. + :type ep2_type_name: str + """ + self._ep2_type_name = ep2_type_name + + @property + def end1(self): + """Gets the end1 of this Lineage. + + :return: The end1 of this Lineage. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + return self._end1 + + @end1.setter + def end1(self, end1): + """Sets the end1 of this Lineage. + + :param end1: The end1 of this Lineage. + :type end1: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + self._end1 = end1 + + @property + def end2(self): + """Gets the end2 of this Lineage. + + :return: The end2 of this Lineage. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + return self._end2 + + @end2.setter + def end2(self, end2): + """Sets the end2 of this Lineage. + + :param end2: The end2 of this Lineage. + :type end2: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + self._end2 = end2 + + @property + def propagate_tag(self): + """Gets the propagate_tag of this Lineage. + + 关系类型。NONE,ONE_TO_TWO,TWO_TO_ONE,BOTH + + :return: The propagate_tag of this Lineage. + :rtype: str + """ + return self._propagate_tag + + @propagate_tag.setter + def propagate_tag(self, propagate_tag): + """Sets the propagate_tag of this Lineage. + + 关系类型。NONE,ONE_TO_TWO,TWO_TO_ONE,BOTH + + :param propagate_tag: The propagate_tag of this Lineage. + :type propagate_tag: str + """ + self._propagate_tag = propagate_tag + + @property + def guid(self): + """Gets the guid of this Lineage. + + 资产guid + + :return: The guid of this Lineage. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this Lineage. + + 资产guid + + :param guid: The guid of this Lineage. + :type guid: str + """ + self._guid = guid + + @property + def type_name(self): + """Gets the type_name of this Lineage. + + 资产类型名称 + + :return: The type_name of this Lineage. + :rtype: str + """ + return self._type_name + + @type_name.setter + def type_name(self, type_name): + """Sets the type_name of this Lineage. + + 资产类型名称 + + :param type_name: The type_name of this Lineage. + :type type_name: str + """ + self._type_name = type_name + + @property + def type_display_name(self): + """Gets the type_display_name of this Lineage. + + 类型展示名称 + + :return: The type_display_name of this Lineage. + :rtype: str + """ + return self._type_display_name + + @type_display_name.setter + def type_display_name(self, type_display_name): + """Sets the type_display_name of this Lineage. + + 类型展示名称 + + :param type_display_name: The type_display_name of this Lineage. + :type type_display_name: str + """ + self._type_display_name = type_display_name + + @property + def display_text(self): + """Gets the display_text of this Lineage. + + 展示名称 + + :return: The display_text of this Lineage. + :rtype: str + """ + return self._display_text + + @display_text.setter + def display_text(self, display_text): + """Sets the display_text of this Lineage. + + 展示名称 + + :param display_text: The display_text of this Lineage. + :type display_text: str + """ + self._display_text = display_text + + @property + def attributes(self): + """Gets the attributes of this Lineage. + + 资产属性,Map + + :return: The attributes of this Lineage. + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Lineage. + + 资产属性,Map + + :param attributes: The attributes of this Lineage. + :type attributes: object + """ + self._attributes = attributes + + @property + def updated_attributes(self): + """Gets the updated_attributes of this Lineage. + + 修改属性列表 + + :return: The updated_attributes of this Lineage. + :rtype: list[str] + """ + return self._updated_attributes + + @updated_attributes.setter + def updated_attributes(self, updated_attributes): + """Sets the updated_attributes of this Lineage. + + 修改属性列表 + + :param updated_attributes: The updated_attributes of this Lineage. + :type updated_attributes: list[str] + """ + self._updated_attributes = updated_attributes + + @property + def project_id(self): + """Gets the project_id of this Lineage. + + 项目id + + :return: The project_id of this Lineage. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this Lineage. + + 项目id + + :param project_id: The project_id of this Lineage. + :type project_id: str + """ + self._project_id = project_id + + @property + def domain_id(self): + """Gets the domain_id of this Lineage. + + 主账号id + + :return: The domain_id of this Lineage. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this Lineage. + + 主账号id + + :param domain_id: The domain_id of this Lineage. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def instance_id(self): + """Gets the instance_id of this Lineage. + + 实例id + + :return: The instance_id of this Lineage. + :rtype: list[str] + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this Lineage. + + 实例id + + :param instance_id: The instance_id of this Lineage. + :type instance_id: list[str] + """ + self._instance_id = instance_id + + @property + def workspace_id(self): + """Gets the workspace_id of this Lineage. + + 空间id列表 + + :return: The workspace_id of this Lineage. + :rtype: list[str] + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this Lineage. + + 空间id列表 + + :param workspace_id: The workspace_id of this Lineage. + :type workspace_id: list[str] + """ + self._workspace_id = workspace_id + + @property + def status(self): + """Gets the status of this Lineage. + + 状态 + + :return: The status of this Lineage. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Lineage. + + 状态 + + :param status: The status of this Lineage. + :type status: str + """ + self._status = status + + @property + def created_by(self): + """Gets the created_by of this Lineage. + + 创建人 + + :return: The created_by of this Lineage. + :rtype: str + """ + return self._created_by + + @created_by.setter + def created_by(self, created_by): + """Sets the created_by of this Lineage. + + 创建人 + + :param created_by: The created_by of this Lineage. + :type created_by: str + """ + self._created_by = created_by + + @property + def updated_by(self): + """Gets the updated_by of this Lineage. + + 修改人 + + :return: The updated_by of this Lineage. + :rtype: str + """ + return self._updated_by + + @updated_by.setter + def updated_by(self, updated_by): + """Sets the updated_by of this Lineage. + + 修改人 + + :param updated_by: The updated_by of this Lineage. + :type updated_by: str + """ + self._updated_by = updated_by + + @property + def create_time(self): + """Gets the create_time of this Lineage. + + 创建时间 + + :return: The create_time of this Lineage. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Lineage. + + 创建时间 + + :param create_time: The create_time of this Lineage. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this Lineage. + + 修改时间 + + :return: The update_time of this Lineage. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this Lineage. + + 修改时间 + + :param update_time: The update_time of this Lineage. + :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, Lineage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_request.py new file mode 100644 index 0000000000..3872d34b46 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDataDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'guid': 'str', + 'ignore_relationships': 'bool' + } + + attribute_map = { + 'instance': 'instance', + 'guid': 'guid', + 'ignore_relationships': 'ignore_relationships' + } + + def __init__(self, instance=None, guid=None, ignore_relationships=None): + """ShowDataDetailRequest + + The model defined in huaweicloud sdk + + :param instance: 实例id + :type instance: str + :param guid: 资产guid + :type guid: str + :param ignore_relationships: 是否忽略关联资产 缺省值:false + :type ignore_relationships: bool + """ + + + + self._instance = None + self._guid = None + self._ignore_relationships = None + self.discriminator = None + + self.instance = instance + self.guid = guid + if ignore_relationships is not None: + self.ignore_relationships = ignore_relationships + + @property + def instance(self): + """Gets the instance of this ShowDataDetailRequest. + + 实例id + + :return: The instance of this ShowDataDetailRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowDataDetailRequest. + + 实例id + + :param instance: The instance of this ShowDataDetailRequest. + :type instance: str + """ + self._instance = instance + + @property + def guid(self): + """Gets the guid of this ShowDataDetailRequest. + + 资产guid + + :return: The guid of this ShowDataDetailRequest. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this ShowDataDetailRequest. + + 资产guid + + :param guid: The guid of this ShowDataDetailRequest. + :type guid: str + """ + self._guid = guid + + @property + def ignore_relationships(self): + """Gets the ignore_relationships of this ShowDataDetailRequest. + + 是否忽略关联资产 缺省值:false + + :return: The ignore_relationships of this ShowDataDetailRequest. + :rtype: bool + """ + return self._ignore_relationships + + @ignore_relationships.setter + def ignore_relationships(self, ignore_relationships): + """Sets the ignore_relationships of this ShowDataDetailRequest. + + 是否忽略关联资产 缺省值:false + + :param ignore_relationships: The ignore_relationships of this ShowDataDetailRequest. + :type ignore_relationships: bool + """ + self._ignore_relationships = ignore_relationships + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDataDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_response.py new file mode 100644 index 0000000000..1950214e6c --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_data_detail_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDataDetailResponse(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 = { + 'entity': 'Entity', + 'referred_entities': 'object' + } + + attribute_map = { + 'entity': 'entity', + 'referred_entities': 'referred_entities' + } + + def __init__(self, entity=None, referred_entities=None): + """ShowDataDetailResponse + + The model defined in huaweicloud sdk + + :param entity: + :type entity: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + :param referred_entities: 关联资产信息,结构体Map<String, Entity> + :type referred_entities: object + """ + + super(ShowDataDetailResponse, self).__init__() + + self._entity = None + self._referred_entities = None + self.discriminator = None + + if entity is not None: + self.entity = entity + if referred_entities is not None: + self.referred_entities = referred_entities + + @property + def entity(self): + """Gets the entity of this ShowDataDetailResponse. + + :return: The entity of this ShowDataDetailResponse. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + return self._entity + + @entity.setter + def entity(self, entity): + """Sets the entity of this ShowDataDetailResponse. + + :param entity: The entity of this ShowDataDetailResponse. + :type entity: :class:`huaweicloudsdkdataartsstudio.v1.Entity` + """ + self._entity = entity + + @property + def referred_entities(self): + """Gets the referred_entities of this ShowDataDetailResponse. + + 关联资产信息,结构体Map + + :return: The referred_entities of this ShowDataDetailResponse. + :rtype: object + """ + return self._referred_entities + + @referred_entities.setter + def referred_entities(self, referred_entities): + """Sets the referred_entities of this ShowDataDetailResponse. + + 关联资产信息,结构体Map + + :param referred_entities: The referred_entities of this ShowDataDetailResponse. + :type referred_entities: object + """ + self._referred_entities = referred_entities + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDataDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_request.py new file mode 100644 index 0000000000..8f6f747a28 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_request.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDatamapLineageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'guid': 'str', + 'direction': 'str', + 'relationship_types': 'list[str]', + 'relationship_type_categories': 'list[str]', + 'related_entity_types': 'list[str]', + 'extend_process_data_flow': 'bool', + 'include_parent_entity': 'bool' + } + + attribute_map = { + 'instance': 'instance', + 'guid': 'guid', + 'direction': 'direction', + 'relationship_types': 'relationship_types', + 'relationship_type_categories': 'relationship_type_categories', + 'related_entity_types': 'related_entity_types', + 'extend_process_data_flow': 'extend_process_data_flow', + 'include_parent_entity': 'include_parent_entity' + } + + def __init__(self, instance=None, guid=None, direction=None, relationship_types=None, relationship_type_categories=None, related_entity_types=None, extend_process_data_flow=None, include_parent_entity=None): + """ShowDatamapLineageRequest + + The model defined in huaweicloud sdk + + :param instance: 实例id + :type instance: str + :param guid: 资产guid + :type guid: str + :param direction: 血缘查询方向,默认值:BOTH。枚举值[IN OUT BOTH] + :type direction: str + :param relationship_types: 关联关系类型列表,默认空 + :type relationship_types: list[str] + :param relationship_type_categories: 关联关系类型类别,默认空。血缘查询使用DATA_FLOW + :type relationship_type_categories: list[str] + :param related_entity_types: 关联实体类型,默认空 + :type related_entity_types: list[str] + :param extend_process_data_flow: 是否扩展数据,默认false + :type extend_process_data_flow: bool + :param include_parent_entity: 是否包含父类实体,默认false + :type include_parent_entity: bool + """ + + + + self._instance = None + self._guid = None + self._direction = None + self._relationship_types = None + self._relationship_type_categories = None + self._related_entity_types = None + self._extend_process_data_flow = None + self._include_parent_entity = None + self.discriminator = None + + self.instance = instance + self.guid = guid + if direction is not None: + self.direction = direction + if relationship_types is not None: + self.relationship_types = relationship_types + if relationship_type_categories is not None: + self.relationship_type_categories = relationship_type_categories + if related_entity_types is not None: + self.related_entity_types = related_entity_types + if extend_process_data_flow is not None: + self.extend_process_data_flow = extend_process_data_flow + if include_parent_entity is not None: + self.include_parent_entity = include_parent_entity + + @property + def instance(self): + """Gets the instance of this ShowDatamapLineageRequest. + + 实例id + + :return: The instance of this ShowDatamapLineageRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowDatamapLineageRequest. + + 实例id + + :param instance: The instance of this ShowDatamapLineageRequest. + :type instance: str + """ + self._instance = instance + + @property + def guid(self): + """Gets the guid of this ShowDatamapLineageRequest. + + 资产guid + + :return: The guid of this ShowDatamapLineageRequest. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this ShowDatamapLineageRequest. + + 资产guid + + :param guid: The guid of this ShowDatamapLineageRequest. + :type guid: str + """ + self._guid = guid + + @property + def direction(self): + """Gets the direction of this ShowDatamapLineageRequest. + + 血缘查询方向,默认值:BOTH。枚举值[IN OUT BOTH] + + :return: The direction of this ShowDatamapLineageRequest. + :rtype: str + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this ShowDatamapLineageRequest. + + 血缘查询方向,默认值:BOTH。枚举值[IN OUT BOTH] + + :param direction: The direction of this ShowDatamapLineageRequest. + :type direction: str + """ + self._direction = direction + + @property + def relationship_types(self): + """Gets the relationship_types of this ShowDatamapLineageRequest. + + 关联关系类型列表,默认空 + + :return: The relationship_types of this ShowDatamapLineageRequest. + :rtype: list[str] + """ + return self._relationship_types + + @relationship_types.setter + def relationship_types(self, relationship_types): + """Sets the relationship_types of this ShowDatamapLineageRequest. + + 关联关系类型列表,默认空 + + :param relationship_types: The relationship_types of this ShowDatamapLineageRequest. + :type relationship_types: list[str] + """ + self._relationship_types = relationship_types + + @property + def relationship_type_categories(self): + """Gets the relationship_type_categories of this ShowDatamapLineageRequest. + + 关联关系类型类别,默认空。血缘查询使用DATA_FLOW + + :return: The relationship_type_categories of this ShowDatamapLineageRequest. + :rtype: list[str] + """ + return self._relationship_type_categories + + @relationship_type_categories.setter + def relationship_type_categories(self, relationship_type_categories): + """Sets the relationship_type_categories of this ShowDatamapLineageRequest. + + 关联关系类型类别,默认空。血缘查询使用DATA_FLOW + + :param relationship_type_categories: The relationship_type_categories of this ShowDatamapLineageRequest. + :type relationship_type_categories: list[str] + """ + self._relationship_type_categories = relationship_type_categories + + @property + def related_entity_types(self): + """Gets the related_entity_types of this ShowDatamapLineageRequest. + + 关联实体类型,默认空 + + :return: The related_entity_types of this ShowDatamapLineageRequest. + :rtype: list[str] + """ + return self._related_entity_types + + @related_entity_types.setter + def related_entity_types(self, related_entity_types): + """Sets the related_entity_types of this ShowDatamapLineageRequest. + + 关联实体类型,默认空 + + :param related_entity_types: The related_entity_types of this ShowDatamapLineageRequest. + :type related_entity_types: list[str] + """ + self._related_entity_types = related_entity_types + + @property + def extend_process_data_flow(self): + """Gets the extend_process_data_flow of this ShowDatamapLineageRequest. + + 是否扩展数据,默认false + + :return: The extend_process_data_flow of this ShowDatamapLineageRequest. + :rtype: bool + """ + return self._extend_process_data_flow + + @extend_process_data_flow.setter + def extend_process_data_flow(self, extend_process_data_flow): + """Sets the extend_process_data_flow of this ShowDatamapLineageRequest. + + 是否扩展数据,默认false + + :param extend_process_data_flow: The extend_process_data_flow of this ShowDatamapLineageRequest. + :type extend_process_data_flow: bool + """ + self._extend_process_data_flow = extend_process_data_flow + + @property + def include_parent_entity(self): + """Gets the include_parent_entity of this ShowDatamapLineageRequest. + + 是否包含父类实体,默认false + + :return: The include_parent_entity of this ShowDatamapLineageRequest. + :rtype: bool + """ + return self._include_parent_entity + + @include_parent_entity.setter + def include_parent_entity(self, include_parent_entity): + """Sets the include_parent_entity of this ShowDatamapLineageRequest. + + 是否包含父类实体,默认false + + :param include_parent_entity: The include_parent_entity of this ShowDatamapLineageRequest. + :type include_parent_entity: bool + """ + self._include_parent_entity = include_parent_entity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDatamapLineageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_response.py new file mode 100644 index 0000000000..c19fb3e61d --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_datamap_lineage_response.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDatamapLineageResponse(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 = { + 'total': 'float', + 'relationships': 'list[Lineage]', + 'relationship_types': 'object', + 'entities': 'list[Entity]', + 'entity_types': 'object' + } + + attribute_map = { + 'total': 'total', + 'relationships': 'relationships', + 'relationship_types': 'relationship_types', + 'entities': 'entities', + 'entity_types': 'entity_types' + } + + def __init__(self, total=None, relationships=None, relationship_types=None, entities=None, entity_types=None): + """ShowDatamapLineageResponse + + The model defined in huaweicloud sdk + + :param total: 查询命中总条数 + :type total: float + :param relationships: 关系列表 + :type relationships: list[:class:`huaweicloudsdkdataartsstudio.v1.Lineage`] + :param relationship_types: 关系类型 + :type relationship_types: object + :param entities: 资产信息 + :type entities: list[:class:`huaweicloudsdkdataartsstudio.v1.Entity`] + :param entity_types: 实体类型 + :type entity_types: object + """ + + super(ShowDatamapLineageResponse, self).__init__() + + self._total = None + self._relationships = None + self._relationship_types = None + self._entities = None + self._entity_types = None + self.discriminator = None + + if total is not None: + self.total = total + if relationships is not None: + self.relationships = relationships + if relationship_types is not None: + self.relationship_types = relationship_types + if entities is not None: + self.entities = entities + if entity_types is not None: + self.entity_types = entity_types + + @property + def total(self): + """Gets the total of this ShowDatamapLineageResponse. + + 查询命中总条数 + + :return: The total of this ShowDatamapLineageResponse. + :rtype: float + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowDatamapLineageResponse. + + 查询命中总条数 + + :param total: The total of this ShowDatamapLineageResponse. + :type total: float + """ + self._total = total + + @property + def relationships(self): + """Gets the relationships of this ShowDatamapLineageResponse. + + 关系列表 + + :return: The relationships of this ShowDatamapLineageResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Lineage`] + """ + return self._relationships + + @relationships.setter + def relationships(self, relationships): + """Sets the relationships of this ShowDatamapLineageResponse. + + 关系列表 + + :param relationships: The relationships of this ShowDatamapLineageResponse. + :type relationships: list[:class:`huaweicloudsdkdataartsstudio.v1.Lineage`] + """ + self._relationships = relationships + + @property + def relationship_types(self): + """Gets the relationship_types of this ShowDatamapLineageResponse. + + 关系类型 + + :return: The relationship_types of this ShowDatamapLineageResponse. + :rtype: object + """ + return self._relationship_types + + @relationship_types.setter + def relationship_types(self, relationship_types): + """Sets the relationship_types of this ShowDatamapLineageResponse. + + 关系类型 + + :param relationship_types: The relationship_types of this ShowDatamapLineageResponse. + :type relationship_types: object + """ + self._relationship_types = relationship_types + + @property + def entities(self): + """Gets the entities of this ShowDatamapLineageResponse. + + 资产信息 + + :return: The entities of this ShowDatamapLineageResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Entity`] + """ + return self._entities + + @entities.setter + def entities(self, entities): + """Sets the entities of this ShowDatamapLineageResponse. + + 资产信息 + + :param entities: The entities of this ShowDatamapLineageResponse. + :type entities: list[:class:`huaweicloudsdkdataartsstudio.v1.Entity`] + """ + self._entities = entities + + @property + def entity_types(self): + """Gets the entity_types of this ShowDatamapLineageResponse. + + 实体类型 + + :return: The entity_types of this ShowDatamapLineageResponse. + :rtype: object + """ + return self._entity_types + + @entity_types.setter + def entity_types(self, entity_types): + """Sets the entity_types of this ShowDatamapLineageResponse. + + 实体类型 + + :param entity_types: The entity_types of this ShowDatamapLineageResponse. + :type entity_types: object + """ + self._entity_types = entity_types + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDatamapLineageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_request.py new file mode 100644 index 0000000000..b4fecf7d81 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_request.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceInfosRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'workspace_id': 'str', + 'task_id': 'str', + 'job_name': 'str', + 'start_time': 'float', + 'end_time': 'float', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'instance': 'instance', + 'workspace_id': 'workspace_id', + 'task_id': 'task_id', + 'job_name': 'job_name', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, instance=None, workspace_id=None, task_id=None, job_name=None, start_time=None, end_time=None, offset=None, limit=None): + """ShowInstanceInfosRequest + + The model defined in huaweicloud sdk + + :param instance: 实例id + :type instance: str + :param workspace_id: 空间id + :type workspace_id: str + :param task_id: 作业算子id + :type task_id: str + :param job_name: 作业算子名称 + :type job_name: str + :param start_time: 搜索参数时间范围的开始时间,例:1705248000000 + :type start_time: float + :param end_time: 搜索参数时间范围的结束时间,例:1705311669796 + :type end_time: float + :param offset: 分页参数偏移量 + :type offset: int + :param limit: 分页参每页数量 + :type limit: int + """ + + + + self._instance = None + self._workspace_id = None + self._task_id = None + self._job_name = None + self._start_time = None + self._end_time = None + self._offset = None + self._limit = None + self.discriminator = None + + self.instance = instance + if workspace_id is not None: + self.workspace_id = workspace_id + self.task_id = task_id + self.job_name = job_name + self.start_time = start_time + self.end_time = end_time + self.offset = offset + self.limit = limit + + @property + def instance(self): + """Gets the instance of this ShowInstanceInfosRequest. + + 实例id + + :return: The instance of this ShowInstanceInfosRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowInstanceInfosRequest. + + 实例id + + :param instance: The instance of this ShowInstanceInfosRequest. + :type instance: str + """ + self._instance = instance + + @property + def workspace_id(self): + """Gets the workspace_id of this ShowInstanceInfosRequest. + + 空间id + + :return: The workspace_id of this ShowInstanceInfosRequest. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this ShowInstanceInfosRequest. + + 空间id + + :param workspace_id: The workspace_id of this ShowInstanceInfosRequest. + :type workspace_id: str + """ + self._workspace_id = workspace_id + + @property + def task_id(self): + """Gets the task_id of this ShowInstanceInfosRequest. + + 作业算子id + + :return: The task_id of this ShowInstanceInfosRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowInstanceInfosRequest. + + 作业算子id + + :param task_id: The task_id of this ShowInstanceInfosRequest. + :type task_id: str + """ + self._task_id = task_id + + @property + def job_name(self): + """Gets the job_name of this ShowInstanceInfosRequest. + + 作业算子名称 + + :return: The job_name of this ShowInstanceInfosRequest. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ShowInstanceInfosRequest. + + 作业算子名称 + + :param job_name: The job_name of this ShowInstanceInfosRequest. + :type job_name: str + """ + self._job_name = job_name + + @property + def start_time(self): + """Gets the start_time of this ShowInstanceInfosRequest. + + 搜索参数时间范围的开始时间,例:1705248000000 + + :return: The start_time of this ShowInstanceInfosRequest. + :rtype: float + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowInstanceInfosRequest. + + 搜索参数时间范围的开始时间,例:1705248000000 + + :param start_time: The start_time of this ShowInstanceInfosRequest. + :type start_time: float + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowInstanceInfosRequest. + + 搜索参数时间范围的结束时间,例:1705311669796 + + :return: The end_time of this ShowInstanceInfosRequest. + :rtype: float + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowInstanceInfosRequest. + + 搜索参数时间范围的结束时间,例:1705311669796 + + :param end_time: The end_time of this ShowInstanceInfosRequest. + :type end_time: float + """ + self._end_time = end_time + + @property + def offset(self): + """Gets the offset of this ShowInstanceInfosRequest. + + 分页参数偏移量 + + :return: The offset of this ShowInstanceInfosRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowInstanceInfosRequest. + + 分页参数偏移量 + + :param offset: The offset of this ShowInstanceInfosRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowInstanceInfosRequest. + + 分页参每页数量 + + :return: The limit of this ShowInstanceInfosRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowInstanceInfosRequest. + + 分页参每页数量 + + :param limit: The limit of this ShowInstanceInfosRequest. + :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, ShowInstanceInfosRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_response.py new file mode 100644 index 0000000000..12d3b29f7c --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_instance_infos_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceInfosResponse(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_code': 'int', + 'body': 'str', + 'header_map': 'object' + } + + attribute_map = { + 'status_code': 'status_code', + 'body': 'body', + 'header_map': 'header_map' + } + + def __init__(self, status_code=None, body=None, header_map=None): + """ShowInstanceInfosResponse + + The model defined in huaweicloud sdk + + :param status_code: 响应码 + :type status_code: int + :param body: 响应体 + :type body: str + :param header_map: 响应头,结构为Map<String,String> + :type header_map: object + """ + + super(ShowInstanceInfosResponse, self).__init__() + + self._status_code = None + self._body = None + self._header_map = None + self.discriminator = None + + if status_code is not None: + self.status_code = status_code + if body is not None: + self.body = body + if header_map is not None: + self.header_map = header_map + + @property + def status_code(self): + """Gets the status_code of this ShowInstanceInfosResponse. + + 响应码 + + :return: The status_code of this ShowInstanceInfosResponse. + :rtype: int + """ + return self._status_code + + @status_code.setter + def status_code(self, status_code): + """Sets the status_code of this ShowInstanceInfosResponse. + + 响应码 + + :param status_code: The status_code of this ShowInstanceInfosResponse. + :type status_code: int + """ + self._status_code = status_code + + @property + def body(self): + """Gets the body of this ShowInstanceInfosResponse. + + 响应体 + + :return: The body of this ShowInstanceInfosResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowInstanceInfosResponse. + + 响应体 + + :param body: The body of this ShowInstanceInfosResponse. + :type body: str + """ + self._body = body + + @property + def header_map(self): + """Gets the header_map of this ShowInstanceInfosResponse. + + 响应头,结构为Map + + :return: The header_map of this ShowInstanceInfosResponse. + :rtype: object + """ + return self._header_map + + @header_map.setter + def header_map(self, header_map): + """Sets the header_map of this ShowInstanceInfosResponse. + + 响应头,结构为Map + + :param header_map: The header_map of this ShowInstanceInfosResponse. + :type header_map: object + """ + self._header_map = header_map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceInfosResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_request.py new file mode 100644 index 0000000000..af8544c723 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_request.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLineageBulkRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'instance': 'instance', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, instance=None, offset=None, limit=None): + """ShowLineageBulkRequest + + The model defined in huaweicloud sdk + + :param instance: 实例id + :type instance: str + :param offset: 分页参数偏移量,默认值0 + :type offset: int + :param limit: 分页参每页数量,默认值100 + :type limit: int + """ + + + + self._instance = None + self._offset = None + self._limit = None + self.discriminator = None + + self.instance = instance + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def instance(self): + """Gets the instance of this ShowLineageBulkRequest. + + 实例id + + :return: The instance of this ShowLineageBulkRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowLineageBulkRequest. + + 实例id + + :param instance: The instance of this ShowLineageBulkRequest. + :type instance: str + """ + self._instance = instance + + @property + def offset(self): + """Gets the offset of this ShowLineageBulkRequest. + + 分页参数偏移量,默认值0 + + :return: The offset of this ShowLineageBulkRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowLineageBulkRequest. + + 分页参数偏移量,默认值0 + + :param offset: The offset of this ShowLineageBulkRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowLineageBulkRequest. + + 分页参每页数量,默认值100 + + :return: The limit of this ShowLineageBulkRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowLineageBulkRequest. + + 分页参每页数量,默认值100 + + :param limit: The limit of this ShowLineageBulkRequest. + :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, ShowLineageBulkRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_response.py new file mode 100644 index 0000000000..0efc56101b --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_bulk_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLineageBulkResponse(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 = { + 'total': 'float', + 'data': 'list[TableLineageInfo]' + } + + attribute_map = { + 'total': 'total', + 'data': 'data' + } + + def __init__(self, total=None, data=None): + """ShowLineageBulkResponse + + The model defined in huaweicloud sdk + + :param total: 作业算子个数,批量查询根据作业算子获取血缘 + :type total: float + :param data: 当前页作业算子包含的表血缘列表 + :type data: list[:class:`huaweicloudsdkdataartsstudio.v1.TableLineageInfo`] + """ + + super(ShowLineageBulkResponse, self).__init__() + + self._total = None + self._data = None + self.discriminator = None + + if total is not None: + self.total = total + if data is not None: + self.data = data + + @property + def total(self): + """Gets the total of this ShowLineageBulkResponse. + + 作业算子个数,批量查询根据作业算子获取血缘 + + :return: The total of this ShowLineageBulkResponse. + :rtype: float + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ShowLineageBulkResponse. + + 作业算子个数,批量查询根据作业算子获取血缘 + + :param total: The total of this ShowLineageBulkResponse. + :type total: float + """ + self._total = total + + @property + def data(self): + """Gets the data of this ShowLineageBulkResponse. + + 当前页作业算子包含的表血缘列表 + + :return: The data of this ShowLineageBulkResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.TableLineageInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowLineageBulkResponse. + + 当前页作业算子包含的表血缘列表 + + :param data: The data of this ShowLineageBulkResponse. + :type data: list[:class:`huaweicloudsdkdataartsstudio.v1.TableLineageInfo`] + """ + 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, ShowLineageBulkResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_request.py new file mode 100644 index 0000000000..ecb3ea3894 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowNodesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'guid': 'str' + } + + attribute_map = { + 'instance': 'instance', + 'guid': 'guid' + } + + def __init__(self, instance=None, guid=None): + """ShowNodesRequest + + The model defined in huaweicloud sdk + + :param instance: 实例id + :type instance: str + :param guid: 资产guid + :type guid: str + """ + + + + self._instance = None + self._guid = None + self.discriminator = None + + self.instance = instance + self.guid = guid + + @property + def instance(self): + """Gets the instance of this ShowNodesRequest. + + 实例id + + :return: The instance of this ShowNodesRequest. + :rtype: str + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowNodesRequest. + + 实例id + + :param instance: The instance of this ShowNodesRequest. + :type instance: str + """ + self._instance = instance + + @property + def guid(self): + """Gets the guid of this ShowNodesRequest. + + 资产guid + + :return: The guid of this ShowNodesRequest. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this ShowNodesRequest. + + 资产guid + + :param guid: The guid of this ShowNodesRequest. + :type guid: str + """ + self._guid = guid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowNodesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_response.py new file mode 100644 index 0000000000..66f7f3ff12 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_nodes_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowNodesResponse(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': 'list[JobAndNodeInfo]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ShowNodesResponse + + The model defined in huaweicloud sdk + + :param body: 作业算子基本信息列表 + :type body: list[:class:`huaweicloudsdkdataartsstudio.v1.JobAndNodeInfo`] + """ + + super(ShowNodesResponse, 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 ShowNodesResponse. + + 作业算子基本信息列表 + + :return: The body of this ShowNodesResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.JobAndNodeInfo`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowNodesResponse. + + 作业算子基本信息列表 + + :param body: The body of this ShowNodesResponse. + :type body: list[:class:`huaweicloudsdkdataartsstudio.v1.JobAndNodeInfo`] + """ + 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, ShowNodesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_info.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_info.py new file mode 100644 index 0000000000..b7ee57a3f6 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/table_lineage_info.py @@ -0,0 +1,579 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TableLineageInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_guid': 'str', + 'source_qualified_name': 'str', + 'source_type': 'str', + 'source_db': 'str', + 'source_schema': 'str', + 'source_table': 'str', + 'target_guid': 'str', + 'target_qualified_name': 'str', + 'target_type': 'str', + 'target_db': 'str', + 'target_schema': 'str', + 'target_table': 'str', + 'node_guid': 'str', + 'node_name': 'str', + 'node_type': 'str', + 'node_qualified_name': 'str', + 'workspace_id': 'str' + } + + attribute_map = { + 'source_guid': 'source_guid', + 'source_qualified_name': 'source_qualified_name', + 'source_type': 'source_type', + 'source_db': 'source_db', + 'source_schema': 'source_schema', + 'source_table': 'source_table', + 'target_guid': 'target_guid', + 'target_qualified_name': 'target_qualified_name', + 'target_type': 'target_type', + 'target_db': 'target_db', + 'target_schema': 'target_schema', + 'target_table': 'target_table', + 'node_guid': 'node_guid', + 'node_name': 'node_name', + 'node_type': 'node_type', + 'node_qualified_name': 'node_qualified_name', + 'workspace_id': 'workspace_id' + } + + def __init__(self, source_guid=None, source_qualified_name=None, source_type=None, source_db=None, source_schema=None, source_table=None, target_guid=None, target_qualified_name=None, target_type=None, target_db=None, target_schema=None, target_table=None, node_guid=None, node_name=None, node_type=None, node_qualified_name=None, workspace_id=None): + """TableLineageInfo + + The model defined in huaweicloud sdk + + :param source_guid: 上游血缘资产guid + :type source_guid: str + :param source_qualified_name: 上游血缘资产Qname + :type source_qualified_name: str + :param source_type: 上游血缘资产类型 + :type source_type: str + :param source_db: 上游血缘资产数据库 + :type source_db: str + :param source_schema: 上游血缘资产逻辑库 + :type source_schema: str + :param source_table: 上游血缘资产表 + :type source_table: str + :param target_guid: 下游血缘资产guid + :type target_guid: str + :param target_qualified_name: 下游血缘资产Qname + :type target_qualified_name: str + :param target_type: 下游血缘资产类型 + :type target_type: str + :param target_db: 下游血缘资产数据库 + :type target_db: str + :param target_schema: 下游血缘资产逻辑库 + :type target_schema: str + :param target_table: 下游血缘资产表 + :type target_table: str + :param node_guid: 作业算子guid + :type node_guid: str + :param node_name: 作业算子名称 + :type node_name: str + :param node_type: 作业算子类型 + :type node_type: str + :param node_qualified_name: 作业算子Qname + :type node_qualified_name: str + :param workspace_id: 作业算子类型所属空间 + :type workspace_id: str + """ + + + + self._source_guid = None + self._source_qualified_name = None + self._source_type = None + self._source_db = None + self._source_schema = None + self._source_table = None + self._target_guid = None + self._target_qualified_name = None + self._target_type = None + self._target_db = None + self._target_schema = None + self._target_table = None + self._node_guid = None + self._node_name = None + self._node_type = None + self._node_qualified_name = None + self._workspace_id = None + self.discriminator = None + + if source_guid is not None: + self.source_guid = source_guid + if source_qualified_name is not None: + self.source_qualified_name = source_qualified_name + if source_type is not None: + self.source_type = source_type + if source_db is not None: + self.source_db = source_db + if source_schema is not None: + self.source_schema = source_schema + if source_table is not None: + self.source_table = source_table + if target_guid is not None: + self.target_guid = target_guid + if target_qualified_name is not None: + self.target_qualified_name = target_qualified_name + if target_type is not None: + self.target_type = target_type + if target_db is not None: + self.target_db = target_db + if target_schema is not None: + self.target_schema = target_schema + if target_table is not None: + self.target_table = target_table + if node_guid is not None: + self.node_guid = node_guid + if node_name is not None: + self.node_name = node_name + if node_type is not None: + self.node_type = node_type + if node_qualified_name is not None: + self.node_qualified_name = node_qualified_name + if workspace_id is not None: + self.workspace_id = workspace_id + + @property + def source_guid(self): + """Gets the source_guid of this TableLineageInfo. + + 上游血缘资产guid + + :return: The source_guid of this TableLineageInfo. + :rtype: str + """ + return self._source_guid + + @source_guid.setter + def source_guid(self, source_guid): + """Sets the source_guid of this TableLineageInfo. + + 上游血缘资产guid + + :param source_guid: The source_guid of this TableLineageInfo. + :type source_guid: str + """ + self._source_guid = source_guid + + @property + def source_qualified_name(self): + """Gets the source_qualified_name of this TableLineageInfo. + + 上游血缘资产Qname + + :return: The source_qualified_name of this TableLineageInfo. + :rtype: str + """ + return self._source_qualified_name + + @source_qualified_name.setter + def source_qualified_name(self, source_qualified_name): + """Sets the source_qualified_name of this TableLineageInfo. + + 上游血缘资产Qname + + :param source_qualified_name: The source_qualified_name of this TableLineageInfo. + :type source_qualified_name: str + """ + self._source_qualified_name = source_qualified_name + + @property + def source_type(self): + """Gets the source_type of this TableLineageInfo. + + 上游血缘资产类型 + + :return: The source_type of this TableLineageInfo. + :rtype: str + """ + return self._source_type + + @source_type.setter + def source_type(self, source_type): + """Sets the source_type of this TableLineageInfo. + + 上游血缘资产类型 + + :param source_type: The source_type of this TableLineageInfo. + :type source_type: str + """ + self._source_type = source_type + + @property + def source_db(self): + """Gets the source_db of this TableLineageInfo. + + 上游血缘资产数据库 + + :return: The source_db of this TableLineageInfo. + :rtype: str + """ + return self._source_db + + @source_db.setter + def source_db(self, source_db): + """Sets the source_db of this TableLineageInfo. + + 上游血缘资产数据库 + + :param source_db: The source_db of this TableLineageInfo. + :type source_db: str + """ + self._source_db = source_db + + @property + def source_schema(self): + """Gets the source_schema of this TableLineageInfo. + + 上游血缘资产逻辑库 + + :return: The source_schema of this TableLineageInfo. + :rtype: str + """ + return self._source_schema + + @source_schema.setter + def source_schema(self, source_schema): + """Sets the source_schema of this TableLineageInfo. + + 上游血缘资产逻辑库 + + :param source_schema: The source_schema of this TableLineageInfo. + :type source_schema: str + """ + self._source_schema = source_schema + + @property + def source_table(self): + """Gets the source_table of this TableLineageInfo. + + 上游血缘资产表 + + :return: The source_table of this TableLineageInfo. + :rtype: str + """ + return self._source_table + + @source_table.setter + def source_table(self, source_table): + """Sets the source_table of this TableLineageInfo. + + 上游血缘资产表 + + :param source_table: The source_table of this TableLineageInfo. + :type source_table: str + """ + self._source_table = source_table + + @property + def target_guid(self): + """Gets the target_guid of this TableLineageInfo. + + 下游血缘资产guid + + :return: The target_guid of this TableLineageInfo. + :rtype: str + """ + return self._target_guid + + @target_guid.setter + def target_guid(self, target_guid): + """Sets the target_guid of this TableLineageInfo. + + 下游血缘资产guid + + :param target_guid: The target_guid of this TableLineageInfo. + :type target_guid: str + """ + self._target_guid = target_guid + + @property + def target_qualified_name(self): + """Gets the target_qualified_name of this TableLineageInfo. + + 下游血缘资产Qname + + :return: The target_qualified_name of this TableLineageInfo. + :rtype: str + """ + return self._target_qualified_name + + @target_qualified_name.setter + def target_qualified_name(self, target_qualified_name): + """Sets the target_qualified_name of this TableLineageInfo. + + 下游血缘资产Qname + + :param target_qualified_name: The target_qualified_name of this TableLineageInfo. + :type target_qualified_name: str + """ + self._target_qualified_name = target_qualified_name + + @property + def target_type(self): + """Gets the target_type of this TableLineageInfo. + + 下游血缘资产类型 + + :return: The target_type of this TableLineageInfo. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this TableLineageInfo. + + 下游血缘资产类型 + + :param target_type: The target_type of this TableLineageInfo. + :type target_type: str + """ + self._target_type = target_type + + @property + def target_db(self): + """Gets the target_db of this TableLineageInfo. + + 下游血缘资产数据库 + + :return: The target_db of this TableLineageInfo. + :rtype: str + """ + return self._target_db + + @target_db.setter + def target_db(self, target_db): + """Sets the target_db of this TableLineageInfo. + + 下游血缘资产数据库 + + :param target_db: The target_db of this TableLineageInfo. + :type target_db: str + """ + self._target_db = target_db + + @property + def target_schema(self): + """Gets the target_schema of this TableLineageInfo. + + 下游血缘资产逻辑库 + + :return: The target_schema of this TableLineageInfo. + :rtype: str + """ + return self._target_schema + + @target_schema.setter + def target_schema(self, target_schema): + """Sets the target_schema of this TableLineageInfo. + + 下游血缘资产逻辑库 + + :param target_schema: The target_schema of this TableLineageInfo. + :type target_schema: str + """ + self._target_schema = target_schema + + @property + def target_table(self): + """Gets the target_table of this TableLineageInfo. + + 下游血缘资产表 + + :return: The target_table of this TableLineageInfo. + :rtype: str + """ + return self._target_table + + @target_table.setter + def target_table(self, target_table): + """Sets the target_table of this TableLineageInfo. + + 下游血缘资产表 + + :param target_table: The target_table of this TableLineageInfo. + :type target_table: str + """ + self._target_table = target_table + + @property + def node_guid(self): + """Gets the node_guid of this TableLineageInfo. + + 作业算子guid + + :return: The node_guid of this TableLineageInfo. + :rtype: str + """ + return self._node_guid + + @node_guid.setter + def node_guid(self, node_guid): + """Sets the node_guid of this TableLineageInfo. + + 作业算子guid + + :param node_guid: The node_guid of this TableLineageInfo. + :type node_guid: str + """ + self._node_guid = node_guid + + @property + def node_name(self): + """Gets the node_name of this TableLineageInfo. + + 作业算子名称 + + :return: The node_name of this TableLineageInfo. + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this TableLineageInfo. + + 作业算子名称 + + :param node_name: The node_name of this TableLineageInfo. + :type node_name: str + """ + self._node_name = node_name + + @property + def node_type(self): + """Gets the node_type of this TableLineageInfo. + + 作业算子类型 + + :return: The node_type of this TableLineageInfo. + :rtype: str + """ + return self._node_type + + @node_type.setter + def node_type(self, node_type): + """Sets the node_type of this TableLineageInfo. + + 作业算子类型 + + :param node_type: The node_type of this TableLineageInfo. + :type node_type: str + """ + self._node_type = node_type + + @property + def node_qualified_name(self): + """Gets the node_qualified_name of this TableLineageInfo. + + 作业算子Qname + + :return: The node_qualified_name of this TableLineageInfo. + :rtype: str + """ + return self._node_qualified_name + + @node_qualified_name.setter + def node_qualified_name(self, node_qualified_name): + """Sets the node_qualified_name of this TableLineageInfo. + + 作业算子Qname + + :param node_qualified_name: The node_qualified_name of this TableLineageInfo. + :type node_qualified_name: str + """ + self._node_qualified_name = node_qualified_name + + @property + def workspace_id(self): + """Gets the workspace_id of this TableLineageInfo. + + 作业算子类型所属空间 + + :return: The workspace_id of this TableLineageInfo. + :rtype: str + """ + return self._workspace_id + + @workspace_id.setter + def workspace_id(self, workspace_id): + """Sets the workspace_id of this TableLineageInfo. + + 作业算子类型所属空间 + + :param workspace_id: The workspace_id of this TableLineageInfo. + :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, TableLineageInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py index 9d6ded28cc..6fdd36ae6e 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/region/dataartsstudio_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class DataArtsStudioRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'DataArtsStudio': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 758cb17d0f..f002ce23b7 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py b/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py index 7342777ca3..d8a4a50300 100644 --- a/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py +++ b/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -85,9 +82,9 @@ class DbssRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +93,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dbss': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 5fff0a7b5d..c242a89991 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py index d180f489e4..401139bcb7 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class DcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 7c8cd94d13..c6d4e84baf 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index 418dd94778..4bf72ba411 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -33,6 +33,8 @@ from huaweicloudsdkdcs.v2.model.bss_param import BssParam from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity from huaweicloudsdkdcs.v2.model.change_instance_status_body import ChangeInstanceStatusBody +from huaweicloudsdkdcs.v2.model.change_master_standby_async_request import ChangeMasterStandbyAsyncRequest +from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index 8d0652c028..6742c99037 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -365,6 +365,71 @@ def _change_master_standby_http_info(self, request): return http_info + def change_master_standby_async_async(self, request): + """异步交换实例主备节点 + + 异步交换实例主备节点 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeMasterStandbyAsync + :type request: :class:`huaweicloudsdkdcs.v2.ChangeMasterStandbyAsyncRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ChangeMasterStandbyAsyncResponse` + """ + http_info = self._change_master_standby_async_http_info(request) + return self._call_api(**http_info) + + def change_master_standby_async_async_invoker(self, request): + http_info = self._change_master_standby_async_http_info(request) + return AsyncInvoker(self, http_info) + + def _change_master_standby_async_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/async-swap", + "request_type": request.__class__.__name__, + "response_type": "ChangeMasterStandbyAsyncResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def copy_instance_async(self, request): """备份指定实例 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index 7ea1a8eadc..efa8f05b89 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -365,6 +365,71 @@ def _change_master_standby_http_info(cls, request): return http_info + def change_master_standby_async(self, request): + """异步交换实例主备节点 + + 异步交换实例主备节点 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeMasterStandbyAsync + :type request: :class:`huaweicloudsdkdcs.v2.ChangeMasterStandbyAsyncRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ChangeMasterStandbyAsyncResponse` + """ + http_info = self._change_master_standby_async_http_info(request) + return self._call_api(**http_info) + + def change_master_standby_async_invoker(self, request): + http_info = self._change_master_standby_async_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _change_master_standby_async_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/async-swap", + "request_type": request.__class__.__name__, + "response_type": "ChangeMasterStandbyAsyncResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def copy_instance(self, request): """备份指定实例 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index 7226d40a60..451e0e0491 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -31,6 +31,8 @@ from huaweicloudsdkdcs.v2.model.bss_param import BssParam from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity from huaweicloudsdkdcs.v2.model.change_instance_status_body import ChangeInstanceStatusBody +from huaweicloudsdkdcs.v2.model.change_master_standby_async_request import ChangeMasterStandbyAsyncRequest +from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_request.py new file mode 100644 index 0000000000..3cad7a4758 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeMasterStandbyAsyncRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """ChangeMasterStandbyAsyncRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ChangeMasterStandbyAsyncRequest. + + 实例ID。 + + :return: The instance_id of this ChangeMasterStandbyAsyncRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ChangeMasterStandbyAsyncRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ChangeMasterStandbyAsyncRequest. + :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, ChangeMasterStandbyAsyncRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_response.py new file mode 100644 index 0000000000..115bc054b6 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/change_master_standby_async_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeMasterStandbyAsyncResponse(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 = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """ChangeMasterStandbyAsyncResponse + + The model defined in huaweicloud sdk + + :param job_id: 主备切换任务ID + :type job_id: str + """ + + super(ChangeMasterStandbyAsyncResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this ChangeMasterStandbyAsyncResponse. + + 主备切换任务ID + + :return: The job_id of this ChangeMasterStandbyAsyncResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ChangeMasterStandbyAsyncResponse. + + 主备切换任务ID + + :param job_id: The job_id of this ChangeMasterStandbyAsyncResponse. + :type job_id: str + """ + self._job_id = job_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, ChangeMasterStandbyAsyncResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_hotkey_scan_task_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_hotkey_scan_task_response.py index fbdb779e8e..3296220d26 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_hotkey_scan_task_response.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/delete_hotkey_scan_task_response.py @@ -18,21 +18,284 @@ class DeleteHotkeyScanTaskResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'id': 'str', + 'instance_id': 'str', + 'status': 'str', + 'scan_type': 'str', + 'created_at': 'str', + 'started_at': 'str', + 'finished_at': 'str', + 'num': 'int', + 'keys': 'list[HotkeysBody]' } attribute_map = { + 'id': 'id', + 'instance_id': 'instance_id', + 'status': 'status', + 'scan_type': 'scan_type', + 'created_at': 'created_at', + 'started_at': 'started_at', + 'finished_at': 'finished_at', + 'num': 'num', + 'keys': 'keys' } - def __init__(self): + def __init__(self, id=None, instance_id=None, status=None, scan_type=None, created_at=None, started_at=None, finished_at=None, num=None, keys=None): """DeleteHotkeyScanTaskResponse The model defined in huaweicloud sdk + :param id: 热key分析记录ID + :type id: str + :param instance_id: 实例ID + :type instance_id: str + :param status: 分析任务状态 + :type status: str + :param scan_type: 分析方式 + :type scan_type: str + :param created_at: 分析任务创建时间,格式为:\"2020-06-15T02:21:18.669Z\" + :type created_at: str + :param started_at: 分析任务开始时间,格式为:\"2020-06-15T02:21:18.669Z\" + :type started_at: str + :param finished_at: 分析任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\" + :type finished_at: str + :param num: 热key的数量 + :type num: int + :param keys: 热key记录 + :type keys: list[:class:`huaweicloudsdkdcs.v2.HotkeysBody`] """ super(DeleteHotkeyScanTaskResponse, self).__init__() + + self._id = None + self._instance_id = None + self._status = None + self._scan_type = None + self._created_at = None + self._started_at = None + self._finished_at = None + self._num = None + self._keys = None self.discriminator = None + if id is not None: + self.id = id + if instance_id is not None: + self.instance_id = instance_id + if status is not None: + self.status = status + if scan_type is not None: + self.scan_type = scan_type + if created_at is not None: + self.created_at = created_at + if started_at is not None: + self.started_at = started_at + if finished_at is not None: + self.finished_at = finished_at + if num is not None: + self.num = num + if keys is not None: + self.keys = keys + + @property + def id(self): + """Gets the id of this DeleteHotkeyScanTaskResponse. + + 热key分析记录ID + + :return: The id of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeleteHotkeyScanTaskResponse. + + 热key分析记录ID + + :param id: The id of this DeleteHotkeyScanTaskResponse. + :type id: str + """ + self._id = id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteHotkeyScanTaskResponse. + + 实例ID + + :return: The instance_id of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteHotkeyScanTaskResponse. + + 实例ID + + :param instance_id: The instance_id of this DeleteHotkeyScanTaskResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def status(self): + """Gets the status of this DeleteHotkeyScanTaskResponse. + + 分析任务状态 + + :return: The status of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeleteHotkeyScanTaskResponse. + + 分析任务状态 + + :param status: The status of this DeleteHotkeyScanTaskResponse. + :type status: str + """ + self._status = status + + @property + def scan_type(self): + """Gets the scan_type of this DeleteHotkeyScanTaskResponse. + + 分析方式 + + :return: The scan_type of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._scan_type + + @scan_type.setter + def scan_type(self, scan_type): + """Sets the scan_type of this DeleteHotkeyScanTaskResponse. + + 分析方式 + + :param scan_type: The scan_type of this DeleteHotkeyScanTaskResponse. + :type scan_type: str + """ + self._scan_type = scan_type + + @property + def created_at(self): + """Gets the created_at of this DeleteHotkeyScanTaskResponse. + + 分析任务创建时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :return: The created_at of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this DeleteHotkeyScanTaskResponse. + + 分析任务创建时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :param created_at: The created_at of this DeleteHotkeyScanTaskResponse. + :type created_at: str + """ + self._created_at = created_at + + @property + def started_at(self): + """Gets the started_at of this DeleteHotkeyScanTaskResponse. + + 分析任务开始时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :return: The started_at of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this DeleteHotkeyScanTaskResponse. + + 分析任务开始时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :param started_at: The started_at of this DeleteHotkeyScanTaskResponse. + :type started_at: str + """ + self._started_at = started_at + + @property + def finished_at(self): + """Gets the finished_at of this DeleteHotkeyScanTaskResponse. + + 分析任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :return: The finished_at of this DeleteHotkeyScanTaskResponse. + :rtype: str + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """Sets the finished_at of this DeleteHotkeyScanTaskResponse. + + 分析任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :param finished_at: The finished_at of this DeleteHotkeyScanTaskResponse. + :type finished_at: str + """ + self._finished_at = finished_at + + @property + def num(self): + """Gets the num of this DeleteHotkeyScanTaskResponse. + + 热key的数量 + + :return: The num of this DeleteHotkeyScanTaskResponse. + :rtype: int + """ + return self._num + + @num.setter + def num(self, num): + """Sets the num of this DeleteHotkeyScanTaskResponse. + + 热key的数量 + + :param num: The num of this DeleteHotkeyScanTaskResponse. + :type num: int + """ + self._num = num + + @property + def keys(self): + """Gets the keys of this DeleteHotkeyScanTaskResponse. + + 热key记录 + + :return: The keys of this DeleteHotkeyScanTaskResponse. + :rtype: list[:class:`huaweicloudsdkdcs.v2.HotkeysBody`] + """ + return self._keys + + @keys.setter + def keys(self, keys): + """Sets the keys of this DeleteHotkeyScanTaskResponse. + + 热key记录 + + :param keys: The keys of this DeleteHotkeyScanTaskResponse. + :type keys: list[:class:`huaweicloudsdkdcs.v2.HotkeysBody`] + """ + self._keys = keys + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py index d5c2016060..3444b2dfe4 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -88,9 +85,9 @@ class DcsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -99,6 +96,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dcs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 02973c311a..bf827c6c60 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py index f7eb0aa6df..7f00ab2400 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,9 +52,9 @@ class DdmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -66,6 +63,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ddm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 3cb4364210..6c0f5f14c1 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py index 36e8515e82..9630319367 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class DdsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dds': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index e1275d0b8c..42a662d8b4 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py b/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py index a047359e67..2b30829dbf 100644 --- a/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py +++ b/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -46,9 +43,9 @@ class DeHRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -57,6 +54,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'DeH': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index a2c93bffe2..bf1e6f9424 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py b/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py index b9f22f992f..638ef10c08 100644 --- a/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py +++ b/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class DevSecurityRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'DevSecurity': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index 1e45f62ab2..a40097dba2 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py index 0551ad7935..5cf3903c80 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class DevStarRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'DevStar': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 220ec2271b..3cdaad2cb1 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/basic_config.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/basic_config.py index 2df6a439f9..f36b135351 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/basic_config.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/basic_config.py @@ -18,6 +18,8 @@ class BasicConfig: openapi_types = { 'owner': 'str', + 'agency': 'str', + 'is_ignore_waiting': 'int', 'priority': 'int', 'execute_user': 'str', 'instance_timeout': 'int', @@ -26,19 +28,25 @@ class BasicConfig: attribute_map = { 'owner': 'owner', + 'agency': 'agency', + 'is_ignore_waiting': 'isIgnoreWaiting', 'priority': 'priority', 'execute_user': 'executeUser', 'instance_timeout': 'instanceTimeout', 'custom_fields': 'customFields' } - def __init__(self, owner=None, priority=None, execute_user=None, instance_timeout=None, custom_fields=None): + def __init__(self, owner=None, agency=None, is_ignore_waiting=None, priority=None, execute_user=None, instance_timeout=None, custom_fields=None): """BasicConfig The model defined in huaweicloud sdk :param owner: 作业责任人 :type owner: str + :param agency: 作业委托的名称 + :type agency: str + :param is_ignore_waiting: 实例超时是否忽略等待时间, 取值范围为0和1, 0:表示实例超时不忽略等待时间1:表示实例超时忽略等待时间 + :type is_ignore_waiting: int :param priority: 作业优先级 :type priority: int :param execute_user: 作业执行用户 @@ -52,6 +60,8 @@ def __init__(self, owner=None, priority=None, execute_user=None, instance_timeou self._owner = None + self._agency = None + self._is_ignore_waiting = None self._priority = None self._execute_user = None self._instance_timeout = None @@ -60,6 +70,10 @@ def __init__(self, owner=None, priority=None, execute_user=None, instance_timeou if owner is not None: self.owner = owner + if agency is not None: + self.agency = agency + if is_ignore_waiting is not None: + self.is_ignore_waiting = is_ignore_waiting if priority is not None: self.priority = priority if execute_user is not None: @@ -91,6 +105,50 @@ def owner(self, owner): """ self._owner = owner + @property + def agency(self): + """Gets the agency of this BasicConfig. + + 作业委托的名称 + + :return: The agency of this BasicConfig. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this BasicConfig. + + 作业委托的名称 + + :param agency: The agency of this BasicConfig. + :type agency: str + """ + self._agency = agency + + @property + def is_ignore_waiting(self): + """Gets the is_ignore_waiting of this BasicConfig. + + 实例超时是否忽略等待时间, 取值范围为0和1, 0:表示实例超时不忽略等待时间1:表示实例超时忽略等待时间 + + :return: The is_ignore_waiting of this BasicConfig. + :rtype: int + """ + return self._is_ignore_waiting + + @is_ignore_waiting.setter + def is_ignore_waiting(self, is_ignore_waiting): + """Sets the is_ignore_waiting of this BasicConfig. + + 实例超时是否忽略等待时间, 取值范围为0和1, 0:表示实例超时不忽略等待时间1:表示实例超时忽略等待时间 + + :param is_ignore_waiting: The is_ignore_waiting of this BasicConfig. + :type is_ignore_waiting: int + """ + self._is_ignore_waiting = is_ignore_waiting + @property def priority(self): """Gets the priority of this BasicConfig. diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/node_instance.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/node_instance.py index f7577e536c..79d1db87a1 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/node_instance.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/node_instance.py @@ -19,61 +19,61 @@ class NodeInstance: openapi_types = { 'node_name': 'str', 'status': 'str', + 'queue': 'str', 'plan_time': 'int', 'start_time': 'int', 'end_time': 'int', - 'execute_time': 'int', - 'node_type': 'str', + 'type': 'str', 'retry_times': 'int', 'instance_id': 'int', 'input_row_count': 'int', - 'output_row_count': 'int', + 'speed': 'float', 'log_path': 'str' } attribute_map = { 'node_name': 'nodeName', 'status': 'status', + 'queue': 'queue', 'plan_time': 'planTime', 'start_time': 'startTime', 'end_time': 'endTime', - 'execute_time': 'executeTime', - 'node_type': 'nodeType', + 'type': 'type', 'retry_times': 'retryTimes', 'instance_id': 'instanceId', 'input_row_count': 'inputRowCount', - 'output_row_count': 'outputRowCount', + 'speed': 'speed', 'log_path': 'logPath' } - def __init__(self, node_name=None, status=None, plan_time=None, start_time=None, end_time=None, execute_time=None, node_type=None, retry_times=None, instance_id=None, input_row_count=None, output_row_count=None, log_path=None): + def __init__(self, node_name=None, status=None, queue=None, plan_time=None, start_time=None, end_time=None, type=None, retry_times=None, instance_id=None, input_row_count=None, speed=None, log_path=None): """NodeInstance The model defined in huaweicloud sdk - :param node_name: + :param node_name: 节点名称 :type node_name: str - :param status: + :param status: 节点状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - skip:跳过 - pause: 暂停 - manual-stop:取消 :type status: str - :param plan_time: + :param queue: DLI资源队列名称。在返回响应中,仅DLI SQL或者DLI SPARK算子会返回DLI队列名称。 + :type queue: str + :param plan_time: 作业实例计划执行时间 :type plan_time: int - :param start_time: + :param start_time: 节点实际执行开始时间 :type start_time: int - :param end_time: + :param end_time: 节点实际执行结束时间 :type end_time: int - :param execute_time: - :type execute_time: int - :param node_type: - :type node_type: str - :param retry_times: + :param type: 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - Shell:执行Shell SQL脚本 - CDMJob:执行CDM作业 - DISTransferTask:创建DIS转储任务 - CloudTableManager:CloudTable表管理,创建和删除表。 - OBSManager:OBS路径管理,包括创建和删除路径。 - RestClient:REST API请求 - SMN:发送短信或邮件 - MRSSpark:执行MRS服务的Spark作业 - MapReduce:执行MRS服务的MapReduce作业 - MRSFlinkJob:执行MRS服务的FlinkJob作业。 - MRSHetuEngine:执行MRS服务的HetuEngine作业。 - DLISpark:执行DLF服务的Spark作业 - RDSSQL:传递SQL语句到RDS中执行。 - ModelArts Train:执行ModelArts服务的workflow作业。 + :type type: str + :param retry_times: 失败重试次数 :type retry_times: int - :param instance_id: + :param instance_id: 作业实例id :type instance_id: int - :param input_row_count: + :param input_row_count: 写入数据行数 :type input_row_count: int - :param output_row_count: - :type output_row_count: int - :param log_path: + :param speed: 写入速度(行/秒) + :type speed: float + :param log_path: 节点执行的日志路径 :type log_path: str """ @@ -81,40 +81,33 @@ def __init__(self, node_name=None, status=None, plan_time=None, start_time=None, self._node_name = None self._status = None + self._queue = None self._plan_time = None self._start_time = None self._end_time = None - self._execute_time = None - self._node_type = None + self._type = None self._retry_times = None self._instance_id = None self._input_row_count = None - self._output_row_count = None + self._speed = None self._log_path = None self.discriminator = None - if node_name is not None: - self.node_name = node_name - if status is not None: - self.status = status - if plan_time is not None: - self.plan_time = plan_time - if start_time is not None: - self.start_time = start_time + self.node_name = node_name + self.status = status + self.queue = queue + self.plan_time = plan_time + self.start_time = start_time if end_time is not None: self.end_time = end_time - if execute_time is not None: - self.execute_time = execute_time - if node_type is not None: - self.node_type = node_type + self.type = type if retry_times is not None: self.retry_times = retry_times - if instance_id is not None: - self.instance_id = instance_id + self.instance_id = instance_id if input_row_count is not None: self.input_row_count = input_row_count - if output_row_count is not None: - self.output_row_count = output_row_count + if speed is not None: + self.speed = speed if log_path is not None: self.log_path = log_path @@ -122,6 +115,8 @@ def __init__(self, node_name=None, status=None, plan_time=None, start_time=None, def node_name(self): """Gets the node_name of this NodeInstance. + 节点名称 + :return: The node_name of this NodeInstance. :rtype: str """ @@ -131,6 +126,8 @@ def node_name(self): def node_name(self, node_name): """Sets the node_name of this NodeInstance. + 节点名称 + :param node_name: The node_name of this NodeInstance. :type node_name: str """ @@ -140,6 +137,8 @@ def node_name(self, node_name): def status(self): """Gets the status of this NodeInstance. + 节点状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - skip:跳过 - pause: 暂停 - manual-stop:取消 + :return: The status of this NodeInstance. :rtype: str """ @@ -149,15 +148,41 @@ def status(self): def status(self, status): """Sets the status of this NodeInstance. + 节点状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - skip:跳过 - pause: 暂停 - manual-stop:取消 + :param status: The status of this NodeInstance. :type status: str """ self._status = status + @property + def queue(self): + """Gets the queue of this NodeInstance. + + DLI资源队列名称。在返回响应中,仅DLI SQL或者DLI SPARK算子会返回DLI队列名称。 + + :return: The queue of this NodeInstance. + :rtype: str + """ + return self._queue + + @queue.setter + def queue(self, queue): + """Sets the queue of this NodeInstance. + + DLI资源队列名称。在返回响应中,仅DLI SQL或者DLI SPARK算子会返回DLI队列名称。 + + :param queue: The queue of this NodeInstance. + :type queue: str + """ + self._queue = queue + @property def plan_time(self): """Gets the plan_time of this NodeInstance. + 作业实例计划执行时间 + :return: The plan_time of this NodeInstance. :rtype: int """ @@ -167,6 +192,8 @@ def plan_time(self): def plan_time(self, plan_time): """Sets the plan_time of this NodeInstance. + 作业实例计划执行时间 + :param plan_time: The plan_time of this NodeInstance. :type plan_time: int """ @@ -176,6 +203,8 @@ def plan_time(self, plan_time): def start_time(self): """Gets the start_time of this NodeInstance. + 节点实际执行开始时间 + :return: The start_time of this NodeInstance. :rtype: int """ @@ -185,6 +214,8 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this NodeInstance. + 节点实际执行开始时间 + :param start_time: The start_time of this NodeInstance. :type start_time: int """ @@ -194,6 +225,8 @@ def start_time(self, start_time): def end_time(self): """Gets the end_time of this NodeInstance. + 节点实际执行结束时间 + :return: The end_time of this NodeInstance. :rtype: int """ @@ -203,51 +236,41 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this NodeInstance. + 节点实际执行结束时间 + :param end_time: The end_time of this NodeInstance. :type end_time: int """ self._end_time = end_time @property - def execute_time(self): - """Gets the execute_time of this NodeInstance. + def type(self): + """Gets the type of this NodeInstance. - :return: The execute_time of this NodeInstance. - :rtype: int - """ - return self._execute_time - - @execute_time.setter - def execute_time(self, execute_time): - """Sets the execute_time of this NodeInstance. - - :param execute_time: The execute_time of this NodeInstance. - :type execute_time: int - """ - self._execute_time = execute_time + 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - Shell:执行Shell SQL脚本 - CDMJob:执行CDM作业 - DISTransferTask:创建DIS转储任务 - CloudTableManager:CloudTable表管理,创建和删除表。 - OBSManager:OBS路径管理,包括创建和删除路径。 - RestClient:REST API请求 - SMN:发送短信或邮件 - MRSSpark:执行MRS服务的Spark作业 - MapReduce:执行MRS服务的MapReduce作业 - MRSFlinkJob:执行MRS服务的FlinkJob作业。 - MRSHetuEngine:执行MRS服务的HetuEngine作业。 - DLISpark:执行DLF服务的Spark作业 - RDSSQL:传递SQL语句到RDS中执行。 - ModelArts Train:执行ModelArts服务的workflow作业。 - @property - def node_type(self): - """Gets the node_type of this NodeInstance. - - :return: The node_type of this NodeInstance. + :return: The type of this NodeInstance. :rtype: str """ - return self._node_type + return self._type + + @type.setter + def type(self, type): + """Sets the type of this NodeInstance. - @node_type.setter - def node_type(self, node_type): - """Sets the node_type of this NodeInstance. + 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - Shell:执行Shell SQL脚本 - CDMJob:执行CDM作业 - DISTransferTask:创建DIS转储任务 - CloudTableManager:CloudTable表管理,创建和删除表。 - OBSManager:OBS路径管理,包括创建和删除路径。 - RestClient:REST API请求 - SMN:发送短信或邮件 - MRSSpark:执行MRS服务的Spark作业 - MapReduce:执行MRS服务的MapReduce作业 - MRSFlinkJob:执行MRS服务的FlinkJob作业。 - MRSHetuEngine:执行MRS服务的HetuEngine作业。 - DLISpark:执行DLF服务的Spark作业 - RDSSQL:传递SQL语句到RDS中执行。 - ModelArts Train:执行ModelArts服务的workflow作业。 - :param node_type: The node_type of this NodeInstance. - :type node_type: str + :param type: The type of this NodeInstance. + :type type: str """ - self._node_type = node_type + self._type = type @property def retry_times(self): """Gets the retry_times of this NodeInstance. + 失败重试次数 + :return: The retry_times of this NodeInstance. :rtype: int """ @@ -257,6 +280,8 @@ def retry_times(self): def retry_times(self, retry_times): """Sets the retry_times of this NodeInstance. + 失败重试次数 + :param retry_times: The retry_times of this NodeInstance. :type retry_times: int """ @@ -266,6 +291,8 @@ def retry_times(self, retry_times): def instance_id(self): """Gets the instance_id of this NodeInstance. + 作业实例id + :return: The instance_id of this NodeInstance. :rtype: int """ @@ -275,6 +302,8 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this NodeInstance. + 作业实例id + :param instance_id: The instance_id of this NodeInstance. :type instance_id: int """ @@ -284,6 +313,8 @@ def instance_id(self, instance_id): def input_row_count(self): """Gets the input_row_count of this NodeInstance. + 写入数据行数 + :return: The input_row_count of this NodeInstance. :rtype: int """ @@ -293,33 +324,41 @@ def input_row_count(self): def input_row_count(self, input_row_count): """Sets the input_row_count of this NodeInstance. + 写入数据行数 + :param input_row_count: The input_row_count of this NodeInstance. :type input_row_count: int """ self._input_row_count = input_row_count @property - def output_row_count(self): - """Gets the output_row_count of this NodeInstance. + def speed(self): + """Gets the speed of this NodeInstance. - :return: The output_row_count of this NodeInstance. - :rtype: int + 写入速度(行/秒) + + :return: The speed of this NodeInstance. + :rtype: float """ - return self._output_row_count + return self._speed + + @speed.setter + def speed(self, speed): + """Sets the speed of this NodeInstance. - @output_row_count.setter - def output_row_count(self, output_row_count): - """Sets the output_row_count of this NodeInstance. + 写入速度(行/秒) - :param output_row_count: The output_row_count of this NodeInstance. - :type output_row_count: int + :param speed: The speed of this NodeInstance. + :type speed: float """ - self._output_row_count = output_row_count + self._speed = speed @property def log_path(self): """Gets the log_path of this NodeInstance. + 节点执行的日志路径 + :return: The log_path of this NodeInstance. :rtype: str """ @@ -329,6 +368,8 @@ def log_path(self): def log_path(self, log_path): """Sets the log_path of this NodeInstance. + 节点执行的日志路径 + :param log_path: The log_path of this NodeInstance. :type log_path: str """ diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/script_info.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/script_info.py index c6342c399e..67d9f7e9e4 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/script_info.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/script_info.py @@ -24,8 +24,9 @@ class ScriptInfo: 'connection_name': 'str', 'database': 'str', 'queue_name': 'str', - 'configuration': 'str', + 'configuration': 'dict(str, object)', 'description': 'str', + 'owner': 'str', 'target_status': 'str', 'approvers': 'list[JobApprover]' } @@ -40,11 +41,12 @@ class ScriptInfo: 'queue_name': 'queueName', 'configuration': 'configuration', 'description': 'description', + 'owner': 'owner', 'target_status': 'targetStatus', 'approvers': 'approvers' } - def __init__(self, name=None, type=None, directory=None, content=None, connection_name=None, database=None, queue_name=None, configuration=None, description=None, target_status=None, approvers=None): + def __init__(self, name=None, type=None, directory=None, content=None, connection_name=None, database=None, queue_name=None, configuration=None, description=None, owner=None, target_status=None, approvers=None): """ScriptInfo The model defined in huaweicloud sdk @@ -64,9 +66,11 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio :param queue_name: 脚本关联的DLI队列名称 :type queue_name: str :param configuration: 脚本的配置项参数 - :type configuration: str + :type configuration: dict(str, object) :param description: 脚本描述,长度不能超过255个字符 :type description: str + :param owner: 责任人名称 + :type owner: str :param target_status: 在开启审批开关后,需要填写该字段。表示创建脚本的目标状态,有三种状态:SAVED、SUBMITTED和PRODUCTION,分别表示脚本创建后是保存态,提交态,生产态。 :type target_status: str :param approvers: 在开启审批开关后,需要填写该字段,表示脚本审批人 @@ -84,6 +88,7 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio self._queue_name = None self._configuration = None self._description = None + self._owner = None self._target_status = None self._approvers = None self.discriminator = None @@ -106,6 +111,8 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio self.configuration = configuration if description is not None: self.description = description + if owner is not None: + self.owner = owner if target_status is not None: self.target_status = target_status if approvers is not None: @@ -268,7 +275,7 @@ def configuration(self): 脚本的配置项参数 :return: The configuration of this ScriptInfo. - :rtype: str + :rtype: dict(str, object) """ return self._configuration @@ -279,7 +286,7 @@ def configuration(self, configuration): 脚本的配置项参数 :param configuration: The configuration of this ScriptInfo. - :type configuration: str + :type configuration: dict(str, object) """ self._configuration = configuration @@ -305,6 +312,28 @@ def description(self, description): """ self._description = description + @property + def owner(self): + """Gets the owner of this ScriptInfo. + + 责任人名称 + + :return: The owner of this ScriptInfo. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ScriptInfo. + + 责任人名称 + + :param owner: The owner of this ScriptInfo. + :type owner: str + """ + self._owner = owner + @property def target_status(self): """Gets the target_status of this ScriptInfo. diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_instance_response.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_instance_response.py index 4f669e18f3..07b3d2c9d9 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_instance_response.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_instance_response.py @@ -18,62 +18,86 @@ class ShowJobInstanceResponse(SdkResponse): sensitive_list = [] openapi_types = { + 'job_name': 'str', + 'instance_id': 'int', 'status': 'str', 'plan_time': 'int', 'start_time': 'int', 'end_time': 'int', 'execute_time': 'int', - 'instances_id': 'str', 'total': 'int', - 'nodes': 'list[NodeInstance]' + 'nodes': 'list[NodeInstance]', + 'instance_type': 'int', + 'force_success': 'bool', + 'ignore_success': 'bool' } attribute_map = { + 'job_name': 'jobName', + 'instance_id': 'instanceId', 'status': 'status', 'plan_time': 'planTime', 'start_time': 'startTime', 'end_time': 'endTime', 'execute_time': 'executeTime', - 'instances_id': 'instancesId', 'total': 'total', - 'nodes': 'nodes' + 'nodes': 'nodes', + 'instance_type': 'instanceType', + 'force_success': 'forceSuccess', + 'ignore_success': 'ignoreSuccess' } - def __init__(self, status=None, plan_time=None, start_time=None, end_time=None, execute_time=None, instances_id=None, total=None, nodes=None): + def __init__(self, job_name=None, instance_id=None, status=None, plan_time=None, start_time=None, end_time=None, execute_time=None, total=None, nodes=None, instance_type=None, force_success=None, ignore_success=None): """ShowJobInstanceResponse The model defined in huaweicloud sdk - :param status: + :param job_name: 作业名称 + :type job_name: str + :param instance_id: 作业实例ID + :type instance_id: int + :param status: 作业实例状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - running-exception:运行异常 - pause: 暂停 - manual-stop:取消 :type status: str - :param plan_time: + :param plan_time: 作业实例计划执行时间 :type plan_time: int - :param start_time: + :param start_time: 作业实例实际执行开始时间 :type start_time: int - :param end_time: + :param end_time: 作业实例实际执行结束时间 :type end_time: int - :param execute_time: + :param execute_time: 执行耗时,单位:毫秒 :type execute_time: int - :param instances_id: - :type instances_id: str - :param total: + :param total: 总的节点数据条数 :type total: int - :param nodes: + :param nodes: 节点实例状态 :type nodes: list[:class:`huaweicloudsdkdgc.v1.NodeInstance`] + :param instance_type: 作业调度方式: - 0:正常调度 - 2:手工调度 - 5:补数据 - 6:子作业调度 - 7:单次调度 + :type instance_type: int + :param force_success: 作业实例状态筛选为强制成功,默认值:false + :type force_success: bool + :param ignore_success: 作业实例状态筛选为忽略失败,默认值:false + :type ignore_success: bool """ super(ShowJobInstanceResponse, self).__init__() + self._job_name = None + self._instance_id = None self._status = None self._plan_time = None self._start_time = None self._end_time = None self._execute_time = None - self._instances_id = None self._total = None self._nodes = None + self._instance_type = None + self._force_success = None + self._ignore_success = None self.discriminator = None + if job_name is not None: + self.job_name = job_name + if instance_id is not None: + self.instance_id = instance_id if status is not None: self.status = status if plan_time is not None: @@ -84,17 +108,67 @@ def __init__(self, status=None, plan_time=None, start_time=None, end_time=None, self.end_time = end_time if execute_time is not None: self.execute_time = execute_time - if instances_id is not None: - self.instances_id = instances_id if total is not None: self.total = total if nodes is not None: self.nodes = nodes + if instance_type is not None: + self.instance_type = instance_type + if force_success is not None: + self.force_success = force_success + if ignore_success is not None: + self.ignore_success = ignore_success + + @property + def job_name(self): + """Gets the job_name of this ShowJobInstanceResponse. + + 作业名称 + + :return: The job_name of this ShowJobInstanceResponse. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ShowJobInstanceResponse. + + 作业名称 + + :param job_name: The job_name of this ShowJobInstanceResponse. + :type job_name: str + """ + self._job_name = job_name + + @property + def instance_id(self): + """Gets the instance_id of this ShowJobInstanceResponse. + + 作业实例ID + + :return: The instance_id of this ShowJobInstanceResponse. + :rtype: int + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowJobInstanceResponse. + + 作业实例ID + + :param instance_id: The instance_id of this ShowJobInstanceResponse. + :type instance_id: int + """ + self._instance_id = instance_id @property def status(self): """Gets the status of this ShowJobInstanceResponse. + 作业实例状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - running-exception:运行异常 - pause: 暂停 - manual-stop:取消 + :return: The status of this ShowJobInstanceResponse. :rtype: str """ @@ -104,6 +178,8 @@ def status(self): def status(self, status): """Sets the status of this ShowJobInstanceResponse. + 作业实例状态: - waiting:等待运行 - running:运行中 - success:运行成功 - fail: 运行失败 - running-exception:运行异常 - pause: 暂停 - manual-stop:取消 + :param status: The status of this ShowJobInstanceResponse. :type status: str """ @@ -113,6 +189,8 @@ def status(self, status): def plan_time(self): """Gets the plan_time of this ShowJobInstanceResponse. + 作业实例计划执行时间 + :return: The plan_time of this ShowJobInstanceResponse. :rtype: int """ @@ -122,6 +200,8 @@ def plan_time(self): def plan_time(self, plan_time): """Sets the plan_time of this ShowJobInstanceResponse. + 作业实例计划执行时间 + :param plan_time: The plan_time of this ShowJobInstanceResponse. :type plan_time: int """ @@ -131,6 +211,8 @@ def plan_time(self, plan_time): def start_time(self): """Gets the start_time of this ShowJobInstanceResponse. + 作业实例实际执行开始时间 + :return: The start_time of this ShowJobInstanceResponse. :rtype: int """ @@ -140,6 +222,8 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this ShowJobInstanceResponse. + 作业实例实际执行开始时间 + :param start_time: The start_time of this ShowJobInstanceResponse. :type start_time: int """ @@ -149,6 +233,8 @@ def start_time(self, start_time): def end_time(self): """Gets the end_time of this ShowJobInstanceResponse. + 作业实例实际执行结束时间 + :return: The end_time of this ShowJobInstanceResponse. :rtype: int """ @@ -158,6 +244,8 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this ShowJobInstanceResponse. + 作业实例实际执行结束时间 + :param end_time: The end_time of this ShowJobInstanceResponse. :type end_time: int """ @@ -167,6 +255,8 @@ def end_time(self, end_time): def execute_time(self): """Gets the execute_time of this ShowJobInstanceResponse. + 执行耗时,单位:毫秒 + :return: The execute_time of this ShowJobInstanceResponse. :rtype: int """ @@ -176,33 +266,19 @@ def execute_time(self): def execute_time(self, execute_time): """Sets the execute_time of this ShowJobInstanceResponse. + 执行耗时,单位:毫秒 + :param execute_time: The execute_time of this ShowJobInstanceResponse. :type execute_time: int """ self._execute_time = execute_time - @property - def instances_id(self): - """Gets the instances_id of this ShowJobInstanceResponse. - - :return: The instances_id of this ShowJobInstanceResponse. - :rtype: str - """ - return self._instances_id - - @instances_id.setter - def instances_id(self, instances_id): - """Sets the instances_id of this ShowJobInstanceResponse. - - :param instances_id: The instances_id of this ShowJobInstanceResponse. - :type instances_id: str - """ - self._instances_id = instances_id - @property def total(self): """Gets the total of this ShowJobInstanceResponse. + 总的节点数据条数 + :return: The total of this ShowJobInstanceResponse. :rtype: int """ @@ -212,6 +288,8 @@ def total(self): def total(self, total): """Sets the total of this ShowJobInstanceResponse. + 总的节点数据条数 + :param total: The total of this ShowJobInstanceResponse. :type total: int """ @@ -221,6 +299,8 @@ def total(self, total): def nodes(self): """Gets the nodes of this ShowJobInstanceResponse. + 节点实例状态 + :return: The nodes of this ShowJobInstanceResponse. :rtype: list[:class:`huaweicloudsdkdgc.v1.NodeInstance`] """ @@ -230,11 +310,79 @@ def nodes(self): def nodes(self, nodes): """Sets the nodes of this ShowJobInstanceResponse. + 节点实例状态 + :param nodes: The nodes of this ShowJobInstanceResponse. :type nodes: list[:class:`huaweicloudsdkdgc.v1.NodeInstance`] """ self._nodes = nodes + @property + def instance_type(self): + """Gets the instance_type of this ShowJobInstanceResponse. + + 作业调度方式: - 0:正常调度 - 2:手工调度 - 5:补数据 - 6:子作业调度 - 7:单次调度 + + :return: The instance_type of this ShowJobInstanceResponse. + :rtype: int + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this ShowJobInstanceResponse. + + 作业调度方式: - 0:正常调度 - 2:手工调度 - 5:补数据 - 6:子作业调度 - 7:单次调度 + + :param instance_type: The instance_type of this ShowJobInstanceResponse. + :type instance_type: int + """ + self._instance_type = instance_type + + @property + def force_success(self): + """Gets the force_success of this ShowJobInstanceResponse. + + 作业实例状态筛选为强制成功,默认值:false + + :return: The force_success of this ShowJobInstanceResponse. + :rtype: bool + """ + return self._force_success + + @force_success.setter + def force_success(self, force_success): + """Sets the force_success of this ShowJobInstanceResponse. + + 作业实例状态筛选为强制成功,默认值:false + + :param force_success: The force_success of this ShowJobInstanceResponse. + :type force_success: bool + """ + self._force_success = force_success + + @property + def ignore_success(self): + """Gets the ignore_success of this ShowJobInstanceResponse. + + 作业实例状态筛选为忽略失败,默认值:false + + :return: The ignore_success of this ShowJobInstanceResponse. + :rtype: bool + """ + return self._ignore_success + + @ignore_success.setter + def ignore_success(self, ignore_success): + """Sets the ignore_success of this ShowJobInstanceResponse. + + 作业实例状态筛选为忽略失败,默认值:false + + :param ignore_success: The ignore_success of this ShowJobInstanceResponse. + :type ignore_success: bool + """ + self._ignore_success = ignore_success + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_script_response.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_script_response.py index 17620942a7..02527c2f47 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_script_response.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_script_response.py @@ -25,8 +25,9 @@ class ShowScriptResponse(SdkResponse): 'connection_name': 'str', 'database': 'str', 'queue_name': 'str', - 'configuration': 'str', + 'configuration': 'dict(str, object)', 'description': 'str', + 'owner': 'str', 'target_status': 'str', 'approvers': 'list[JobApprover]' } @@ -41,11 +42,12 @@ class ShowScriptResponse(SdkResponse): 'queue_name': 'queueName', 'configuration': 'configuration', 'description': 'description', + 'owner': 'owner', 'target_status': 'targetStatus', 'approvers': 'approvers' } - def __init__(self, name=None, type=None, directory=None, content=None, connection_name=None, database=None, queue_name=None, configuration=None, description=None, target_status=None, approvers=None): + def __init__(self, name=None, type=None, directory=None, content=None, connection_name=None, database=None, queue_name=None, configuration=None, description=None, owner=None, target_status=None, approvers=None): """ShowScriptResponse The model defined in huaweicloud sdk @@ -65,9 +67,11 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio :param queue_name: 脚本关联的DLI队列名称 :type queue_name: str :param configuration: 脚本的配置项参数 - :type configuration: str + :type configuration: dict(str, object) :param description: 脚本描述,长度不能超过255个字符 :type description: str + :param owner: 责任人名称 + :type owner: str :param target_status: 在开启审批开关后,需要填写该字段。表示创建脚本的目标状态,有三种状态:SAVED、SUBMITTED和PRODUCTION,分别表示脚本创建后是保存态,提交态,生产态。 :type target_status: str :param approvers: 在开启审批开关后,需要填写该字段,表示脚本审批人 @@ -85,6 +89,7 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio self._queue_name = None self._configuration = None self._description = None + self._owner = None self._target_status = None self._approvers = None self.discriminator = None @@ -107,6 +112,8 @@ def __init__(self, name=None, type=None, directory=None, content=None, connectio self.configuration = configuration if description is not None: self.description = description + if owner is not None: + self.owner = owner if target_status is not None: self.target_status = target_status if approvers is not None: @@ -269,7 +276,7 @@ def configuration(self): 脚本的配置项参数 :return: The configuration of this ShowScriptResponse. - :rtype: str + :rtype: dict(str, object) """ return self._configuration @@ -280,7 +287,7 @@ def configuration(self, configuration): 脚本的配置项参数 :param configuration: The configuration of this ShowScriptResponse. - :type configuration: str + :type configuration: dict(str, object) """ self._configuration = configuration @@ -306,6 +313,28 @@ def description(self, description): """ self._description = description + @property + def owner(self): + """Gets the owner of this ShowScriptResponse. + + 责任人名称 + + :return: The owner of this ShowScriptResponse. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ShowScriptResponse. + + 责任人名称 + + :param owner: The owner of this ShowScriptResponse. + :type owner: str + """ + self._owner = owner + @property def target_status(self): """Gets the target_status of this ShowScriptResponse. diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py index 935078f92e..ef2103614b 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class DgcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dgc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index e64f89c83e..657a57c8bb 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/huaweicloudsdkdis/v2/region/dis_region.py b/huaweicloud-sdk-dis/huaweicloudsdkdis/v2/region/dis_region.py index 6e33e6512e..ba61fbafec 100644 --- a/huaweicloud-sdk-dis/huaweicloudsdkdis/v2/region/dis_region.py +++ b/huaweicloud-sdk-dis/huaweicloudsdkdis/v2/region/dis_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -37,9 +34,9 @@ class DisRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -48,6 +45,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dis': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 885448ea13..bc3cbfde57 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py b/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py index 3dbc7b9627..b6780c46fb 100644 --- a/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py +++ b/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class DlfRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dlf': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index d12e8a5a96..a3cd9330c2 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py index 05579cc18c..5e7f58ba39 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class DliRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dli': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 8a40b384e2..74efce2ab8 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py b/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py index bef2f1f04a..23489ac1fc 100644 --- a/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py +++ b/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -70,9 +67,9 @@ class DnsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -81,6 +78,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dns': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 77fd2819ad..c90de7a289 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py index b74740704c..ce0e4799d6 100644 --- a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class DrisRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dris': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 0de02a7622..7b1420fcdf 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py index a77d79b35f..f3b042b4bb 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class DrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Drs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py index a77d79b35f..f3b042b4bb 100644 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class DrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Drs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index a9e7373e4a..13e1ea6586 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/__init__.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/__init__.py index 5763063a47..2ef54aef7a 100644 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/__init__.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/__init__.py @@ -51,6 +51,8 @@ from huaweicloudsdkdsc.v1.model.delete_rule_group_response import DeleteRuleGroupResponse from huaweicloudsdkdsc.v1.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkdsc.v1.model.delete_rule_response import DeleteRuleResponse +from huaweicloudsdkdsc.v1.model.delete_scan_job_request import DeleteScanJobRequest +from huaweicloudsdkdsc.v1.model.delete_scan_job_response import DeleteScanJobResponse from huaweicloudsdkdsc.v1.model.dynamic_data_mask import DynamicDataMask from huaweicloudsdkdsc.v1.model.embedded_database_watermark import EmbeddedDatabaseWatermark from huaweicloudsdkdsc.v1.model.es_match_info import EsMatchInfo diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_async_client.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_async_client.py index a9fb840591..7d6294a450 100644 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_async_client.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_async_client.py @@ -1106,6 +1106,71 @@ def _delete_rule_group_http_info(self, request): return http_info + def delete_scan_job_async(self, request): + """删除扫描任务 + + 删除扫描任务 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteScanJob + :type request: :class:`huaweicloudsdkdsc.v1.DeleteScanJobRequest` + :rtype: :class:`huaweicloudsdkdsc.v1.DeleteScanJobResponse` + """ + http_info = self._delete_scan_job_http_info(request) + return self._call_api(**http_info) + + def delete_scan_job_async_invoker(self, request): + http_info = self._delete_scan_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_scan_job_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/sdg/scan/job/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteScanJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_buckets_async(self, request): """查看资产列表 diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_client.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_client.py index 05ae1c904f..f10ecd3312 100644 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_client.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/dsc_client.py @@ -1106,6 +1106,71 @@ def _delete_rule_group_http_info(cls, request): return http_info + def delete_scan_job(self, request): + """删除扫描任务 + + 删除扫描任务 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteScanJob + :type request: :class:`huaweicloudsdkdsc.v1.DeleteScanJobRequest` + :rtype: :class:`huaweicloudsdkdsc.v1.DeleteScanJobResponse` + """ + http_info = self._delete_scan_job_http_info(request) + return self._call_api(**http_info) + + def delete_scan_job_invoker(self, request): + http_info = self._delete_scan_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_scan_job_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/sdg/scan/job/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteScanJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_buckets(self, request): """查看资产列表 diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/__init__.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/__init__.py index 848d5cd7e8..b7d4144d81 100644 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/__init__.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/__init__.py @@ -49,6 +49,8 @@ from huaweicloudsdkdsc.v1.model.delete_rule_group_response import DeleteRuleGroupResponse from huaweicloudsdkdsc.v1.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkdsc.v1.model.delete_rule_response import DeleteRuleResponse +from huaweicloudsdkdsc.v1.model.delete_scan_job_request import DeleteScanJobRequest +from huaweicloudsdkdsc.v1.model.delete_scan_job_response import DeleteScanJobResponse from huaweicloudsdkdsc.v1.model.dynamic_data_mask import DynamicDataMask from huaweicloudsdkdsc.v1.model.embedded_database_watermark import EmbeddedDatabaseWatermark from huaweicloudsdkdsc.v1.model.es_match_info import EsMatchInfo diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_request.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_request.py new file mode 100644 index 0000000000..a65cab5ce6 --- /dev/null +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteScanJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """DeleteScanJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID + :type job_id: str + """ + + + + self._job_id = None + self.discriminator = None + + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this DeleteScanJobRequest. + + 任务ID + + :return: The job_id of this DeleteScanJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DeleteScanJobRequest. + + 任务ID + + :param job_id: The job_id of this DeleteScanJobRequest. + :type job_id: str + """ + self._job_id = job_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, DeleteScanJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_response.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_response.py new file mode 100644 index 0000000000..4a10d8fa4a --- /dev/null +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/model/delete_scan_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteScanJobResponse(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 = { + 'msg': 'str', + 'status': 'str' + } + + attribute_map = { + 'msg': 'msg', + 'status': 'status' + } + + def __init__(self, msg=None, status=None): + """DeleteScanJobResponse + + The model defined in huaweicloud sdk + + :param msg: 返回消息 + :type msg: str + :param status: 返回状态,如'200','400' + :type status: str + """ + + super(DeleteScanJobResponse, self).__init__() + + self._msg = None + self._status = None + self.discriminator = None + + if msg is not None: + self.msg = msg + if status is not None: + self.status = status + + @property + def msg(self): + """Gets the msg of this DeleteScanJobResponse. + + 返回消息 + + :return: The msg of this DeleteScanJobResponse. + :rtype: str + """ + return self._msg + + @msg.setter + def msg(self, msg): + """Sets the msg of this DeleteScanJobResponse. + + 返回消息 + + :param msg: The msg of this DeleteScanJobResponse. + :type msg: str + """ + self._msg = msg + + @property + def status(self): + """Gets the status of this DeleteScanJobResponse. + + 返回状态,如'200','400' + + :return: The status of this DeleteScanJobResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeleteScanJobResponse. + + 返回状态,如'200','400' + + :param status: The status of this DeleteScanJobResponse. + :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, DeleteScanJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py index 5f4d73fa9f..ce7519e509 100644 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -61,9 +58,9 @@ class DscRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -72,6 +69,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dsc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 01072e2f80..c89e6b5000 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py b/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py index 0a6d43b96e..397e7d90a3 100644 --- a/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py +++ b/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class DwrRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dwr': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index f101740abc..6ba086de16 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py index e85e1a7242..5c27037363 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py @@ -315,6 +315,8 @@ from huaweicloudsdkdws.v2.model.list_updatable_version_response import ListUpdatableVersionResponse from huaweicloudsdkdws.v2.model.list_update_record_request import ListUpdateRecordRequest from huaweicloudsdkdws.v2.model.list_update_record_response import ListUpdateRecordResponse +from huaweicloudsdkdws.v2.model.list_workload_plans_request import ListWorkloadPlansRequest +from huaweicloudsdkdws.v2.model.list_workload_plans_response import ListWorkloadPlansResponse from huaweicloudsdkdws.v2.model.list_workload_queue_request import ListWorkloadQueueRequest from huaweicloudsdkdws.v2.model.list_workload_queue_response import ListWorkloadQueueResponse from huaweicloudsdkdws.v2.model.list_workload_queue_users_request import ListWorkloadQueueUsersRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py index 2eccc83470..e996abd304 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py @@ -7190,6 +7190,77 @@ def _list_update_record_http_info(self, request): return http_info + def list_workload_plans_async(self, request): + """查询资源管理计划列表 + + 查询集群中所有资源管理计划。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWorkloadPlans + :type request: :class:`huaweicloudsdkdws.v2.ListWorkloadPlansRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListWorkloadPlansResponse` + """ + http_info = self._list_workload_plans_http_info(request) + return self._call_api(**http_info) + + def list_workload_plans_async_invoker(self, request): + http_info = self._list_workload_plans_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_workload_plans_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/workload/plans", + "request_type": request.__class__.__name__, + "response_type": "ListWorkloadPlansResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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 = [] + if 'logical_cluster_name' in local_var_params: + query_params.append(('logical_cluster_name', local_var_params['logical_cluster_name'])) + 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 = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_workload_queue_async(self, request): """查询工作负载队列 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py index 898fbeb246..eb71c0f07b 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py @@ -7190,6 +7190,77 @@ def _list_update_record_http_info(cls, request): return http_info + def list_workload_plans(self, request): + """查询资源管理计划列表 + + 查询集群中所有资源管理计划。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWorkloadPlans + :type request: :class:`huaweicloudsdkdws.v2.ListWorkloadPlansRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ListWorkloadPlansResponse` + """ + http_info = self._list_workload_plans_http_info(request) + return self._call_api(**http_info) + + def list_workload_plans_invoker(self, request): + http_info = self._list_workload_plans_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_workload_plans_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/workload/plans", + "request_type": request.__class__.__name__, + "response_type": "ListWorkloadPlansResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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 = [] + if 'logical_cluster_name' in local_var_params: + query_params.append(('logical_cluster_name', local_var_params['logical_cluster_name'])) + 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 = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_workload_queue(self, request): """查询工作负载队列 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py index 1685aa937f..dba6368792 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py @@ -313,6 +313,8 @@ from huaweicloudsdkdws.v2.model.list_updatable_version_response import ListUpdatableVersionResponse from huaweicloudsdkdws.v2.model.list_update_record_request import ListUpdateRecordRequest from huaweicloudsdkdws.v2.model.list_update_record_response import ListUpdateRecordResponse +from huaweicloudsdkdws.v2.model.list_workload_plans_request import ListWorkloadPlansRequest +from huaweicloudsdkdws.v2.model.list_workload_plans_response import ListWorkloadPlansResponse from huaweicloudsdkdws.v2.model.list_workload_queue_request import ListWorkloadQueueRequest from huaweicloudsdkdws.v2.model.list_workload_queue_response import ListWorkloadQueueResponse from huaweicloudsdkdws.v2.model.list_workload_queue_users_request import ListWorkloadQueueUsersRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_request.py new file mode 100644 index 0000000000..03d040d5c2 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWorkloadPlansRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'logical_cluster_name': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'logical_cluster_name': 'logical_cluster_name', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, cluster_id=None, logical_cluster_name=None, limit=None, offset=None): + """ListWorkloadPlansRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param logical_cluster_name: 逻辑集群名称 + :type logical_cluster_name: str + :param limit: 查询条数 + :type limit: int + :param offset: 偏移量 + :type offset: int + """ + + + + self._cluster_id = None + self._logical_cluster_name = None + self._limit = None + self._offset = None + self.discriminator = None + + self.cluster_id = cluster_id + if logical_cluster_name is not None: + self.logical_cluster_name = logical_cluster_name + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def cluster_id(self): + """Gets the cluster_id of this ListWorkloadPlansRequest. + + 集群ID + + :return: The cluster_id of this ListWorkloadPlansRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListWorkloadPlansRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ListWorkloadPlansRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def logical_cluster_name(self): + """Gets the logical_cluster_name of this ListWorkloadPlansRequest. + + 逻辑集群名称 + + :return: The logical_cluster_name of this ListWorkloadPlansRequest. + :rtype: str + """ + return self._logical_cluster_name + + @logical_cluster_name.setter + def logical_cluster_name(self, logical_cluster_name): + """Sets the logical_cluster_name of this ListWorkloadPlansRequest. + + 逻辑集群名称 + + :param logical_cluster_name: The logical_cluster_name of this ListWorkloadPlansRequest. + :type logical_cluster_name: str + """ + self._logical_cluster_name = logical_cluster_name + + @property + def limit(self): + """Gets the limit of this ListWorkloadPlansRequest. + + 查询条数 + + :return: The limit of this ListWorkloadPlansRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListWorkloadPlansRequest. + + 查询条数 + + :param limit: The limit of this ListWorkloadPlansRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListWorkloadPlansRequest. + + 偏移量 + + :return: The offset of this ListWorkloadPlansRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListWorkloadPlansRequest. + + 偏移量 + + :param offset: The offset of this ListWorkloadPlansRequest. + :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, ListWorkloadPlansRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_response.py new file mode 100644 index 0000000000..390cd0fb49 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/list_workload_plans_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWorkloadPlansResponse(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 = { + 'workload_res_code': 'int', + 'workload_res_str': 'str', + 'plan_list': 'list[WorkloadPlanInfo]', + 'count': 'int' + } + + attribute_map = { + 'workload_res_code': 'workload_res_code', + 'workload_res_str': 'workload_res_str', + 'plan_list': 'plan_list', + 'count': 'count' + } + + def __init__(self, workload_res_code=None, workload_res_str=None, plan_list=None, count=None): + """ListWorkloadPlansResponse + + The model defined in huaweicloud sdk + + :param workload_res_code: 结果状态码。 + :type workload_res_code: int + :param workload_res_str: 结果描述。 + :type workload_res_str: str + :param plan_list: 资源池名称。 + :type plan_list: list[:class:`huaweicloudsdkdws.v2.WorkloadPlanInfo`] + :param count: 总数量 + :type count: int + """ + + super(ListWorkloadPlansResponse, self).__init__() + + self._workload_res_code = None + self._workload_res_str = None + self._plan_list = None + self._count = None + self.discriminator = None + + if workload_res_code is not None: + self.workload_res_code = workload_res_code + if workload_res_str is not None: + self.workload_res_str = workload_res_str + if plan_list is not None: + self.plan_list = plan_list + if count is not None: + self.count = count + + @property + def workload_res_code(self): + """Gets the workload_res_code of this ListWorkloadPlansResponse. + + 结果状态码。 + + :return: The workload_res_code of this ListWorkloadPlansResponse. + :rtype: int + """ + return self._workload_res_code + + @workload_res_code.setter + def workload_res_code(self, workload_res_code): + """Sets the workload_res_code of this ListWorkloadPlansResponse. + + 结果状态码。 + + :param workload_res_code: The workload_res_code of this ListWorkloadPlansResponse. + :type workload_res_code: int + """ + self._workload_res_code = workload_res_code + + @property + def workload_res_str(self): + """Gets the workload_res_str of this ListWorkloadPlansResponse. + + 结果描述。 + + :return: The workload_res_str of this ListWorkloadPlansResponse. + :rtype: str + """ + return self._workload_res_str + + @workload_res_str.setter + def workload_res_str(self, workload_res_str): + """Sets the workload_res_str of this ListWorkloadPlansResponse. + + 结果描述。 + + :param workload_res_str: The workload_res_str of this ListWorkloadPlansResponse. + :type workload_res_str: str + """ + self._workload_res_str = workload_res_str + + @property + def plan_list(self): + """Gets the plan_list of this ListWorkloadPlansResponse. + + 资源池名称。 + + :return: The plan_list of this ListWorkloadPlansResponse. + :rtype: list[:class:`huaweicloudsdkdws.v2.WorkloadPlanInfo`] + """ + return self._plan_list + + @plan_list.setter + def plan_list(self, plan_list): + """Sets the plan_list of this ListWorkloadPlansResponse. + + 资源池名称。 + + :param plan_list: The plan_list of this ListWorkloadPlansResponse. + :type plan_list: list[:class:`huaweicloudsdkdws.v2.WorkloadPlanInfo`] + """ + self._plan_list = plan_list + + @property + def count(self): + """Gets the count of this ListWorkloadPlansResponse. + + 总数量 + + :return: The count of this ListWorkloadPlansResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListWorkloadPlansResponse. + + 总数量 + + :param count: The count of this ListWorkloadPlansResponse. + :type count: int + """ + self._count = 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, ListWorkloadPlansResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/workload_plan_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/workload_plan_info.py index 7ab58a35da..f38da2c4ca 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/workload_plan_info.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/workload_plan_info.py @@ -17,7 +17,7 @@ class WorkloadPlanInfo: sensitive_list = [] openapi_types = { - 'status': 'str', + 'status': 'int', 'project_id': 'str', 'cluster_id': 'str', 'plan_id': 'str', @@ -44,7 +44,7 @@ def __init__(self, status=None, project_id=None, cluster_id=None, plan_id=None, The model defined in huaweicloud sdk :param status: 计划状态。 - :type status: str + :type status: int :param project_id: 项目ID。 :type project_id: str :param cluster_id: 集群ID。 @@ -93,7 +93,7 @@ def status(self): 计划状态。 :return: The status of this WorkloadPlanInfo. - :rtype: str + :rtype: int """ return self._status @@ -104,7 +104,7 @@ def status(self, status): 计划状态。 :param status: The status of this WorkloadPlanInfo. - :type status: str + :type status: int """ self._status = status diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py index 84388c2ddf..80956c472c 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class DwsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Dws': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index fc5a5e14fe..32575e8ab7 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/huaweicloudsdkec/v1/region/ec_region.py b/huaweicloud-sdk-ec/huaweicloudsdkec/v1/region/ec_region.py index d904165bb6..4b92dc2c39 100644 --- a/huaweicloud-sdk-ec/huaweicloudsdkec/v1/region/ec_region.py +++ b/huaweicloud-sdk-ec/huaweicloudsdkec/v1/region/ec_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class EcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ec': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 78f5ba6c57..081466fe70 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py index 6947b92d6c..9cb55ff28c 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,6 +52,10 @@ class EcsRegion: "https://ecs.ae-ad-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ecs.eu-west-101.myhuaweicloud.eu") + CN_EAST_5 = Region("cn-east-5", + "https://ecs.cn-east-5.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://ecs.eu-west-0.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -80,14 +81,16 @@ class EcsRegion: "me-east-1": ME_EAST_1, "ae-ad-1": AE_AD_1, "eu-west-101": EU_WEST_101, + "cn-east-5": CN_EAST_5, + "eu-west-0": EU_WEST_0, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +99,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ecs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index e49f2dd510..1fb0ea2abe 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v1/region/edgesec_region.py b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v1/region/edgesec_region.py index 1910b4c502..c182eba2f9 100644 --- a/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v1/region/edgesec_region.py +++ b/huaweicloud-sdk-edgesec/huaweicloudsdkedgesec/v1/region/edgesec_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class EdgeSecRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'EdgeSec': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index 28920c17b2..bd9a5642db 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py b/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py index 63fb861f7c..4e3dcf45c6 100644 --- a/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py +++ b/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class EgRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Eg': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index c8e6a39931..93e2f8545f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py index 725d1821e1..a684d4ae8e 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class EiHealthRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'EiHealth': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v2/region/eihealth_region.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v2/region/eihealth_region.py index 725d1821e1..a684d4ae8e 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v2/region/eihealth_region.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v2/region/eihealth_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class EiHealthRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'EiHealth': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index 8d1d3201ce..e3bd96faec 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py b/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py index 44a45e2356..e3fd397901 100644 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class EipRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Eip': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py index 44a45e2356..e3fd397901 100644 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class EipRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Eip': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 89e76bfead..5297b10dca 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_req.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_req.py index e232e1aa41..753938ae12 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_req.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_req.py @@ -31,7 +31,9 @@ class CreateListenerReq: 'client_ca_tls_container_ref': 'str', 'sni_container_refs': 'list[str]', 'insert_headers': 'InsertHeader', - 'tls_ciphers_policy': 'str' + 'tls_ciphers_policy': 'str', + 'protection_status': 'str', + 'protection_reason': 'str' } attribute_map = { @@ -49,10 +51,12 @@ class CreateListenerReq: 'client_ca_tls_container_ref': 'client_ca_tls_container_ref', 'sni_container_refs': 'sni_container_refs', 'insert_headers': 'insert_headers', - 'tls_ciphers_policy': 'tls_ciphers_policy' + 'tls_ciphers_policy': 'tls_ciphers_policy', + 'protection_status': 'protection_status', + 'protection_reason': 'protection_reason' } - def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tenant_id=None, name=None, description=None, admin_state_up=None, connection_limit=None, http2_enable=None, default_pool_id=None, default_tls_container_ref=None, client_ca_tls_container_ref=None, sni_container_refs=None, insert_headers=None, tls_ciphers_policy=None): + def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tenant_id=None, name=None, description=None, admin_state_up=None, connection_limit=None, http2_enable=None, default_pool_id=None, default_tls_container_ref=None, client_ca_tls_container_ref=None, sni_container_refs=None, insert_headers=None, tls_ciphers_policy=None, protection_status=None, protection_reason=None): """CreateListenerReq The model defined in huaweicloud sdk @@ -87,6 +91,10 @@ def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tena :type insert_headers: :class:`huaweicloudsdkelb.v2.InsertHeader` :param tls_ciphers_policy: 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效,且默认值为tls-1-0。 取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略。 :type tls_ciphers_policy: str + :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :type protection_status: str + :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :type protection_reason: str """ @@ -106,6 +114,8 @@ def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tena self._sni_container_refs = None self._insert_headers = None self._tls_ciphers_policy = None + self._protection_status = None + self._protection_reason = None self.discriminator = None self.loadbalancer_id = loadbalancer_id @@ -135,6 +145,10 @@ def __init__(self, loadbalancer_id=None, protocol=None, protocol_port=None, tena self.insert_headers = insert_headers if tls_ciphers_policy is not None: self.tls_ciphers_policy = tls_ciphers_policy + if protection_status is not None: + self.protection_status = protection_status + if protection_reason is not None: + self.protection_reason = protection_reason @property def loadbalancer_id(self): @@ -462,6 +476,50 @@ def tls_ciphers_policy(self, tls_ciphers_policy): """ self._tls_ciphers_policy = tls_ciphers_policy + @property + def protection_status(self): + """Gets the protection_status of this CreateListenerReq. + + 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + + :return: The protection_status of this CreateListenerReq. + :rtype: str + """ + return self._protection_status + + @protection_status.setter + def protection_status(self, protection_status): + """Sets the protection_status of this CreateListenerReq. + + 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + + :param protection_status: The protection_status of this CreateListenerReq. + :type protection_status: str + """ + self._protection_status = protection_status + + @property + def protection_reason(self): + """Gets the protection_reason of this CreateListenerReq. + + 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + + :return: The protection_reason of this CreateListenerReq. + :rtype: str + """ + return self._protection_reason + + @protection_reason.setter + def protection_reason(self, protection_reason): + """Sets the protection_reason of this CreateListenerReq. + + 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + + :param protection_reason: The protection_reason of this CreateListenerReq. + :type protection_reason: str + """ + self._protection_reason = protection_reason + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_response.py index 9a90f7e3e8..f0bb121cb1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_loadbalancer_response.py @@ -18,29 +18,43 @@ class CreateLoadbalancerResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'loadbalancer': 'LoadbalancerResp' + 'loadbalancer': 'LoadbalancerResp', + 'order_id': 'str', + 'loadbalancer_id': 'str' } attribute_map = { - 'loadbalancer': 'loadbalancer' + 'loadbalancer': 'loadbalancer', + 'order_id': 'order_id', + 'loadbalancer_id': 'loadbalancer_id' } - def __init__(self, loadbalancer=None): + def __init__(self, loadbalancer=None, order_id=None, loadbalancer_id=None): """CreateLoadbalancerResponse The model defined in huaweicloud sdk :param loadbalancer: :type loadbalancer: :class:`huaweicloudsdkelb.v2.LoadbalancerResp` + :param order_id: 订单号[(包周期场景返回该字段)](tag:hws) + :type order_id: str + :param loadbalancer_id: 负载均衡器的ID[(包周期场景返回该字段)](tag:hws) + :type loadbalancer_id: str """ super(CreateLoadbalancerResponse, self).__init__() self._loadbalancer = None + self._order_id = None + self._loadbalancer_id = None self.discriminator = None if loadbalancer is not None: self.loadbalancer = loadbalancer + if order_id is not None: + self.order_id = order_id + if loadbalancer_id is not None: + self.loadbalancer_id = loadbalancer_id @property def loadbalancer(self): @@ -60,6 +74,50 @@ def loadbalancer(self, loadbalancer): """ self._loadbalancer = loadbalancer + @property + def order_id(self): + """Gets the order_id of this CreateLoadbalancerResponse. + + 订单号[(包周期场景返回该字段)](tag:hws) + + :return: The order_id of this CreateLoadbalancerResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this CreateLoadbalancerResponse. + + 订单号[(包周期场景返回该字段)](tag:hws) + + :param order_id: The order_id of this CreateLoadbalancerResponse. + :type order_id: str + """ + self._order_id = order_id + + @property + def loadbalancer_id(self): + """Gets the loadbalancer_id of this CreateLoadbalancerResponse. + + 负载均衡器的ID[(包周期场景返回该字段)](tag:hws) + + :return: The loadbalancer_id of this CreateLoadbalancerResponse. + :rtype: str + """ + return self._loadbalancer_id + + @loadbalancer_id.setter + def loadbalancer_id(self, loadbalancer_id): + """Sets the loadbalancer_id of this CreateLoadbalancerResponse. + + 负载均衡器的ID[(包周期场景返回该字段)](tag:hws) + + :param loadbalancer_id: The loadbalancer_id of this CreateLoadbalancerResponse. + :type loadbalancer_id: str + """ + self._loadbalancer_id = loadbalancer_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/listener_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/listener_resp.py index 5671fac125..7dfe173972 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/listener_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/listener_resp.py @@ -163,8 +163,10 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, admin_s self.insert_headers = insert_headers self.project_id = project_id self.tls_ciphers_policy = tls_ciphers_policy - self.protection_status = protection_status - self.protection_reason = protection_reason + if protection_status is not None: + self.protection_status = protection_status + if protection_reason is not None: + self.protection_reason = protection_reason @property def id(self): diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py index cf4c21dbdd..30a89a062e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/loadbalancer_resp.py @@ -37,7 +37,10 @@ class LoadbalancerResp: 'tags': 'list[str]', 'publicips': 'list[PublicIpInfo]', 'charge_mode': 'str', - 'frozen_scene': 'str' + 'billing_info': 'str', + 'frozen_scene': 'str', + 'protection_status': 'str', + 'protection_reason': 'str' } attribute_map = { @@ -61,10 +64,13 @@ class LoadbalancerResp: 'tags': 'tags', 'publicips': 'publicips', 'charge_mode': 'charge_mode', - 'frozen_scene': 'frozen_scene' + 'billing_info': 'billing_info', + 'frozen_scene': 'frozen_scene', + 'protection_status': 'protection_status', + 'protection_reason': 'protection_reason' } - def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_port_id=None, vip_address=None, listeners=None, pools=None, provider=None, operating_status=None, provisioning_status=None, admin_state_up=None, created_at=None, updated_at=None, enterprise_project_id=None, project_id=None, tags=None, publicips=None, charge_mode=None, frozen_scene=None): + def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_subnet_id=None, vip_port_id=None, vip_address=None, listeners=None, pools=None, provider=None, operating_status=None, provisioning_status=None, admin_state_up=None, created_at=None, updated_at=None, enterprise_project_id=None, project_id=None, tags=None, publicips=None, charge_mode=None, billing_info=None, frozen_scene=None, protection_status=None, protection_reason=None): """LoadbalancerResp The model defined in huaweicloud sdk @@ -107,10 +113,16 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_sub :type tags: list[str] :param publicips: 负载均衡器绑定的公网IP。只支持绑定一个公网IP。 :type publicips: list[:class:`huaweicloudsdkelb.v2.PublicIpInfo`] - :param charge_mode: 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:不影响弹性扩缩容实例、包周期实例的计费方式 + :param charge_mode: 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。 :type charge_mode: str + :param billing_info: 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。 + :type billing_info: str :param frozen_scene: 负载均衡器的冻结场景。若负载均衡器有多个冻结场景,用逗号分隔。取值: POLICE:公安冻结场景。 ILLEGAL:违规冻结场景。 VERIFY:客户未实名认证冻结场景。 PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 AREAR:欠费冻结场景。 :type frozen_scene: str + :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :type protection_status: str + :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :type protection_reason: str """ @@ -135,7 +147,10 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_sub self._tags = None self._publicips = None self._charge_mode = None + self._billing_info = None self._frozen_scene = None + self._protection_status = None + self._protection_reason = None self.discriminator = None self.id = id @@ -158,8 +173,13 @@ def __init__(self, id=None, tenant_id=None, name=None, description=None, vip_sub self.tags = tags self.publicips = publicips self.charge_mode = charge_mode + self.billing_info = billing_info if frozen_scene is not None: self.frozen_scene = frozen_scene + if protection_status is not None: + self.protection_status = protection_status + if protection_reason is not None: + self.protection_reason = protection_reason @property def id(self): @@ -583,7 +603,7 @@ def publicips(self, publicips): def charge_mode(self): """Gets the charge_mode of this LoadbalancerResp. - 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:不影响弹性扩缩容实例、包周期实例的计费方式 + 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。 :return: The charge_mode of this LoadbalancerResp. :rtype: str @@ -594,13 +614,35 @@ def charge_mode(self): def charge_mode(self, charge_mode): """Sets the charge_mode of this LoadbalancerResp. - 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:不影响弹性扩缩容实例、包周期实例的计费方式 + 收费模式。取值: flavor:按规格计费 lcu:按使用量计费 说明:弹性扩缩容实例该字段无效,按lcu收费;包周期实例该字段无效,预付费收费。 :param charge_mode: The charge_mode of this LoadbalancerResp. :type charge_mode: str """ self._charge_mode = charge_mode + @property + def billing_info(self): + """Gets the billing_info of this LoadbalancerResp. + + 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。 + + :return: The billing_info of this LoadbalancerResp. + :rtype: str + """ + return self._billing_info + + @billing_info.setter + def billing_info(self, billing_info): + """Sets the billing_info of this LoadbalancerResp. + + 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id。 + + :param billing_info: The billing_info of this LoadbalancerResp. + :type billing_info: str + """ + self._billing_info = billing_info + @property def frozen_scene(self): """Gets the frozen_scene of this LoadbalancerResp. @@ -623,6 +665,50 @@ def frozen_scene(self, frozen_scene): """ self._frozen_scene = frozen_scene + @property + def protection_status(self): + """Gets the protection_status of this LoadbalancerResp. + + 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + + :return: The protection_status of this LoadbalancerResp. + :rtype: str + """ + return self._protection_status + + @protection_status.setter + def protection_status(self, protection_status): + """Sets the protection_status of this LoadbalancerResp. + + 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + + :param protection_status: The protection_status of this LoadbalancerResp. + :type protection_status: str + """ + self._protection_status = protection_status + + @property + def protection_reason(self): + """Gets the protection_reason of this LoadbalancerResp. + + 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + + :return: The protection_reason of this LoadbalancerResp. + :rtype: str + """ + return self._protection_reason + + @protection_reason.setter + def protection_reason(self, protection_reason): + """Sets the protection_reason of this LoadbalancerResp. + + 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + + :param protection_reason: The protection_reason of this LoadbalancerResp. + :type protection_reason: str + """ + self._protection_reason = protection_reason + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/pool_resp.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/pool_resp.py index 1dfd42cb94..8f85ef611e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/pool_resp.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/pool_resp.py @@ -121,8 +121,10 @@ def __init__(self, id=None, project_id=None, tenant_id=None, name=None, descript self.session_persistence = session_persistence self.protocol = protocol self.lb_algorithm = lb_algorithm - self.protection_status = protection_status - self.protection_reason = protection_reason + if protection_status is not None: + self.protection_status = protection_status + if protection_reason is not None: + self.protection_reason = protection_reason @property def id(self): diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py index 27fb24a289..a529ad2efd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class ElbRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Elb': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py index 9d91ab18aa..c56459d0ab 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py @@ -89,7 +89,7 @@ def __init__(self, project_id=None, loadbalancer=None, certificate=None, listene :type ipgroup_max_length: int :param security_policy: 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt) :type security_policy: int - :param listeners_per_loadbalancer: 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个 LB下监听器配额实际未限制,但建议不要超过默认配额。 + :param listeners_per_loadbalancer: 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。 :type listeners_per_loadbalancer: int """ @@ -464,7 +464,7 @@ def security_policy(self, security_policy): def listeners_per_loadbalancer(self): """Gets the listeners_per_loadbalancer of this Quota. - 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个 LB下监听器配额实际未限制,但建议不要超过默认配额。 + 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。 :return: The listeners_per_loadbalancer of this Quota. :rtype: int @@ -475,7 +475,7 @@ def listeners_per_loadbalancer(self): def listeners_per_loadbalancer(self, listeners_per_loadbalancer): """Sets the listeners_per_loadbalancer of this Quota. - 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个 LB下监听器配额实际未限制,但建议不要超过默认配额。 + 单个LB实例下的监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 > 当前单个LB下监听器配额实际未限制,但建议不要超过默认配额。 :param listeners_per_loadbalancer: The listeners_per_loadbalancer of this Quota. :type listeners_per_loadbalancer: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py index 27fb24a289..a529ad2efd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class ElbRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Elb': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 450c4c3234..aada2c3d01 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py b/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py index 435d6eed95..e325540e89 100644 --- a/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py +++ b/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class EpsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Eps': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index b5a2e90495..306c557f72 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py b/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py index dd4eac89ed..ce469b7800 100644 --- a/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py +++ b/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -64,9 +61,9 @@ class ErRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -75,6 +72,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Er': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 636c33347d..3c092b85de 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py index a8388a05fa..493520b909 100644 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -88,9 +85,9 @@ class EvsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -99,6 +96,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Evs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 2f95854f88..4ef65f9bf9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py index dd4973e379..d0e1fdc09a 100644 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -34,9 +31,9 @@ class FrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -45,6 +42,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Frs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index e0183454f4..b5e5c9561f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py index 48a14d70ed..f751d3cb0c 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class FunctionGraphRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'FunctionGraph': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index cb2635c499..27a52d7f91 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py b/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py index 26ebd8bb4d..670840022b 100644 --- a/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py +++ b/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class GaRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ga': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index b1c4bbad1f..05be806aba 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py index 4d11015dbe..8e5f9065a6 100644 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,9 +52,9 @@ class GaussDBRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -66,6 +63,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'GaussDB': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index e04f6e580a..742ddbefc6 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py index 904651a0fd..6e52ee6532 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class GaussDBforNoSQLRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'GaussDBforNoSQL': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index db7d52f906..5900e155e7 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py index 49956e1c1b..0eaf3282e2 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,9 +52,9 @@ class GaussDBforopenGaussRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -66,6 +63,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'GaussDBforopenGauss': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 6a7008c29d..886bc2e1b9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py b/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py index 4a0bc45c2f..c12c95dc1f 100644 --- a/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py +++ b/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class GesRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ges': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py b/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py index 4a0bc45c2f..c12c95dc1f 100644 --- a/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py +++ b/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class GesRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ges': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 1dbc5868f5..fcaf332dc3 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py b/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py index 40f146ef20..41023804be 100644 --- a/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py +++ b/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class GslRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Gsl': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index d838c44484..ac5b6c1a73 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py index 29d07ebb53..8f00574a8e 100644 --- a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py +++ b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class HiLensRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'HiLens': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py index 29d07ebb53..8f00574a8e 100644 --- a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py +++ b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class HiLensRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'HiLens': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 63ac219315..9d004e72f7 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py index bf9081f658..de73c6a732 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class HssRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Hss': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py index bf9081f658..de73c6a732 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class HssRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Hss': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 8fabde8249..94a5a957aa 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py index 1c523a474d..668072110b 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class IamRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Iam': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 79ec942599..dbd6ebc5b1 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/huaweicloudsdkidentitycenter/v1/region/identitycenter_region.py b/huaweicloud-sdk-identitycenter/huaweicloudsdkidentitycenter/v1/region/identitycenter_region.py index d099a85699..42083323d6 100644 --- a/huaweicloud-sdk-identitycenter/huaweicloudsdkidentitycenter/v1/region/identitycenter_region.py +++ b/huaweicloud-sdk-identitycenter/huaweicloudsdkidentitycenter/v1/region/identitycenter_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class IdentityCenterRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IdentityCenter': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index a54d51ec37..8e6a247d80 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/huaweicloudsdkidentitycenterstore/v1/region/identitycenterstore_region.py b/huaweicloud-sdk-identitycenterstore/huaweicloudsdkidentitycenterstore/v1/region/identitycenterstore_region.py index 3dbde9380e..def906c78e 100644 --- a/huaweicloud-sdk-identitycenterstore/huaweicloudsdkidentitycenterstore/v1/region/identitycenterstore_region.py +++ b/huaweicloud-sdk-identitycenterstore/huaweicloudsdkidentitycenterstore/v1/region/identitycenterstore_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class IdentityCenterStoreRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IdentityCenterStore': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 0c2472df96..7091082719 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/huaweicloudsdkidme/v1/region/idme_region.py b/huaweicloud-sdk-idme/huaweicloudsdkidme/v1/region/idme_region.py index a8e581681a..89c61a7e95 100644 --- a/huaweicloud-sdk-idme/huaweicloudsdkidme/v1/region/idme_region.py +++ b/huaweicloud-sdk-idme/huaweicloudsdkidme/v1/region/idme_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class IdmeRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Idme': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 7e53fdc481..0d38ca17f9 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/region/idmeclassicapi_region.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/region/idmeclassicapi_region.py index c251650c85..e7da1500b3 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/region/idmeclassicapi_region.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/region/idmeclassicapi_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class IDMEClassicAPIRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IDMEClassicAPI': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 64920ae162..6306847226 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py b/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py index b4b271929a..0f4687b3a5 100644 --- a/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py +++ b/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class IecRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Iec': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index dc0d9d72cb..1eccd0dbbc 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py b/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py index 56ef4acc23..c53ddb0dd3 100644 --- a/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py +++ b/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -31,9 +28,9 @@ class IefRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -42,6 +39,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ief': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 9b162078e3..7d0d9b452b 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py index 5387ec2c6c..47bd11eba1 100644 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -36,9 +33,9 @@ class ImageRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -47,6 +44,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Image': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 4283faf242..1f7d907b8d 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py index 5b6f629322..9ee765a530 100644 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -20,9 +17,9 @@ class ImageSearchRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -31,6 +28,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'ImageSearch': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 420da449af..591fa83508 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py index f851df44b3..ec8c291448 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,6 +52,10 @@ class ImsRegion: "https://ims.ae-ad-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ims.eu-west-101.myhuaweicloud.eu") + CN_EAST_5 = Region("cn-east-5", + "https://ims.cn-east-5.myhuaweicloud.com") + EU_WEST_0 = Region("eu-west-0", + "https://ims.eu-west-0.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -80,14 +81,16 @@ class ImsRegion: "me-east-1": ME_EAST_1, "ae-ad-1": AE_AD_1, "eu-west-101": EU_WEST_101, + "cn-east-5": CN_EAST_5, + "eu-west-0": EU_WEST_0, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +99,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ims': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index b140b78e06..6d457723aa 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py b/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py index 2f38392b75..47c03233ea 100644 --- a/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py +++ b/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class IoTAnalyticsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTAnalytics': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 689905bb73..474645c847 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py index e1eed1497e..7d2be83926 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -46,9 +43,9 @@ class IoTDARegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -57,6 +54,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTDA': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 6a91059683..392b9b61c5 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py index cf1b1d4d8a..109738ccfc 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class IoTEdgeRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTEdge': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v3/region/iotedge_region.py b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v3/region/iotedge_region.py index cf1b1d4d8a..109738ccfc 100644 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v3/region/iotedge_region.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v3/region/iotedge_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class IoTEdgeRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTEdge': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 1c5dcf3520..c9814513ae 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py b/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py index 54542ba3b7..ede1bb8106 100644 --- a/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py +++ b/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class IvsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ivs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 951211a613..b9ddf60b0d 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py index 0f799d6bfa..03604eda43 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -57,6 +54,8 @@ class KafkaRegion: "https://dms.eu-west-0.myhuaweicloud.com") ME_EAST_1 = Region("me-east-1", "https://dms.me-east-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://dms.cn-east-5.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -83,14 +82,15 @@ class KafkaRegion: "ae-ad-1": AE_AD_1, "eu-west-0": EU_WEST_0, "me-east-1": ME_EAST_1, + "cn-east-5": CN_EAST_5, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -99,6 +99,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Kafka': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index d3397ffd16..5090c75953 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py index 7a782b35d7..dd4d819da5 100644 --- a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py +++ b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class KmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Kms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 3b47fcb4fa..c04b9d5ffd 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/ext_msg.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/ext_msg.py index b1c3761a28..aabd3a4826 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/ext_msg.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/ext_msg.py @@ -53,7 +53,7 @@ def __init__(self, open_in_browser=None, web_title=None, package_name=None, app_ :type browser_floor_url: str :param depend_engine_ver: 依赖的快应用引擎版本号,长度范围为1-50个字符。 > action_type=OPEN_QUICK必填,其他不填。 :type depend_engine_ver: str - :param third_service_name: 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK必填,其他不填。 + :param third_service_name: 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK或OPEN_APP必填,其他不填。 :type third_service_name: str """ @@ -219,7 +219,7 @@ def depend_engine_ver(self, depend_engine_ver): def third_service_name(self): """Gets the third_service_name of this ExtMsg. - 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK必填,其他不填。 + 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK或OPEN_APP必填,其他不填。 :return: The third_service_name of this ExtMsg. :rtype: str @@ -230,7 +230,7 @@ def third_service_name(self): def third_service_name(self, third_service_name): """Sets the third_service_name of this ExtMsg. - 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK必填,其他不填。 + 第三方服务名,长度范围为1-50个字符。 > action_type=OPEN_QUICK或OPEN_APP必填,其他不填。 :param third_service_name: The third_service_name of this ExtMsg. :type third_service_name: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_resolve_details_request.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_resolve_details_request.py index 7703dc6e6b..bb0a99c866 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_resolve_details_request.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_resolve_details_request.py @@ -67,7 +67,7 @@ def __init__(self, task_id=None, task_name=None, tpl_id=None, tpl_name=None, cus :type aim_url: str :param resolved_status: 解析状态。 - success:解析成功 - fail:解析失败 - unresolved:未解析 :type resolved_status: str - :param begin_time: 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 + :param begin_time: 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 > > 仅支持查询最近1年内创建的短链。 :type begin_time: str :param end_time: 短链创建结束时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入begin_time才能生效,单独传end_time不会作为过滤条件。缺省:查询最近二十四小时数据。 :type end_time: str @@ -296,7 +296,7 @@ def resolved_status(self, resolved_status): def begin_time(self): """Gets the begin_time of this ListAimResolveDetailsRequest. - 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 + 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 > > 仅支持查询最近1年内创建的短链。 :return: The begin_time of this ListAimResolveDetailsRequest. :rtype: str @@ -307,7 +307,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this ListAimResolveDetailsRequest. - 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 + 短链创建开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近二十四小时数据。 > > 仅支持查询最近1年内创建的短链。 :param begin_time: The begin_time of this ListAimResolveDetailsRequest. :type begin_time: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_details_request.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_details_request.py index 95488490b9..74dfa44258 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_details_request.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_details_request.py @@ -51,7 +51,7 @@ def __init__(self, task_id=None, tpl_id=None, sms_sign=None, cust_flag=None, beg :type sms_sign: str :param cust_flag: 创建解析任务时填写用户唯一标识。 > 手机号码或者任何的唯一标识,唯一标识不超过64个字符。发送智能信息时则必须填客户的手机号码。此处为手机号。样例为:130****0001。 :type cust_flag: str - :param begin_time: 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 + :param begin_time: 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 仅支持查询最近1年内的发送明细。 :type begin_time: str :param end_time: 发送结束时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入begin_time才能生效,单独传end_time不会作为过滤条件。 :type end_time: str @@ -180,7 +180,7 @@ def cust_flag(self, cust_flag): def begin_time(self): """Gets the begin_time of this ListAimSendDetailsRequest. - 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 + 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 仅支持查询最近1年内的发送明细。 :return: The begin_time of this ListAimSendDetailsRequest. :rtype: str @@ -191,7 +191,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this ListAimSendDetailsRequest. - 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 + 发送开始时间。格式为:2019-10-12T07:20:50Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 仅支持查询最近1年内的发送明细。 :param begin_time: The begin_time of this ListAimSendDetailsRequest. :type begin_time: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_tasks_request.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_tasks_request.py index 296b3530c9..2da56a37a7 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_tasks_request.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_aim_send_tasks_request.py @@ -53,7 +53,7 @@ def __init__(self, task_id=None, task_name=None, tpl_id=None, tpl_name=None, beg :type tpl_id: str :param tpl_name: 智能信息模板名称。 :type tpl_name: str - :param begin_time: 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 + :param begin_time: 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 > > 仅支持查询最近1年内创建的智能信息发送任务。 :type begin_time: str :param end_time: 智能信息发送任务创建结束时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入begin_time才能生效,单独传end_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 :type end_time: str @@ -189,7 +189,7 @@ def tpl_name(self, tpl_name): def begin_time(self): """Gets the begin_time of this ListAimSendTasksRequest. - 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 + 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 > > 仅支持查询最近1年内创建的智能信息发送任务。 :return: The begin_time of this ListAimSendTasksRequest. :rtype: str @@ -200,7 +200,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this ListAimSendTasksRequest. - 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 + 智能信息发送任务创建开始时间。样例:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。缺省:查询最近7天(168小时)数据。 > > 仅支持查询最近1年内创建的智能信息发送任务。 :param begin_time: The begin_time of this ListAimSendTasksRequest. :type begin_time: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_resolve_tasks_request.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_resolve_tasks_request.py index e970e455e1..457150308b 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_resolve_tasks_request.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_resolve_tasks_request.py @@ -59,7 +59,7 @@ def __init__(self, task_id=None, task_name=None, tpl_id=None, tpl_name=None, cus :type cust_flag: str :param aim_url: 完整的短链连接地址。样例:km2g.cn/PDiWqc。 :type aim_url: str - :param begin_time: 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 + :param begin_time: 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 > > 仅支持查询最近1年内创建的解析任务。 :type begin_time: str :param end_time: 智能信息解析任务创建结束时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入begin_time才能生效,单独传end_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 :type end_time: str @@ -240,7 +240,7 @@ def aim_url(self, aim_url): def begin_time(self): """Gets the begin_time of this ListResolveTasksRequest. - 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 + 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 > > 仅支持查询最近1年内创建的解析任务。 :return: The begin_time of this ListResolveTasksRequest. :rtype: str @@ -251,7 +251,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this ListResolveTasksRequest. - 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 + 智能信息解析任务创建开始时间。格式为:2019-10-12T07:20:50.522Z。 > 需同时传入end_time才能生效,单独传begin_time不会作为过滤条件。 > > 若不填,则默认查询24小时内创建的解析任务。 > > 仅支持查询最近1年内创建的解析任务。 :param begin_time: The begin_time of this ListResolveTasksRequest. :type begin_time: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/region/koomessage_region.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/region/koomessage_region.py index 914be43795..33e4fd5275 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/region/koomessage_region.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/region/koomessage_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class KooMessageRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'KooMessage': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index e9b8e510c7..042ffcecf0 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py b/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py index 0f76b09bd9..cbc7a01950 100644 --- a/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py +++ b/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class KpsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Kps': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 11ff5c9403..ee415a98c0 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py b/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py index 39bb189006..74d1bf6dfa 100644 --- a/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py +++ b/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class LakeFormationRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'LakeFormation': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 824a36bc24..7853f4f6b1 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py index 02a23fb3fb..6c8f447062 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -31,9 +28,9 @@ class LiveRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -42,6 +39,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Live': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py index 02a23fb3fb..6c8f447062 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -31,9 +28,9 @@ class LiveRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -42,6 +39,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Live': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 54558a20d8..7332981a2d 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py index 83d887824e..95fb50f6dd 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class LtsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Lts': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index c4d03311e3..53e9e81278 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py b/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py index e664f3427e..0f1b589eb4 100644 --- a/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py +++ b/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class MapDSRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'MapDS': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 4dd83e28e9..c41cfcbaeb 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py b/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py index 6322fa44c7..226fb7d226 100644 --- a/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py +++ b/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -58,9 +55,9 @@ class MasRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -69,6 +66,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Mas': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index 0cb28e4ff9..e1cfb85ec6 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py index fa7da705fb..e8a8671309 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class MeetingRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Meeting': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index dd29c587ef..c1b3a66a41 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py index 178b720ecf..fc646f3e59 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py @@ -25,6 +25,8 @@ from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_response import Cancel2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_request import CancelPhotoDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_response import CancelPhotoDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.chat_subtitle_config import ChatSubtitleConfig +from huaweicloudsdkmetastudio.v1.model.chat_video_config_rsp import ChatVideoConfigRsp from huaweicloudsdkmetastudio.v1.model.check_text_language_request import CheckTextLanguageRequest from huaweicloudsdkmetastudio.v1.model.check_text_language_response import CheckTextLanguageResponse from huaweicloudsdkmetastudio.v1.model.comment_data import CommentData @@ -45,6 +47,9 @@ from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_req import Create2dModelTrainingJobReq from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_request import Create2dModelTrainingJobRequest from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_response import Create2dModelTrainingJobResponse +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_req import CreateDialogUrlReq +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_request import CreateDialogUrlRequest +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_response import CreateDialogUrlResponse from huaweicloudsdkmetastudio.v1.model.create_digital_asset_request import CreateDigitalAssetRequest from huaweicloudsdkmetastudio.v1.model.create_digital_asset_request_body import CreateDigitalAssetRequestBody from huaweicloudsdkmetastudio.v1.model.create_digital_asset_response import CreateDigitalAssetResponse @@ -58,6 +63,8 @@ from huaweicloudsdkmetastudio.v1.model.create_file_response import CreateFileResponse from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_request import CreateInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_response import CreateInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.create_once_code_request import CreateOnceCodeRequest +from huaweicloudsdkmetastudio.v1.model.create_once_code_response import CreateOnceCodeResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -69,6 +76,12 @@ from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_request import CreatePictureModelingJobRequest from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_request_body import CreatePictureModelingJobRequestBody from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_response import CreatePictureModelingJobResponse +from huaweicloudsdkmetastudio.v1.model.create_robot_req import CreateRobotReq +from huaweicloudsdkmetastudio.v1.model.create_robot_request import CreateRobotRequest +from huaweicloudsdkmetastudio.v1.model.create_robot_response import CreateRobotResponse +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_req import CreateSmartChatRoomReq +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_request import CreateSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_response import CreateSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_req import CreateSmartLiveRoomReq from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_request import CreateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_response import CreateSmartLiveRoomResponse @@ -103,6 +116,10 @@ from huaweicloudsdkmetastudio.v1.model.delete_file_response import DeleteFileResponse from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_request import DeleteInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_response import DeleteInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.delete_robot_request import DeleteRobotRequest +from huaweicloudsdkmetastudio.v1.model.delete_robot_response import DeleteRobotResponse +from huaweicloudsdkmetastudio.v1.model.delete_smart_chat_room_request import DeleteSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.delete_smart_chat_room_response import DeleteSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_request import DeleteSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_response import DeleteSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_video_script_request import DeleteVideoScriptRequest @@ -126,11 +143,14 @@ from huaweicloudsdkmetastudio.v1.model.files_create_req import FilesCreateReq from huaweicloudsdkmetastudio.v1.model.hit_condition import HitCondition from huaweicloudsdkmetastudio.v1.model.hit_condition_tag import HitConditionTag +from huaweicloudsdkmetastudio.v1.model.huawei_ei_cbs import HuaweiEiCbs from huaweicloudsdkmetastudio.v1.model.human_model2_d_asset_meta import HumanModel2DAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_asset_meta import HumanModelAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_meta_properties import HumanModelMetaProperties from huaweicloudsdkmetastudio.v1.model.human_position2_d import HumanPosition2D from huaweicloudsdkmetastudio.v1.model.human_size2_d import HumanSize2D +from huaweicloudsdkmetastudio.v1.model.iflytek_aiui_config import IflytekAiuiConfig +from huaweicloudsdkmetastudio.v1.model.iflytek_spark import IflytekSpark from huaweicloudsdkmetastudio.v1.model.image_layer_config import ImageLayerConfig from huaweicloudsdkmetastudio.v1.model.inference_action_mark_info import InferenceActionMarkInfo from huaweicloudsdkmetastudio.v1.model.inference_video_mark_info import InferenceVideoMarkInfo @@ -163,6 +183,10 @@ from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_response import ListInteractionRuleGroupsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse +from huaweicloudsdkmetastudio.v1.model.list_robot_request import ListRobotRequest +from huaweicloudsdkmetastudio.v1.model.list_robot_response import ListRobotResponse +from huaweicloudsdkmetastudio.v1.model.list_smart_chat_rooms_request import ListSmartChatRoomsRequest +from huaweicloudsdkmetastudio.v1.model.list_smart_chat_rooms_response import ListSmartChatRoomsResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_request import ListSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.list_smart_live_response import ListSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_rooms_request import ListSmartLiveRoomsRequest @@ -198,6 +222,7 @@ from huaweicloudsdkmetastudio.v1.model.output_info import OutputInfo from huaweicloudsdkmetastudio.v1.model.ppt_asset_meta import PPTAssetMeta from huaweicloudsdkmetastudio.v1.model.ppt_page_info import PPTPageInfo +from huaweicloudsdkmetastudio.v1.model.pages import Pages from huaweicloudsdkmetastudio.v1.model.photo_video_config import PhotoVideoConfig from huaweicloudsdkmetastudio.v1.model.picture_modeling_by_url_req import PictureModelingByUrlReq from huaweicloudsdkmetastudio.v1.model.picture_modeling_info import PictureModelingInfo @@ -209,6 +234,7 @@ from huaweicloudsdkmetastudio.v1.model.restore_asset_request import RestoreAssetRequest from huaweicloudsdkmetastudio.v1.model.restore_asset_response import RestoreAssetResponse from huaweicloudsdkmetastudio.v1.model.review_config import ReviewConfig +from huaweicloudsdkmetastudio.v1.model.robot_info import RobotInfo from huaweicloudsdkmetastudio.v1.model.scene_asset_meta import SceneAssetMeta from huaweicloudsdkmetastudio.v1.model.scene_component_info import SceneComponentInfo from huaweicloudsdkmetastudio.v1.model.shared_config import SharedConfig @@ -239,6 +265,12 @@ from huaweicloudsdkmetastudio.v1.model.show_photo_digital_human_video_response import ShowPhotoDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.show_picture_modeling_job_request import ShowPictureModelingJobRequest from huaweicloudsdkmetastudio.v1.model.show_picture_modeling_job_response import ShowPictureModelingJobResponse +from huaweicloudsdkmetastudio.v1.model.show_robot_request import ShowRobotRequest +from huaweicloudsdkmetastudio.v1.model.show_robot_response import ShowRobotResponse +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_job_request import ShowSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_job_response import ShowSmartChatJobResponse +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_room_request import ShowSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_room_response import ShowSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_request import ShowSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.show_smart_live_response import ShowSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_request import ShowSmartLiveRoomRequest @@ -253,14 +285,19 @@ from huaweicloudsdkmetastudio.v1.model.show_video_script_response import ShowVideoScriptResponse from huaweicloudsdkmetastudio.v1.model.show_voice_training_job_request import ShowVoiceTrainingJobRequest from huaweicloudsdkmetastudio.v1.model.show_voice_training_job_response import ShowVoiceTrainingJobResponse +from huaweicloudsdkmetastudio.v1.model.smart_chat_room_base_info import SmartChatRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig +from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_request import StartSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_response import StartSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq from huaweicloudsdkmetastudio.v1.model.start_smart_live_request import StartSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.start_smart_live_response import StartSmartLiveResponse +from huaweicloudsdkmetastudio.v1.model.stop_smart_chat_job_request import StopSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.stop_smart_chat_job_response import StopSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.stop_smart_live_request import StopSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.stop_smart_live_response import StopSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.stop_video_motion_capture_job_request import StopVideoMotionCaptureJobRequest @@ -285,6 +322,11 @@ from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_response import UpdateDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_request import UpdateInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_response import UpdateInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.update_robot_req import UpdateRobotReq +from huaweicloudsdkmetastudio.v1.model.update_robot_request import UpdateRobotRequest +from huaweicloudsdkmetastudio.v1.model.update_robot_response import UpdateRobotResponse +from huaweicloudsdkmetastudio.v1.model.update_smart_chat_room_request import UpdateSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.update_smart_chat_room_response import UpdateSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_request import UpdateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_response import UpdateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.update_video_script_request import UpdateVideoScriptRequest diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py index ffe2d0f683..6485bbf0e2 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py @@ -32,6 +32,280 @@ def new_builder(cls, clazz=None): return client_builder + def create_dialog_url_async(self, request): + """创建对话链接 + + 该接口用于创建对话链接。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDialogUrl + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlResponse` + """ + http_info = self._create_dialog_url_http_info(request) + return self._call_api(**http_info) + + def create_dialog_url_async_invoker(self, request): + http_info = self._create_dialog_url_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_dialog_url_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/create-dialog-url", + "request_type": request.__class__.__name__, + "response_type": "CreateDialogUrlResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_smart_chat_job_async(self, request): + """查询数字人智能交互任务 + + 该接口用于查询数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatJobResponse` + """ + http_info = self._show_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def show_smart_chat_job_async_invoker(self, request): + http_info = self._show_smart_chat_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_smart_chat_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/state", + "request_type": request.__class__.__name__, + "response_type": "ShowSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def start_smart_chat_job_async(self, request): + """启动数字人智能交互任务 + + 该接口用于启动数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StartSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StartSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StartSmartChatJobResponse` + """ + http_info = self._start_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def start_smart_chat_job_async_invoker(self, request): + http_info = self._start_smart_chat_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _start_smart_chat_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs", + "request_type": request.__class__.__name__, + "response_type": "StartSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def stop_smart_chat_job_async(self, request): + """结束数字人智能交互任务 + + 该接口用于结束数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StopSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StopSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StopSmartChatJobResponse` + """ + http_info = self._stop_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def stop_smart_chat_job_async_invoker(self, request): + http_info = self._stop_smart_chat_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _stop_smart_chat_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/stop", + "request_type": request.__class__.__name__, + "response_type": "StopSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_digital_asset_async(self, request): """创建资产 @@ -943,6 +1217,8 @@ def _list_digital_human_video_http_info(self, request): query_params.append(('script_id', local_var_params['script_id'])) if 'asset_name' in local_var_params: query_params.append(('asset_name', local_var_params['asset_name'])) + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -1715,31 +1991,31 @@ def _delete_file_http_info(self, request): return http_info - def create_picture_modeling_by_url_job_async(self, request): - """基于图片URL创建照片建模任务 + def create_once_code_async(self, request): + """创建一次性鉴权码 - 该接口用于从URL中获取图片进行照片建模任务。 + 该接口用于创建一次性鉴权码。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePictureModelingByUrlJob - :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobRequest` - :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobResponse` + :param request: Request instance for CreateOnceCode + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateOnceCodeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateOnceCodeResponse` """ - http_info = self._create_picture_modeling_by_url_job_http_info(request) + http_info = self._create_once_code_http_info(request) return self._call_api(**http_info) - def create_picture_modeling_by_url_job_async_invoker(self, request): - http_info = self._create_picture_modeling_by_url_job_http_info(request) + def create_once_code_async_invoker(self, request): + http_info = self._create_once_code_http_info(request) return AsyncInvoker(self, http_info) - def _create_picture_modeling_by_url_job_http_info(self, request): + def _create_once_code_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url", + "resource_path": "/v1/{project_id}/digital-human-chat/once-code", "request_type": request.__class__.__name__, - "response_type": "CreatePictureModelingByUrlJobResponse" + "response_type": "CreateOnceCodeResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1759,8 +2035,6 @@ def _create_picture_modeling_by_url_job_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1782,23 +2056,90 @@ def _create_picture_modeling_by_url_job_http_info(self, request): return http_info - def create_picture_modeling_job_async(self, request): - """创建照片建模任务 + def create_picture_modeling_by_url_job_async(self, request): + """基于图片URL创建照片建模任务 - 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。 + 该接口用于从URL中获取图片进行照片建模任务。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePictureModelingJob - :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequest` - :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobResponse` + :param request: Request instance for CreatePictureModelingByUrlJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobResponse` """ - http_info = self._create_picture_modeling_job_http_info(request) + http_info = self._create_picture_modeling_by_url_job_http_info(request) return self._call_api(**http_info) - def create_picture_modeling_job_async_invoker(self, request): - http_info = self._create_picture_modeling_job_http_info(request) + def create_picture_modeling_by_url_job_async_invoker(self, request): + http_info = self._create_picture_modeling_by_url_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_picture_modeling_by_url_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url", + "request_type": request.__class__.__name__, + "response_type": "CreatePictureModelingByUrlJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_picture_modeling_job_async(self, request): + """创建照片建模任务 + + 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePictureModelingJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobResponse` + """ + http_info = self._create_picture_modeling_job_http_info(request) + return self._call_api(**http_info) + + def create_picture_modeling_job_async_invoker(self, request): + http_info = self._create_picture_modeling_job_http_info(request) return AsyncInvoker(self, http_info) def _create_picture_modeling_job_http_info(self, request): @@ -2003,6 +2344,692 @@ def _show_picture_modeling_job_http_info(self, request): return http_info + def create_robot_async(self, request): + """创建应用 + + 该接口用于创建应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateRobotResponse` + """ + http_info = self._create_robot_http_info(request) + return self._call_api(**http_info) + + def create_robot_async_invoker(self, request): + http_info = self._create_robot_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_robot_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/robot", + "request_type": request.__class__.__name__, + "response_type": "CreateRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_robot_async(self, request): + """删除应用 + + 该接口用于删除应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteRobotResponse` + """ + http_info = self._delete_robot_http_info(request) + return self._call_api(**http_info) + + def delete_robot_async_invoker(self, request): + http_info = self._delete_robot_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_robot_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_robot_async(self, request): + """查询应用列表 + + 该接口用于查询应用列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.ListRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListRobotResponse` + """ + http_info = self._list_robot_http_info(request) + return self._call_api(**http_info) + + def list_robot_async_invoker(self, request): + http_info = self._list_robot_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_robot_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/robot", + "request_type": request.__class__.__name__, + "response_type": "ListRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_robot_async(self, request): + """查询应用详情 + + 该接口用于查询应用详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowRobotResponse` + """ + http_info = self._show_robot_http_info(request) + return self._call_api(**http_info) + + def show_robot_async_invoker(self, request): + http_info = self._show_robot_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_robot_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/{robot_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'robot_id' in local_var_params: + path_params['robot_id'] = local_var_params['robot_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_robot_async(self, request): + """修改应用 + + 该接口用于修改应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotResponse` + """ + http_info = self._update_robot_http_info(request) + return self._call_api(**http_info) + + def update_robot_async_invoker(self, request): + http_info = self._update_robot_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_robot_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/{robot_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'robot_id' in local_var_params: + path_params['robot_id'] = local_var_params['robot_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_smart_chat_room_async(self, request): + """创建智能交互对话直播间 + + 该接口用于创建智能交互对话直播间。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomResponse` + """ + http_info = self._create_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def create_smart_chat_room_async_invoker(self, request): + http_info = self._create_smart_chat_room_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_smart_chat_room_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-chat-rooms", + "request_type": request.__class__.__name__, + "response_type": "CreateSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_smart_chat_room_async(self, request): + """删除智能交互对话直播间 + + 该接口用于删除智能交互对话直播间。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteSmartChatRoomResponse` + """ + http_info = self._delete_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def delete_smart_chat_room_async_invoker(self, request): + http_info = self._delete_smart_chat_room_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_smart_chat_room_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_smart_chat_rooms_async(self, request): + """查询智能交互对话直播间列表 + + 该接口用于智能交互对话直播间列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListSmartChatRooms + :type request: :class:`huaweicloudsdkmetastudio.v1.ListSmartChatRoomsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListSmartChatRoomsResponse` + """ + http_info = self._list_smart_chat_rooms_http_info(request) + return self._call_api(**http_info) + + def list_smart_chat_rooms_async_invoker(self, request): + http_info = self._list_smart_chat_rooms_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_smart_chat_rooms_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-chat-rooms", + "request_type": request.__class__.__name__, + "response_type": "ListSmartChatRoomsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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 'room_name' in local_var_params: + query_params.append(('room_name', local_var_params['room_name'])) + if 'model_name' in local_var_params: + query_params.append(('model_name', local_var_params['model_name'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_smart_chat_room_async(self, request): + """查询智能交互对话直播间详情 + + 该接口用于查询智能交互对话直播间详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatRoomResponse` + """ + http_info = self._show_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def show_smart_chat_room_async_invoker(self, request): + http_info = self._show_smart_chat_room_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_smart_chat_room_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_smart_chat_room_async(self, request): + """更新智能交互对话直播间信息 + + 该接口用于智能交互对话直播间信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateSmartChatRoomResponse` + """ + http_info = self._update_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def update_smart_chat_room_async_invoker(self, request): + http_info = self._update_smart_chat_room_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_smart_chat_room_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def execute_smart_live_command_async(self, request): """控制数字人直播过程 diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py index 20320dba1e..6a8cb06ff8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py @@ -32,6 +32,280 @@ def new_builder(cls, clazz=None): return client_builder + def create_dialog_url(self, request): + """创建对话链接 + + 该接口用于创建对话链接。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDialogUrl + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlResponse` + """ + http_info = self._create_dialog_url_http_info(request) + return self._call_api(**http_info) + + def create_dialog_url_invoker(self, request): + http_info = self._create_dialog_url_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_dialog_url_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/create-dialog-url", + "request_type": request.__class__.__name__, + "response_type": "CreateDialogUrlResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_smart_chat_job(self, request): + """查询数字人智能交互任务 + + 该接口用于查询数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatJobResponse` + """ + http_info = self._show_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def show_smart_chat_job_invoker(self, request): + http_info = self._show_smart_chat_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_smart_chat_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/state", + "request_type": request.__class__.__name__, + "response_type": "ShowSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def start_smart_chat_job(self, request): + """启动数字人智能交互任务 + + 该接口用于启动数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StartSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StartSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StartSmartChatJobResponse` + """ + http_info = self._start_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def start_smart_chat_job_invoker(self, request): + http_info = self._start_smart_chat_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _start_smart_chat_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs", + "request_type": request.__class__.__name__, + "response_type": "StartSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + if 'robot_id' in local_var_params: + query_params.append(('robot_id', local_var_params['robot_id'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def stop_smart_chat_job(self, request): + """结束数字人智能交互任务 + + 该接口用于结束数字人智能交互任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StopSmartChatJob + :type request: :class:`huaweicloudsdkmetastudio.v1.StopSmartChatJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.StopSmartChatJobResponse` + """ + http_info = self._stop_smart_chat_job_http_info(request) + return self._call_api(**http_info) + + def stop_smart_chat_job_invoker(self, request): + http_info = self._stop_smart_chat_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _stop_smart_chat_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/stop", + "request_type": request.__class__.__name__, + "response_type": "StopSmartChatJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_digital_asset(self, request): """创建资产 @@ -943,6 +1217,8 @@ def _list_digital_human_video_http_info(cls, request): query_params.append(('script_id', local_var_params['script_id'])) if 'asset_name' in local_var_params: query_params.append(('asset_name', local_var_params['asset_name'])) + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -1715,31 +1991,31 @@ def _delete_file_http_info(cls, request): return http_info - def create_picture_modeling_by_url_job(self, request): - """基于图片URL创建照片建模任务 + def create_once_code(self, request): + """创建一次性鉴权码 - 该接口用于从URL中获取图片进行照片建模任务。 + 该接口用于创建一次性鉴权码。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePictureModelingByUrlJob - :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobRequest` - :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobResponse` + :param request: Request instance for CreateOnceCode + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateOnceCodeRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateOnceCodeResponse` """ - http_info = self._create_picture_modeling_by_url_job_http_info(request) + http_info = self._create_once_code_http_info(request) return self._call_api(**http_info) - def create_picture_modeling_by_url_job_invoker(self, request): - http_info = self._create_picture_modeling_by_url_job_http_info(request) + def create_once_code_invoker(self, request): + http_info = self._create_once_code_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_picture_modeling_by_url_job_http_info(cls, request): + def _create_once_code_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url", + "resource_path": "/v1/{project_id}/digital-human-chat/once-code", "request_type": request.__class__.__name__, - "response_type": "CreatePictureModelingByUrlJobResponse" + "response_type": "CreateOnceCodeResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1759,8 +2035,6 @@ def _create_picture_modeling_by_url_job_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1782,22 +2056,89 @@ def _create_picture_modeling_by_url_job_http_info(cls, request): return http_info - def create_picture_modeling_job(self, request): - """创建照片建模任务 + def create_picture_modeling_by_url_job(self, request): + """基于图片URL创建照片建模任务 - 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。 + 该接口用于从URL中获取图片进行照片建模任务。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreatePictureModelingJob - :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequest` - :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobResponse` + :param request: Request instance for CreatePictureModelingByUrlJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingByUrlJobResponse` """ - http_info = self._create_picture_modeling_job_http_info(request) + http_info = self._create_picture_modeling_by_url_job_http_info(request) return self._call_api(**http_info) - def create_picture_modeling_job_invoker(self, request): - http_info = self._create_picture_modeling_job_http_info(request) + def create_picture_modeling_by_url_job_invoker(self, request): + http_info = self._create_picture_modeling_by_url_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_picture_modeling_by_url_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url", + "request_type": request.__class__.__name__, + "response_type": "CreatePictureModelingByUrlJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_picture_modeling_job(self, request): + """创建照片建模任务 + + 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePictureModelingJob + :type request: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobResponse` + """ + http_info = self._create_picture_modeling_job_http_info(request) + return self._call_api(**http_info) + + def create_picture_modeling_job_invoker(self, request): + http_info = self._create_picture_modeling_job_http_info(request) return SyncInvoker(self, http_info) @classmethod @@ -2003,6 +2344,692 @@ def _show_picture_modeling_job_http_info(cls, request): return http_info + def create_robot(self, request): + """创建应用 + + 该接口用于创建应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateRobotResponse` + """ + http_info = self._create_robot_http_info(request) + return self._call_api(**http_info) + + def create_robot_invoker(self, request): + http_info = self._create_robot_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_robot_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/robot", + "request_type": request.__class__.__name__, + "response_type": "CreateRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_robot(self, request): + """删除应用 + + 该接口用于删除应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteRobotResponse` + """ + http_info = self._delete_robot_http_info(request) + return self._call_api(**http_info) + + def delete_robot_invoker(self, request): + http_info = self._delete_robot_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_robot_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/delete", + "request_type": request.__class__.__name__, + "response_type": "DeleteRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_robot(self, request): + """查询应用列表 + + 该接口用于查询应用列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.ListRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListRobotResponse` + """ + http_info = self._list_robot_http_info(request) + return self._call_api(**http_info) + + def list_robot_invoker(self, request): + http_info = self._list_robot_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_robot_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/robot", + "request_type": request.__class__.__name__, + "response_type": "ListRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_robot(self, request): + """查询应用详情 + + 该接口用于查询应用详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowRobotResponse` + """ + http_info = self._show_robot_http_info(request) + return self._call_api(**http_info) + + def show_robot_invoker(self, request): + http_info = self._show_robot_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_robot_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/{robot_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'robot_id' in local_var_params: + path_params['robot_id'] = local_var_params['robot_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_robot(self, request): + """修改应用 + + 该接口用于修改应用。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateRobot + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotResponse` + """ + http_info = self._update_robot_http_info(request) + return self._call_api(**http_info) + + def update_robot_invoker(self, request): + http_info = self._update_robot_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_robot_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/digital-human-chat/robot/{robot_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateRobotResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'robot_id' in local_var_params: + path_params['robot_id'] = local_var_params['robot_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_smart_chat_room(self, request): + """创建智能交互对话直播间 + + 该接口用于创建智能交互对话直播间。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomResponse` + """ + http_info = self._create_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def create_smart_chat_room_invoker(self, request): + http_info = self._create_smart_chat_room_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_smart_chat_room_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-chat-rooms", + "request_type": request.__class__.__name__, + "response_type": "CreateSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_smart_chat_room(self, request): + """删除智能交互对话直播间 + + 该接口用于删除智能交互对话直播间。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteSmartChatRoomResponse` + """ + http_info = self._delete_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def delete_smart_chat_room_invoker(self, request): + http_info = self._delete_smart_chat_room_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_smart_chat_room_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_smart_chat_rooms(self, request): + """查询智能交互对话直播间列表 + + 该接口用于智能交互对话直播间列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListSmartChatRooms + :type request: :class:`huaweicloudsdkmetastudio.v1.ListSmartChatRoomsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListSmartChatRoomsResponse` + """ + http_info = self._list_smart_chat_rooms_http_info(request) + return self._call_api(**http_info) + + def list_smart_chat_rooms_invoker(self, request): + http_info = self._list_smart_chat_rooms_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_smart_chat_rooms_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-chat-rooms", + "request_type": request.__class__.__name__, + "response_type": "ListSmartChatRoomsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(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 'room_name' in local_var_params: + query_params.append(('room_name', local_var_params['room_name'])) + if 'model_name' in local_var_params: + query_params.append(('model_name', local_var_params['model_name'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_smart_chat_room(self, request): + """查询智能交互对话直播间详情 + + 该接口用于查询智能交互对话直播间详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShowSmartChatRoomResponse` + """ + http_info = self._show_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def show_smart_chat_room_invoker(self, request): + http_info = self._show_smart_chat_room_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_smart_chat_room_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_smart_chat_room(self, request): + """更新智能交互对话直播间信息 + + 该接口用于智能交互对话直播间信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateSmartChatRoom + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateSmartChatRoomRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateSmartChatRoomResponse` + """ + http_info = self._update_smart_chat_room_http_info(request) + return self._call_api(**http_info) + + def update_smart_chat_room_invoker(self, request): + http_info = self._update_smart_chat_room_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_smart_chat_room_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/smart-chat-rooms/{room_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateSmartChatRoomResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'room_id' in local_var_params: + path_params['room_id'] = local_var_params['room_id'] + + query_params = [] + + header_params = {} + if 'x_app_user_id' in local_var_params: + header_params['X-App-UserId'] = local_var_params['x_app_user_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["X-Request-Id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def execute_smart_live_command(self, request): """控制数字人直播过程 diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py index 5be4fcf3e6..114f79e8df 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py @@ -23,6 +23,8 @@ from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_response import Cancel2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_request import CancelPhotoDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_response import CancelPhotoDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.chat_subtitle_config import ChatSubtitleConfig +from huaweicloudsdkmetastudio.v1.model.chat_video_config_rsp import ChatVideoConfigRsp from huaweicloudsdkmetastudio.v1.model.check_text_language_request import CheckTextLanguageRequest from huaweicloudsdkmetastudio.v1.model.check_text_language_response import CheckTextLanguageResponse from huaweicloudsdkmetastudio.v1.model.comment_data import CommentData @@ -43,6 +45,9 @@ from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_req import Create2dModelTrainingJobReq from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_request import Create2dModelTrainingJobRequest from huaweicloudsdkmetastudio.v1.model.create2d_model_training_job_response import Create2dModelTrainingJobResponse +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_req import CreateDialogUrlReq +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_request import CreateDialogUrlRequest +from huaweicloudsdkmetastudio.v1.model.create_dialog_url_response import CreateDialogUrlResponse from huaweicloudsdkmetastudio.v1.model.create_digital_asset_request import CreateDigitalAssetRequest from huaweicloudsdkmetastudio.v1.model.create_digital_asset_request_body import CreateDigitalAssetRequestBody from huaweicloudsdkmetastudio.v1.model.create_digital_asset_response import CreateDigitalAssetResponse @@ -56,6 +61,8 @@ from huaweicloudsdkmetastudio.v1.model.create_file_response import CreateFileResponse from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_request import CreateInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_response import CreateInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.create_once_code_request import CreateOnceCodeRequest +from huaweicloudsdkmetastudio.v1.model.create_once_code_response import CreateOnceCodeResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -67,6 +74,12 @@ from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_request import CreatePictureModelingJobRequest from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_request_body import CreatePictureModelingJobRequestBody from huaweicloudsdkmetastudio.v1.model.create_picture_modeling_job_response import CreatePictureModelingJobResponse +from huaweicloudsdkmetastudio.v1.model.create_robot_req import CreateRobotReq +from huaweicloudsdkmetastudio.v1.model.create_robot_request import CreateRobotRequest +from huaweicloudsdkmetastudio.v1.model.create_robot_response import CreateRobotResponse +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_req import CreateSmartChatRoomReq +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_request import CreateSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.create_smart_chat_room_response import CreateSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_req import CreateSmartLiveRoomReq from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_request import CreateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.create_smart_live_room_response import CreateSmartLiveRoomResponse @@ -101,6 +114,10 @@ from huaweicloudsdkmetastudio.v1.model.delete_file_response import DeleteFileResponse from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_request import DeleteInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_response import DeleteInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.delete_robot_request import DeleteRobotRequest +from huaweicloudsdkmetastudio.v1.model.delete_robot_response import DeleteRobotResponse +from huaweicloudsdkmetastudio.v1.model.delete_smart_chat_room_request import DeleteSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.delete_smart_chat_room_response import DeleteSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_request import DeleteSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_response import DeleteSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_video_script_request import DeleteVideoScriptRequest @@ -124,11 +141,14 @@ from huaweicloudsdkmetastudio.v1.model.files_create_req import FilesCreateReq from huaweicloudsdkmetastudio.v1.model.hit_condition import HitCondition from huaweicloudsdkmetastudio.v1.model.hit_condition_tag import HitConditionTag +from huaweicloudsdkmetastudio.v1.model.huawei_ei_cbs import HuaweiEiCbs from huaweicloudsdkmetastudio.v1.model.human_model2_d_asset_meta import HumanModel2DAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_asset_meta import HumanModelAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_meta_properties import HumanModelMetaProperties from huaweicloudsdkmetastudio.v1.model.human_position2_d import HumanPosition2D from huaweicloudsdkmetastudio.v1.model.human_size2_d import HumanSize2D +from huaweicloudsdkmetastudio.v1.model.iflytek_aiui_config import IflytekAiuiConfig +from huaweicloudsdkmetastudio.v1.model.iflytek_spark import IflytekSpark from huaweicloudsdkmetastudio.v1.model.image_layer_config import ImageLayerConfig from huaweicloudsdkmetastudio.v1.model.inference_action_mark_info import InferenceActionMarkInfo from huaweicloudsdkmetastudio.v1.model.inference_video_mark_info import InferenceVideoMarkInfo @@ -161,6 +181,10 @@ from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_response import ListInteractionRuleGroupsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse +from huaweicloudsdkmetastudio.v1.model.list_robot_request import ListRobotRequest +from huaweicloudsdkmetastudio.v1.model.list_robot_response import ListRobotResponse +from huaweicloudsdkmetastudio.v1.model.list_smart_chat_rooms_request import ListSmartChatRoomsRequest +from huaweicloudsdkmetastudio.v1.model.list_smart_chat_rooms_response import ListSmartChatRoomsResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_request import ListSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.list_smart_live_response import ListSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_rooms_request import ListSmartLiveRoomsRequest @@ -196,6 +220,7 @@ from huaweicloudsdkmetastudio.v1.model.output_info import OutputInfo from huaweicloudsdkmetastudio.v1.model.ppt_asset_meta import PPTAssetMeta from huaweicloudsdkmetastudio.v1.model.ppt_page_info import PPTPageInfo +from huaweicloudsdkmetastudio.v1.model.pages import Pages from huaweicloudsdkmetastudio.v1.model.photo_video_config import PhotoVideoConfig from huaweicloudsdkmetastudio.v1.model.picture_modeling_by_url_req import PictureModelingByUrlReq from huaweicloudsdkmetastudio.v1.model.picture_modeling_info import PictureModelingInfo @@ -207,6 +232,7 @@ from huaweicloudsdkmetastudio.v1.model.restore_asset_request import RestoreAssetRequest from huaweicloudsdkmetastudio.v1.model.restore_asset_response import RestoreAssetResponse from huaweicloudsdkmetastudio.v1.model.review_config import ReviewConfig +from huaweicloudsdkmetastudio.v1.model.robot_info import RobotInfo from huaweicloudsdkmetastudio.v1.model.scene_asset_meta import SceneAssetMeta from huaweicloudsdkmetastudio.v1.model.scene_component_info import SceneComponentInfo from huaweicloudsdkmetastudio.v1.model.shared_config import SharedConfig @@ -237,6 +263,12 @@ from huaweicloudsdkmetastudio.v1.model.show_photo_digital_human_video_response import ShowPhotoDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.show_picture_modeling_job_request import ShowPictureModelingJobRequest from huaweicloudsdkmetastudio.v1.model.show_picture_modeling_job_response import ShowPictureModelingJobResponse +from huaweicloudsdkmetastudio.v1.model.show_robot_request import ShowRobotRequest +from huaweicloudsdkmetastudio.v1.model.show_robot_response import ShowRobotResponse +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_job_request import ShowSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_job_response import ShowSmartChatJobResponse +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_room_request import ShowSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.show_smart_chat_room_response import ShowSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_request import ShowSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.show_smart_live_response import ShowSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.show_smart_live_room_request import ShowSmartLiveRoomRequest @@ -251,14 +283,19 @@ from huaweicloudsdkmetastudio.v1.model.show_video_script_response import ShowVideoScriptResponse from huaweicloudsdkmetastudio.v1.model.show_voice_training_job_request import ShowVoiceTrainingJobRequest from huaweicloudsdkmetastudio.v1.model.show_voice_training_job_response import ShowVoiceTrainingJobResponse +from huaweicloudsdkmetastudio.v1.model.smart_chat_room_base_info import SmartChatRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig +from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_request import StartSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.start_smart_chat_job_response import StartSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq from huaweicloudsdkmetastudio.v1.model.start_smart_live_request import StartSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.start_smart_live_response import StartSmartLiveResponse +from huaweicloudsdkmetastudio.v1.model.stop_smart_chat_job_request import StopSmartChatJobRequest +from huaweicloudsdkmetastudio.v1.model.stop_smart_chat_job_response import StopSmartChatJobResponse from huaweicloudsdkmetastudio.v1.model.stop_smart_live_request import StopSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.stop_smart_live_response import StopSmartLiveResponse from huaweicloudsdkmetastudio.v1.model.stop_video_motion_capture_job_request import StopVideoMotionCaptureJobRequest @@ -283,6 +320,11 @@ from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_response import UpdateDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_request import UpdateInteractionRuleGroupRequest from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_response import UpdateInteractionRuleGroupResponse +from huaweicloudsdkmetastudio.v1.model.update_robot_req import UpdateRobotReq +from huaweicloudsdkmetastudio.v1.model.update_robot_request import UpdateRobotRequest +from huaweicloudsdkmetastudio.v1.model.update_robot_response import UpdateRobotResponse +from huaweicloudsdkmetastudio.v1.model.update_smart_chat_room_request import UpdateSmartChatRoomRequest +from huaweicloudsdkmetastudio.v1.model.update_smart_chat_room_response import UpdateSmartChatRoomResponse from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_request import UpdateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_response import UpdateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.update_video_script_request import UpdateVideoScriptRequest diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py index 76ea62126c..a2a2cdc3d3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Cancel2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Cancel2DDigitalHumanVideoRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Cancel2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Cancel2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py index 1eee2bccc5..5d7ecfc5c8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_subtitle_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_subtitle_config.py new file mode 100644 index 0000000000..0bfb83a002 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_subtitle_config.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChatSubtitleConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'dx': 'int', + 'dy': 'int', + 'width': 'int', + 'height': 'int' + } + + attribute_map = { + 'dx': 'dx', + 'dy': 'dy', + 'width': 'width', + 'height': 'height' + } + + def __init__(self, dx=None, dy=None, width=None, height=None): + """ChatSubtitleConfig + + The model defined in huaweicloud sdk + + :param dx: 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :type dx: int + :param dy: 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :type dy: int + :param width: 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + :type width: int + :param height: 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + :type height: int + """ + + + + self._dx = None + self._dy = None + self._width = None + self._height = None + self.discriminator = None + + if dx is not None: + self.dx = dx + if dy is not None: + self.dy = dy + if width is not None: + self.width = width + if height is not None: + self.height = height + + @property + def dx(self): + """Gets the dx of this ChatSubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :return: The dx of this ChatSubtitleConfig. + :rtype: int + """ + return self._dx + + @dx.setter + def dx(self, dx): + """Sets the dx of this ChatSubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :param dx: The dx of this ChatSubtitleConfig. + :type dx: int + """ + self._dx = dx + + @property + def dy(self): + """Gets the dy of this ChatSubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :return: The dy of this ChatSubtitleConfig. + :rtype: int + """ + return self._dy + + @dy.setter + def dy(self, dy): + """Sets the dy of this ChatSubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :param dy: The dy of this ChatSubtitleConfig. + :type dy: int + """ + self._dy = dy + + @property + def width(self): + """Gets the width of this ChatSubtitleConfig. + + 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + + :return: The width of this ChatSubtitleConfig. + :rtype: int + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this ChatSubtitleConfig. + + 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + + :param width: The width of this ChatSubtitleConfig. + :type width: int + """ + self._width = width + + @property + def height(self): + """Gets the height of this ChatSubtitleConfig. + + 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + + :return: The height of this ChatSubtitleConfig. + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this ChatSubtitleConfig. + + 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 + + :param height: The height of this ChatSubtitleConfig. + :type height: int + """ + self._height = height + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChatSubtitleConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_video_config_rsp.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_video_config_rsp.py new file mode 100644 index 0000000000..3a3161ecb7 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/chat_video_config_rsp.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChatVideoConfigRsp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'width': 'int', + 'height': 'int' + } + + attribute_map = { + 'width': 'width', + 'height': 'height' + } + + def __init__(self, width=None, height=None): + """ChatVideoConfigRsp + + The model defined in huaweicloud sdk + + :param width: 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + :type width: int + :param height: 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + :type height: int + """ + + + + self._width = None + self._height = None + self.discriminator = None + + if width is not None: + self.width = width + if height is not None: + self.height = height + + @property + def width(self): + """Gets the width of this ChatVideoConfigRsp. + + 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + + :return: The width of this ChatVideoConfigRsp. + :rtype: int + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this ChatVideoConfigRsp. + + 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + + :param width: The width of this ChatVideoConfigRsp. + :type width: int + """ + self._width = width + + @property + def height(self): + """Gets the height of this ChatVideoConfigRsp. + + 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + + :return: The height of this ChatVideoConfigRsp. + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this ChatVideoConfigRsp. + + 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + + :param height: The height of this ChatVideoConfigRsp. + :type height: int + """ + self._height = height + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChatVideoConfigRsp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/commit_voice_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/commit_voice_training_job_request.py index 90ac346f13..27b1488c33 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/commit_voice_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/commit_voice_training_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, job_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param job_id: 任务id。 :type job_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, job_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this CommitVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CommitVoiceTrainingJobRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CommitVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CommitVoiceTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py index bc59d5a2dc..df50cedf32 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, file_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param file_id: 文件ID。 :type file_id: str @@ -58,7 +58,7 @@ def __init__(self, x_app_user_id=None, file_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this ConfirmFileUploadRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ConfirmFileUploadRequest. :rtype: str @@ -69,7 +69,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ConfirmFileUploadRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ConfirmFileUploadRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py index 6e4e3e6bef..3737d766a0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the Create2DDigitalHumanVideoRequest :type body: :class:`huaweicloudsdkmetastudio.v1.Create2DDigitalHumanVideoReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this Create2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Create2DDigitalHumanVideoRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Create2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Create2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_request.py index 4027999486..727142ccc8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2d_model_training_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the Create2dModelTrainingJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.Create2dModelTrainingJobReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this Create2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Create2dModelTrainingJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Create2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Create2dModelTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py new file mode 100644 index 0000000000..1762b8f67a --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_req.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDialogUrlReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_id': 'str', + 'robot_id': 'str' + } + + attribute_map = { + 'room_id': 'room_id', + 'robot_id': 'robot_id' + } + + def __init__(self, room_id=None, robot_id=None): + """CreateDialogUrlReq + + The model defined in huaweicloud sdk + + :param room_id: 直播间ID。 + :type room_id: str + :param robot_id: 机器人ID。 + :type robot_id: str + """ + + + + self._room_id = None + self._robot_id = None + self.discriminator = None + + self.room_id = room_id + self.robot_id = robot_id + + @property + def room_id(self): + """Gets the room_id of this CreateDialogUrlReq. + + 直播间ID。 + + :return: The room_id of this CreateDialogUrlReq. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this CreateDialogUrlReq. + + 直播间ID。 + + :param room_id: The room_id of this CreateDialogUrlReq. + :type room_id: str + """ + self._room_id = room_id + + @property + def robot_id(self): + """Gets the robot_id of this CreateDialogUrlReq. + + 机器人ID。 + + :return: The robot_id of this CreateDialogUrlReq. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this CreateDialogUrlReq. + + 机器人ID。 + + :param robot_id: The robot_id of this CreateDialogUrlReq. + :type robot_id: str + """ + self._robot_id = robot_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, CreateDialogUrlReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_request.py new file mode 100644 index 0000000000..09ab2b1708 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDialogUrlRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreateDialogUrlReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateDialogUrlRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateDialogUrlRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateDialogUrlRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this CreateDialogUrlRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateDialogUrlRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateDialogUrlRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateDialogUrlRequest. + + :return: The body of this CreateDialogUrlRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDialogUrlRequest. + + :param body: The body of this CreateDialogUrlRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDialogUrlReq` + """ + 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, CreateDialogUrlRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_response.py new file mode 100644 index 0000000000..e617129411 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_dialog_url_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDialogUrlResponse(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 = { + 'url': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'url': 'url', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, url=None, x_request_id=None): + """CreateDialogUrlResponse + + The model defined in huaweicloud sdk + + :param url: 对话链接。 + :type url: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateDialogUrlResponse, self).__init__() + + self._url = None + self._x_request_id = None + self.discriminator = None + + if url is not None: + self.url = url + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def url(self): + """Gets the url of this CreateDialogUrlResponse. + + 对话链接。 + + :return: The url of this CreateDialogUrlResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateDialogUrlResponse. + + 对话链接。 + + :param url: The url of this CreateDialogUrlResponse. + :type url: str + """ + self._url = url + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateDialogUrlResponse. + + :return: The x_request_id of this CreateDialogUrlResponse. + :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 CreateDialogUrlResponse. + + :param x_request_id: The x_request_id of this CreateDialogUrlResponse. + :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, CreateDialogUrlResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py index 1be48c4d1c..b495ff1639 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateDigitalAssetRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalAssetRequestBody` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateDigitalAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateDigitalAssetRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateDigitalAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateDigitalAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py index b28a611d04..abb5479b60 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateDigitalHumanBusinessCardRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalHumanBusinessCardReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateDigitalHumanBusinessCardRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py index dc4ad3d18c..dd951f1a40 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateFileRequest :type body: :class:`huaweicloudsdkmetastudio.v1.FilesCreateReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateFileRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateFileRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateFileRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateFileRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py index 6cf7ecbc16..1dfe8b1239 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateInteractionRuleGroupRequest :type body: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateInteractionRuleGroupRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateInteractionRuleGroupRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_request.py new file mode 100644 index 0000000000..237302c7ce --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_request.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOnceCodeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, x_app_user_id=None): + """CreateOnceCodeRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._x_app_user_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateOnceCodeRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this CreateOnceCodeRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateOnceCodeRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateOnceCodeRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_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, CreateOnceCodeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_response.py new file mode 100644 index 0000000000..56ae205c29 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_once_code_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOnceCodeResponse(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 = { + 'once_code': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'once_code': 'once_code', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, once_code=None, x_request_id=None): + """CreateOnceCodeResponse + + The model defined in huaweicloud sdk + + :param once_code: 一次性鉴权码。 + :type once_code: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateOnceCodeResponse, self).__init__() + + self._once_code = None + self._x_request_id = None + self.discriminator = None + + if once_code is not None: + self.once_code = once_code + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def once_code(self): + """Gets the once_code of this CreateOnceCodeResponse. + + 一次性鉴权码。 + + :return: The once_code of this CreateOnceCodeResponse. + :rtype: str + """ + return self._once_code + + @once_code.setter + def once_code(self, once_code): + """Sets the once_code of this CreateOnceCodeResponse. + + 一次性鉴权码。 + + :param once_code: The once_code of this CreateOnceCodeResponse. + :type once_code: str + """ + self._once_code = once_code + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateOnceCodeResponse. + + :return: The x_request_id of this CreateOnceCodeResponse. + :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 CreateOnceCodeResponse. + + :param x_request_id: The x_request_id of this CreateOnceCodeResponse. + :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, CreateOnceCodeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py index 5b8735b0b9..8b323c5009 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePhotoDetectionRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePhotoDetectionReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreatePhotoDetectionRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreatePhotoDetectionRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePhotoDetectionRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePhotoDetectionRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py index fd121d410e..106f431eee 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePhotoDigitalHumanVideoRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePhotoDigitalHumanVideoReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py index bfa5bee3e7..ac0d6ac061 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePictureModelingByUrlJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.PictureModelingByUrlReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreatePictureModelingByUrlJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreatePictureModelingByUrlJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePictureModelingByUrlJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePictureModelingByUrlJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py index faf9cd2aed..5e5240981a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePictureModelingJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequestBody` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreatePictureModelingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreatePictureModelingJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePictureModelingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePictureModelingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_req.py new file mode 100644 index 0000000000..2778c3903b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_req.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRobotReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'app_type': 'int', + 'concurrency': 'int', + 'huawei_ei_cbs': 'HuaweiEiCbs', + 'iflytek_aiui_config': 'IflytekAiuiConfig', + 'iflytek_spark': 'IflytekSpark' + } + + attribute_map = { + 'name': 'name', + 'app_type': 'app_type', + 'concurrency': 'concurrency', + 'huawei_ei_cbs': 'huawei_ei_cbs', + 'iflytek_aiui_config': 'iflytek_aiui_config', + 'iflytek_spark': 'iflytek_spark' + } + + def __init__(self, name=None, app_type=None, concurrency=None, huawei_ei_cbs=None, iflytek_aiui_config=None, iflytek_spark=None): + """CreateRobotReq + + The model defined in huaweicloud sdk + + :param name: 应用名称。 + :type name: str + :param app_type: 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + :type app_type: int + :param concurrency: 对话的并发数 + :type concurrency: int + :param huawei_ei_cbs: + :type huawei_ei_cbs: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + :param iflytek_aiui_config: + :type iflytek_aiui_config: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + :param iflytek_spark: + :type iflytek_spark: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + + + + self._name = None + self._app_type = None + self._concurrency = None + self._huawei_ei_cbs = None + self._iflytek_aiui_config = None + self._iflytek_spark = None + self.discriminator = None + + self.name = name + self.app_type = app_type + self.concurrency = concurrency + if huawei_ei_cbs is not None: + self.huawei_ei_cbs = huawei_ei_cbs + if iflytek_aiui_config is not None: + self.iflytek_aiui_config = iflytek_aiui_config + if iflytek_spark is not None: + self.iflytek_spark = iflytek_spark + + @property + def name(self): + """Gets the name of this CreateRobotReq. + + 应用名称。 + + :return: The name of this CreateRobotReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateRobotReq. + + 应用名称。 + + :param name: The name of this CreateRobotReq. + :type name: str + """ + self._name = name + + @property + def app_type(self): + """Gets the app_type of this CreateRobotReq. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :return: The app_type of this CreateRobotReq. + :rtype: int + """ + return self._app_type + + @app_type.setter + def app_type(self, app_type): + """Sets the app_type of this CreateRobotReq. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :param app_type: The app_type of this CreateRobotReq. + :type app_type: int + """ + self._app_type = app_type + + @property + def concurrency(self): + """Gets the concurrency of this CreateRobotReq. + + 对话的并发数 + + :return: The concurrency of this CreateRobotReq. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this CreateRobotReq. + + 对话的并发数 + + :param concurrency: The concurrency of this CreateRobotReq. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def huawei_ei_cbs(self): + """Gets the huawei_ei_cbs of this CreateRobotReq. + + :return: The huawei_ei_cbs of this CreateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + """ + return self._huawei_ei_cbs + + @huawei_ei_cbs.setter + def huawei_ei_cbs(self, huawei_ei_cbs): + """Sets the huawei_ei_cbs of this CreateRobotReq. + + :param huawei_ei_cbs: The huawei_ei_cbs of this CreateRobotReq. + :type huawei_ei_cbs: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + """ + self._huawei_ei_cbs = huawei_ei_cbs + + @property + def iflytek_aiui_config(self): + """Gets the iflytek_aiui_config of this CreateRobotReq. + + :return: The iflytek_aiui_config of this CreateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + """ + return self._iflytek_aiui_config + + @iflytek_aiui_config.setter + def iflytek_aiui_config(self, iflytek_aiui_config): + """Sets the iflytek_aiui_config of this CreateRobotReq. + + :param iflytek_aiui_config: The iflytek_aiui_config of this CreateRobotReq. + :type iflytek_aiui_config: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + """ + self._iflytek_aiui_config = iflytek_aiui_config + + @property + def iflytek_spark(self): + """Gets the iflytek_spark of this CreateRobotReq. + + :return: The iflytek_spark of this CreateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + return self._iflytek_spark + + @iflytek_spark.setter + def iflytek_spark(self, iflytek_spark): + """Sets the iflytek_spark of this CreateRobotReq. + + :param iflytek_spark: The iflytek_spark of this CreateRobotReq. + :type iflytek_spark: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + self._iflytek_spark = iflytek_spark + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRobotReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_request.py new file mode 100644 index 0000000000..4a49aae380 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRobotRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreateRobotReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateRobotRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateRobotRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateRobotReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this CreateRobotRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateRobotRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateRobotRequest. + + :return: The body of this CreateRobotRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateRobotReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateRobotRequest. + + :param body: The body of this CreateRobotRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateRobotReq` + """ + 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, CreateRobotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_response.py new file mode 100644 index 0000000000..68e5581d71 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_robot_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateRobotResponse(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 = { + 'robot_id': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, robot_id=None, x_request_id=None): + """CreateRobotResponse + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateRobotResponse, self).__init__() + + self._robot_id = None + self._x_request_id = None + self.discriminator = None + + if robot_id is not None: + self.robot_id = robot_id + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def robot_id(self): + """Gets the robot_id of this CreateRobotResponse. + + 应用ID。 + + :return: The robot_id of this CreateRobotResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this CreateRobotResponse. + + 应用ID。 + + :param robot_id: The robot_id of this CreateRobotResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateRobotResponse. + + :return: The x_request_id of this CreateRobotResponse. + :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 CreateRobotResponse. + + :param x_request_id: The x_request_id of this CreateRobotResponse. + :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, CreateRobotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_req.py new file mode 100644 index 0000000000..0bf772d3b3 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_req.py @@ -0,0 +1,383 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSmartChatRoomReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_name': 'str', + 'room_description': 'str', + 'video_config': 'VideoConfig', + 'model_asset_id': 'str', + 'voice_config': 'VoiceConfig', + 'robot_id': 'str', + 'concurrency': 'int', + 'background_config': 'BackgroundConfigInfo', + 'layer_config': 'list[LayerConfig]', + 'review_config': 'ReviewConfig', + 'chat_subtitle_config': 'ChatSubtitleConfig' + } + + attribute_map = { + 'room_name': 'room_name', + 'room_description': 'room_description', + 'video_config': 'video_config', + 'model_asset_id': 'model_asset_id', + 'voice_config': 'voice_config', + 'robot_id': 'robot_id', + 'concurrency': 'concurrency', + 'background_config': 'background_config', + 'layer_config': 'layer_config', + 'review_config': 'review_config', + 'chat_subtitle_config': 'chat_subtitle_config' + } + + def __init__(self, room_name=None, room_description=None, video_config=None, model_asset_id=None, voice_config=None, robot_id=None, concurrency=None, background_config=None, layer_config=None, review_config=None, chat_subtitle_config=None): + """CreateSmartChatRoomReq + + The model defined in huaweicloud sdk + + :param room_name: 直播间名称 + :type room_name: str + :param room_description: 直播间描述。 + :type room_description: str + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param robot_id: 机器人ID。 + :type robot_id: str + :param concurrency: 并发路数。 + :type concurrency: int + :param background_config: + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + :param layer_config: 图层配置。 + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param chat_subtitle_config: + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + + + + self._room_name = None + self._room_description = None + self._video_config = None + self._model_asset_id = None + self._voice_config = None + self._robot_id = None + self._concurrency = None + self._background_config = None + self._layer_config = None + self._review_config = None + self._chat_subtitle_config = None + self.discriminator = None + + self.room_name = room_name + if room_description is not None: + self.room_description = room_description + if video_config is not None: + self.video_config = video_config + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if voice_config is not None: + self.voice_config = voice_config + self.robot_id = robot_id + if concurrency is not None: + self.concurrency = concurrency + if background_config is not None: + self.background_config = background_config + if layer_config is not None: + self.layer_config = layer_config + if review_config is not None: + self.review_config = review_config + if chat_subtitle_config is not None: + self.chat_subtitle_config = chat_subtitle_config + + @property + def room_name(self): + """Gets the room_name of this CreateSmartChatRoomReq. + + 直播间名称 + + :return: The room_name of this CreateSmartChatRoomReq. + :rtype: str + """ + return self._room_name + + @room_name.setter + def room_name(self, room_name): + """Sets the room_name of this CreateSmartChatRoomReq. + + 直播间名称 + + :param room_name: The room_name of this CreateSmartChatRoomReq. + :type room_name: str + """ + self._room_name = room_name + + @property + def room_description(self): + """Gets the room_description of this CreateSmartChatRoomReq. + + 直播间描述。 + + :return: The room_description of this CreateSmartChatRoomReq. + :rtype: str + """ + return self._room_description + + @room_description.setter + def room_description(self, room_description): + """Sets the room_description of this CreateSmartChatRoomReq. + + 直播间描述。 + + :param room_description: The room_description of this CreateSmartChatRoomReq. + :type room_description: str + """ + self._room_description = room_description + + @property + def video_config(self): + """Gets the video_config of this CreateSmartChatRoomReq. + + :return: The video_config of this CreateSmartChatRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this CreateSmartChatRoomReq. + + :param video_config: The video_config of this CreateSmartChatRoomReq. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def model_asset_id(self): + """Gets the model_asset_id of this CreateSmartChatRoomReq. + + 数字人模型资产ID。 + + :return: The model_asset_id of this CreateSmartChatRoomReq. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this CreateSmartChatRoomReq. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this CreateSmartChatRoomReq. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def voice_config(self): + """Gets the voice_config of this CreateSmartChatRoomReq. + + :return: The voice_config of this CreateSmartChatRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this CreateSmartChatRoomReq. + + :param voice_config: The voice_config of this CreateSmartChatRoomReq. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def robot_id(self): + """Gets the robot_id of this CreateSmartChatRoomReq. + + 机器人ID。 + + :return: The robot_id of this CreateSmartChatRoomReq. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this CreateSmartChatRoomReq. + + 机器人ID。 + + :param robot_id: The robot_id of this CreateSmartChatRoomReq. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def concurrency(self): + """Gets the concurrency of this CreateSmartChatRoomReq. + + 并发路数。 + + :return: The concurrency of this CreateSmartChatRoomReq. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this CreateSmartChatRoomReq. + + 并发路数。 + + :param concurrency: The concurrency of this CreateSmartChatRoomReq. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def background_config(self): + """Gets the background_config of this CreateSmartChatRoomReq. + + :return: The background_config of this CreateSmartChatRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + return self._background_config + + @background_config.setter + def background_config(self, background_config): + """Sets the background_config of this CreateSmartChatRoomReq. + + :param background_config: The background_config of this CreateSmartChatRoomReq. + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + self._background_config = background_config + + @property + def layer_config(self): + """Gets the layer_config of this CreateSmartChatRoomReq. + + 图层配置。 + + :return: The layer_config of this CreateSmartChatRoomReq. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + return self._layer_config + + @layer_config.setter + def layer_config(self, layer_config): + """Sets the layer_config of this CreateSmartChatRoomReq. + + 图层配置。 + + :param layer_config: The layer_config of this CreateSmartChatRoomReq. + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + self._layer_config = layer_config + + @property + def review_config(self): + """Gets the review_config of this CreateSmartChatRoomReq. + + :return: The review_config of this CreateSmartChatRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreateSmartChatRoomReq. + + :param review_config: The review_config of this CreateSmartChatRoomReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def chat_subtitle_config(self): + """Gets the chat_subtitle_config of this CreateSmartChatRoomReq. + + :return: The chat_subtitle_config of this CreateSmartChatRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + return self._chat_subtitle_config + + @chat_subtitle_config.setter + def chat_subtitle_config(self, chat_subtitle_config): + """Sets the chat_subtitle_config of this CreateSmartChatRoomReq. + + :param chat_subtitle_config: The chat_subtitle_config of this CreateSmartChatRoomReq. + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + self._chat_subtitle_config = chat_subtitle_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, CreateSmartChatRoomReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_request.py new file mode 100644 index 0000000000..e32f86f697 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSmartChatRoomRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'CreateSmartChatRoomReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateSmartChatRoomRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateSmartChatRoomRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this CreateSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this CreateSmartChatRoomRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this CreateSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateSmartChatRoomRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateSmartChatRoomRequest. + + :return: The body of this CreateSmartChatRoomRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateSmartChatRoomRequest. + + :param body: The body of this CreateSmartChatRoomRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + 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, CreateSmartChatRoomRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_response.py new file mode 100644 index 0000000000..08b218e055 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_chat_room_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSmartChatRoomResponse(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 = { + 'room_id': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'room_id': 'room_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, room_id=None, x_request_id=None): + """CreateSmartChatRoomResponse + + The model defined in huaweicloud sdk + + :param room_id: 智能交互对话直播间ID + :type room_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateSmartChatRoomResponse, self).__init__() + + self._room_id = None + self._x_request_id = None + self.discriminator = None + + if room_id is not None: + self.room_id = room_id + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def room_id(self): + """Gets the room_id of this CreateSmartChatRoomResponse. + + 智能交互对话直播间ID + + :return: The room_id of this CreateSmartChatRoomResponse. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this CreateSmartChatRoomResponse. + + 智能交互对话直播间ID + + :param room_id: The room_id of this CreateSmartChatRoomResponse. + :type room_id: str + """ + self._room_id = room_id + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateSmartChatRoomResponse. + + :return: The x_request_id of this CreateSmartChatRoomResponse. + :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 CreateSmartChatRoomResponse. + + :param x_request_id: The x_request_id of this CreateSmartChatRoomResponse. + :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, CreateSmartChatRoomResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py index 26e1446429..4bf0ba7df8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateSmartLiveRoomRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartLiveRoomReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateSmartLiveRoomRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_advance_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_advance_job_request.py index f68fef8021..d24938bfbf 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_advance_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_advance_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateTrainingAdvanceJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateTrainingJobReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateTrainingAdvanceJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateTrainingAdvanceJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateTrainingAdvanceJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateTrainingAdvanceJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_basic_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_basic_job_request.py index 35d170dbce..93112c382b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_basic_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_basic_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateTrainingBasicJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateTrainingJobReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateTrainingBasicJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateTrainingBasicJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateTrainingBasicJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateTrainingBasicJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_middle_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_middle_job_request.py index 237d0fe21f..9a9a4ce296 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_middle_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_training_middle_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateTrainingMiddleJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateTrainingJobReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateTrainingMiddleJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateTrainingMiddleJobRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateTrainingMiddleJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateTrainingMiddleJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py index 862f31895b..2a992c30f1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateTtsaRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateTTSAReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateTtsaRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateTtsaRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateTtsaRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateTtsaRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py index 20217caa3a..5967d53df4 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, x_user_privilege=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param x_user_privilege: 测试用户判断。 :type x_user_privilege: str @@ -59,7 +59,7 @@ def __init__(self, x_app_user_id=None, x_user_privilege=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateVideoMotionCaptureJobRequest. :rtype: str @@ -70,7 +70,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py index 416062bbc6..d8e1ec2863 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateVideoScriptsRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateVideoScriptsReq` @@ -52,7 +52,7 @@ def __init__(self, x_app_user_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this CreateVideoScriptsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this CreateVideoScriptsRequest. :rtype: str @@ -63,7 +63,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateVideoScriptsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateVideoScriptsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete2d_model_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete2d_model_training_job_request.py index cefa354d7c..7dfcc84a59 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete2d_model_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete2d_model_training_job_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Delete2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Delete2dModelTrainingJobRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Delete2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Delete2dModelTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py index bb827ad1e4..d6dc5829f5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, asset_id=None, mode=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -58,7 +58,7 @@ def __init__(self, x_app_user_id=None, asset_id=None, mode=None): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteAssetRequest. :rtype: str @@ -69,7 +69,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py index 925a13cdf4..594bf98fc8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py index 100314d868..3639bc4f13 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, file_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param file_id: 文件ID。 :type file_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, file_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteFileRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteFileRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteFileRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteFileRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py index ef668082f0..4237445fc7 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py @@ -33,7 +33,7 @@ def __init__(self, group_id=None, x_app_user_id=None): :param group_id: 互动规则库ID。 :type group_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def group_id(self, group_id): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteInteractionRuleGroupRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteInteractionRuleGroupRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_request.py new file mode 100644 index 0000000000..7af2f64ca5 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRobotRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'body': 'list[str]' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """DeleteRobotRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the DeleteRobotRequest + :type body: list[str] + """ + + + + self._x_app_user_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this DeleteRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this DeleteRobotRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this DeleteRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this DeleteRobotRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this DeleteRobotRequest. + + :return: The body of this DeleteRobotRequest. + :rtype: list[str] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteRobotRequest. + + :param body: The body of this DeleteRobotRequest. + :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, DeleteRobotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_response.py new file mode 100644 index 0000000000..46fcad9d0e --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_robot_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRobotResponse(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 = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """DeleteRobotResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteRobotResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteRobotResponse. + + :return: The x_request_id of this DeleteRobotResponse. + :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 DeleteRobotResponse. + + :param x_request_id: The x_request_id of this DeleteRobotResponse. + :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, DeleteRobotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_request.py new file mode 100644 index 0000000000..128641a56d --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteSmartChatRoomRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_id': 'str', + 'x_app_user_id': 'str' + } + + attribute_map = { + 'room_id': 'room_id', + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, room_id=None, x_app_user_id=None): + """DeleteSmartChatRoomRequest + + The model defined in huaweicloud sdk + + :param room_id: 剧本ID。 + :type room_id: str + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._room_id = None + self._x_app_user_id = None + self.discriminator = None + + self.room_id = room_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def room_id(self): + """Gets the room_id of this DeleteSmartChatRoomRequest. + + 剧本ID。 + + :return: The room_id of this DeleteSmartChatRoomRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this DeleteSmartChatRoomRequest. + + 剧本ID。 + + :param room_id: The room_id of this DeleteSmartChatRoomRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this DeleteSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this DeleteSmartChatRoomRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this DeleteSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this DeleteSmartChatRoomRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_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, DeleteSmartChatRoomRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_response.py new file mode 100644 index 0000000000..bce7b7d0cb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_chat_room_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteSmartChatRoomResponse(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 = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """DeleteSmartChatRoomResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteSmartChatRoomResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteSmartChatRoomResponse. + + :return: The x_request_id of this DeleteSmartChatRoomResponse. + :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 DeleteSmartChatRoomResponse. + + :param x_request_id: The x_request_id of this DeleteSmartChatRoomResponse. + :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, DeleteSmartChatRoomResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py index 60add441e5..ac6474ad20 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py @@ -33,7 +33,7 @@ def __init__(self, room_id=None, x_app_user_id=None): :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def room_id(self, room_id): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteSmartLiveRoomRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py index d43372f9cd..b07862dacf 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, script_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, script_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteVideoScriptRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_voice_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_voice_training_job_request.py index fc67f9ac88..8464c73d69 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_voice_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_voice_training_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, job_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param job_id: 任务id。 :type job_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, job_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this DeleteVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this DeleteVoiceTrainingJobRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteVoiceTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute2d_model_training_command_by_user_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute2d_model_training_command_by_user_request.py index dade617f2d..093b56d974 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute2d_model_training_command_by_user_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute2d_model_training_command_by_user_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, body=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the Execute2dModelTrainingCommandByUserRequest :type body: :class:`huaweicloudsdkmetastudio.v1.Execute2dModelTrainingCommandByUserReq` @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Execute2dModelTrainingCommandByUserRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Execute2dModelTrainingCommandByUserRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Execute2dModelTrainingCommandByUserRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Execute2dModelTrainingCommandByUserRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py index cfbe092dde..f33b43cde6 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py @@ -39,7 +39,7 @@ def __init__(self, room_id=None, job_id=None, x_app_user_id=None, body=None): :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the ExecuteSmartLiveCommandRequest :type body: :class:`huaweicloudsdkmetastudio.v1.ControlSmartLiveReq` @@ -108,7 +108,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ExecuteSmartLiveCommandRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ExecuteSmartLiveCommandRequest. :rtype: str @@ -119,7 +119,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ExecuteSmartLiveCommandRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ExecuteSmartLiveCommandRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py index df7ca6322b..c51233cc55 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, body=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the ExecuteVideoMotionCaptureCommandRequest :type body: :class:`huaweicloudsdkmetastudio.v1.ControlDigitalHumanLiveReq` @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py new file mode 100644 index 0000000000..66da283187 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_cbs.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HuaweiEiCbs: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_id': 'str', + 'region': 'int', + 'cbs_project_id': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'region': 'region', + 'cbs_project_id': 'cbs_project_id' + } + + def __init__(self, app_id=None, region=None, cbs_project_id=None): + """HuaweiEiCbs + + The model defined in huaweicloud sdk + + :param app_id: CBS应用ID。 + :type app_id: str + :param region: CBS所在区域 + :type region: int + :param cbs_project_id: CBS所在区域的projectId + :type cbs_project_id: str + """ + + + + self._app_id = None + self._region = None + self._cbs_project_id = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if region is not None: + self.region = region + if cbs_project_id is not None: + self.cbs_project_id = cbs_project_id + + @property + def app_id(self): + """Gets the app_id of this HuaweiEiCbs. + + CBS应用ID。 + + :return: The app_id of this HuaweiEiCbs. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this HuaweiEiCbs. + + CBS应用ID。 + + :param app_id: The app_id of this HuaweiEiCbs. + :type app_id: str + """ + self._app_id = app_id + + @property + def region(self): + """Gets the region of this HuaweiEiCbs. + + CBS所在区域 + + :return: The region of this HuaweiEiCbs. + :rtype: int + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this HuaweiEiCbs. + + CBS所在区域 + + :param region: The region of this HuaweiEiCbs. + :type region: int + """ + self._region = region + + @property + def cbs_project_id(self): + """Gets the cbs_project_id of this HuaweiEiCbs. + + CBS所在区域的projectId + + :return: The cbs_project_id of this HuaweiEiCbs. + :rtype: str + """ + return self._cbs_project_id + + @cbs_project_id.setter + def cbs_project_id(self, cbs_project_id): + """Sets the cbs_project_id of this HuaweiEiCbs. + + CBS所在区域的projectId + + :param cbs_project_id: The cbs_project_id of this HuaweiEiCbs. + :type cbs_project_id: str + """ + self._cbs_project_id = cbs_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, HuaweiEiCbs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/application_model.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_aiui_config.py similarity index 58% rename from huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/application_model.py rename to huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_aiui_config.py index 225f385b14..588b73d772 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/application_model.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_aiui_config.py @@ -5,7 +5,7 @@ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ApplicationModel: +class IflytekAiuiConfig: """ Attributes: @@ -18,108 +18,108 @@ class ApplicationModel: openapi_types = { 'app_id': 'str', - 'app_name': 'str', - 'app_type': 'str' + 'app_key': 'str', + 'api_secret': 'str' } attribute_map = { 'app_id': 'app_id', - 'app_name': 'app_name', - 'app_type': 'app_type' + 'app_key': 'app_key', + 'api_secret': 'api_secret' } - def __init__(self, app_id=None, app_name=None, app_type=None): - """ApplicationModel + def __init__(self, app_id=None, app_key=None, api_secret=None): + """IflytekAiuiConfig The model defined in huaweicloud sdk - :param app_id: 应用id。 + :param app_id: AIUI应用ID。 :type app_id: str - :param app_name: 应用名称。 - :type app_name: str - :param app_type: 应用来源。 - :type app_type: str + :param app_key: AIUI应用密钥。 + :type app_key: str + :param api_secret: AIUI API密钥。 + :type api_secret: str """ self._app_id = None - self._app_name = None - self._app_type = None + self._app_key = None + self._api_secret = None self.discriminator = None if app_id is not None: self.app_id = app_id - if app_name is not None: - self.app_name = app_name - if app_type is not None: - self.app_type = app_type + if app_key is not None: + self.app_key = app_key + if api_secret is not None: + self.api_secret = api_secret @property def app_id(self): - """Gets the app_id of this ApplicationModel. + """Gets the app_id of this IflytekAiuiConfig. - 应用id。 + AIUI应用ID。 - :return: The app_id of this ApplicationModel. + :return: The app_id of this IflytekAiuiConfig. :rtype: str """ return self._app_id @app_id.setter def app_id(self, app_id): - """Sets the app_id of this ApplicationModel. + """Sets the app_id of this IflytekAiuiConfig. - 应用id。 + AIUI应用ID。 - :param app_id: The app_id of this ApplicationModel. + :param app_id: The app_id of this IflytekAiuiConfig. :type app_id: str """ self._app_id = app_id @property - def app_name(self): - """Gets the app_name of this ApplicationModel. + def app_key(self): + """Gets the app_key of this IflytekAiuiConfig. - 应用名称。 + AIUI应用密钥。 - :return: The app_name of this ApplicationModel. + :return: The app_key of this IflytekAiuiConfig. :rtype: str """ - return self._app_name + return self._app_key - @app_name.setter - def app_name(self, app_name): - """Sets the app_name of this ApplicationModel. + @app_key.setter + def app_key(self, app_key): + """Sets the app_key of this IflytekAiuiConfig. - 应用名称。 + AIUI应用密钥。 - :param app_name: The app_name of this ApplicationModel. - :type app_name: str + :param app_key: The app_key of this IflytekAiuiConfig. + :type app_key: str """ - self._app_name = app_name + self._app_key = app_key @property - def app_type(self): - """Gets the app_type of this ApplicationModel. + def api_secret(self): + """Gets the api_secret of this IflytekAiuiConfig. - 应用来源。 + AIUI API密钥。 - :return: The app_type of this ApplicationModel. + :return: The api_secret of this IflytekAiuiConfig. :rtype: str """ - return self._app_type + return self._api_secret - @app_type.setter - def app_type(self, app_type): - """Sets the app_type of this ApplicationModel. + @api_secret.setter + def api_secret(self, api_secret): + """Sets the api_secret of this IflytekAiuiConfig. - 应用来源。 + AIUI API密钥。 - :param app_type: The app_type of this ApplicationModel. - :type app_type: str + :param api_secret: The api_secret of this IflytekAiuiConfig. + :type api_secret: str """ - self._app_type = app_type + self._api_secret = api_secret def to_dict(self): """Returns the model properties as a dict""" @@ -163,7 +163,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ApplicationModel): + if not isinstance(other, IflytekAiuiConfig): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_spark.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_spark.py new file mode 100644 index 0000000000..c23464976c --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/iflytek_spark.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IflytekSpark: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_id': 'str', + 'app_key': 'str', + 'api_secret': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'app_key': 'app_key', + 'api_secret': 'api_secret' + } + + def __init__(self, app_id=None, app_key=None, api_secret=None): + """IflytekSpark + + The model defined in huaweicloud sdk + + :param app_id: 星火大模型应用ID。 + :type app_id: str + :param app_key: 星火大模型应用密钥。 + :type app_key: str + :param api_secret: 星火大模型API密钥。 + :type api_secret: str + """ + + + + self._app_id = None + self._app_key = None + self._api_secret = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if app_key is not None: + self.app_key = app_key + if api_secret is not None: + self.api_secret = api_secret + + @property + def app_id(self): + """Gets the app_id of this IflytekSpark. + + 星火大模型应用ID。 + + :return: The app_id of this IflytekSpark. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this IflytekSpark. + + 星火大模型应用ID。 + + :param app_id: The app_id of this IflytekSpark. + :type app_id: str + """ + self._app_id = app_id + + @property + def app_key(self): + """Gets the app_key of this IflytekSpark. + + 星火大模型应用密钥。 + + :return: The app_key of this IflytekSpark. + :rtype: str + """ + return self._app_key + + @app_key.setter + def app_key(self, app_key): + """Sets the app_key of this IflytekSpark. + + 星火大模型应用密钥。 + + :param app_key: The app_key of this IflytekSpark. + :type app_key: str + """ + self._app_key = app_key + + @property + def api_secret(self): + """Gets the api_secret of this IflytekSpark. + + 星火大模型API密钥。 + + :return: The api_secret of this IflytekSpark. + :rtype: str + """ + return self._api_secret + + @api_secret.setter + def api_secret(self, api_secret): + """Sets the api_secret of this IflytekSpark. + + 星火大模型API密钥。 + + :param api_secret: The api_secret of this IflytekSpark. + :type api_secret: str + """ + self._api_secret = api_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, IflytekSpark): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list2d_model_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list2d_model_training_job_request.py index f7ae1d8610..74de59a2cf 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list2d_model_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list2d_model_training_job_request.py @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -122,7 +122,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort def x_app_user_id(self): """Gets the x_app_user_id of this List2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this List2dModelTrainingJobRequest. :rtype: str @@ -133,7 +133,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this List2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this List2dModelTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py index f320ee6327..07e69c3766 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py @@ -63,7 +63,7 @@ def __init__(self, x_app_user_id=None, limit=None, offset=None, name=None, tag=N The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param limit: 每页显示的条目数量。 :type limit: int @@ -164,7 +164,7 @@ def __init__(self, x_app_user_id=None, limit=None, offset=None, name=None, tag=N def x_app_user_id(self): """Gets the x_app_user_id of this ListAssetsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListAssetsRequest. :rtype: str @@ -175,7 +175,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListAssetsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListAssetsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py index 081419f578..f01c802415 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py @@ -45,7 +45,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -101,7 +101,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort def x_app_user_id(self): """Gets the x_app_user_id of this ListDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListDigitalHumanBusinessCardRequest. :rtype: str @@ -112,7 +112,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py index 5594a5f297..bf6b418741 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py @@ -26,7 +26,8 @@ class ListDigitalHumanVideoRequest: 'create_until': 'str', 'create_since': 'str', 'script_id': 'str', - 'asset_name': 'str' + 'asset_name': 'str', + 'job_type': 'str' } attribute_map = { @@ -39,15 +40,16 @@ class ListDigitalHumanVideoRequest: 'create_until': 'create_until', 'create_since': 'create_since', 'script_id': 'script_id', - 'asset_name': 'asset_name' + 'asset_name': 'asset_name', + 'job_type': 'job_type' } - def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort_key=None, sort_dir=None, create_until=None, create_since=None, script_id=None, asset_name=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort_key=None, sort_dir=None, create_until=None, create_since=None, script_id=None, asset_name=None, job_type=None): """ListDigitalHumanVideoRequest The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -67,6 +69,8 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort :type script_id: str :param asset_name: 输出视频资产名称。 :type asset_name: str + :param job_type: 任务类型。 * 2D_DIGITAL_HUMAN_VIDEO: 分身数字人视频制作任务 * PHOTO_DIGITAL_HUMAN_VIDEO: 照片数字人视频制作任务 + :type job_type: str """ @@ -81,6 +85,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort self._create_since = None self._script_id = None self._asset_name = None + self._job_type = None self.discriminator = None if x_app_user_id is not None: @@ -103,12 +108,14 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort self.script_id = script_id if asset_name is not None: self.asset_name = asset_name + if job_type is not None: + self.job_type = job_type @property def x_app_user_id(self): """Gets the x_app_user_id of this ListDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListDigitalHumanVideoRequest. :rtype: str @@ -119,7 +126,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListDigitalHumanVideoRequest. :type x_app_user_id: str @@ -324,6 +331,28 @@ def asset_name(self, asset_name): """ self._asset_name = asset_name + @property + def job_type(self): + """Gets the job_type of this ListDigitalHumanVideoRequest. + + 任务类型。 * 2D_DIGITAL_HUMAN_VIDEO: 分身数字人视频制作任务 * PHOTO_DIGITAL_HUMAN_VIDEO: 照片数字人视频制作任务 + + :return: The job_type of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this ListDigitalHumanVideoRequest. + + 任务类型。 * 2D_DIGITAL_HUMAN_VIDEO: 分身数字人视频制作任务 * PHOTO_DIGITAL_HUMAN_VIDEO: 照片数字人视频制作任务 + + :param job_type: The job_type of this ListDigitalHumanVideoRequest. + :type job_type: str + """ + self._job_type = job_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py index 6cff2bf170..6e8352981e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py @@ -39,7 +39,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, create_since=Non The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -80,7 +80,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, create_since=Non def x_app_user_id(self): """Gets the x_app_user_id of this ListInteractionRuleGroupsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListInteractionRuleGroupsRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListInteractionRuleGroupsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListInteractionRuleGroupsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py index d5c79a781d..b8b8990779 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py @@ -43,7 +43,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -94,7 +94,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort def x_app_user_id(self): """Gets the x_app_user_id of this ListPictureModelingJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListPictureModelingJobsRequest. :rtype: str @@ -105,7 +105,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListPictureModelingJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListPictureModelingJobsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_request.py new file mode 100644 index 0000000000..e3d9c7a2d2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRobotRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, x_app_user_id=None, offset=None, limit=None): + """ListRobotRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param offset: 偏移量,表示从此偏移量开始查询。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + """ + + + + self._x_app_user_id = None + self._offset = None + self._limit = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this ListRobotRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ListRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListRobotRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def offset(self): + """Gets the offset of this ListRobotRequest. + + 偏移量,表示从此偏移量开始查询。 + + :return: The offset of this ListRobotRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRobotRequest. + + 偏移量,表示从此偏移量开始查询。 + + :param offset: The offset of this ListRobotRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListRobotRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListRobotRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRobotRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListRobotRequest. + :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, ListRobotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_response.py new file mode 100644 index 0000000000..7aa2f1e8ea --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_robot_response.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRobotResponse(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 = { + 'offset': 'int', + 'limit': 'int', + 'count': 'int', + 'data': 'list[RobotInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit', + 'count': 'count', + 'data': 'data', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, offset=None, limit=None, count=None, data=None, x_request_id=None): + """ListRobotResponse + + The model defined in huaweicloud sdk + + :param offset: 与第一条数据的偏移量 + :type offset: int + :param limit: 页面大小 + :type limit: int + :param count: 总数量 + :type count: int + :param data: 应用信息 + :type data: list[:class:`huaweicloudsdkmetastudio.v1.RobotInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListRobotResponse, self).__init__() + + self._offset = None + self._limit = None + self._count = None + self._data = None + self._x_request_id = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if count is not None: + self.count = count + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def offset(self): + """Gets the offset of this ListRobotResponse. + + 与第一条数据的偏移量 + + :return: The offset of this ListRobotResponse. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRobotResponse. + + 与第一条数据的偏移量 + + :param offset: The offset of this ListRobotResponse. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListRobotResponse. + + 页面大小 + + :return: The limit of this ListRobotResponse. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRobotResponse. + + 页面大小 + + :param limit: The limit of this ListRobotResponse. + :type limit: int + """ + self._limit = limit + + @property + def count(self): + """Gets the count of this ListRobotResponse. + + 总数量 + + :return: The count of this ListRobotResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListRobotResponse. + + 总数量 + + :param count: The count of this ListRobotResponse. + :type count: int + """ + self._count = count + + @property + def data(self): + """Gets the data of this ListRobotResponse. + + 应用信息 + + :return: The data of this ListRobotResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.RobotInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListRobotResponse. + + 应用信息 + + :param data: The data of this ListRobotResponse. + :type data: list[:class:`huaweicloudsdkmetastudio.v1.RobotInfo`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListRobotResponse. + + :return: The x_request_id of this ListRobotResponse. + :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 ListRobotResponse. + + :param x_request_id: The x_request_id of this ListRobotResponse. + :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, ListRobotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_request.py new file mode 100644 index 0000000000..87a3b43909 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSmartChatRoomsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'room_name': 'str', + 'model_name': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'offset': 'offset', + 'limit': 'limit', + 'room_name': 'room_name', + 'model_name': 'model_name', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, x_app_user_id=None, offset=None, limit=None, room_name=None, model_name=None, start_time=None, end_time=None): + """ListSmartChatRoomsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param offset: 偏移量,表示从此偏移量开始查询。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + :param room_name: 按智能交互对话直播间名称模糊查询。 + :type room_name: str + :param model_name: 按形象名称模糊查询。 + :type model_name: str + :param start_time: 最近智能交互对话任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type start_time: str + :param end_time: 最近智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 + :type end_time: str + """ + + + + self._x_app_user_id = None + self._offset = None + self._limit = None + self._room_name = None + self._model_name = None + self._start_time = None + self._end_time = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if room_name is not None: + self.room_name = room_name + if model_name is not None: + self.model_name = model_name + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListSmartChatRoomsRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this ListSmartChatRoomsRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ListSmartChatRoomsRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListSmartChatRoomsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def offset(self): + """Gets the offset of this ListSmartChatRoomsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :return: The offset of this ListSmartChatRoomsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListSmartChatRoomsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :param offset: The offset of this ListSmartChatRoomsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListSmartChatRoomsRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListSmartChatRoomsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListSmartChatRoomsRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListSmartChatRoomsRequest. + :type limit: int + """ + self._limit = limit + + @property + def room_name(self): + """Gets the room_name of this ListSmartChatRoomsRequest. + + 按智能交互对话直播间名称模糊查询。 + + :return: The room_name of this ListSmartChatRoomsRequest. + :rtype: str + """ + return self._room_name + + @room_name.setter + def room_name(self, room_name): + """Sets the room_name of this ListSmartChatRoomsRequest. + + 按智能交互对话直播间名称模糊查询。 + + :param room_name: The room_name of this ListSmartChatRoomsRequest. + :type room_name: str + """ + self._room_name = room_name + + @property + def model_name(self): + """Gets the model_name of this ListSmartChatRoomsRequest. + + 按形象名称模糊查询。 + + :return: The model_name of this ListSmartChatRoomsRequest. + :rtype: str + """ + return self._model_name + + @model_name.setter + def model_name(self, model_name): + """Sets the model_name of this ListSmartChatRoomsRequest. + + 按形象名称模糊查询。 + + :param model_name: The model_name of this ListSmartChatRoomsRequest. + :type model_name: str + """ + self._model_name = model_name + + @property + def start_time(self): + """Gets the start_time of this ListSmartChatRoomsRequest. + + 最近智能交互对话任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The start_time of this ListSmartChatRoomsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListSmartChatRoomsRequest. + + 最近智能交互对话任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param start_time: The start_time of this ListSmartChatRoomsRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListSmartChatRoomsRequest. + + 最近智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 + + :return: The end_time of this ListSmartChatRoomsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListSmartChatRoomsRequest. + + 最近智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 + + :param end_time: The end_time of this ListSmartChatRoomsRequest. + :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, ListSmartChatRoomsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_response.py new file mode 100644 index 0000000000..7b461086c4 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_chat_rooms_response.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSmartChatRoomsResponse(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', + 'smart_chat_rooms': 'list[SmartChatRoomBaseInfo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'smart_chat_rooms': 'smart_chat_rooms', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, count=None, smart_chat_rooms=None, x_request_id=None): + """ListSmartChatRoomsResponse + + The model defined in huaweicloud sdk + + :param count: 智能交互对话直播间总数。 + :type count: int + :param smart_chat_rooms: 智能交互对话直播间列表。 + :type smart_chat_rooms: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatRoomBaseInfo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListSmartChatRoomsResponse, self).__init__() + + self._count = None + self._smart_chat_rooms = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if smart_chat_rooms is not None: + self.smart_chat_rooms = smart_chat_rooms + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListSmartChatRoomsResponse. + + 智能交互对话直播间总数。 + + :return: The count of this ListSmartChatRoomsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListSmartChatRoomsResponse. + + 智能交互对话直播间总数。 + + :param count: The count of this ListSmartChatRoomsResponse. + :type count: int + """ + self._count = count + + @property + def smart_chat_rooms(self): + """Gets the smart_chat_rooms of this ListSmartChatRoomsResponse. + + 智能交互对话直播间列表。 + + :return: The smart_chat_rooms of this ListSmartChatRoomsResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatRoomBaseInfo`] + """ + return self._smart_chat_rooms + + @smart_chat_rooms.setter + def smart_chat_rooms(self, smart_chat_rooms): + """Sets the smart_chat_rooms of this ListSmartChatRoomsResponse. + + 智能交互对话直播间列表。 + + :param smart_chat_rooms: The smart_chat_rooms of this ListSmartChatRoomsResponse. + :type smart_chat_rooms: list[:class:`huaweicloudsdkmetastudio.v1.SmartChatRoomBaseInfo`] + """ + self._smart_chat_rooms = smart_chat_rooms + + @property + def x_request_id(self): + """Gets the x_request_id of this ListSmartChatRoomsResponse. + + :return: The x_request_id of this ListSmartChatRoomsResponse. + :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 ListSmartChatRoomsResponse. + + :param x_request_id: The x_request_id of this ListSmartChatRoomsResponse. + :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, ListSmartChatRoomsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py index 6c694a895d..1bfb303c22 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py @@ -47,7 +47,7 @@ def __init__(self, room_id=None, x_app_user_id=None, offset=None, limit=None, st :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -122,7 +122,7 @@ def room_id(self, room_id): def x_app_user_id(self): """Gets the x_app_user_id of this ListSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListSmartLiveRequest. :rtype: str @@ -133,7 +133,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py index f200c6185e..3e2b760e41 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py @@ -47,7 +47,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, room_name=None, The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -108,7 +108,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, room_name=None, def x_app_user_id(self): """Gets the x_app_user_id of this ListSmartLiveRoomsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListSmartLiveRoomsRequest. :rtype: str @@ -119,7 +119,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListSmartLiveRoomsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListSmartLiveRoomsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py index dbb08b5e1c..7545643b1f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py @@ -43,7 +43,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -94,7 +94,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort def x_app_user_id(self): """Gets the x_app_user_id of this ListStylesRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListStylesRequest. :rtype: str @@ -105,7 +105,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListStylesRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListStylesRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py index 215d7b69ca..331a2e756b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -59,7 +59,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None): def x_app_user_id(self): """Gets the x_app_user_id of this ListTtsaJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListTtsaJobsRequest. :rtype: str @@ -70,7 +70,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListTtsaJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListTtsaJobsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py index a7d9451ebe..d4714c55fe 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -59,7 +59,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None): def x_app_user_id(self): """Gets the x_app_user_id of this ListVideoMotionCaptureJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListVideoMotionCaptureJobsRequest. :rtype: str @@ -70,7 +70,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListVideoMotionCaptureJobsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListVideoMotionCaptureJobsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py index fea89d0d8a..1dfa1f0924 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py @@ -39,7 +39,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, name=None, scrip The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -80,7 +80,7 @@ def __init__(self, x_app_user_id=None, offset=None, limit=None, name=None, scrip def x_app_user_id(self): """Gets the x_app_user_id of this ListVideoScriptsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListVideoScriptsRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListVideoScriptsRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListVideoScriptsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_voice_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_voice_training_job_request.py index eba38635e5..cc785b59d5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_voice_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_voice_training_job_request.py @@ -53,7 +53,7 @@ def __init__(self, offset=None, limit=None, create_until=None, create_since=None :type create_until: str :param create_since: 过滤创建时间>=输入时间的记录。 :type create_since: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param state: 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=FAILED,WAITING :type state: str @@ -189,7 +189,7 @@ def create_since(self, create_since): def x_app_user_id(self): """Gets the x_app_user_id of this ListVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ListVoiceTrainingJobRequest. :rtype: str @@ -200,7 +200,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListVoiceTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py index 7be5b02c72..d65a96860f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py @@ -45,7 +45,7 @@ def __init__(self, room_id=None, job_id=None, x_app_user_id=None, auth_key=None, :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param auth_key: 鉴权Key。通过HmacSHA256生成的鉴权key :type auth_key: str @@ -129,7 +129,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this LiveEventReportRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this LiveEventReportRequest. :rtype: str @@ -140,7 +140,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this LiveEventReportRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this LiveEventReportRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pages.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pages.py new file mode 100644 index 0000000000..c5426ace83 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/pages.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Pages: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'offset': 'int', + 'limit': 'int', + 'count': 'int' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit', + 'count': 'count' + } + + def __init__(self, offset=None, limit=None, count=None): + """Pages + + The model defined in huaweicloud sdk + + :param offset: 与第一条数据的偏移量 + :type offset: int + :param limit: 页面大小 + :type limit: int + :param count: 总数量 + :type count: int + """ + + + + self._offset = None + self._limit = None + self._count = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if count is not None: + self.count = count + + @property + def offset(self): + """Gets the offset of this Pages. + + 与第一条数据的偏移量 + + :return: The offset of this Pages. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this Pages. + + 与第一条数据的偏移量 + + :param offset: The offset of this Pages. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this Pages. + + 页面大小 + + :return: The limit of this Pages. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this Pages. + + 页面大小 + + :param limit: The limit of this Pages. + :type limit: int + """ + self._limit = limit + + @property + def count(self): + """Gets the count of this Pages. + + 总数量 + + :return: The count of this Pages. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this Pages. + + 总数量 + + :param count: The count of this Pages. + :type count: int + """ + self._count = 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, Pages): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py index 7c2fa6cc03..699fc3f92d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, asset_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, asset_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this RestoreAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this RestoreAssetRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this RestoreAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this RestoreAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/robot_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/robot_info.py new file mode 100644 index 0000000000..6eb3f114c9 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/robot_info.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RobotInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'robot_id': 'str', + 'name': 'str', + 'app_id': 'str', + 'app_type': 'int', + 'concurrency': 'int', + 'create_time': 'str', + 'update_time': 'str', + 'region': 'int', + 'cbs_project_id': 'str' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'name': 'name', + 'app_id': 'app_id', + 'app_type': 'app_type', + 'concurrency': 'concurrency', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'region': 'region', + 'cbs_project_id': 'cbs_project_id' + } + + def __init__(self, robot_id=None, name=None, app_id=None, app_type=None, concurrency=None, create_time=None, update_time=None, region=None, cbs_project_id=None): + """RobotInfo + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param name: 应用名称。 + :type name: str + :param app_id: 第三方应用ID。 + :type app_id: str + :param app_type: 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + :type app_type: int + :param concurrency: 对话的并发数 + :type concurrency: int + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param region: CBS所在区域 + :type region: int + :param cbs_project_id: CBS所在区域的projectId + :type cbs_project_id: str + """ + + + + self._robot_id = None + self._name = None + self._app_id = None + self._app_type = None + self._concurrency = None + self._create_time = None + self._update_time = None + self._region = None + self._cbs_project_id = None + self.discriminator = None + + if robot_id is not None: + self.robot_id = robot_id + if name is not None: + self.name = name + if app_id is not None: + self.app_id = app_id + if app_type is not None: + self.app_type = app_type + if concurrency is not None: + self.concurrency = concurrency + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if region is not None: + self.region = region + if cbs_project_id is not None: + self.cbs_project_id = cbs_project_id + + @property + def robot_id(self): + """Gets the robot_id of this RobotInfo. + + 应用ID。 + + :return: The robot_id of this RobotInfo. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this RobotInfo. + + 应用ID。 + + :param robot_id: The robot_id of this RobotInfo. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def name(self): + """Gets the name of this RobotInfo. + + 应用名称。 + + :return: The name of this RobotInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this RobotInfo. + + 应用名称。 + + :param name: The name of this RobotInfo. + :type name: str + """ + self._name = name + + @property + def app_id(self): + """Gets the app_id of this RobotInfo. + + 第三方应用ID。 + + :return: The app_id of this RobotInfo. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this RobotInfo. + + 第三方应用ID。 + + :param app_id: The app_id of this RobotInfo. + :type app_id: str + """ + self._app_id = app_id + + @property + def app_type(self): + """Gets the app_type of this RobotInfo. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :return: The app_type of this RobotInfo. + :rtype: int + """ + return self._app_type + + @app_type.setter + def app_type(self, app_type): + """Sets the app_type of this RobotInfo. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :param app_type: The app_type of this RobotInfo. + :type app_type: int + """ + self._app_type = app_type + + @property + def concurrency(self): + """Gets the concurrency of this RobotInfo. + + 对话的并发数 + + :return: The concurrency of this RobotInfo. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this RobotInfo. + + 对话的并发数 + + :param concurrency: The concurrency of this RobotInfo. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def create_time(self): + """Gets the create_time of this RobotInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this RobotInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this RobotInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this RobotInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this RobotInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this RobotInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this RobotInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this RobotInfo. + :type update_time: str + """ + self._update_time = update_time + + @property + def region(self): + """Gets the region of this RobotInfo. + + CBS所在区域 + + :return: The region of this RobotInfo. + :rtype: int + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this RobotInfo. + + CBS所在区域 + + :param region: The region of this RobotInfo. + :type region: int + """ + self._region = region + + @property + def cbs_project_id(self): + """Gets the cbs_project_id of this RobotInfo. + + CBS所在区域的projectId + + :return: The cbs_project_id of this RobotInfo. + :rtype: str + """ + return self._cbs_project_id + + @cbs_project_id.setter + def cbs_project_id(self, cbs_project_id): + """Sets the cbs_project_id of this RobotInfo. + + CBS所在区域的projectId + + :param cbs_project_id: The cbs_project_id of this RobotInfo. + :type cbs_project_id: str + """ + self._cbs_project_id = cbs_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, RobotInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py index b01f3a8e35..9b152e7843 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, show_script=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param show_script: 是否需要返回剧本参数配置。 :type show_script: bool @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Show2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Show2DDigitalHumanVideoRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Show2DDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Show2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_request.py index abc2cca3f6..7233c208d6 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2d_model_training_job_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Show2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Show2dModelTrainingJobRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Show2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Show2dModelTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py index 420b7684d8..05d2b54817 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, asset_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, asset_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this ShowAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowAssetRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py index 2ab2d2ec9b..0204d84167 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowDigitalHumanBusinessCardRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py index 28356a18b4..28d0db037f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowPhotoDetectionRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowPhotoDetectionRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPhotoDetectionRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPhotoDetectionRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py index 4de2d65a1c..0d1c6126c3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, show_script=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param show_script: 是否需要返回剧本参数配置。 :type show_script: bool @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py index 94e7d59e11..378f469a6a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowPictureModelingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowPictureModelingJobRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPictureModelingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPictureModelingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_request.py new file mode 100644 index 0000000000..55f4530fec --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRobotRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'robot_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'robot_id': 'robot_id' + } + + def __init__(self, x_app_user_id=None, robot_id=None): + """ShowRobotRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param robot_id: 应用ID。 + :type robot_id: str + """ + + + + self._x_app_user_id = None + self._robot_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.robot_id = robot_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this ShowRobotRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowRobotRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def robot_id(self): + """Gets the robot_id of this ShowRobotRequest. + + 应用ID。 + + :return: The robot_id of this ShowRobotRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowRobotRequest. + + 应用ID。 + + :param robot_id: The robot_id of this ShowRobotRequest. + :type robot_id: str + """ + self._robot_id = robot_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, ShowRobotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_response.py new file mode 100644 index 0000000000..6264f69ab6 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_robot_response.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRobotResponse(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 = { + 'robot_id': 'str', + 'name': 'str', + 'app_id': 'str', + 'app_type': 'int', + 'concurrency': 'int', + 'create_time': 'str', + 'update_time': 'str', + 'region': 'int', + 'cbs_project_id': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'robot_id': 'robot_id', + 'name': 'name', + 'app_id': 'app_id', + 'app_type': 'app_type', + 'concurrency': 'concurrency', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'region': 'region', + 'cbs_project_id': 'cbs_project_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, robot_id=None, name=None, app_id=None, app_type=None, concurrency=None, create_time=None, update_time=None, region=None, cbs_project_id=None, x_request_id=None): + """ShowRobotResponse + + The model defined in huaweicloud sdk + + :param robot_id: 应用ID。 + :type robot_id: str + :param name: 应用名称。 + :type name: str + :param app_id: 第三方应用ID。 + :type app_id: str + :param app_type: 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + :type app_type: int + :param concurrency: 对话的并发数 + :type concurrency: int + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param region: CBS所在区域 + :type region: int + :param cbs_project_id: CBS所在区域的projectId + :type cbs_project_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(ShowRobotResponse, self).__init__() + + self._robot_id = None + self._name = None + self._app_id = None + self._app_type = None + self._concurrency = None + self._create_time = None + self._update_time = None + self._region = None + self._cbs_project_id = None + self._x_request_id = None + self.discriminator = None + + if robot_id is not None: + self.robot_id = robot_id + if name is not None: + self.name = name + if app_id is not None: + self.app_id = app_id + if app_type is not None: + self.app_type = app_type + if concurrency is not None: + self.concurrency = concurrency + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if region is not None: + self.region = region + if cbs_project_id is not None: + self.cbs_project_id = cbs_project_id + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def robot_id(self): + """Gets the robot_id of this ShowRobotResponse. + + 应用ID。 + + :return: The robot_id of this ShowRobotResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowRobotResponse. + + 应用ID。 + + :param robot_id: The robot_id of this ShowRobotResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def name(self): + """Gets the name of this ShowRobotResponse. + + 应用名称。 + + :return: The name of this ShowRobotResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowRobotResponse. + + 应用名称。 + + :param name: The name of this ShowRobotResponse. + :type name: str + """ + self._name = name + + @property + def app_id(self): + """Gets the app_id of this ShowRobotResponse. + + 第三方应用ID。 + + :return: The app_id of this ShowRobotResponse. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this ShowRobotResponse. + + 第三方应用ID。 + + :param app_id: The app_id of this ShowRobotResponse. + :type app_id: str + """ + self._app_id = app_id + + @property + def app_type(self): + """Gets the app_type of this ShowRobotResponse. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :return: The app_type of this ShowRobotResponse. + :rtype: int + """ + return self._app_type + + @app_type.setter + def app_type(self, app_type): + """Sets the app_type of this ShowRobotResponse. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :param app_type: The app_type of this ShowRobotResponse. + :type app_type: int + """ + self._app_type = app_type + + @property + def concurrency(self): + """Gets the concurrency of this ShowRobotResponse. + + 对话的并发数 + + :return: The concurrency of this ShowRobotResponse. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this ShowRobotResponse. + + 对话的并发数 + + :param concurrency: The concurrency of this ShowRobotResponse. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def create_time(self): + """Gets the create_time of this ShowRobotResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this ShowRobotResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowRobotResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this ShowRobotResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowRobotResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this ShowRobotResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowRobotResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this ShowRobotResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def region(self): + """Gets the region of this ShowRobotResponse. + + CBS所在区域 + + :return: The region of this ShowRobotResponse. + :rtype: int + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this ShowRobotResponse. + + CBS所在区域 + + :param region: The region of this ShowRobotResponse. + :type region: int + """ + self._region = region + + @property + def cbs_project_id(self): + """Gets the cbs_project_id of this ShowRobotResponse. + + CBS所在区域的projectId + + :return: The cbs_project_id of this ShowRobotResponse. + :rtype: str + """ + return self._cbs_project_id + + @cbs_project_id.setter + def cbs_project_id(self, cbs_project_id): + """Sets the cbs_project_id of this ShowRobotResponse. + + CBS所在区域的projectId + + :param cbs_project_id: The cbs_project_id of this ShowRobotResponse. + :type cbs_project_id: str + """ + self._cbs_project_id = cbs_project_id + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowRobotResponse. + + :return: The x_request_id of this ShowRobotResponse. + :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 ShowRobotResponse. + + :param x_request_id: The x_request_id of this ShowRobotResponse. + :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, ShowRobotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py new file mode 100644 index 0000000000..7e6ed323a0 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSmartChatJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'room_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'room_id': 'room_id', + 'job_id': 'job_id' + } + + def __init__(self, x_app_user_id=None, room_id=None, job_id=None): + """ShowSmartChatJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param room_id: 直播间ID。 + :type room_id: str + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._x_app_user_id = None + self._room_id = None + self._job_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.room_id = room_id + self.job_id = job_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this ShowSmartChatJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowSmartChatJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def room_id(self): + """Gets the room_id of this ShowSmartChatJobRequest. + + 直播间ID。 + + :return: The room_id of this ShowSmartChatJobRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this ShowSmartChatJobRequest. + + 直播间ID。 + + :param room_id: The room_id of this ShowSmartChatJobRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def job_id(self): + """Gets the job_id of this ShowSmartChatJobRequest. + + 任务ID。 + + :return: The job_id of this ShowSmartChatJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowSmartChatJobRequest. + + 任务ID。 + + :param job_id: The job_id of this ShowSmartChatJobRequest. + :type job_id: str + """ + self._job_id = job_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, ShowSmartChatJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py new file mode 100644 index 0000000000..be9f391778 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_job_response.py @@ -0,0 +1,415 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSmartChatJobResponse(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 = { + 'job_id': 'str', + 'state': 'str', + 'duration': 'float', + 'start_time': 'str', + 'end_time': 'str', + 'error_info': 'ErrorResponse', + 'create_time': 'str', + 'lastupdate_time': 'str', + 'rtc_room_info': 'RTCRoomInfoList', + 'chat_subtitle_config': 'ChatSubtitleConfig', + 'video_config': 'ChatVideoConfigRsp', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'state': 'state', + 'duration': 'duration', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'error_info': 'error_info', + 'create_time': 'create_time', + 'lastupdate_time': 'lastupdate_time', + 'rtc_room_info': 'rtc_room_info', + 'chat_subtitle_config': 'chat_subtitle_config', + 'video_config': 'video_config', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, x_request_id=None): + """ShowSmartChatJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 数字人智能交互对话任务ID。 + :type job_id: str + :param state: 数字人智能交互对话任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * CANCELED: 取消 * HEARTBEAT: 心跳 + :type state: str + :param duration: 数字人智能交互对话时长,单位秒。 + :type duration: float + :param start_time: 数字人智能交互对话任务开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type start_time: str + :param end_time: 数字人智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type end_time: str + :param error_info: + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + :param create_time: 数字人智能交互对话任务创建时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param lastupdate_time: 数字人智能交互对话任务最后更新时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type lastupdate_time: str + :param rtc_room_info: + :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + :param chat_subtitle_config: + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + :param x_request_id: + :type x_request_id: str + """ + + super(ShowSmartChatJobResponse, self).__init__() + + self._job_id = None + self._state = None + self._duration = None + self._start_time = None + self._end_time = None + self._error_info = None + self._create_time = None + self._lastupdate_time = None + self._rtc_room_info = None + self._chat_subtitle_config = None + self._video_config = None + self._x_request_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if state is not None: + self.state = state + if duration is not None: + self.duration = duration + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if error_info is not None: + self.error_info = error_info + if create_time is not None: + self.create_time = create_time + if lastupdate_time is not None: + self.lastupdate_time = lastupdate_time + if rtc_room_info is not None: + self.rtc_room_info = rtc_room_info + if chat_subtitle_config is not None: + self.chat_subtitle_config = chat_subtitle_config + if video_config is not None: + self.video_config = video_config + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def job_id(self): + """Gets the job_id of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务ID。 + + :return: The job_id of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务ID。 + + :param job_id: The job_id of this ShowSmartChatJobResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def state(self): + """Gets the state of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * CANCELED: 取消 * HEARTBEAT: 心跳 + + :return: The state of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * CANCELED: 取消 * HEARTBEAT: 心跳 + + :param state: The state of this ShowSmartChatJobResponse. + :type state: str + """ + self._state = state + + @property + def duration(self): + """Gets the duration of this ShowSmartChatJobResponse. + + 数字人智能交互对话时长,单位秒。 + + :return: The duration of this ShowSmartChatJobResponse. + :rtype: float + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this ShowSmartChatJobResponse. + + 数字人智能交互对话时长,单位秒。 + + :param duration: The duration of this ShowSmartChatJobResponse. + :type duration: float + """ + self._duration = duration + + @property + def start_time(self): + """Gets the start_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The start_time of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param start_time: The start_time of this ShowSmartChatJobResponse. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The end_time of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param end_time: The end_time of this ShowSmartChatJobResponse. + :type end_time: str + """ + self._end_time = end_time + + @property + def error_info(self): + """Gets the error_info of this ShowSmartChatJobResponse. + + :return: The error_info of this ShowSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + return self._error_info + + @error_info.setter + def error_info(self, error_info): + """Sets the error_info of this ShowSmartChatJobResponse. + + :param error_info: The error_info of this ShowSmartChatJobResponse. + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + self._error_info = error_info + + @property + def create_time(self): + """Gets the create_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务创建时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务创建时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this ShowSmartChatJobResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def lastupdate_time(self): + """Gets the lastupdate_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务最后更新时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The lastupdate_time of this ShowSmartChatJobResponse. + :rtype: str + """ + return self._lastupdate_time + + @lastupdate_time.setter + def lastupdate_time(self, lastupdate_time): + """Sets the lastupdate_time of this ShowSmartChatJobResponse. + + 数字人智能交互对话任务最后更新时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param lastupdate_time: The lastupdate_time of this ShowSmartChatJobResponse. + :type lastupdate_time: str + """ + self._lastupdate_time = lastupdate_time + + @property + def rtc_room_info(self): + """Gets the rtc_room_info of this ShowSmartChatJobResponse. + + :return: The rtc_room_info of this ShowSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + """ + return self._rtc_room_info + + @rtc_room_info.setter + def rtc_room_info(self, rtc_room_info): + """Sets the rtc_room_info of this ShowSmartChatJobResponse. + + :param rtc_room_info: The rtc_room_info of this ShowSmartChatJobResponse. + :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + """ + self._rtc_room_info = rtc_room_info + + @property + def chat_subtitle_config(self): + """Gets the chat_subtitle_config of this ShowSmartChatJobResponse. + + :return: The chat_subtitle_config of this ShowSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + return self._chat_subtitle_config + + @chat_subtitle_config.setter + def chat_subtitle_config(self, chat_subtitle_config): + """Sets the chat_subtitle_config of this ShowSmartChatJobResponse. + + :param chat_subtitle_config: The chat_subtitle_config of this ShowSmartChatJobResponse. + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + self._chat_subtitle_config = chat_subtitle_config + + @property + def video_config(self): + """Gets the video_config of this ShowSmartChatJobResponse. + + :return: The video_config of this ShowSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this ShowSmartChatJobResponse. + + :param video_config: The video_config of this ShowSmartChatJobResponse. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + """ + self._video_config = video_config + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowSmartChatJobResponse. + + :return: The x_request_id of this ShowSmartChatJobResponse. + :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 ShowSmartChatJobResponse. + + :param x_request_id: The x_request_id of this ShowSmartChatJobResponse. + :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, ShowSmartChatJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_request.py new file mode 100644 index 0000000000..441607b1a9 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSmartChatRoomRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_id': 'str', + 'x_app_user_id': 'str' + } + + attribute_map = { + 'room_id': 'room_id', + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, room_id=None, x_app_user_id=None): + """ShowSmartChatRoomRequest + + The model defined in huaweicloud sdk + + :param room_id: 剧本ID。 + :type room_id: str + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._room_id = None + self._x_app_user_id = None + self.discriminator = None + + self.room_id = room_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def room_id(self): + """Gets the room_id of this ShowSmartChatRoomRequest. + + 剧本ID。 + + :return: The room_id of this ShowSmartChatRoomRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this ShowSmartChatRoomRequest. + + 剧本ID。 + + :param room_id: The room_id of this ShowSmartChatRoomRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ShowSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this ShowSmartChatRoomRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this ShowSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ShowSmartChatRoomRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_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, ShowSmartChatRoomRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_response.py new file mode 100644 index 0000000000..6e1e1dc13a --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_chat_room_response.py @@ -0,0 +1,525 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowSmartChatRoomResponse(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 = { + 'room_name': 'str', + 'room_description': 'str', + 'video_config': 'VideoConfig', + 'model_asset_id': 'str', + 'voice_config': 'VoiceConfig', + 'robot_id': 'str', + 'concurrency': 'int', + 'background_config': 'BackgroundConfigInfo', + 'layer_config': 'list[LayerConfig]', + 'review_config': 'ReviewConfig', + 'chat_subtitle_config': 'ChatSubtitleConfig', + 'room_id': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'cover_url': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'room_name': 'room_name', + 'room_description': 'room_description', + 'video_config': 'video_config', + 'model_asset_id': 'model_asset_id', + 'voice_config': 'voice_config', + 'robot_id': 'robot_id', + 'concurrency': 'concurrency', + 'background_config': 'background_config', + 'layer_config': 'layer_config', + 'review_config': 'review_config', + 'chat_subtitle_config': 'chat_subtitle_config', + 'room_id': 'room_id', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'cover_url': 'cover_url', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, room_name=None, room_description=None, video_config=None, model_asset_id=None, voice_config=None, robot_id=None, concurrency=None, background_config=None, layer_config=None, review_config=None, chat_subtitle_config=None, room_id=None, create_time=None, update_time=None, cover_url=None, x_request_id=None): + """ShowSmartChatRoomResponse + + The model defined in huaweicloud sdk + + :param room_name: 直播间名称 + :type room_name: str + :param room_description: 直播间描述。 + :type room_description: str + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param robot_id: 机器人ID。 + :type robot_id: str + :param concurrency: 并发路数。 + :type concurrency: int + :param background_config: + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + :param layer_config: 图层配置。 + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param chat_subtitle_config: + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + :param room_id: 直播间ID + :type room_id: str + :param create_time: 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param cover_url: 直播间封面图URL + :type cover_url: str + :param x_request_id: + :type x_request_id: str + """ + + super(ShowSmartChatRoomResponse, self).__init__() + + self._room_name = None + self._room_description = None + self._video_config = None + self._model_asset_id = None + self._voice_config = None + self._robot_id = None + self._concurrency = None + self._background_config = None + self._layer_config = None + self._review_config = None + self._chat_subtitle_config = None + self._room_id = None + self._create_time = None + self._update_time = None + self._cover_url = None + self._x_request_id = None + self.discriminator = None + + self.room_name = room_name + if room_description is not None: + self.room_description = room_description + if video_config is not None: + self.video_config = video_config + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if voice_config is not None: + self.voice_config = voice_config + self.robot_id = robot_id + if concurrency is not None: + self.concurrency = concurrency + if background_config is not None: + self.background_config = background_config + if layer_config is not None: + self.layer_config = layer_config + if review_config is not None: + self.review_config = review_config + if chat_subtitle_config is not None: + self.chat_subtitle_config = chat_subtitle_config + if room_id is not None: + self.room_id = room_id + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if cover_url is not None: + self.cover_url = cover_url + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def room_name(self): + """Gets the room_name of this ShowSmartChatRoomResponse. + + 直播间名称 + + :return: The room_name of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._room_name + + @room_name.setter + def room_name(self, room_name): + """Sets the room_name of this ShowSmartChatRoomResponse. + + 直播间名称 + + :param room_name: The room_name of this ShowSmartChatRoomResponse. + :type room_name: str + """ + self._room_name = room_name + + @property + def room_description(self): + """Gets the room_description of this ShowSmartChatRoomResponse. + + 直播间描述。 + + :return: The room_description of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._room_description + + @room_description.setter + def room_description(self, room_description): + """Sets the room_description of this ShowSmartChatRoomResponse. + + 直播间描述。 + + :param room_description: The room_description of this ShowSmartChatRoomResponse. + :type room_description: str + """ + self._room_description = room_description + + @property + def video_config(self): + """Gets the video_config of this ShowSmartChatRoomResponse. + + :return: The video_config of this ShowSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this ShowSmartChatRoomResponse. + + :param video_config: The video_config of this ShowSmartChatRoomResponse. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def model_asset_id(self): + """Gets the model_asset_id of this ShowSmartChatRoomResponse. + + 数字人模型资产ID。 + + :return: The model_asset_id of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this ShowSmartChatRoomResponse. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this ShowSmartChatRoomResponse. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def voice_config(self): + """Gets the voice_config of this ShowSmartChatRoomResponse. + + :return: The voice_config of this ShowSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this ShowSmartChatRoomResponse. + + :param voice_config: The voice_config of this ShowSmartChatRoomResponse. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def robot_id(self): + """Gets the robot_id of this ShowSmartChatRoomResponse. + + 机器人ID。 + + :return: The robot_id of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this ShowSmartChatRoomResponse. + + 机器人ID。 + + :param robot_id: The robot_id of this ShowSmartChatRoomResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def concurrency(self): + """Gets the concurrency of this ShowSmartChatRoomResponse. + + 并发路数。 + + :return: The concurrency of this ShowSmartChatRoomResponse. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this ShowSmartChatRoomResponse. + + 并发路数。 + + :param concurrency: The concurrency of this ShowSmartChatRoomResponse. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def background_config(self): + """Gets the background_config of this ShowSmartChatRoomResponse. + + :return: The background_config of this ShowSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + return self._background_config + + @background_config.setter + def background_config(self, background_config): + """Sets the background_config of this ShowSmartChatRoomResponse. + + :param background_config: The background_config of this ShowSmartChatRoomResponse. + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + self._background_config = background_config + + @property + def layer_config(self): + """Gets the layer_config of this ShowSmartChatRoomResponse. + + 图层配置。 + + :return: The layer_config of this ShowSmartChatRoomResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + return self._layer_config + + @layer_config.setter + def layer_config(self, layer_config): + """Sets the layer_config of this ShowSmartChatRoomResponse. + + 图层配置。 + + :param layer_config: The layer_config of this ShowSmartChatRoomResponse. + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + self._layer_config = layer_config + + @property + def review_config(self): + """Gets the review_config of this ShowSmartChatRoomResponse. + + :return: The review_config of this ShowSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this ShowSmartChatRoomResponse. + + :param review_config: The review_config of this ShowSmartChatRoomResponse. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def chat_subtitle_config(self): + """Gets the chat_subtitle_config of this ShowSmartChatRoomResponse. + + :return: The chat_subtitle_config of this ShowSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + return self._chat_subtitle_config + + @chat_subtitle_config.setter + def chat_subtitle_config(self, chat_subtitle_config): + """Sets the chat_subtitle_config of this ShowSmartChatRoomResponse. + + :param chat_subtitle_config: The chat_subtitle_config of this ShowSmartChatRoomResponse. + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + self._chat_subtitle_config = chat_subtitle_config + + @property + def room_id(self): + """Gets the room_id of this ShowSmartChatRoomResponse. + + 直播间ID + + :return: The room_id of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this ShowSmartChatRoomResponse. + + 直播间ID + + :param room_id: The room_id of this ShowSmartChatRoomResponse. + :type room_id: str + """ + self._room_id = room_id + + @property + def create_time(self): + """Gets the create_time of this ShowSmartChatRoomResponse. + + 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowSmartChatRoomResponse. + + 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this ShowSmartChatRoomResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowSmartChatRoomResponse. + + 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowSmartChatRoomResponse. + + 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this ShowSmartChatRoomResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def cover_url(self): + """Gets the cover_url of this ShowSmartChatRoomResponse. + + 直播间封面图URL + + :return: The cover_url of this ShowSmartChatRoomResponse. + :rtype: str + """ + return self._cover_url + + @cover_url.setter + def cover_url(self, cover_url): + """Sets the cover_url of this ShowSmartChatRoomResponse. + + 直播间封面图URL + + :param cover_url: The cover_url of this ShowSmartChatRoomResponse. + :type cover_url: str + """ + self._cover_url = cover_url + + @property + def x_request_id(self): + """Gets the x_request_id of this ShowSmartChatRoomResponse. + + :return: The x_request_id of this ShowSmartChatRoomResponse. + :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 ShowSmartChatRoomResponse. + + :param x_request_id: The x_request_id of this ShowSmartChatRoomResponse. + :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, ShowSmartChatRoomResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py index 3eb4a68932..cc2481af41 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py @@ -37,7 +37,7 @@ def __init__(self, room_id=None, job_id=None, x_app_user_id=None): :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -101,7 +101,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowSmartLiveRequest. :rtype: str @@ -112,7 +112,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py index f23d42e531..f51b9edd26 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py @@ -33,7 +33,7 @@ def __init__(self, room_id=None, x_app_user_id=None): :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def room_id(self, room_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowSmartLiveRoomRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py index 58055b834a..fdb72bc064 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this ShowVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowVideoMotionCaptureJobRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py index e0a46fef8c..4480385b03 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, script_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, script_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this ShowVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowVideoScriptRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_voice_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_voice_training_job_request.py index 7a944e61fe..32c811b287 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_voice_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_voice_training_job_request.py @@ -31,7 +31,7 @@ def __init__(self, x_app_user_id=None, job_id=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param job_id: 任务id。 :type job_id: str @@ -51,7 +51,7 @@ def __init__(self, x_app_user_id=None, job_id=None): def x_app_user_id(self): """Gets the x_app_user_id of this ShowVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this ShowVoiceTrainingJobRequest. :rtype: str @@ -62,7 +62,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowVoiceTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowVoiceTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_room_base_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_room_base_info.py new file mode 100644 index 0000000000..867111114a --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_chat_room_base_info.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SmartChatRoomBaseInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_id': 'str', + 'room_name': 'str', + 'room_description': 'str', + 'robot_id': 'str', + 'cover_url': 'str', + 'model_infos': 'ModelInfo', + 'voice_config': 'VoiceConfig', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'room_id': 'room_id', + 'room_name': 'room_name', + 'room_description': 'room_description', + 'robot_id': 'robot_id', + 'cover_url': 'cover_url', + 'model_infos': 'model_infos', + 'voice_config': 'voice_config', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, room_id=None, room_name=None, room_description=None, robot_id=None, cover_url=None, model_infos=None, voice_config=None, create_time=None, update_time=None): + """SmartChatRoomBaseInfo + + The model defined in huaweicloud sdk + + :param room_id: 智能交互对话直播间ID + :type room_id: str + :param room_name: 智能交互对话直播间名称 + :type room_name: str + :param room_description: 智能交互对话直播间描述。 + :type room_description: str + :param robot_id: 机器人ID。 + :type robot_id: str + :param cover_url: 直播间封面图URL + :type cover_url: str + :param model_infos: + :type model_infos: :class:`huaweicloudsdkmetastudio.v1.ModelInfo` + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + """ + + + + self._room_id = None + self._room_name = None + self._room_description = None + self._robot_id = None + self._cover_url = None + self._model_infos = None + self._voice_config = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if room_id is not None: + self.room_id = room_id + if room_name is not None: + self.room_name = room_name + if room_description is not None: + self.room_description = room_description + if robot_id is not None: + self.robot_id = robot_id + if cover_url is not None: + self.cover_url = cover_url + if model_infos is not None: + self.model_infos = model_infos + if voice_config is not None: + self.voice_config = voice_config + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def room_id(self): + """Gets the room_id of this SmartChatRoomBaseInfo. + + 智能交互对话直播间ID + + :return: The room_id of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this SmartChatRoomBaseInfo. + + 智能交互对话直播间ID + + :param room_id: The room_id of this SmartChatRoomBaseInfo. + :type room_id: str + """ + self._room_id = room_id + + @property + def room_name(self): + """Gets the room_name of this SmartChatRoomBaseInfo. + + 智能交互对话直播间名称 + + :return: The room_name of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._room_name + + @room_name.setter + def room_name(self, room_name): + """Sets the room_name of this SmartChatRoomBaseInfo. + + 智能交互对话直播间名称 + + :param room_name: The room_name of this SmartChatRoomBaseInfo. + :type room_name: str + """ + self._room_name = room_name + + @property + def room_description(self): + """Gets the room_description of this SmartChatRoomBaseInfo. + + 智能交互对话直播间描述。 + + :return: The room_description of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._room_description + + @room_description.setter + def room_description(self, room_description): + """Sets the room_description of this SmartChatRoomBaseInfo. + + 智能交互对话直播间描述。 + + :param room_description: The room_description of this SmartChatRoomBaseInfo. + :type room_description: str + """ + self._room_description = room_description + + @property + def robot_id(self): + """Gets the robot_id of this SmartChatRoomBaseInfo. + + 机器人ID。 + + :return: The robot_id of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this SmartChatRoomBaseInfo. + + 机器人ID。 + + :param robot_id: The robot_id of this SmartChatRoomBaseInfo. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def cover_url(self): + """Gets the cover_url of this SmartChatRoomBaseInfo. + + 直播间封面图URL + + :return: The cover_url of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._cover_url + + @cover_url.setter + def cover_url(self, cover_url): + """Sets the cover_url of this SmartChatRoomBaseInfo. + + 直播间封面图URL + + :param cover_url: The cover_url of this SmartChatRoomBaseInfo. + :type cover_url: str + """ + self._cover_url = cover_url + + @property + def model_infos(self): + """Gets the model_infos of this SmartChatRoomBaseInfo. + + :return: The model_infos of this SmartChatRoomBaseInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ModelInfo` + """ + return self._model_infos + + @model_infos.setter + def model_infos(self, model_infos): + """Sets the model_infos of this SmartChatRoomBaseInfo. + + :param model_infos: The model_infos of this SmartChatRoomBaseInfo. + :type model_infos: :class:`huaweicloudsdkmetastudio.v1.ModelInfo` + """ + self._model_infos = model_infos + + @property + def voice_config(self): + """Gets the voice_config of this SmartChatRoomBaseInfo. + + :return: The voice_config of this SmartChatRoomBaseInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this SmartChatRoomBaseInfo. + + :param voice_config: The voice_config of this SmartChatRoomBaseInfo. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def create_time(self): + """Gets the create_time of this SmartChatRoomBaseInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this SmartChatRoomBaseInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this SmartChatRoomBaseInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this SmartChatRoomBaseInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this SmartChatRoomBaseInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this SmartChatRoomBaseInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this SmartChatRoomBaseInfo. + :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, SmartChatRoomBaseInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py new file mode 100644 index 0000000000..3cf3d84b21 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartSmartChatJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'room_id': 'str', + 'robot_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'room_id': 'room_id', + 'robot_id': 'robot_id' + } + + def __init__(self, x_app_user_id=None, room_id=None, robot_id=None): + """StartSmartChatJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param room_id: 直播间ID。 + :type room_id: str + :param robot_id: 机器人ID。 + :type robot_id: str + """ + + + + self._x_app_user_id = None + self._room_id = None + self._robot_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.room_id = room_id + self.robot_id = robot_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this StartSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this StartSmartChatJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this StartSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this StartSmartChatJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def room_id(self): + """Gets the room_id of this StartSmartChatJobRequest. + + 直播间ID。 + + :return: The room_id of this StartSmartChatJobRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this StartSmartChatJobRequest. + + 直播间ID。 + + :param room_id: The room_id of this StartSmartChatJobRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def robot_id(self): + """Gets the robot_id of this StartSmartChatJobRequest. + + 机器人ID。 + + :return: The robot_id of this StartSmartChatJobRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this StartSmartChatJobRequest. + + 机器人ID。 + + :param robot_id: The robot_id of this StartSmartChatJobRequest. + :type robot_id: str + """ + self._robot_id = robot_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, StartSmartChatJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py new file mode 100644 index 0000000000..2d1ba561bd --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_chat_job_response.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartSmartChatJobResponse(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 = { + 'job_id': 'str', + 'rtc_room_info': 'RTCRoomInfoList', + 'chat_subtitle_config': 'ChatSubtitleConfig', + 'video_config': 'ChatVideoConfigRsp', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'rtc_room_info': 'rtc_room_info', + 'chat_subtitle_config': 'chat_subtitle_config', + 'video_config': 'video_config', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_id=None, rtc_room_info=None, chat_subtitle_config=None, video_config=None, x_request_id=None): + """StartSmartChatJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 智能交互对话任务ID。 + :type job_id: str + :param rtc_room_info: + :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + :param chat_subtitle_config: + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + :param x_request_id: + :type x_request_id: str + """ + + super(StartSmartChatJobResponse, self).__init__() + + self._job_id = None + self._rtc_room_info = None + self._chat_subtitle_config = None + self._video_config = None + self._x_request_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if rtc_room_info is not None: + self.rtc_room_info = rtc_room_info + if chat_subtitle_config is not None: + self.chat_subtitle_config = chat_subtitle_config + if video_config is not None: + self.video_config = video_config + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def job_id(self): + """Gets the job_id of this StartSmartChatJobResponse. + + 智能交互对话任务ID。 + + :return: The job_id of this StartSmartChatJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this StartSmartChatJobResponse. + + 智能交互对话任务ID。 + + :param job_id: The job_id of this StartSmartChatJobResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def rtc_room_info(self): + """Gets the rtc_room_info of this StartSmartChatJobResponse. + + :return: The rtc_room_info of this StartSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + """ + return self._rtc_room_info + + @rtc_room_info.setter + def rtc_room_info(self, rtc_room_info): + """Sets the rtc_room_info of this StartSmartChatJobResponse. + + :param rtc_room_info: The rtc_room_info of this StartSmartChatJobResponse. + :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` + """ + self._rtc_room_info = rtc_room_info + + @property + def chat_subtitle_config(self): + """Gets the chat_subtitle_config of this StartSmartChatJobResponse. + + :return: The chat_subtitle_config of this StartSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + return self._chat_subtitle_config + + @chat_subtitle_config.setter + def chat_subtitle_config(self, chat_subtitle_config): + """Sets the chat_subtitle_config of this StartSmartChatJobResponse. + + :param chat_subtitle_config: The chat_subtitle_config of this StartSmartChatJobResponse. + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + self._chat_subtitle_config = chat_subtitle_config + + @property + def video_config(self): + """Gets the video_config of this StartSmartChatJobResponse. + + :return: The video_config of this StartSmartChatJobResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this StartSmartChatJobResponse. + + :param video_config: The video_config of this StartSmartChatJobResponse. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.ChatVideoConfigRsp` + """ + self._video_config = video_config + + @property + def x_request_id(self): + """Gets the x_request_id of this StartSmartChatJobResponse. + + :return: The x_request_id of this StartSmartChatJobResponse. + :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 StartSmartChatJobResponse. + + :param x_request_id: The x_request_id of this StartSmartChatJobResponse. + :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, StartSmartChatJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py index 6d0ebf017d..2d2732b7e7 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py @@ -35,7 +35,7 @@ def __init__(self, room_id=None, x_app_user_id=None, body=None): :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the StartSmartLiveRequest :type body: :class:`huaweicloudsdkmetastudio.v1.StartSmartLiveReq` @@ -80,7 +80,7 @@ def room_id(self, room_id): def x_app_user_id(self): """Gets the x_app_user_id of this StartSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this StartSmartLiveRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StartSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StartSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py new file mode 100644 index 0000000000..d3fa9ebd6f --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopSmartChatJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'room_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'room_id': 'room_id', + 'job_id': 'job_id' + } + + def __init__(self, x_app_user_id=None, room_id=None, job_id=None): + """StopSmartChatJobRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param room_id: 直播间ID。 + :type room_id: str + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._x_app_user_id = None + self._room_id = None + self._job_id = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.room_id = room_id + self.job_id = job_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this StopSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this StopSmartChatJobRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this StopSmartChatJobRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this StopSmartChatJobRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def room_id(self): + """Gets the room_id of this StopSmartChatJobRequest. + + 直播间ID。 + + :return: The room_id of this StopSmartChatJobRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this StopSmartChatJobRequest. + + 直播间ID。 + + :param room_id: The room_id of this StopSmartChatJobRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def job_id(self): + """Gets the job_id of this StopSmartChatJobRequest. + + 任务ID。 + + :return: The job_id of this StopSmartChatJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this StopSmartChatJobRequest. + + 任务ID。 + + :param job_id: The job_id of this StopSmartChatJobRequest. + :type job_id: str + """ + self._job_id = job_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, StopSmartChatJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_response.py new file mode 100644 index 0000000000..5b06807cb1 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_chat_job_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopSmartChatJobResponse(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 = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """StopSmartChatJobResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(StopSmartChatJobResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this StopSmartChatJobResponse. + + :return: The x_request_id of this StopSmartChatJobResponse. + :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 StopSmartChatJobResponse. + + :param x_request_id: The x_request_id of this StopSmartChatJobResponse. + :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, StopSmartChatJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py index 684e4a0459..f9d7a48826 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py @@ -37,7 +37,7 @@ def __init__(self, room_id=None, job_id=None, x_app_user_id=None): :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -101,7 +101,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this StopSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this StopSmartLiveRequest. :rtype: str @@ -112,7 +112,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StopSmartLiveRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StopSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py index fb9cb62ba6..acd3d41464 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ def __init__(self, job_id=None, x_app_user_id=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this StopVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this StopVideoMotionCaptureJobRequest. :rtype: str @@ -84,7 +84,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StopVideoMotionCaptureJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StopVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_request.py index 31dd0f416c..882c9d4aa5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update2d_model_training_job_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, body=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the Update2dModelTrainingJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.Create2dModelTrainingJobReq` @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this Update2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this Update2dModelTrainingJobRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Update2dModelTrainingJobRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Update2dModelTrainingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py index 422f9cd879..11ab42c6a7 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, asset_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -58,7 +58,7 @@ def __init__(self, x_app_user_id=None, asset_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this UpdateDigitalAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this UpdateDigitalAssetRequest. :rtype: str @@ -69,7 +69,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateDigitalAssetRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateDigitalAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py index 156f259c0b..4b2962ab1c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py @@ -35,7 +35,7 @@ def __init__(self, job_id=None, x_app_user_id=None, body=None): :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the UpdateDigitalHumanBusinessCardRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalHumanBusinessCardReq` @@ -80,7 +80,7 @@ def job_id(self, job_id): def x_app_user_id(self): """Gets the x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py index d84e6beb33..88326c2df6 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, group_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param group_id: 互动规则库ID。 :type group_id: str @@ -58,7 +58,7 @@ def __init__(self, x_app_user_id=None, group_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this UpdateInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this UpdateInteractionRuleGroupRequest. :rtype: str @@ -69,7 +69,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateInteractionRuleGroupRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateInteractionRuleGroupRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_req.py new file mode 100644 index 0000000000..6ef65f81fb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_req.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRobotReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'app_type': 'int', + 'concurrency': 'int', + 'huawei_ei_cbs': 'HuaweiEiCbs', + 'iflytek_aiui_config': 'IflytekAiuiConfig', + 'iflytek_spark': 'IflytekSpark' + } + + attribute_map = { + 'name': 'name', + 'app_type': 'app_type', + 'concurrency': 'concurrency', + 'huawei_ei_cbs': 'huawei_ei_cbs', + 'iflytek_aiui_config': 'iflytek_aiui_config', + 'iflytek_spark': 'iflytek_spark' + } + + def __init__(self, name=None, app_type=None, concurrency=None, huawei_ei_cbs=None, iflytek_aiui_config=None, iflytek_spark=None): + """UpdateRobotReq + + The model defined in huaweicloud sdk + + :param name: 应用名称。 + :type name: str + :param app_type: 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + :type app_type: int + :param concurrency: 对话的并发数 + :type concurrency: int + :param huawei_ei_cbs: + :type huawei_ei_cbs: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + :param iflytek_aiui_config: + :type iflytek_aiui_config: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + :param iflytek_spark: + :type iflytek_spark: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + + + + self._name = None + self._app_type = None + self._concurrency = None + self._huawei_ei_cbs = None + self._iflytek_aiui_config = None + self._iflytek_spark = None + self.discriminator = None + + if name is not None: + self.name = name + if app_type is not None: + self.app_type = app_type + if concurrency is not None: + self.concurrency = concurrency + if huawei_ei_cbs is not None: + self.huawei_ei_cbs = huawei_ei_cbs + if iflytek_aiui_config is not None: + self.iflytek_aiui_config = iflytek_aiui_config + if iflytek_spark is not None: + self.iflytek_spark = iflytek_spark + + @property + def name(self): + """Gets the name of this UpdateRobotReq. + + 应用名称。 + + :return: The name of this UpdateRobotReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateRobotReq. + + 应用名称。 + + :param name: The name of this UpdateRobotReq. + :type name: str + """ + self._name = name + + @property + def app_type(self): + """Gets the app_type of this UpdateRobotReq. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :return: The app_type of this UpdateRobotReq. + :rtype: int + """ + return self._app_type + + @app_type.setter + def app_type(self, app_type): + """Sets the app_type of this UpdateRobotReq. + + 对接第三方应用厂商类型。 > 0:科大讯飞AIUI;1:华为云CBS;2:科大讯飞星火交互认知大模型;5:第三方驱动 + + :param app_type: The app_type of this UpdateRobotReq. + :type app_type: int + """ + self._app_type = app_type + + @property + def concurrency(self): + """Gets the concurrency of this UpdateRobotReq. + + 对话的并发数 + + :return: The concurrency of this UpdateRobotReq. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this UpdateRobotReq. + + 对话的并发数 + + :param concurrency: The concurrency of this UpdateRobotReq. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def huawei_ei_cbs(self): + """Gets the huawei_ei_cbs of this UpdateRobotReq. + + :return: The huawei_ei_cbs of this UpdateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + """ + return self._huawei_ei_cbs + + @huawei_ei_cbs.setter + def huawei_ei_cbs(self, huawei_ei_cbs): + """Sets the huawei_ei_cbs of this UpdateRobotReq. + + :param huawei_ei_cbs: The huawei_ei_cbs of this UpdateRobotReq. + :type huawei_ei_cbs: :class:`huaweicloudsdkmetastudio.v1.HuaweiEiCbs` + """ + self._huawei_ei_cbs = huawei_ei_cbs + + @property + def iflytek_aiui_config(self): + """Gets the iflytek_aiui_config of this UpdateRobotReq. + + :return: The iflytek_aiui_config of this UpdateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + """ + return self._iflytek_aiui_config + + @iflytek_aiui_config.setter + def iflytek_aiui_config(self, iflytek_aiui_config): + """Sets the iflytek_aiui_config of this UpdateRobotReq. + + :param iflytek_aiui_config: The iflytek_aiui_config of this UpdateRobotReq. + :type iflytek_aiui_config: :class:`huaweicloudsdkmetastudio.v1.IflytekAiuiConfig` + """ + self._iflytek_aiui_config = iflytek_aiui_config + + @property + def iflytek_spark(self): + """Gets the iflytek_spark of this UpdateRobotReq. + + :return: The iflytek_spark of this UpdateRobotReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + return self._iflytek_spark + + @iflytek_spark.setter + def iflytek_spark(self, iflytek_spark): + """Sets the iflytek_spark of this UpdateRobotReq. + + :param iflytek_spark: The iflytek_spark of this UpdateRobotReq. + :type iflytek_spark: :class:`huaweicloudsdkmetastudio.v1.IflytekSpark` + """ + self._iflytek_spark = iflytek_spark + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRobotReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_request.py new file mode 100644 index 0000000000..a801fbeaa2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRobotRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'x_app_user_id': 'str', + 'robot_id': 'str', + 'body': 'UpdateRobotReq' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'robot_id': 'robot_id', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, robot_id=None, body=None): + """UpdateRobotRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param robot_id: 应用ID。 + :type robot_id: str + :param body: Body of the UpdateRobotRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotReq` + """ + + + + self._x_app_user_id = None + self._robot_id = None + self._body = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + self.robot_id = robot_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdateRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this UpdateRobotRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this UpdateRobotRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdateRobotRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def robot_id(self): + """Gets the robot_id of this UpdateRobotRequest. + + 应用ID。 + + :return: The robot_id of this UpdateRobotRequest. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this UpdateRobotRequest. + + 应用ID。 + + :param robot_id: The robot_id of this UpdateRobotRequest. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def body(self): + """Gets the body of this UpdateRobotRequest. + + :return: The body of this UpdateRobotRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateRobotRequest. + + :param body: The body of this UpdateRobotRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.UpdateRobotReq` + """ + 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, UpdateRobotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_response.py new file mode 100644 index 0000000000..aead7de2da --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_robot_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRobotResponse(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 = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """UpdateRobotResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateRobotResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdateRobotResponse. + + :return: The x_request_id of this UpdateRobotResponse. + :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 UpdateRobotResponse. + + :param x_request_id: The x_request_id of this UpdateRobotResponse. + :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, UpdateRobotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_request.py new file mode 100644 index 0000000000..e82e69b69e --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSmartChatRoomRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'room_id': 'str', + 'x_app_user_id': 'str', + 'body': 'CreateSmartChatRoomReq' + } + + attribute_map = { + 'room_id': 'room_id', + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, room_id=None, x_app_user_id=None, body=None): + """UpdateSmartChatRoomRequest + + The model defined in huaweicloud sdk + + :param room_id: 剧本ID。 + :type room_id: str + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the UpdateSmartChatRoomRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + + + + self._room_id = None + self._x_app_user_id = None + self._body = None + self.discriminator = None + + self.room_id = room_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if body is not None: + self.body = body + + @property + def room_id(self): + """Gets the room_id of this UpdateSmartChatRoomRequest. + + 剧本ID。 + + :return: The room_id of this UpdateSmartChatRoomRequest. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this UpdateSmartChatRoomRequest. + + 剧本ID。 + + :param room_id: The room_id of this UpdateSmartChatRoomRequest. + :type room_id: str + """ + self._room_id = room_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdateSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :return: The x_app_user_id of this UpdateSmartChatRoomRequest. + :rtype: str + """ + return self._x_app_user_id + + @x_app_user_id.setter + def x_app_user_id(self, x_app_user_id): + """Sets the x_app_user_id of this UpdateSmartChatRoomRequest. + + 第三方用户ID。 > * 不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdateSmartChatRoomRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this UpdateSmartChatRoomRequest. + + :return: The body of this UpdateSmartChatRoomRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateSmartChatRoomRequest. + + :param body: The body of this UpdateSmartChatRoomRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartChatRoomReq` + """ + 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, UpdateSmartChatRoomRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_response.py new file mode 100644 index 0000000000..920b0ee901 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_chat_room_response.py @@ -0,0 +1,525 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSmartChatRoomResponse(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 = { + 'room_name': 'str', + 'room_description': 'str', + 'video_config': 'VideoConfig', + 'model_asset_id': 'str', + 'voice_config': 'VoiceConfig', + 'robot_id': 'str', + 'concurrency': 'int', + 'background_config': 'BackgroundConfigInfo', + 'layer_config': 'list[LayerConfig]', + 'review_config': 'ReviewConfig', + 'chat_subtitle_config': 'ChatSubtitleConfig', + 'room_id': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'cover_url': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'room_name': 'room_name', + 'room_description': 'room_description', + 'video_config': 'video_config', + 'model_asset_id': 'model_asset_id', + 'voice_config': 'voice_config', + 'robot_id': 'robot_id', + 'concurrency': 'concurrency', + 'background_config': 'background_config', + 'layer_config': 'layer_config', + 'review_config': 'review_config', + 'chat_subtitle_config': 'chat_subtitle_config', + 'room_id': 'room_id', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'cover_url': 'cover_url', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, room_name=None, room_description=None, video_config=None, model_asset_id=None, voice_config=None, robot_id=None, concurrency=None, background_config=None, layer_config=None, review_config=None, chat_subtitle_config=None, room_id=None, create_time=None, update_time=None, cover_url=None, x_request_id=None): + """UpdateSmartChatRoomResponse + + The model defined in huaweicloud sdk + + :param room_name: 直播间名称 + :type room_name: str + :param room_description: 直播间描述。 + :type room_description: str + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param robot_id: 机器人ID。 + :type robot_id: str + :param concurrency: 并发路数。 + :type concurrency: int + :param background_config: + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + :param layer_config: 图层配置。 + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param chat_subtitle_config: + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + :param room_id: 直播间ID + :type room_id: str + :param create_time: 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param cover_url: 直播间封面图URL + :type cover_url: str + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateSmartChatRoomResponse, self).__init__() + + self._room_name = None + self._room_description = None + self._video_config = None + self._model_asset_id = None + self._voice_config = None + self._robot_id = None + self._concurrency = None + self._background_config = None + self._layer_config = None + self._review_config = None + self._chat_subtitle_config = None + self._room_id = None + self._create_time = None + self._update_time = None + self._cover_url = None + self._x_request_id = None + self.discriminator = None + + self.room_name = room_name + if room_description is not None: + self.room_description = room_description + if video_config is not None: + self.video_config = video_config + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if voice_config is not None: + self.voice_config = voice_config + self.robot_id = robot_id + if concurrency is not None: + self.concurrency = concurrency + if background_config is not None: + self.background_config = background_config + if layer_config is not None: + self.layer_config = layer_config + if review_config is not None: + self.review_config = review_config + if chat_subtitle_config is not None: + self.chat_subtitle_config = chat_subtitle_config + if room_id is not None: + self.room_id = room_id + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if cover_url is not None: + self.cover_url = cover_url + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def room_name(self): + """Gets the room_name of this UpdateSmartChatRoomResponse. + + 直播间名称 + + :return: The room_name of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._room_name + + @room_name.setter + def room_name(self, room_name): + """Sets the room_name of this UpdateSmartChatRoomResponse. + + 直播间名称 + + :param room_name: The room_name of this UpdateSmartChatRoomResponse. + :type room_name: str + """ + self._room_name = room_name + + @property + def room_description(self): + """Gets the room_description of this UpdateSmartChatRoomResponse. + + 直播间描述。 + + :return: The room_description of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._room_description + + @room_description.setter + def room_description(self, room_description): + """Sets the room_description of this UpdateSmartChatRoomResponse. + + 直播间描述。 + + :param room_description: The room_description of this UpdateSmartChatRoomResponse. + :type room_description: str + """ + self._room_description = room_description + + @property + def video_config(self): + """Gets the video_config of this UpdateSmartChatRoomResponse. + + :return: The video_config of this UpdateSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this UpdateSmartChatRoomResponse. + + :param video_config: The video_config of this UpdateSmartChatRoomResponse. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def model_asset_id(self): + """Gets the model_asset_id of this UpdateSmartChatRoomResponse. + + 数字人模型资产ID。 + + :return: The model_asset_id of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this UpdateSmartChatRoomResponse. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this UpdateSmartChatRoomResponse. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def voice_config(self): + """Gets the voice_config of this UpdateSmartChatRoomResponse. + + :return: The voice_config of this UpdateSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this UpdateSmartChatRoomResponse. + + :param voice_config: The voice_config of this UpdateSmartChatRoomResponse. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def robot_id(self): + """Gets the robot_id of this UpdateSmartChatRoomResponse. + + 机器人ID。 + + :return: The robot_id of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._robot_id + + @robot_id.setter + def robot_id(self, robot_id): + """Sets the robot_id of this UpdateSmartChatRoomResponse. + + 机器人ID。 + + :param robot_id: The robot_id of this UpdateSmartChatRoomResponse. + :type robot_id: str + """ + self._robot_id = robot_id + + @property + def concurrency(self): + """Gets the concurrency of this UpdateSmartChatRoomResponse. + + 并发路数。 + + :return: The concurrency of this UpdateSmartChatRoomResponse. + :rtype: int + """ + return self._concurrency + + @concurrency.setter + def concurrency(self, concurrency): + """Sets the concurrency of this UpdateSmartChatRoomResponse. + + 并发路数。 + + :param concurrency: The concurrency of this UpdateSmartChatRoomResponse. + :type concurrency: int + """ + self._concurrency = concurrency + + @property + def background_config(self): + """Gets the background_config of this UpdateSmartChatRoomResponse. + + :return: The background_config of this UpdateSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + return self._background_config + + @background_config.setter + def background_config(self, background_config): + """Sets the background_config of this UpdateSmartChatRoomResponse. + + :param background_config: The background_config of this UpdateSmartChatRoomResponse. + :type background_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo` + """ + self._background_config = background_config + + @property + def layer_config(self): + """Gets the layer_config of this UpdateSmartChatRoomResponse. + + 图层配置。 + + :return: The layer_config of this UpdateSmartChatRoomResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + return self._layer_config + + @layer_config.setter + def layer_config(self, layer_config): + """Sets the layer_config of this UpdateSmartChatRoomResponse. + + 图层配置。 + + :param layer_config: The layer_config of this UpdateSmartChatRoomResponse. + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + self._layer_config = layer_config + + @property + def review_config(self): + """Gets the review_config of this UpdateSmartChatRoomResponse. + + :return: The review_config of this UpdateSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this UpdateSmartChatRoomResponse. + + :param review_config: The review_config of this UpdateSmartChatRoomResponse. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def chat_subtitle_config(self): + """Gets the chat_subtitle_config of this UpdateSmartChatRoomResponse. + + :return: The chat_subtitle_config of this UpdateSmartChatRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + return self._chat_subtitle_config + + @chat_subtitle_config.setter + def chat_subtitle_config(self, chat_subtitle_config): + """Sets the chat_subtitle_config of this UpdateSmartChatRoomResponse. + + :param chat_subtitle_config: The chat_subtitle_config of this UpdateSmartChatRoomResponse. + :type chat_subtitle_config: :class:`huaweicloudsdkmetastudio.v1.ChatSubtitleConfig` + """ + self._chat_subtitle_config = chat_subtitle_config + + @property + def room_id(self): + """Gets the room_id of this UpdateSmartChatRoomResponse. + + 直播间ID + + :return: The room_id of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._room_id + + @room_id.setter + def room_id(self, room_id): + """Sets the room_id of this UpdateSmartChatRoomResponse. + + 直播间ID + + :param room_id: The room_id of this UpdateSmartChatRoomResponse. + :type room_id: str + """ + self._room_id = room_id + + @property + def create_time(self): + """Gets the create_time of this UpdateSmartChatRoomResponse. + + 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateSmartChatRoomResponse. + + 智能交互对话直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this UpdateSmartChatRoomResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateSmartChatRoomResponse. + + 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateSmartChatRoomResponse. + + 智能交互对话直播间更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this UpdateSmartChatRoomResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def cover_url(self): + """Gets the cover_url of this UpdateSmartChatRoomResponse. + + 直播间封面图URL + + :return: The cover_url of this UpdateSmartChatRoomResponse. + :rtype: str + """ + return self._cover_url + + @cover_url.setter + def cover_url(self, cover_url): + """Sets the cover_url of this UpdateSmartChatRoomResponse. + + 直播间封面图URL + + :param cover_url: The cover_url of this UpdateSmartChatRoomResponse. + :type cover_url: str + """ + self._cover_url = cover_url + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdateSmartChatRoomResponse. + + :return: The x_request_id of this UpdateSmartChatRoomResponse. + :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 UpdateSmartChatRoomResponse. + + :param x_request_id: The x_request_id of this UpdateSmartChatRoomResponse. + :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, UpdateSmartChatRoomResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py index 4dd206a1d1..beae64e86b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py @@ -35,7 +35,7 @@ def __init__(self, room_id=None, x_app_user_id=None, body=None): :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param body: Body of the UpdateSmartLiveRoomRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartLiveRoomReq` @@ -80,7 +80,7 @@ def room_id(self, room_id): def x_app_user_id(self): """Gets the x_app_user_id of this UpdateSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this UpdateSmartLiveRoomRequest. :rtype: str @@ -91,7 +91,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateSmartLiveRoomRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py index 9f97100e66..fbe89eb31b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py @@ -33,7 +33,7 @@ def __init__(self, x_app_user_id=None, script_id=None, body=None): The model defined in huaweicloud sdk - :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :param x_app_user_id: 第三方用户ID。 > * 不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -58,7 +58,7 @@ def __init__(self, x_app_user_id=None, script_id=None, body=None): def x_app_user_id(self): """Gets the x_app_user_id of this UpdateVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :return: The x_app_user_id of this UpdateVideoScriptRequest. :rtype: str @@ -69,7 +69,7 @@ def x_app_user_id(self): def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateVideoScriptRequest. - 第三方用户ID。 > *不允许输入中文。 + 第三方用户ID。 > * 不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py index c0712f0c8e..d18c6de8ac 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py @@ -53,9 +53,9 @@ def __init__(self, clip_mode=None, codec=None, bitrate=None, width=None, height= :type codec: str :param bitrate: 输出平均码率。 单位:kbps。 最小值40,最大值30000。 > * 分身数字人视频制作采用质量优先,可能会超过设置的码率。 > * 分身数字人直播码率范围[1000, 8000]。 :type bitrate: int - :param width: 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + :param width: 视频宽度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :type width: int - :param height: 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + :param height: 视频高度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :type height: int :param frame_rate: 帧率。 单位:FPS。 > * 分身数字人视频固定25FPS。 :type frame_rate: str @@ -63,9 +63,9 @@ def __init__(self, clip_mode=None, codec=None, bitrate=None, width=None, height= :type is_subtitle_enable: bool :param subtitle_config: :type subtitle_config: :class:`huaweicloudsdkmetastudio.v1.SubtitleConfig` - :param dx: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :param dx: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dx最小值是0,最大值是1920。 :type dx: int - :param dy: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :param dy: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dy最小值是0,最大值是1080 :type dy: int """ @@ -170,7 +170,7 @@ def bitrate(self, bitrate): def width(self): """Gets the width of this VideoConfig. - 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + 视频宽度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :return: The width of this VideoConfig. :rtype: int @@ -181,7 +181,7 @@ def width(self): def width(self, width): """Sets the width of this VideoConfig. - 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 + 视频宽度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :param width: The width of this VideoConfig. :type width: int @@ -192,7 +192,7 @@ def width(self, width): def height(self): """Gets the height of this VideoConfig. - 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + 视频高度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :return: The height of this VideoConfig. :rtype: int @@ -203,7 +203,7 @@ def height(self): def height(self, height): """Sets the height of this VideoConfig. - 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 + 视频高度。 单位:像素。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :param height: The height of this VideoConfig. :type height: int @@ -276,7 +276,7 @@ def subtitle_config(self, subtitle_config): def dx(self): """Gets the dx of this VideoConfig. - 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dx最小值是0,最大值是1920。 :return: The dx of this VideoConfig. :rtype: int @@ -287,7 +287,7 @@ def dx(self): def dx(self, dx): """Sets the dx of this VideoConfig. - 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dx最小值是0,最大值是1920。 :param dx: The dx of this VideoConfig. :type dx: int @@ -298,7 +298,7 @@ def dx(self, dx): def dy(self): """Gets the dy of this VideoConfig. - 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dy最小值是0,最大值是1080 :return: The dy of this VideoConfig. :rtype: int @@ -309,7 +309,7 @@ def dy(self): def dy(self, dy): """Sets the dy of this VideoConfig. - 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > * 以模特分辨率为画布大小,比如1920*1080分辨率的模特,dy最小值是0,最大值是1080 :param dy: The dy of this VideoConfig. :type dy: int diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/region/metastudio_region.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/region/metastudio_region.py index 3920f8dbcb..b07c8a71a1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/region/metastudio_region.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/region/metastudio_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class MetaStudioRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'MetaStudio': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index b9fa35bd5f..fc93c63e99 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py index 7a705cab6d..aba7eec230 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -36,9 +33,9 @@ class ModerationRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -47,6 +44,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Moderation': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py index 7a705cab6d..aba7eec230 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -36,9 +33,9 @@ class ModerationRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -47,6 +44,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Moderation': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 5e6d059893..06535a2084 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py index b705c84014..054839422a 100644 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -34,9 +31,9 @@ class MpcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -45,6 +42,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Mpc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 6e98221f7c..a62bfc9635 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py index deb09e7c48..06adb9d2f7 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class MrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Mrs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py index deb09e7c48..06adb9d2f7 100644 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -82,9 +79,9 @@ class MrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +90,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Mrs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 60c9e33091..545e29df51 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py b/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py index 60c8e93601..408488bde0 100644 --- a/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py +++ b/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py @@ -37,7 +37,7 @@ def __init__(self, variable_desc=None, variable_index=None, variable_type=None): :type variable_desc: str :param variable_index: 变量索引,对应模板内容变量索引 :type variable_index: int - :param variable_type: 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT + :param variable_type: 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT :type variable_type: str """ @@ -101,7 +101,7 @@ def variable_index(self, variable_index): def variable_type(self): """Gets the variable_type of this SmsTemplateVariableAttrReq. - 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT + 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT :return: The variable_type of this SmsTemplateVariableAttrReq. :rtype: str @@ -112,7 +112,7 @@ def variable_type(self): def variable_type(self, variable_type): """Sets the variable_type of this SmsTemplateVariableAttrReq. - 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT + 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT :param variable_type: The variable_type of this SmsTemplateVariableAttrReq. :type variable_type: str diff --git a/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/region/msgsms_region.py b/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/region/msgsms_region.py index b4f3f0e942..68f6f75864 100644 --- a/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/region/msgsms_region.py +++ b/huaweicloud-sdk-msgsms/huaweicloudsdkmsgsms/v2/region/msgsms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class MsgsmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Msgsms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 976fdc7c9c..824ee75831 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/huaweicloudsdkmssi/v1/region/mssi_region.py b/huaweicloud-sdk-mssi/huaweicloudsdkmssi/v1/region/mssi_region.py index 5f0556de58..d7469d5045 100644 --- a/huaweicloud-sdk-mssi/huaweicloudsdkmssi/v1/region/mssi_region.py +++ b/huaweicloud-sdk-mssi/huaweicloudsdkmssi/v1/region/mssi_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class MssiRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Mssi': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 6387355f7f..d2f82798a0 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py index 88d62dc64d..dae3810276 100644 --- a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py +++ b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -91,9 +88,9 @@ class NatRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -102,6 +99,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Nat': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index e899134355..c4c39a51a9 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py b/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py index d22eed8ef1..c436576c58 100644 --- a/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py +++ b/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class NlpRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Nlp': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index ce57f422bc..c40afa041e 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py index 64dab56037..feea5ffc82 100644 --- a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class ObsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Obs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index 7462d516cc..572e910e49 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py index 4697deee8d..4f8ed485d4 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/__init__.py @@ -176,6 +176,8 @@ from huaweicloudsdkocr.v1.model.recognize_quota_invoice_response import RecognizeQuotaInvoiceResponse from huaweicloudsdkocr.v1.model.recognize_real_estate_certificate_request import RecognizeRealEstateCertificateRequest from huaweicloudsdkocr.v1.model.recognize_real_estate_certificate_response import RecognizeRealEstateCertificateResponse +from huaweicloudsdkocr.v1.model.recognize_seal_request import RecognizeSealRequest +from huaweicloudsdkocr.v1.model.recognize_seal_response import RecognizeSealResponse from huaweicloudsdkocr.v1.model.recognize_smart_document_recognizer_request import RecognizeSmartDocumentRecognizerRequest from huaweicloudsdkocr.v1.model.recognize_smart_document_recognizer_response import RecognizeSmartDocumentRecognizerResponse from huaweicloudsdkocr.v1.model.recognize_taxi_invoice_request import RecognizeTaxiInvoiceRequest @@ -204,6 +206,10 @@ from huaweicloudsdkocr.v1.model.recognize_waybill_electronic_response import RecognizeWaybillElectronicResponse from huaweicloudsdkocr.v1.model.recognize_web_image_request import RecognizeWebImageRequest from huaweicloudsdkocr.v1.model.recognize_web_image_response import RecognizeWebImageResponse +from huaweicloudsdkocr.v1.model.seal_list import SealList +from huaweicloudsdkocr.v1.model.seal_request_body import SealRequestBody +from huaweicloudsdkocr.v1.model.seal_result import SealResult +from huaweicloudsdkocr.v1.model.seal_words_block_list import SealWordsBlockList from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_block import SmartDocumentRecognizerKVBlock from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_words_block import SmartDocumentRecognizerKVWordsBlock from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_result import SmartDocumentRecognizerKvResult diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py index ae23604654..78f3475d47 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/__init__.py @@ -174,6 +174,8 @@ from huaweicloudsdkocr.v1.model.recognize_quota_invoice_response import RecognizeQuotaInvoiceResponse from huaweicloudsdkocr.v1.model.recognize_real_estate_certificate_request import RecognizeRealEstateCertificateRequest from huaweicloudsdkocr.v1.model.recognize_real_estate_certificate_response import RecognizeRealEstateCertificateResponse +from huaweicloudsdkocr.v1.model.recognize_seal_request import RecognizeSealRequest +from huaweicloudsdkocr.v1.model.recognize_seal_response import RecognizeSealResponse from huaweicloudsdkocr.v1.model.recognize_smart_document_recognizer_request import RecognizeSmartDocumentRecognizerRequest from huaweicloudsdkocr.v1.model.recognize_smart_document_recognizer_response import RecognizeSmartDocumentRecognizerResponse from huaweicloudsdkocr.v1.model.recognize_taxi_invoice_request import RecognizeTaxiInvoiceRequest @@ -202,6 +204,10 @@ from huaweicloudsdkocr.v1.model.recognize_waybill_electronic_response import RecognizeWaybillElectronicResponse from huaweicloudsdkocr.v1.model.recognize_web_image_request import RecognizeWebImageRequest from huaweicloudsdkocr.v1.model.recognize_web_image_response import RecognizeWebImageResponse +from huaweicloudsdkocr.v1.model.seal_list import SealList +from huaweicloudsdkocr.v1.model.seal_request_body import SealRequestBody +from huaweicloudsdkocr.v1.model.seal_result import SealResult +from huaweicloudsdkocr.v1.model.seal_words_block_list import SealWordsBlockList from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_block import SmartDocumentRecognizerKVBlock from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_words_block import SmartDocumentRecognizerKVWordsBlock from huaweicloudsdkocr.v1.model.smart_document_recognizer_kv_result import SmartDocumentRecognizerKvResult diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_result.py index 9553b95ccf..fffc662e62 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_result.py @@ -34,6 +34,13 @@ class FlightItineraryResult: 'agent_code': 'str', 'issue_organization': 'str', 'issue_date': 'str', + 'tax': 'str', + 'tax_rate': 'str', + 'buyer_name': 'str', + 'buyer_id': 'str', + 'number': 'str', + 'international_flag': 'str', + 'issue_status': 'str', 'itinerary_list': 'list[ItineraryList]', 'confidence': 'object' } @@ -56,11 +63,18 @@ class FlightItineraryResult: 'agent_code': 'agent_code', 'issue_organization': 'issue_organization', 'issue_date': 'issue_date', + 'tax': 'tax', + 'tax_rate': 'tax_rate', + 'buyer_name': 'buyer_name', + 'buyer_id': 'buyer_id', + 'number': 'number', + 'international_flag': 'international_flag', + 'issue_status': 'issue_status', 'itinerary_list': 'itinerary_list', 'confidence': 'confidence' } - def __init__(self, serial_number=None, passenger_name=None, id_number=None, endorsements_restrictions=None, order_number=None, fare=None, caac_development_fund=None, fuel_surcharge=None, other_taxes=None, total=None, e_ticket_number=None, check_code=None, reference_information=None, insurance=None, agent_code=None, issue_organization=None, issue_date=None, itinerary_list=None, confidence=None): + def __init__(self, serial_number=None, passenger_name=None, id_number=None, endorsements_restrictions=None, order_number=None, fare=None, caac_development_fund=None, fuel_surcharge=None, other_taxes=None, total=None, e_ticket_number=None, check_code=None, reference_information=None, insurance=None, agent_code=None, issue_organization=None, issue_date=None, tax=None, tax_rate=None, buyer_name=None, buyer_id=None, number=None, international_flag=None, issue_status=None, itinerary_list=None, confidence=None): """FlightItineraryResult The model defined in huaweicloud sdk @@ -99,6 +113,20 @@ def __init__(self, serial_number=None, passenger_name=None, id_number=None, endo :type issue_organization: str :param issue_date: 填开日期。 :type issue_date: str + :param tax: 增值税税额 + :type tax: str + :param tax_rate: 增值税税率 + :type tax_rate: str + :param buyer_name: 购买方名称 + :type buyer_name: str + :param buyer_id: 购买方纳税人识别号 + :type buyer_id: str + :param number: 发票号码 + :type number: str + :param international_flag: 国内国际标签 + :type international_flag: str + :param issue_status: 开具状态 + :type issue_status: str :param itinerary_list: 机票行程列表。 :type itinerary_list: list[:class:`huaweicloudsdkocr.v1.ItineraryList`] :param confidence: 相关字段的置信度信息,取值范围0~1。 置信度越大,表示本次识别的对应字段的可靠性越高,在统计意义上,置信度越大,准确率越高。 置信度由算法给出,不直接等价于对应字段的准确率。 > 说明: - (1)置信度中的相关字段均与返回值中的相关字段一一对应; - (2)置信度中的itinerary_list的顺序与返回值中的itinerary_list的顺序是一致的。 @@ -124,6 +152,13 @@ def __init__(self, serial_number=None, passenger_name=None, id_number=None, endo self._agent_code = None self._issue_organization = None self._issue_date = None + self._tax = None + self._tax_rate = None + self._buyer_name = None + self._buyer_id = None + self._number = None + self._international_flag = None + self._issue_status = None self._itinerary_list = None self._confidence = None self.discriminator = None @@ -162,6 +197,20 @@ def __init__(self, serial_number=None, passenger_name=None, id_number=None, endo self.issue_organization = issue_organization if issue_date is not None: self.issue_date = issue_date + if tax is not None: + self.tax = tax + if tax_rate is not None: + self.tax_rate = tax_rate + if buyer_name is not None: + self.buyer_name = buyer_name + if buyer_id is not None: + self.buyer_id = buyer_id + if number is not None: + self.number = number + if international_flag is not None: + self.international_flag = international_flag + if issue_status is not None: + self.issue_status = issue_status if itinerary_list is not None: self.itinerary_list = itinerary_list if confidence is not None: @@ -541,6 +590,160 @@ def issue_date(self, issue_date): """ self._issue_date = issue_date + @property + def tax(self): + """Gets the tax of this FlightItineraryResult. + + 增值税税额 + + :return: The tax of this FlightItineraryResult. + :rtype: str + """ + return self._tax + + @tax.setter + def tax(self, tax): + """Sets the tax of this FlightItineraryResult. + + 增值税税额 + + :param tax: The tax of this FlightItineraryResult. + :type tax: str + """ + self._tax = tax + + @property + def tax_rate(self): + """Gets the tax_rate of this FlightItineraryResult. + + 增值税税率 + + :return: The tax_rate of this FlightItineraryResult. + :rtype: str + """ + return self._tax_rate + + @tax_rate.setter + def tax_rate(self, tax_rate): + """Sets the tax_rate of this FlightItineraryResult. + + 增值税税率 + + :param tax_rate: The tax_rate of this FlightItineraryResult. + :type tax_rate: str + """ + self._tax_rate = tax_rate + + @property + def buyer_name(self): + """Gets the buyer_name of this FlightItineraryResult. + + 购买方名称 + + :return: The buyer_name of this FlightItineraryResult. + :rtype: str + """ + return self._buyer_name + + @buyer_name.setter + def buyer_name(self, buyer_name): + """Sets the buyer_name of this FlightItineraryResult. + + 购买方名称 + + :param buyer_name: The buyer_name of this FlightItineraryResult. + :type buyer_name: str + """ + self._buyer_name = buyer_name + + @property + def buyer_id(self): + """Gets the buyer_id of this FlightItineraryResult. + + 购买方纳税人识别号 + + :return: The buyer_id of this FlightItineraryResult. + :rtype: str + """ + return self._buyer_id + + @buyer_id.setter + def buyer_id(self, buyer_id): + """Sets the buyer_id of this FlightItineraryResult. + + 购买方纳税人识别号 + + :param buyer_id: The buyer_id of this FlightItineraryResult. + :type buyer_id: str + """ + self._buyer_id = buyer_id + + @property + def number(self): + """Gets the number of this FlightItineraryResult. + + 发票号码 + + :return: The number of this FlightItineraryResult. + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this FlightItineraryResult. + + 发票号码 + + :param number: The number of this FlightItineraryResult. + :type number: str + """ + self._number = number + + @property + def international_flag(self): + """Gets the international_flag of this FlightItineraryResult. + + 国内国际标签 + + :return: The international_flag of this FlightItineraryResult. + :rtype: str + """ + return self._international_flag + + @international_flag.setter + def international_flag(self, international_flag): + """Sets the international_flag of this FlightItineraryResult. + + 国内国际标签 + + :param international_flag: The international_flag of this FlightItineraryResult. + :type international_flag: str + """ + self._international_flag = international_flag + + @property + def issue_status(self): + """Gets the issue_status of this FlightItineraryResult. + + 开具状态 + + :return: The issue_status of this FlightItineraryResult. + :rtype: str + """ + return self._issue_status + + @issue_status.setter + def issue_status(self, issue_status): + """Sets the issue_status of this FlightItineraryResult. + + 开具状态 + + :param issue_status: The issue_status of this FlightItineraryResult. + :type issue_status: str + """ + self._issue_status = issue_status + @property def itinerary_list(self): """Gets the itinerary_list of this FlightItineraryResult. diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/invoice_verification_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/invoice_verification_request_body.py index 4fa8b4750c..c4e3230f88 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/invoice_verification_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/invoice_verification_request_body.py @@ -45,7 +45,7 @@ def __init__(self, code=None, number=None, issue_date=None, check_code=None, sub :type issue_date: str :param check_code: 校验码后六位。 - 以下种类发票,参数不可为空 增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、区块链电子发票。 - 区块链电子发票需要填写5位校验码。 :type check_code: str - :param subtotal_amount: 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 + :param subtotal_amount: 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。如果输入“88”或“88.0”可能会产生\"result_code\": \"1010\", \" Parameter error.\"报错。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 :type subtotal_amount: str """ @@ -158,7 +158,7 @@ def check_code(self, check_code): def subtotal_amount(self): """Gets the subtotal_amount of this InvoiceVerificationRequestBody. - 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 + 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。如果输入“88”或“88.0”可能会产生\"result_code\": \"1010\", \" Parameter error.\"报错。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 :return: The subtotal_amount of this InvoiceVerificationRequestBody. :rtype: str @@ -169,7 +169,7 @@ def subtotal_amount(self): def subtotal_amount(self, subtotal_amount): """Sets the subtotal_amount of this InvoiceVerificationRequestBody. - 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 + 合计金额。和票据上的金额的有效数字保持一致,例如票据上的金额为88.00,则需要输入字符串为“88.00”,才能验真成功。如果输入“88”或“88.0”可能会产生\"result_code\": \"1010\", \" Parameter error.\"报错。 发票种类为全电发票时,该参数须为价税合计金额,其他票种使用不含税合计金额。 - 以下种类发票,参数不可为空 增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链电子发票、全电发票。 - 填写发票合计金额(不含税) 增值税专用发票、增值税电子专用发票、机动车销售统一发票、区块链电子发票。 - 二手车发票需要填写发票车价合计金额 :param subtotal_amount: The subtotal_amount of this InvoiceVerificationRequestBody. :type subtotal_amount: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_request.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_request.py new file mode 100644 index 0000000000..b36216ba3c --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecognizeSealRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enterprise_project_id': 'str', + 'body': 'SealRequestBody' + } + + attribute_map = { + 'enterprise_project_id': 'Enterprise-Project-Id', + 'body': 'body' + } + + def __init__(self, enterprise_project_id=None, body=None): + """RecognizeSealRequest + + The model defined in huaweicloud sdk + + :param enterprise_project_id: 企业项目ID。OCR支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用OCR服务,账单归到企业ID对应的企业项目中。 - 携带错误的ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 - 不携带ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 + :type enterprise_project_id: str + :param body: Body of the RecognizeSealRequest + :type body: :class:`huaweicloudsdkocr.v1.SealRequestBody` + """ + + + + self._enterprise_project_id = None + self._body = None + self.discriminator = None + + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if body is not None: + self.body = body + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this RecognizeSealRequest. + + 企业项目ID。OCR支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用OCR服务,账单归到企业ID对应的企业项目中。 - 携带错误的ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 - 不携带ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 + + :return: The enterprise_project_id of this RecognizeSealRequest. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this RecognizeSealRequest. + + 企业项目ID。OCR支持通过企业项目管理(EPS)对不同用户组和用户的资源使用,进行分账。 获取方法:进入“[企业项目管理](https://console.huaweicloud.com/eps/?region=cn-north-4#/projects/list)”页面,单击企业项目名称,在企业项目详情页获取Enterprise-Project-Id(企业项目ID)。 企业项目创建步骤请参见用户指南。 > 说明: 创建企业项目后,在传参时,有以下三类场景。 - 携带正确的ID,正常使用OCR服务,账单归到企业ID对应的企业项目中。 - 携带错误的ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 - 不携带ID,正常使用OCR服务,账单的企业项目会被分类为“未归集”。 + + :param enterprise_project_id: The enterprise_project_id of this RecognizeSealRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def body(self): + """Gets the body of this RecognizeSealRequest. + + :return: The body of this RecognizeSealRequest. + :rtype: :class:`huaweicloudsdkocr.v1.SealRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RecognizeSealRequest. + + :param body: The body of this RecognizeSealRequest. + :type body: :class:`huaweicloudsdkocr.v1.SealRequestBody` + """ + 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, RecognizeSealRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_response.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_response.py new file mode 100644 index 0000000000..c9ad9aeee8 --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_seal_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecognizeSealResponse(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 = { + 'result': 'SealResult' + } + + attribute_map = { + 'result': 'result' + } + + def __init__(self, result=None): + """RecognizeSealResponse + + The model defined in huaweicloud sdk + + :param result: + :type result: :class:`huaweicloudsdkocr.v1.SealResult` + """ + + super(RecognizeSealResponse, self).__init__() + + self._result = None + self.discriminator = None + + if result is not None: + self.result = result + + @property + def result(self): + """Gets the result of this RecognizeSealResponse. + + :return: The result of this RecognizeSealResponse. + :rtype: :class:`huaweicloudsdkocr.v1.SealResult` + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this RecognizeSealResponse. + + :param result: The result of this RecognizeSealResponse. + :type result: :class:`huaweicloudsdkocr.v1.SealResult` + """ + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecognizeSealResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_list.py new file mode 100644 index 0000000000..a0abec780f --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_list.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SealList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'seal_image': 'str', + 'confidence': 'float', + 'location': 'list[list[int]]', + 'words_block_list': 'list[SealWordsBlockList]' + } + + attribute_map = { + 'type': 'type', + 'seal_image': 'seal_image', + 'confidence': 'confidence', + 'location': 'location', + 'words_block_list': 'words_block_list' + } + + def __init__(self, type=None, seal_image=None, confidence=None, location=None, words_block_list=None): + """SealList + + The model defined in huaweicloud sdk + + :param type: 印章类型,当前支持circle(圆形章)、ellipse(椭圆章)、rectangle(方形章)、triangle(三角章)、rhombus(菱形章)五种。 + :type type: str + :param seal_image: 提取的单个印章base64编码图片。 + :type seal_image: str + :param confidence: 印章位置的置信度。 + :type confidence: float + :param location: 印章位置,列表形式,包含印章区域四个顶点的二维坐标(x,y),坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + :type location: list[list[int]] + :param words_block_list: 印章文本块列表。 + :type words_block_list: list[:class:`huaweicloudsdkocr.v1.SealWordsBlockList`] + """ + + + + self._type = None + self._seal_image = None + self._confidence = None + self._location = None + self._words_block_list = None + self.discriminator = None + + if type is not None: + self.type = type + if seal_image is not None: + self.seal_image = seal_image + if confidence is not None: + self.confidence = confidence + if location is not None: + self.location = location + if words_block_list is not None: + self.words_block_list = words_block_list + + @property + def type(self): + """Gets the type of this SealList. + + 印章类型,当前支持circle(圆形章)、ellipse(椭圆章)、rectangle(方形章)、triangle(三角章)、rhombus(菱形章)五种。 + + :return: The type of this SealList. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SealList. + + 印章类型,当前支持circle(圆形章)、ellipse(椭圆章)、rectangle(方形章)、triangle(三角章)、rhombus(菱形章)五种。 + + :param type: The type of this SealList. + :type type: str + """ + self._type = type + + @property + def seal_image(self): + """Gets the seal_image of this SealList. + + 提取的单个印章base64编码图片。 + + :return: The seal_image of this SealList. + :rtype: str + """ + return self._seal_image + + @seal_image.setter + def seal_image(self, seal_image): + """Sets the seal_image of this SealList. + + 提取的单个印章base64编码图片。 + + :param seal_image: The seal_image of this SealList. + :type seal_image: str + """ + self._seal_image = seal_image + + @property + def confidence(self): + """Gets the confidence of this SealList. + + 印章位置的置信度。 + + :return: The confidence of this SealList. + :rtype: float + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this SealList. + + 印章位置的置信度。 + + :param confidence: The confidence of this SealList. + :type confidence: float + """ + self._confidence = confidence + + @property + def location(self): + """Gets the location of this SealList. + + 印章位置,列表形式,包含印章区域四个顶点的二维坐标(x,y),坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + + :return: The location of this SealList. + :rtype: list[list[int]] + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this SealList. + + 印章位置,列表形式,包含印章区域四个顶点的二维坐标(x,y),坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 + + :param location: The location of this SealList. + :type location: list[list[int]] + """ + self._location = location + + @property + def words_block_list(self): + """Gets the words_block_list of this SealList. + + 印章文本块列表。 + + :return: The words_block_list of this SealList. + :rtype: list[:class:`huaweicloudsdkocr.v1.SealWordsBlockList`] + """ + return self._words_block_list + + @words_block_list.setter + def words_block_list(self, words_block_list): + """Sets the words_block_list of this SealList. + + 印章文本块列表。 + + :param words_block_list: The words_block_list of this SealList. + :type words_block_list: list[:class:`huaweicloudsdkocr.v1.SealWordsBlockList`] + """ + self._words_block_list = words_block_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, SealList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_request_body.py new file mode 100644 index 0000000000..0cc508d3a4 --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_request_body.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SealRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'url': 'str', + 'return_seal_image': 'bool', + 'return_erased_seal_image': 'bool', + 'pdf_page_number': 'int' + } + + attribute_map = { + 'data': 'data', + 'url': 'url', + 'return_seal_image': 'return_seal_image', + 'return_erased_seal_image': 'return_erased_seal_image', + 'pdf_page_number': 'pdf_page_number' + } + + def __init__(self, data=None, url=None, return_seal_image=None, return_erased_seal_image=None, pdf_page_number=None): + """SealRequestBody + + The model defined in huaweicloud sdk + + :param data: 该参数与url二选一。 图片的Base64编码,要求Base64编码后大小不超过10MB。 图片最短边不小于15px,最长边不超过8192px。支持JPEG、JPG、PNG、BMP、GIF、TIFF、WEBP、PCX、ICO、PSD、PDF格式。 图片Base64编码示例如/9j/4AAQSkZJRgABAg...,带有多余前缀会产生The image format is not supported报错。 + :type data: str + :param url: 与data二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 + :type url: str + :param return_seal_image: 是否返回提取的印章base64编码图片,可选值如下所示: - true:返回提取的印章图片base64编码 - false:不返回提取的印章图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + :type return_seal_image: bool + :param return_erased_seal_image: 是否返回印章擦除后的base64编码图片,可选值包括: - true:返回印章擦除后的图片base64编码 - false:不返回印章擦除后的图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + :type return_erased_seal_image: bool + :param pdf_page_number: 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 + :type pdf_page_number: int + """ + + + + self._data = None + self._url = None + self._return_seal_image = None + self._return_erased_seal_image = None + self._pdf_page_number = None + self.discriminator = None + + if data is not None: + self.data = data + if url is not None: + self.url = url + if return_seal_image is not None: + self.return_seal_image = return_seal_image + if return_erased_seal_image is not None: + self.return_erased_seal_image = return_erased_seal_image + if pdf_page_number is not None: + self.pdf_page_number = pdf_page_number + + @property + def data(self): + """Gets the data of this SealRequestBody. + + 该参数与url二选一。 图片的Base64编码,要求Base64编码后大小不超过10MB。 图片最短边不小于15px,最长边不超过8192px。支持JPEG、JPG、PNG、BMP、GIF、TIFF、WEBP、PCX、ICO、PSD、PDF格式。 图片Base64编码示例如/9j/4AAQSkZJRgABAg...,带有多余前缀会产生The image format is not supported报错。 + + :return: The data of this SealRequestBody. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this SealRequestBody. + + 该参数与url二选一。 图片的Base64编码,要求Base64编码后大小不超过10MB。 图片最短边不小于15px,最长边不超过8192px。支持JPEG、JPG、PNG、BMP、GIF、TIFF、WEBP、PCX、ICO、PSD、PDF格式。 图片Base64编码示例如/9j/4AAQSkZJRgABAg...,带有多余前缀会产生The image format is not supported报错。 + + :param data: The data of this SealRequestBody. + :type data: str + """ + self._data = data + + @property + def url(self): + """Gets the url of this SealRequestBody. + + 与data二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 + + :return: The url of this SealRequestBody. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this SealRequestBody. + + 与data二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 + + :param url: The url of this SealRequestBody. + :type url: str + """ + self._url = url + + @property + def return_seal_image(self): + """Gets the return_seal_image of this SealRequestBody. + + 是否返回提取的印章base64编码图片,可选值如下所示: - true:返回提取的印章图片base64编码 - false:不返回提取的印章图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + + :return: The return_seal_image of this SealRequestBody. + :rtype: bool + """ + return self._return_seal_image + + @return_seal_image.setter + def return_seal_image(self, return_seal_image): + """Sets the return_seal_image of this SealRequestBody. + + 是否返回提取的印章base64编码图片,可选值如下所示: - true:返回提取的印章图片base64编码 - false:不返回提取的印章图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + + :param return_seal_image: The return_seal_image of this SealRequestBody. + :type return_seal_image: bool + """ + self._return_seal_image = return_seal_image + + @property + def return_erased_seal_image(self): + """Gets the return_erased_seal_image of this SealRequestBody. + + 是否返回印章擦除后的base64编码图片,可选值包括: - true:返回印章擦除后的图片base64编码 - false:不返回印章擦除后的图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + + :return: The return_erased_seal_image of this SealRequestBody. + :rtype: bool + """ + return self._return_erased_seal_image + + @return_erased_seal_image.setter + def return_erased_seal_image(self, return_erased_seal_image): + """Sets the return_erased_seal_image of this SealRequestBody. + + 是否返回印章擦除后的base64编码图片,可选值包括: - true:返回印章擦除后的图片base64编码 - false:不返回印章擦除后的图片base64编码 如果无该参数,系统默认不返回印章擦除后的图片。如果输入参数不是Boolean类型,则会报非法参数错误。 + + :param return_erased_seal_image: The return_erased_seal_image of this SealRequestBody. + :type return_erased_seal_image: bool + """ + self._return_erased_seal_image = return_erased_seal_image + + @property + def pdf_page_number(self): + """Gets the pdf_page_number of this SealRequestBody. + + 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 + + :return: The pdf_page_number of this SealRequestBody. + :rtype: int + """ + return self._pdf_page_number + + @pdf_page_number.setter + def pdf_page_number(self, pdf_page_number): + """Sets the pdf_page_number of this SealRequestBody. + + 指定PDF页码识别。传入该参数时,则识别指定页码的内容。如果不传该参数,则默认识别第1页。 + + :param pdf_page_number: The pdf_page_number of this SealRequestBody. + :type pdf_page_number: int + """ + self._pdf_page_number = pdf_page_number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SealRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_result.py new file mode 100644 index 0000000000..314eb5046f --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_result.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SealResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'seal_list': 'list[SealList]', + 'erased_seal_image': 'str' + } + + attribute_map = { + 'seal_list': 'seal_list', + 'erased_seal_image': 'erased_seal_image' + } + + def __init__(self, seal_list=None, erased_seal_image=None): + """SealResult + + The model defined in huaweicloud sdk + + :param seal_list: 印章信息列表。 + :type seal_list: list[:class:`huaweicloudsdkocr.v1.SealList`] + :param erased_seal_image: 在输入图片基础上进行印章擦除后的base64编码图片。 + :type erased_seal_image: str + """ + + + + self._seal_list = None + self._erased_seal_image = None + self.discriminator = None + + if seal_list is not None: + self.seal_list = seal_list + if erased_seal_image is not None: + self.erased_seal_image = erased_seal_image + + @property + def seal_list(self): + """Gets the seal_list of this SealResult. + + 印章信息列表。 + + :return: The seal_list of this SealResult. + :rtype: list[:class:`huaweicloudsdkocr.v1.SealList`] + """ + return self._seal_list + + @seal_list.setter + def seal_list(self, seal_list): + """Sets the seal_list of this SealResult. + + 印章信息列表。 + + :param seal_list: The seal_list of this SealResult. + :type seal_list: list[:class:`huaweicloudsdkocr.v1.SealList`] + """ + self._seal_list = seal_list + + @property + def erased_seal_image(self): + """Gets the erased_seal_image of this SealResult. + + 在输入图片基础上进行印章擦除后的base64编码图片。 + + :return: The erased_seal_image of this SealResult. + :rtype: str + """ + return self._erased_seal_image + + @erased_seal_image.setter + def erased_seal_image(self, erased_seal_image): + """Sets the erased_seal_image of this SealResult. + + 在输入图片基础上进行印章擦除后的base64编码图片。 + + :param erased_seal_image: The erased_seal_image of this SealResult. + :type erased_seal_image: str + """ + self._erased_seal_image = erased_seal_image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SealResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_words_block_list.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_words_block_list.py new file mode 100644 index 0000000000..a35a0a5dd9 --- /dev/null +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/seal_words_block_list.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SealWordsBlockList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'words': 'str', + 'words_confidence': 'float' + } + + attribute_map = { + 'words': 'words', + 'words_confidence': 'words_confidence' + } + + def __init__(self, words=None, words_confidence=None): + """SealWordsBlockList + + The model defined in huaweicloud sdk + + :param words: 印章文本块。 + :type words: str + :param words_confidence: 印章文本块的置信度。 + :type words_confidence: float + """ + + + + self._words = None + self._words_confidence = None + self.discriminator = None + + if words is not None: + self.words = words + if words_confidence is not None: + self.words_confidence = words_confidence + + @property + def words(self): + """Gets the words of this SealWordsBlockList. + + 印章文本块。 + + :return: The words of this SealWordsBlockList. + :rtype: str + """ + return self._words + + @words.setter + def words(self, words): + """Sets the words of this SealWordsBlockList. + + 印章文本块。 + + :param words: The words of this SealWordsBlockList. + :type words: str + """ + self._words = words + + @property + def words_confidence(self): + """Gets the words_confidence of this SealWordsBlockList. + + 印章文本块的置信度。 + + :return: The words_confidence of this SealWordsBlockList. + :rtype: float + """ + return self._words_confidence + + @words_confidence.setter + def words_confidence(self, words_confidence): + """Sets the words_confidence of this SealWordsBlockList. + + 印章文本块的置信度。 + + :param words_confidence: The words_confidence of this SealWordsBlockList. + :type words_confidence: float + """ + self._words_confidence = words_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, SealWordsBlockList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py index 11537da0e7..50786cc31a 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_async_client.py @@ -2297,6 +2297,73 @@ def _recognize_real_estate_certificate_http_info(self, request): return http_info + def recognize_seal_async(self, request): + """印章识别 + + 检测和识别合同文件或常用票据中的印章,并可擦除和提取图片中的印章,通过JSON格式返回印章检测、识别、擦除和提取的结果。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RecognizeSeal + :type request: :class:`huaweicloudsdkocr.v1.RecognizeSealRequest` + :rtype: :class:`huaweicloudsdkocr.v1.RecognizeSealResponse` + """ + http_info = self._recognize_seal_http_info(request) + return self._call_api(**http_info) + + def recognize_seal_async_invoker(self, request): + http_info = self._recognize_seal_http_info(request) + return AsyncInvoker(self, http_info) + + def _recognize_seal_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/ocr/seal", + "request_type": request.__class__.__name__, + "response_type": "RecognizeSealResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'enterprise_project_id' in local_var_params: + header_params['Enterprise-Project-Id'] = local_var_params['enterprise_project_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def recognize_smart_document_recognizer_async(self, request): """智能文档解析 diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py index 19a84c7653..4023b3e1ab 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/ocr_client.py @@ -2297,6 +2297,73 @@ def _recognize_real_estate_certificate_http_info(cls, request): return http_info + def recognize_seal(self, request): + """印章识别 + + 检测和识别合同文件或常用票据中的印章,并可擦除和提取图片中的印章,通过JSON格式返回印章检测、识别、擦除和提取的结果。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RecognizeSeal + :type request: :class:`huaweicloudsdkocr.v1.RecognizeSealRequest` + :rtype: :class:`huaweicloudsdkocr.v1.RecognizeSealResponse` + """ + http_info = self._recognize_seal_http_info(request) + return self._call_api(**http_info) + + def recognize_seal_invoker(self, request): + http_info = self._recognize_seal_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _recognize_seal_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/ocr/seal", + "request_type": request.__class__.__name__, + "response_type": "RecognizeSealResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'enterprise_project_id' in local_var_params: + header_params['Enterprise-Project-Id'] = local_var_params['enterprise_project_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def recognize_smart_document_recognizer(self, request): """智能文档解析 diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py index 938ae4f0e2..28347114bc 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class OcrRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ocr': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index fa5bb225c9..d76ba0535f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/huaweicloudsdkoctopus/v2/region/octopus_region.py b/huaweicloud-sdk-octopus/huaweicloudsdkoctopus/v2/region/octopus_region.py index 62dd868ce0..76bfecb6eb 100644 --- a/huaweicloud-sdk-octopus/huaweicloudsdkoctopus/v2/region/octopus_region.py +++ b/huaweicloud-sdk-octopus/huaweicloudsdkoctopus/v2/region/octopus_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class OctopusRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Octopus': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index f956d7ace4..f6c3669638 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py b/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py index bb6e8ae69c..b1446a899f 100644 --- a/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py +++ b/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -67,9 +64,9 @@ class OmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -78,6 +75,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Oms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 678819d16c..f91269160b 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/huaweicloudsdkoptverse/v1/region/optverse_region.py b/huaweicloud-sdk-optverse/huaweicloudsdkoptverse/v1/region/optverse_region.py index 0bb07d4d17..96a0536ade 100644 --- a/huaweicloud-sdk-optverse/huaweicloudsdkoptverse/v1/region/optverse_region.py +++ b/huaweicloud-sdk-optverse/huaweicloudsdkoptverse/v1/region/optverse_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class OptVerseRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'OptVerse': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index d5c735207c..0d028f9d6a 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/region/organizations_region.py b/huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/region/organizations_region.py index 2f20618f6b..ea70067e70 100644 --- a/huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/region/organizations_region.py +++ b/huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/region/organizations_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class OrganizationsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Organizations': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 334a9e94af..32f0fcffb9 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/region/oroas_region.py b/huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/region/oroas_region.py index ad5a46c020..b2a2897441 100644 --- a/huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/region/oroas_region.py +++ b/huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/region/oroas_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class OroasRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Oroas': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index eaa561e4d1..cc074dadec 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py index 44d28c5bce..a439b55731 100644 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class OsmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Osm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 424caf3d4e..5b37880507 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/huaweicloudsdkpangulargemodels/v1/region/pangulargemodels_region.py b/huaweicloud-sdk-pangulargemodels/huaweicloudsdkpangulargemodels/v1/region/pangulargemodels_region.py index 84724fd26a..59febe1192 100644 --- a/huaweicloud-sdk-pangulargemodels/huaweicloudsdkpangulargemodels/v1/region/pangulargemodels_region.py +++ b/huaweicloud-sdk-pangulargemodels/huaweicloudsdkpangulargemodels/v1/region/pangulargemodels_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class PanguLargeModelsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'PanguLargeModels': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index ff5da8837f..93fdde9970 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py b/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py index a9b6031924..f145498241 100644 --- a/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py +++ b/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class ProjectManRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'ProjectMan': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index e16d2245bc..f436a73ff4 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py index 82bf680949..03aad41d03 100644 --- a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py +++ b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -57,6 +54,8 @@ class RabbitMQRegion: "https://dms.eu-west-0.myhuaweicloud.com") ME_EAST_1 = Region("me-east-1", "https://dms.me-east-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://dms.cn-east-5.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -83,14 +82,15 @@ class RabbitMQRegion: "ae-ad-1": AE_AD_1, "eu-west-0": EU_WEST_0, "me-east-1": ME_EAST_1, + "cn-east-5": CN_EAST_5, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -99,6 +99,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'RabbitMQ': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index f0ec9b0abc..7bf40bf042 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/huaweicloudsdkram/v1/region/ram_region.py b/huaweicloud-sdk-ram/huaweicloudsdkram/v1/region/ram_region.py index c24325c05d..5a55687252 100644 --- a/huaweicloud-sdk-ram/huaweicloudsdkram/v1/region/ram_region.py +++ b/huaweicloud-sdk-ram/huaweicloudsdkram/v1/region/ram_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class RamRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ram': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 5ad7f74516..0d9da6fe41 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_instsance_v3.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_instsance_v3.py index af0f96847f..1d74dc41ea 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_instsance_v3.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_instsance_v3.py @@ -32,7 +32,8 @@ class RecycleInstsanceV3: 'enterprise_project_id': 'str', 'retained_until': 'str', 'recycle_backup_id': 'str', - 'recycle_status': 'str' + 'recycle_status': 'str', + 'is_serverless': 'bool' } attribute_map = { @@ -51,10 +52,11 @@ class RecycleInstsanceV3: 'enterprise_project_id': 'enterprise_project_id', 'retained_until': 'retained_until', 'recycle_backup_id': 'recycle_backup_id', - 'recycle_status': 'recycle_status' + 'recycle_status': 'recycle_status', + 'is_serverless': 'is_serverless' } - def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_version=None, pay_model=None, created_at=None, deleted_at=None, volume_type=None, volume_size=None, data_vip=None, data_vip_v6=None, enterprise_project_id=None, retained_until=None, recycle_backup_id=None, recycle_status=None): + def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_version=None, pay_model=None, created_at=None, deleted_at=None, volume_type=None, volume_size=None, data_vip=None, data_vip_v6=None, enterprise_project_id=None, retained_until=None, recycle_backup_id=None, recycle_status=None, is_serverless=None): """RecycleInstsanceV3 The model defined in huaweicloud sdk @@ -91,6 +93,8 @@ def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_ve :type recycle_backup_id: str :param recycle_status: 备份状态 取值范围如下,区分大小写: - BUILDING 备份中,不能进行重建 - COMPLETED,标识备份完成,可以重建 :type recycle_status: str + :param is_serverless: 是否为serverless实例 - false 不是serverless实例 - true 是serverless实例 + :type is_serverless: bool """ @@ -111,6 +115,7 @@ def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_ve self._retained_until = None self._recycle_backup_id = None self._recycle_status = None + self._is_serverless = None self.discriminator = None if id is not None: @@ -145,6 +150,8 @@ def __init__(self, id=None, name=None, ha_mode=None, engine_name=None, engine_ve self.recycle_backup_id = recycle_backup_id if recycle_status is not None: self.recycle_status = recycle_status + if is_serverless is not None: + self.is_serverless = is_serverless @property def id(self): @@ -498,6 +505,28 @@ def recycle_status(self, recycle_status): """ self._recycle_status = recycle_status + @property + def is_serverless(self): + """Gets the is_serverless of this RecycleInstsanceV3. + + 是否为serverless实例 - false 不是serverless实例 - true 是serverless实例 + + :return: The is_serverless of this RecycleInstsanceV3. + :rtype: bool + """ + return self._is_serverless + + @is_serverless.setter + def is_serverless(self, is_serverless): + """Sets the is_serverless of this RecycleInstsanceV3. + + 是否为serverless实例 - false 不是serverless实例 - true 是serverless实例 + + :param is_serverless: The is_serverless of this RecycleInstsanceV3. + :type is_serverless: bool + """ + self._is_serverless = is_serverless + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auditlog_policy_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auditlog_policy_response.py index 1a0c6ea054..4a03a0405b 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auditlog_policy_response.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auditlog_policy_response.py @@ -18,29 +18,43 @@ class ShowAuditlogPolicyResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'keep_days': 'int' + 'keep_days': 'int', + 'audit_types': 'list[str]', + 'all_audit_log_action': 'str' } attribute_map = { - 'keep_days': 'keep_days' + 'keep_days': 'keep_days', + 'audit_types': 'audit_types', + 'all_audit_log_action': 'all_audit_log_action' } - def __init__(self, keep_days=None): + def __init__(self, keep_days=None, audit_types=None, all_audit_log_action=None): """ShowAuditlogPolicyResponse The model defined in huaweicloud sdk :param keep_days: 审计日志保存天数,取值范围0~732。0表示关闭审计日志策略。 :type keep_days: int + :param audit_types: 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 + :type audit_types: list[str] + :param all_audit_log_action: 审计记录的所有操作类型。 + :type all_audit_log_action: str """ super(ShowAuditlogPolicyResponse, self).__init__() self._keep_days = None + self._audit_types = None + self._all_audit_log_action = None self.discriminator = None if keep_days is not None: self.keep_days = keep_days + if audit_types is not None: + self.audit_types = audit_types + if all_audit_log_action is not None: + self.all_audit_log_action = all_audit_log_action @property def keep_days(self): @@ -64,6 +78,50 @@ def keep_days(self, keep_days): """ self._keep_days = keep_days + @property + def audit_types(self): + """Gets the audit_types of this ShowAuditlogPolicyResponse. + + 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 + + :return: The audit_types of this ShowAuditlogPolicyResponse. + :rtype: list[str] + """ + return self._audit_types + + @audit_types.setter + def audit_types(self, audit_types): + """Sets the audit_types of this ShowAuditlogPolicyResponse. + + 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 + + :param audit_types: The audit_types of this ShowAuditlogPolicyResponse. + :type audit_types: list[str] + """ + self._audit_types = audit_types + + @property + def all_audit_log_action(self): + """Gets the all_audit_log_action of this ShowAuditlogPolicyResponse. + + 审计记录的所有操作类型。 + + :return: The all_audit_log_action of this ShowAuditlogPolicyResponse. + :rtype: str + """ + return self._all_audit_log_action + + @all_audit_log_action.setter + def all_audit_log_action(self, all_audit_log_action): + """Sets the all_audit_log_action of this ShowAuditlogPolicyResponse. + + 审计记录的所有操作类型。 + + :param all_audit_log_action: The all_audit_log_action of this ShowAuditlogPolicyResponse. + :type all_audit_log_action: str + """ + self._all_audit_log_action = all_audit_log_action + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py index bd1c990e74..c5436e3c8d 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,6 +16,8 @@ class RdsRegion: "https://rds.cn-east-2.myhuaweicloud.com") CN_EAST_3 = Region("cn-east-3", "https://rds.cn-east-3.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://rds.cn-east-5.myhuaweicloud.com") CN_SOUTH_1 = Region("cn-south-1", "https://rds.cn-south-1.myhuaweicloud.com") CN_SOUTHWEST_2 = Region("cn-southwest-2", @@ -53,6 +52,8 @@ class RdsRegion: "https://rds.ae-ad-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://rds.eu-west-101.myhuaweicloud.eu") + EU_WEST_0 = Region("eu-west-0", + "https://rds.eu-west-0.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -60,6 +61,7 @@ class RdsRegion: "cn-north-1": CN_NORTH_1, "cn-east-2": CN_EAST_2, "cn-east-3": CN_EAST_3, + "cn-east-5": CN_EAST_5, "cn-south-1": CN_SOUTH_1, "cn-southwest-2": CN_SOUTHWEST_2, "ap-southeast-2": AP_SOUTHEAST_2, @@ -77,14 +79,15 @@ class RdsRegion: "ap-southeast-4": AP_SOUTHEAST_4, "ae-ad-1": AE_AD_1, "eu-west-101": EU_WEST_101, + "eu-west-0": EU_WEST_0, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -93,6 +96,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Rds': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 47352310b0..a2725d7281 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py b/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py index 258eccac8b..9126b21c19 100644 --- a/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py +++ b/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class ResRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Res': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index f6ce48a41e..ae479ac535 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py index 7048a82a2a..9e6cee74a8 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/__init__.py @@ -7,6 +7,7 @@ from huaweicloudsdkrgc.v1.model.access_logging_bucket_baseline import AccessLoggingBucketBaseline from huaweicloudsdkrgc.v1.model.account_baseline import AccountBaseline +from huaweicloudsdkrgc.v1.model.account_baseline_rsp import AccountBaselineRsp from huaweicloudsdkrgc.v1.model.artifact import Artifact from huaweicloudsdkrgc.v1.model.blueprint import Blueprint from huaweicloudsdkrgc.v1.model.check_launch_request import CheckLaunchRequest @@ -32,6 +33,9 @@ from huaweicloudsdkrgc.v1.model.enable_control_request import EnableControlRequest from huaweicloudsdkrgc.v1.model.enable_control_response import EnableControlResponse from huaweicloudsdkrgc.v1.model.enabled_control import EnabledControl +from huaweicloudsdkrgc.v1.model.enroll_account_request import EnrollAccountRequest +from huaweicloudsdkrgc.v1.model.enroll_account_request_body import EnrollAccountRequestBody +from huaweicloudsdkrgc.v1.model.enroll_account_response import EnrollAccountResponse from huaweicloudsdkrgc.v1.model.identity_center_group import IdentityCenterGroup from huaweicloudsdkrgc.v1.model.landing_zone_error_message import LandingZoneErrorMessage from huaweicloudsdkrgc.v1.model.list_config_rule_compliance_request import ListConfigRuleComplianceRequest @@ -59,12 +63,15 @@ from huaweicloudsdkrgc.v1.model.managed_account import ManagedAccount from huaweicloudsdkrgc.v1.model.managed_organization_unit import ManagedOrganizationUnit from huaweicloudsdkrgc.v1.model.organization_structure_base_line import OrganizationStructureBaseLine +from huaweicloudsdkrgc.v1.model.organization_structure_base_line_rsp import OrganizationStructureBaseLineRsp from huaweicloudsdkrgc.v1.model.organizational_percentage_detail import OrganizationalPercentageDetail from huaweicloudsdkrgc.v1.model.organizational_unit_type import OrganizationalUnitType from huaweicloudsdkrgc.v1.model.organizational_unit_type_for_setup import OrganizationalUnitTypeForSetup from huaweicloudsdkrgc.v1.model.page_info_dto import PageInfoDto from huaweicloudsdkrgc.v1.model.percentage_detail import PercentageDetail from huaweicloudsdkrgc.v1.model.permission_set import PermissionSet +from huaweicloudsdkrgc.v1.model.re_register_organizational_unit_request import ReRegisterOrganizationalUnitRequest +from huaweicloudsdkrgc.v1.model.re_register_organizational_unit_response import ReRegisterOrganizationalUnitResponse from huaweicloudsdkrgc.v1.model.region_configuration_list import RegionConfigurationList from huaweicloudsdkrgc.v1.model.region_managed_list import RegionManagedList from huaweicloudsdkrgc.v1.model.register_organizational_unit_request import RegisterOrganizationalUnitRequest @@ -102,6 +109,9 @@ from huaweicloudsdkrgc.v1.model.show_operation_request import ShowOperationRequest from huaweicloudsdkrgc.v1.model.show_operation_response import ShowOperationResponse from huaweicloudsdkrgc.v1.model.target_control import TargetControl +from huaweicloudsdkrgc.v1.model.un_enroll_account_request import UnEnrollAccountRequest +from huaweicloudsdkrgc.v1.model.un_enroll_account_response import UnEnrollAccountResponse from huaweicloudsdkrgc.v1.model.update_managed_account_request import UpdateManagedAccountRequest +from huaweicloudsdkrgc.v1.model.update_managed_account_request_body import UpdateManagedAccountRequestBody from huaweicloudsdkrgc.v1.model.update_managed_account_response import UpdateManagedAccountResponse diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py index 6cf16d3de3..041d37dd79 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/__init__.py @@ -5,6 +5,7 @@ # import models into model package from huaweicloudsdkrgc.v1.model.access_logging_bucket_baseline import AccessLoggingBucketBaseline from huaweicloudsdkrgc.v1.model.account_baseline import AccountBaseline +from huaweicloudsdkrgc.v1.model.account_baseline_rsp import AccountBaselineRsp from huaweicloudsdkrgc.v1.model.artifact import Artifact from huaweicloudsdkrgc.v1.model.blueprint import Blueprint from huaweicloudsdkrgc.v1.model.check_launch_request import CheckLaunchRequest @@ -30,6 +31,9 @@ from huaweicloudsdkrgc.v1.model.enable_control_request import EnableControlRequest from huaweicloudsdkrgc.v1.model.enable_control_response import EnableControlResponse from huaweicloudsdkrgc.v1.model.enabled_control import EnabledControl +from huaweicloudsdkrgc.v1.model.enroll_account_request import EnrollAccountRequest +from huaweicloudsdkrgc.v1.model.enroll_account_request_body import EnrollAccountRequestBody +from huaweicloudsdkrgc.v1.model.enroll_account_response import EnrollAccountResponse from huaweicloudsdkrgc.v1.model.identity_center_group import IdentityCenterGroup from huaweicloudsdkrgc.v1.model.landing_zone_error_message import LandingZoneErrorMessage from huaweicloudsdkrgc.v1.model.list_config_rule_compliance_request import ListConfigRuleComplianceRequest @@ -57,12 +61,15 @@ from huaweicloudsdkrgc.v1.model.managed_account import ManagedAccount from huaweicloudsdkrgc.v1.model.managed_organization_unit import ManagedOrganizationUnit from huaweicloudsdkrgc.v1.model.organization_structure_base_line import OrganizationStructureBaseLine +from huaweicloudsdkrgc.v1.model.organization_structure_base_line_rsp import OrganizationStructureBaseLineRsp from huaweicloudsdkrgc.v1.model.organizational_percentage_detail import OrganizationalPercentageDetail from huaweicloudsdkrgc.v1.model.organizational_unit_type import OrganizationalUnitType from huaweicloudsdkrgc.v1.model.organizational_unit_type_for_setup import OrganizationalUnitTypeForSetup from huaweicloudsdkrgc.v1.model.page_info_dto import PageInfoDto from huaweicloudsdkrgc.v1.model.percentage_detail import PercentageDetail from huaweicloudsdkrgc.v1.model.permission_set import PermissionSet +from huaweicloudsdkrgc.v1.model.re_register_organizational_unit_request import ReRegisterOrganizationalUnitRequest +from huaweicloudsdkrgc.v1.model.re_register_organizational_unit_response import ReRegisterOrganizationalUnitResponse from huaweicloudsdkrgc.v1.model.region_configuration_list import RegionConfigurationList from huaweicloudsdkrgc.v1.model.region_managed_list import RegionManagedList from huaweicloudsdkrgc.v1.model.register_organizational_unit_request import RegisterOrganizationalUnitRequest @@ -100,5 +107,8 @@ from huaweicloudsdkrgc.v1.model.show_operation_request import ShowOperationRequest from huaweicloudsdkrgc.v1.model.show_operation_response import ShowOperationResponse from huaweicloudsdkrgc.v1.model.target_control import TargetControl +from huaweicloudsdkrgc.v1.model.un_enroll_account_request import UnEnrollAccountRequest +from huaweicloudsdkrgc.v1.model.un_enroll_account_response import UnEnrollAccountResponse from huaweicloudsdkrgc.v1.model.update_managed_account_request import UpdateManagedAccountRequest +from huaweicloudsdkrgc.v1.model.update_managed_account_request_body import UpdateManagedAccountRequestBody from huaweicloudsdkrgc.v1.model.update_managed_account_response import UpdateManagedAccountResponse diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline.py index 409f9b8582..fb9576ce02 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline.py @@ -16,11 +16,13 @@ class AccountBaseline: """ sensitive_list = [] sensitive_list.append('account_name') + sensitive_list.append('account_id') sensitive_list.append('phone') sensitive_list.append('account_email') openapi_types = { 'account_name': 'str', + 'account_id': 'str', 'phone': 'str', 'account_email': 'str', 'account_type': 'str' @@ -28,45 +30,52 @@ class AccountBaseline: attribute_map = { 'account_name': 'account_name', + 'account_id': 'account_id', 'phone': 'phone', 'account_email': 'account_email', 'account_type': 'account_type' } - def __init__(self, account_name=None, phone=None, account_email=None, account_type=None): + def __init__(self, account_name=None, account_id=None, phone=None, account_email=None, account_type=None): """AccountBaseline The model defined in huaweicloud sdk - :param account_name: 账号名称。 + :param account_name: 纳管账号名称。 :type account_name: str + :param account_id: 纳管帐号的唯一标识符(ID)。 + :type account_id: str :param phone: 手机号码。 :type phone: str - :param account_email: 账号邮箱。 + :param account_email: 纳管账号邮箱。 :type account_email: str - :param account_type: 账号类型logging,security。 * LOGGING - 日志账号 * SECURITY - 安全账号 * CUSTOM - 自定义账号 + :param account_type: 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 :type account_type: str """ self._account_name = None + self._account_id = None self._phone = None self._account_email = None self._account_type = None self.discriminator = None self.account_name = account_name + if account_id is not None: + self.account_id = account_id if phone is not None: self.phone = phone - self.account_email = account_email + if account_email is not None: + self.account_email = account_email self.account_type = account_type @property def account_name(self): """Gets the account_name of this AccountBaseline. - 账号名称。 + 纳管账号名称。 :return: The account_name of this AccountBaseline. :rtype: str @@ -77,13 +86,35 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this AccountBaseline. - 账号名称。 + 纳管账号名称。 :param account_name: The account_name of this AccountBaseline. :type account_name: str """ self._account_name = account_name + @property + def account_id(self): + """Gets the account_id of this AccountBaseline. + + 纳管帐号的唯一标识符(ID)。 + + :return: The account_id of this AccountBaseline. + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this AccountBaseline. + + 纳管帐号的唯一标识符(ID)。 + + :param account_id: The account_id of this AccountBaseline. + :type account_id: str + """ + self._account_id = account_id + @property def phone(self): """Gets the phone of this AccountBaseline. @@ -110,7 +141,7 @@ def phone(self, phone): def account_email(self): """Gets the account_email of this AccountBaseline. - 账号邮箱。 + 纳管账号邮箱。 :return: The account_email of this AccountBaseline. :rtype: str @@ -121,7 +152,7 @@ def account_email(self): def account_email(self, account_email): """Sets the account_email of this AccountBaseline. - 账号邮箱。 + 纳管账号邮箱。 :param account_email: The account_email of this AccountBaseline. :type account_email: str @@ -132,7 +163,7 @@ def account_email(self, account_email): def account_type(self): """Gets the account_type of this AccountBaseline. - 账号类型logging,security。 * LOGGING - 日志账号 * SECURITY - 安全账号 * CUSTOM - 自定义账号 + 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 :return: The account_type of this AccountBaseline. :rtype: str @@ -143,7 +174,7 @@ def account_type(self): def account_type(self, account_type): """Sets the account_type of this AccountBaseline. - 账号类型logging,security。 * LOGGING - 日志账号 * SECURITY - 安全账号 * CUSTOM - 自定义账号 + 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 :param account_type: The account_type of this AccountBaseline. :type account_type: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline_rsp.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline_rsp.py new file mode 100644 index 0000000000..91860edfad --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/account_baseline_rsp.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AccountBaselineRsp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + sensitive_list.append('account_name') + sensitive_list.append('account_id') + sensitive_list.append('account_email') + + openapi_types = { + 'account_name': 'str', + 'account_id': 'str', + 'account_email': 'str', + 'account_type': 'str' + } + + attribute_map = { + 'account_name': 'account_name', + 'account_id': 'account_id', + 'account_email': 'account_email', + 'account_type': 'account_type' + } + + def __init__(self, account_name=None, account_id=None, account_email=None, account_type=None): + """AccountBaselineRsp + + The model defined in huaweicloud sdk + + :param account_name: 纳管账号名称。 + :type account_name: str + :param account_id: 纳管帐号的唯一标识符(ID)。 + :type account_id: str + :param account_email: 纳管账号邮箱。 + :type account_email: str + :param account_type: 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 + :type account_type: str + """ + + + + self._account_name = None + self._account_id = None + self._account_email = None + self._account_type = None + self.discriminator = None + + self.account_name = account_name + if account_id is not None: + self.account_id = account_id + if account_email is not None: + self.account_email = account_email + self.account_type = account_type + + @property + def account_name(self): + """Gets the account_name of this AccountBaselineRsp. + + 纳管账号名称。 + + :return: The account_name of this AccountBaselineRsp. + :rtype: str + """ + return self._account_name + + @account_name.setter + def account_name(self, account_name): + """Sets the account_name of this AccountBaselineRsp. + + 纳管账号名称。 + + :param account_name: The account_name of this AccountBaselineRsp. + :type account_name: str + """ + self._account_name = account_name + + @property + def account_id(self): + """Gets the account_id of this AccountBaselineRsp. + + 纳管帐号的唯一标识符(ID)。 + + :return: The account_id of this AccountBaselineRsp. + :rtype: str + """ + return self._account_id + + @account_id.setter + def account_id(self, account_id): + """Sets the account_id of this AccountBaselineRsp. + + 纳管帐号的唯一标识符(ID)。 + + :param account_id: The account_id of this AccountBaselineRsp. + :type account_id: str + """ + self._account_id = account_id + + @property + def account_email(self): + """Gets the account_email of this AccountBaselineRsp. + + 纳管账号邮箱。 + + :return: The account_email of this AccountBaselineRsp. + :rtype: str + """ + return self._account_email + + @account_email.setter + def account_email(self, account_email): + """Sets the account_email of this AccountBaselineRsp. + + 纳管账号邮箱。 + + :param account_email: The account_email of this AccountBaselineRsp. + :type account_email: str + """ + self._account_email = account_email + + @property + def account_type(self): + """Gets the account_type of this AccountBaselineRsp. + + 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 + + :return: The account_type of this AccountBaselineRsp. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """Sets the account_type of this AccountBaselineRsp. + + 纳管账号类型。类型包括LOGGING,SECURITY和CUSTOM。 + + :param account_type: The account_type of this AccountBaselineRsp. + :type account_type: str + """ + self._account_type = account_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, AccountBaselineRsp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/blueprint.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/blueprint.py index e993c6d109..a7eb614cb2 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/blueprint.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/blueprint.py @@ -31,9 +31,9 @@ def __init__(self, blueprint_product_id=None, blueprint_product_version=None): The model defined in huaweicloud sdk - :param blueprint_product_id: 蓝图ID。 + :param blueprint_product_id: 模板ID。 :type blueprint_product_id: str - :param blueprint_product_version: 蓝图版本。 + :param blueprint_product_version: 模板版本。 :type blueprint_product_version: str """ @@ -52,7 +52,7 @@ def __init__(self, blueprint_product_id=None, blueprint_product_version=None): def blueprint_product_id(self): """Gets the blueprint_product_id of this Blueprint. - 蓝图ID。 + 模板ID。 :return: The blueprint_product_id of this Blueprint. :rtype: str @@ -63,7 +63,7 @@ def blueprint_product_id(self): def blueprint_product_id(self, blueprint_product_id): """Sets the blueprint_product_id of this Blueprint. - 蓝图ID。 + 模板ID。 :param blueprint_product_id: The blueprint_product_id of this Blueprint. :type blueprint_product_id: str @@ -74,7 +74,7 @@ def blueprint_product_id(self, blueprint_product_id): def blueprint_product_version(self): """Gets the blueprint_product_version of this Blueprint. - 蓝图版本。 + 模板版本。 :return: The blueprint_product_version of this Blueprint. :rtype: str @@ -85,7 +85,7 @@ def blueprint_product_version(self): def blueprint_product_version(self, blueprint_product_version): """Sets the blueprint_product_version of this Blueprint. - 蓝图版本。 + 模板版本。 :param blueprint_product_version: The blueprint_product_version of this Blueprint. :type blueprint_product_version: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/check_launch_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/check_launch_request.py index 81062375b8..cc9561c1ce 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/check_launch_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/check_launch_request.py @@ -15,55 +15,23 @@ class CheckLaunchRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """CheckLaunchRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this CheckLaunchRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this CheckLaunchRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this CheckLaunchRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this CheckLaunchRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/config_rule_compliance.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/config_rule_compliance.py index 41d8e820b0..1d3029d3ae 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/config_rule_compliance.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/config_rule_compliance.py @@ -41,7 +41,7 @@ def __init__(self, rule_name=None, status=None, region=None, control_id=None): :type status: str :param region: 区域信息。 :type region: str - :param control_id: 控制策略Id。 + :param control_id: 控制策略ID。 :type control_id: str """ @@ -132,7 +132,7 @@ def region(self, region): def control_id(self): """Gets the control_id of this ConfigRuleCompliance. - 控制策略Id。 + 控制策略ID。 :return: The control_id of this ConfigRuleCompliance. :rtype: str @@ -143,7 +143,7 @@ def control_id(self): def control_id(self, control_id): """Sets the control_id of this ConfigRuleCompliance. - 控制策略Id。 + 控制策略ID。 :param control_id: The control_id of this ConfigRuleCompliance. :type control_id: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control.py index d384367d72..b28bea8636 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control.py @@ -69,19 +69,19 @@ def __init__(self, identifier=None, name=None, description=None, guidance=None, :type framework: list[str] :param service: 控制策略所属服务。 :type service: str - :param implementation: 业务控制策略(SCP),配置规则。 + :param implementation: 服务控制策略(SCP),配置规则。 :type implementation: str :param behavior: 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 :type behavior: str - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param severity: 严重性(High)。 + :param severity: 控制策略严重性。 :type severity: str :param control_objective: 控制策略目标。 :type control_objective: str - :param version: 版本。 + :param version: 控制策略版本。 :type version: str - :param release_date: 发布时间。 + :param release_date: 控制策略发布时间。 :type release_date: datetime """ @@ -290,7 +290,7 @@ def service(self, service): def implementation(self): """Gets the implementation of this Control. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :return: The implementation of this Control. :rtype: str @@ -301,7 +301,7 @@ def implementation(self): def implementation(self, implementation): """Sets the implementation of this Control. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :param implementation: The implementation of this Control. :type implementation: str @@ -334,7 +334,7 @@ def behavior(self, behavior): def owner(self): """Gets the owner of this Control. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this Control. :rtype: str @@ -345,7 +345,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this Control. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this Control. :type owner: str @@ -356,7 +356,7 @@ def owner(self, owner): def severity(self): """Gets the severity of this Control. - 严重性(High)。 + 控制策略严重性。 :return: The severity of this Control. :rtype: str @@ -367,7 +367,7 @@ def severity(self): def severity(self, severity): """Sets the severity of this Control. - 严重性(High)。 + 控制策略严重性。 :param severity: The severity of this Control. :type severity: str @@ -400,7 +400,7 @@ def control_objective(self, control_objective): def version(self): """Gets the version of this Control. - 版本。 + 控制策略版本。 :return: The version of this Control. :rtype: str @@ -411,7 +411,7 @@ def version(self): def version(self, version): """Sets the version of this Control. - 版本。 + 控制策略版本。 :param version: The version of this Control. :type version: str @@ -422,7 +422,7 @@ def version(self, version): def release_date(self): """Gets the release_date of this Control. - 发布时间。 + 控制策略发布时间。 :return: The release_date of this Control. :rtype: datetime @@ -433,7 +433,7 @@ def release_date(self): def release_date(self, release_date): """Sets the release_date of this Control. - 发布时间。 + 控制策略发布时间。 :param release_date: The release_date of this Control. :type release_date: datetime diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operation.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operation.py index d79dec1c8e..b2b1a6d535 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operation.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_operation.py @@ -17,7 +17,7 @@ class ControlOperation: sensitive_list = [] openapi_types = { - 'control_operate_request_id': 'str', + 'operation_control_status_id': 'str', 'operation_type': 'str', 'status': 'str', 'message': 'str', @@ -26,7 +26,7 @@ class ControlOperation: } attribute_map = { - 'control_operate_request_id': 'control_operate_request_id', + 'operation_control_status_id': 'operation_control_status_id', 'operation_type': 'operation_type', 'status': 'status', 'message': 'message', @@ -34,13 +34,13 @@ class ControlOperation: 'end_time': 'end_time' } - def __init__(self, control_operate_request_id=None, operation_type=None, status=None, message=None, start_time=None, end_time=None): + def __init__(self, operation_control_status_id=None, operation_type=None, status=None, message=None, start_time=None, end_time=None): """ControlOperation The model defined in huaweicloud sdk - :param control_operate_request_id: 本次操作控制策略的ID。 - :type control_operate_request_id: str + :param operation_control_status_id: 本次操作控制策略的ID。 + :type operation_control_status_id: str :param operation_type: 操作类型,启用控制策略或禁用控制策略。 :type operation_type: str :param status: 控制策略实施的状态 SUCCEEDED | FAILED | IN_PROGRESS。 @@ -55,7 +55,7 @@ def __init__(self, control_operate_request_id=None, operation_type=None, status= - self._control_operate_request_id = None + self._operation_control_status_id = None self._operation_type = None self._status = None self._message = None @@ -63,8 +63,8 @@ def __init__(self, control_operate_request_id=None, operation_type=None, status= self._end_time = None self.discriminator = None - if control_operate_request_id is not None: - self.control_operate_request_id = control_operate_request_id + if operation_control_status_id is not None: + self.operation_control_status_id = operation_control_status_id if operation_type is not None: self.operation_type = operation_type if status is not None: @@ -77,26 +77,26 @@ def __init__(self, control_operate_request_id=None, operation_type=None, status= self.end_time = end_time @property - def control_operate_request_id(self): - """Gets the control_operate_request_id of this ControlOperation. + def operation_control_status_id(self): + """Gets the operation_control_status_id of this ControlOperation. 本次操作控制策略的ID。 - :return: The control_operate_request_id of this ControlOperation. + :return: The operation_control_status_id of this ControlOperation. :rtype: str """ - return self._control_operate_request_id + return self._operation_control_status_id - @control_operate_request_id.setter - def control_operate_request_id(self, control_operate_request_id): - """Sets the control_operate_request_id of this ControlOperation. + @operation_control_status_id.setter + def operation_control_status_id(self, operation_control_status_id): + """Sets the operation_control_status_id of this ControlOperation. 本次操作控制策略的ID。 - :param control_operate_request_id: The control_operate_request_id of this ControlOperation. - :type control_operate_request_id: str + :param operation_control_status_id: The operation_control_status_id of this ControlOperation. + :type operation_control_status_id: str """ - self._control_operate_request_id = control_operate_request_id + self._operation_control_status_id = operation_control_status_id @property def operation_type(self): diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_violation.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_violation.py index d152356a27..bc925eb5d8 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_violation.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/control_violation.py @@ -49,25 +49,25 @@ def __init__(self, account_id=None, account_name=None, display_name=None, name=N The model defined in huaweicloud sdk - :param account_id: id。 + :param account_id: 控制策略纳管账号ID。 :type account_id: str - :param account_name: name。 + :param account_name: 控制策略纳管账号名称。 :type account_name: str - :param display_name: description。 + :param display_name: 控制策略显示名称。 :type display_name: str :param name: 控制策略名称。 :type name: str :param control_id: 控制策略ID。 :type control_id: str - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str - :param region: region。 + :param region: 区域名称。 :type region: str - :param resource: 不合规资源。 + :param resource: 控制策略不合规资源。 :type resource: str - :param resource_type: 不合规资源类型。 + :param resource_type: 控制策略不合规资源类型。 :type resource_type: str :param service: 云服务名称。 :type service: str @@ -115,7 +115,7 @@ def __init__(self, account_id=None, account_name=None, display_name=None, name=N def account_id(self): """Gets the account_id of this ControlViolation. - id。 + 控制策略纳管账号ID。 :return: The account_id of this ControlViolation. :rtype: str @@ -126,7 +126,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ControlViolation. - id。 + 控制策略纳管账号ID。 :param account_id: The account_id of this ControlViolation. :type account_id: str @@ -137,7 +137,7 @@ def account_id(self, account_id): def account_name(self): """Gets the account_name of this ControlViolation. - name。 + 控制策略纳管账号名称。 :return: The account_name of this ControlViolation. :rtype: str @@ -148,7 +148,7 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this ControlViolation. - name。 + 控制策略纳管账号名称。 :param account_name: The account_name of this ControlViolation. :type account_name: str @@ -159,7 +159,7 @@ def account_name(self, account_name): def display_name(self): """Gets the display_name of this ControlViolation. - description。 + 控制策略显示名称。 :return: The display_name of this ControlViolation. :rtype: str @@ -170,7 +170,7 @@ def display_name(self): def display_name(self, display_name): """Sets the display_name of this ControlViolation. - description。 + 控制策略显示名称。 :param display_name: The display_name of this ControlViolation. :type display_name: str @@ -225,7 +225,7 @@ def control_id(self, control_id): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this ControlViolation. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this ControlViolation. :rtype: str @@ -236,7 +236,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this ControlViolation. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this ControlViolation. :type parent_organization_unit_id: str @@ -247,7 +247,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this ControlViolation. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this ControlViolation. :rtype: str @@ -258,7 +258,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this ControlViolation. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this ControlViolation. :type parent_organization_unit_name: str @@ -269,7 +269,7 @@ def parent_organization_unit_name(self, parent_organization_unit_name): def region(self): """Gets the region of this ControlViolation. - region。 + 区域名称。 :return: The region of this ControlViolation. :rtype: str @@ -280,7 +280,7 @@ def region(self): def region(self, region): """Sets the region of this ControlViolation. - region。 + 区域名称。 :param region: The region of this ControlViolation. :type region: str @@ -291,7 +291,7 @@ def region(self, region): def resource(self): """Gets the resource of this ControlViolation. - 不合规资源。 + 控制策略不合规资源。 :return: The resource of this ControlViolation. :rtype: str @@ -302,7 +302,7 @@ def resource(self): def resource(self, resource): """Sets the resource of this ControlViolation. - 不合规资源。 + 控制策略不合规资源。 :param resource: The resource of this ControlViolation. :type resource: str @@ -313,7 +313,7 @@ def resource(self, resource): def resource_type(self): """Gets the resource_type of this ControlViolation. - 不合规资源类型。 + 控制策略不合规资源类型。 :return: The resource_type of this ControlViolation. :rtype: str @@ -324,7 +324,7 @@ def resource_type(self): def resource_type(self, resource_type): """Sets the resource_type of this ControlViolation. - 不合规资源类型。 + 控制策略不合规资源类型。 :param resource_type: The resource_type of this ControlViolation. :type resource_type: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_request.py index ad9b44623b..e7e5632ea5 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_request.py @@ -15,62 +15,32 @@ class CreateAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'body': 'CreateManagedAccountRequest' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'body': 'body' } - def __init__(self, x_security_token=None, body=None): + def __init__(self, body=None): """CreateAccountRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param body: Body of the CreateAccountRequest :type body: :class:`huaweicloudsdkrgc.v1.CreateManagedAccountRequest` """ - self._x_security_token = None self._body = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if body is not None: self.body = body - @property - def x_security_token(self): - """Gets the x_security_token of this CreateAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this CreateAccountRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this CreateAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this CreateAccountRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def body(self): """Gets the body of this CreateAccountRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_response.py index c392426915..a8002a3442 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_account_response.py @@ -30,7 +30,7 @@ def __init__(self, operation_id=None): The model defined in huaweicloud sdk - :param operation_id: 创建账号、纳管账号、纳管OU的操作ID。 + :param operation_id: 创建账号、纳管账号、纳管注册OU的操作ID。 :type operation_id: str """ @@ -46,7 +46,7 @@ def __init__(self, operation_id=None): def operation_id(self): """Gets the operation_id of this CreateAccountResponse. - 创建账号、纳管账号、纳管OU的操作ID。 + 创建账号、纳管账号、纳管注册OU的操作ID。 :return: The operation_id of this CreateAccountResponse. :rtype: str @@ -57,7 +57,7 @@ def operation_id(self): def operation_id(self, operation_id): """Sets the operation_id of this CreateAccountResponse. - 创建账号、纳管账号、纳管OU的操作ID。 + 创建账号、纳管账号、纳管注册OU的操作ID。 :param operation_id: The operation_id of this CreateAccountResponse. :type operation_id: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_managed_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_managed_account_request.py index 47549e964c..73bf6ccb1b 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_managed_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_managed_account_request.py @@ -48,9 +48,9 @@ def __init__(self, account_name=None, account_email=None, phone=None, identity_s The model defined in huaweicloud sdk - :param account_name: 账号名。 + :param account_name: 纳管账号名。 :type account_name: str - :param account_email: 账号邮箱。 + :param account_email: 纳管账号邮箱。 :type account_email: str :param phone: 手机号码。 :type phone: str @@ -58,9 +58,9 @@ def __init__(self, account_name=None, account_email=None, phone=None, identity_s :type identity_store_user_name: str :param identity_store_email: Identity Center邮箱。 :type identity_store_email: str - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str :param blueprint: :type blueprint: :class:`huaweicloudsdkrgc.v1.Blueprint` @@ -79,7 +79,8 @@ def __init__(self, account_name=None, account_email=None, phone=None, identity_s self.discriminator = None self.account_name = account_name - self.account_email = account_email + if account_email is not None: + self.account_email = account_email if phone is not None: self.phone = phone self.identity_store_user_name = identity_store_user_name @@ -93,7 +94,7 @@ def __init__(self, account_name=None, account_email=None, phone=None, identity_s def account_name(self): """Gets the account_name of this CreateManagedAccountRequest. - 账号名。 + 纳管账号名。 :return: The account_name of this CreateManagedAccountRequest. :rtype: str @@ -104,7 +105,7 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this CreateManagedAccountRequest. - 账号名。 + 纳管账号名。 :param account_name: The account_name of this CreateManagedAccountRequest. :type account_name: str @@ -115,7 +116,7 @@ def account_name(self, account_name): def account_email(self): """Gets the account_email of this CreateManagedAccountRequest. - 账号邮箱。 + 纳管账号邮箱。 :return: The account_email of this CreateManagedAccountRequest. :rtype: str @@ -126,7 +127,7 @@ def account_email(self): def account_email(self, account_email): """Sets the account_email of this CreateManagedAccountRequest. - 账号邮箱。 + 纳管账号邮箱。 :param account_email: The account_email of this CreateManagedAccountRequest. :type account_email: str @@ -203,7 +204,7 @@ def identity_store_email(self, identity_store_email): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this CreateManagedAccountRequest. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this CreateManagedAccountRequest. :rtype: str @@ -214,7 +215,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this CreateManagedAccountRequest. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this CreateManagedAccountRequest. :type parent_organization_unit_id: str @@ -225,7 +226,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this CreateManagedAccountRequest. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this CreateManagedAccountRequest. :rtype: str @@ -236,7 +237,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this CreateManagedAccountRequest. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this CreateManagedAccountRequest. :type parent_organization_unit_name: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_organization_unit.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_organization_unit.py index 717ff2e47f..eacf45d3d7 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_organization_unit.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/create_organization_unit.py @@ -24,7 +24,8 @@ class CreateOrganizationUnit: 'organization_unit_type': 'OrganizationalUnitType', 'parent_organization_unit_id': 'str', 'parent_organization_unit_name': 'str', - 'created_at': 'datetime' + 'created_at': 'datetime', + 'landing_zone_version': 'str' } attribute_map = { @@ -35,30 +36,33 @@ class CreateOrganizationUnit: 'organization_unit_type': 'organization_unit_type', 'parent_organization_unit_id': 'parent_organization_unit_id', 'parent_organization_unit_name': 'parent_organization_unit_name', - 'created_at': 'created_at' + 'created_at': 'created_at', + 'landing_zone_version': 'landing_zone_version' } - def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None): + def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None, landing_zone_version=None): """CreateOrganizationUnit The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str - :param organization_unit_id: OU ID。 + :param organization_unit_id: 注册OU ID。 :type organization_unit_id: str - :param organization_unit_name: OU名称。 + :param organization_unit_name: 注册OU名称。 :type organization_unit_name: str - :param organization_unit_status: OU状态。 + :param organization_unit_status: 注册OU状态。 :type organization_unit_status: str :param organization_unit_type: :type organization_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitType` - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str - :param created_at: 被创建的时间。 + :param created_at: 组织里某个注册OU下的纳管账号被创建的时间。 :type created_at: datetime + :param landing_zone_version: Landing Zone版本。 + :type landing_zone_version: str """ @@ -71,6 +75,7 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self._parent_organization_unit_id = None self._parent_organization_unit_name = None self._created_at = None + self._landing_zone_version = None self.discriminator = None if manage_account_id is not None: @@ -89,12 +94,14 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self.parent_organization_unit_name = parent_organization_unit_name if created_at is not None: self.created_at = created_at + if landing_zone_version is not None: + self.landing_zone_version = landing_zone_version @property def manage_account_id(self): """Gets the manage_account_id of this CreateOrganizationUnit. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this CreateOrganizationUnit. :rtype: str @@ -105,7 +112,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this CreateOrganizationUnit. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this CreateOrganizationUnit. :type manage_account_id: str @@ -116,7 +123,7 @@ def manage_account_id(self, manage_account_id): def organization_unit_id(self): """Gets the organization_unit_id of this CreateOrganizationUnit. - OU ID。 + 注册OU ID。 :return: The organization_unit_id of this CreateOrganizationUnit. :rtype: str @@ -127,7 +134,7 @@ def organization_unit_id(self): def organization_unit_id(self, organization_unit_id): """Sets the organization_unit_id of this CreateOrganizationUnit. - OU ID。 + 注册OU ID。 :param organization_unit_id: The organization_unit_id of this CreateOrganizationUnit. :type organization_unit_id: str @@ -138,7 +145,7 @@ def organization_unit_id(self, organization_unit_id): def organization_unit_name(self): """Gets the organization_unit_name of this CreateOrganizationUnit. - OU名称。 + 注册OU名称。 :return: The organization_unit_name of this CreateOrganizationUnit. :rtype: str @@ -149,7 +156,7 @@ def organization_unit_name(self): def organization_unit_name(self, organization_unit_name): """Sets the organization_unit_name of this CreateOrganizationUnit. - OU名称。 + 注册OU名称。 :param organization_unit_name: The organization_unit_name of this CreateOrganizationUnit. :type organization_unit_name: str @@ -160,7 +167,7 @@ def organization_unit_name(self, organization_unit_name): def organization_unit_status(self): """Gets the organization_unit_status of this CreateOrganizationUnit. - OU状态。 + 注册OU状态。 :return: The organization_unit_status of this CreateOrganizationUnit. :rtype: str @@ -171,7 +178,7 @@ def organization_unit_status(self): def organization_unit_status(self, organization_unit_status): """Sets the organization_unit_status of this CreateOrganizationUnit. - OU状态。 + 注册OU状态。 :param organization_unit_status: The organization_unit_status of this CreateOrganizationUnit. :type organization_unit_status: str @@ -200,7 +207,7 @@ def organization_unit_type(self, organization_unit_type): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this CreateOrganizationUnit. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this CreateOrganizationUnit. :rtype: str @@ -211,7 +218,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this CreateOrganizationUnit. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this CreateOrganizationUnit. :type parent_organization_unit_id: str @@ -222,7 +229,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this CreateOrganizationUnit. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this CreateOrganizationUnit. :rtype: str @@ -233,7 +240,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this CreateOrganizationUnit. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this CreateOrganizationUnit. :type parent_organization_unit_name: str @@ -244,7 +251,7 @@ def parent_organization_unit_name(self, parent_organization_unit_name): def created_at(self): """Gets the created_at of this CreateOrganizationUnit. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :return: The created_at of this CreateOrganizationUnit. :rtype: datetime @@ -255,13 +262,35 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this CreateOrganizationUnit. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :param created_at: The created_at of this CreateOrganizationUnit. :type created_at: datetime """ self._created_at = created_at + @property + def landing_zone_version(self): + """Gets the landing_zone_version of this CreateOrganizationUnit. + + Landing Zone版本。 + + :return: The landing_zone_version of this CreateOrganizationUnit. + :rtype: str + """ + return self._landing_zone_version + + @landing_zone_version.setter + def landing_zone_version(self, landing_zone_version): + """Sets the landing_zone_version of this CreateOrganizationUnit. + + Landing Zone版本。 + + :param landing_zone_version: The landing_zone_version of this CreateOrganizationUnit. + :type landing_zone_version: str + """ + self._landing_zone_version = landing_zone_version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/delete_managed_organizational_units_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/delete_managed_organizational_units_request.py index 4555292ecd..23d87b6c46 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/delete_managed_organizational_units_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/delete_managed_organizational_units_request.py @@ -15,44 +15,36 @@ class DeleteManagedOrganizationalUnitsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'managed_organization_unit_id': 'str', - 'x_security_token': 'str' + 'managed_organization_unit_id': 'str' } attribute_map = { - 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token' + 'managed_organization_unit_id': 'managed_organization_unit_id' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None): + def __init__(self, managed_organization_unit_id=None): """DeleteManagedOrganizationalUnitsRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._managed_organization_unit_id = None - self._x_security_token = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this DeleteManagedOrganizationalUnitsRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this DeleteManagedOrganizationalUnitsRequest. :rtype: str @@ -63,35 +55,13 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this DeleteManagedOrganizationalUnitsRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this DeleteManagedOrganizationalUnitsRequest. :type managed_organization_unit_id: str """ self._managed_organization_unit_id = managed_organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this DeleteManagedOrganizationalUnitsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this DeleteManagedOrganizationalUnitsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this DeleteManagedOrganizationalUnitsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this DeleteManagedOrganizationalUnitsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/deregister_organizational_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/deregister_organizational_unit_request.py index 464ddd441b..156b1e9e87 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/deregister_organizational_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/deregister_organizational_unit_request.py @@ -15,44 +15,36 @@ class DeregisterOrganizationalUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'managed_organization_unit_id': 'str', - 'x_security_token': 'str' + 'managed_organization_unit_id': 'str' } attribute_map = { - 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token' + 'managed_organization_unit_id': 'managed_organization_unit_id' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None): + def __init__(self, managed_organization_unit_id=None): """DeregisterOrganizationalUnitRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._managed_organization_unit_id = None - self._x_security_token = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this DeregisterOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this DeregisterOrganizationalUnitRequest. :rtype: str @@ -63,35 +55,13 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this DeregisterOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this DeregisterOrganizationalUnitRequest. :type managed_organization_unit_id: str """ self._managed_organization_unit_id = managed_organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this DeregisterOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this DeregisterOrganizationalUnitRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this DeregisterOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this DeregisterOrganizationalUnitRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/disable_control_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/disable_control_request.py index 7c427da313..f622c57d99 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/disable_control_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/disable_control_request.py @@ -15,62 +15,32 @@ class DisableControlRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'body': 'ControlOperateReqBody' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'body': 'body' } - def __init__(self, x_security_token=None, body=None): + def __init__(self, body=None): """DisableControlRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param body: Body of the DisableControlRequest :type body: :class:`huaweicloudsdkrgc.v1.ControlOperateReqBody` """ - self._x_security_token = None self._body = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if body is not None: self.body = body - @property - def x_security_token(self): - """Gets the x_security_token of this DisableControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this DisableControlRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this DisableControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this DisableControlRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def body(self): """Gets the body of this DisableControlRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/drift_detail.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/drift_detail.py index fe8dbdf87b..98858b8786 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/drift_detail.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/drift_detail.py @@ -39,17 +39,17 @@ def __init__(self, manage_account_id=None, drift_type=None, drift_target_id=None The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str :param drift_type: 漂移类型。 :type drift_type: str - :param drift_target_id: 漂移发生的账号ID或OU ID。 + :param drift_target_id: 漂移发生的纳管账号ID或注册OU ID。 :type drift_target_id: str - :param drift_target_type: policyId, accountId, accountId和policyId。 + :param drift_target_type: 漂移目标类型,类型有accountId和policyId。 :type drift_target_type: str :param drift_message: 漂移信息。 :type drift_message: str - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str """ @@ -80,7 +80,7 @@ def __init__(self, manage_account_id=None, drift_type=None, drift_target_id=None def manage_account_id(self): """Gets the manage_account_id of this DriftDetail. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this DriftDetail. :rtype: str @@ -91,7 +91,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this DriftDetail. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this DriftDetail. :type manage_account_id: str @@ -124,7 +124,7 @@ def drift_type(self, drift_type): def drift_target_id(self): """Gets the drift_target_id of this DriftDetail. - 漂移发生的账号ID或OU ID。 + 漂移发生的纳管账号ID或注册OU ID。 :return: The drift_target_id of this DriftDetail. :rtype: str @@ -135,7 +135,7 @@ def drift_target_id(self): def drift_target_id(self, drift_target_id): """Sets the drift_target_id of this DriftDetail. - 漂移发生的账号ID或OU ID。 + 漂移发生的纳管账号ID或注册OU ID。 :param drift_target_id: The drift_target_id of this DriftDetail. :type drift_target_id: str @@ -146,7 +146,7 @@ def drift_target_id(self, drift_target_id): def drift_target_type(self): """Gets the drift_target_type of this DriftDetail. - policyId, accountId, accountId和policyId。 + 漂移目标类型,类型有accountId和policyId。 :return: The drift_target_type of this DriftDetail. :rtype: str @@ -157,7 +157,7 @@ def drift_target_type(self): def drift_target_type(self, drift_target_type): """Sets the drift_target_type of this DriftDetail. - policyId, accountId, accountId和policyId。 + 漂移目标类型,类型有accountId和policyId。 :param drift_target_type: The drift_target_type of this DriftDetail. :type drift_target_type: str @@ -190,7 +190,7 @@ def drift_message(self, drift_message): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this DriftDetail. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this DriftDetail. :rtype: str @@ -201,7 +201,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this DriftDetail. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this DriftDetail. :type parent_organization_unit_id: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_request.py index 2a5cd83729..7fff8117bd 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enable_control_request.py @@ -15,62 +15,32 @@ class EnableControlRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'body': 'ControlOperateReqBody' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'body': 'body' } - def __init__(self, x_security_token=None, body=None): + def __init__(self, body=None): """EnableControlRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param body: Body of the EnableControlRequest :type body: :class:`huaweicloudsdkrgc.v1.ControlOperateReqBody` """ - self._x_security_token = None self._body = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if body is not None: self.body = body - @property - def x_security_token(self): - """Gets the x_security_token of this EnableControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this EnableControlRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this EnableControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this EnableControlRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def body(self): """Gets the body of this EnableControlRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enabled_control.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enabled_control.py index 152b49400e..abaee622dd 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enabled_control.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enabled_control.py @@ -43,7 +43,7 @@ def __init__(self, manage_account_id=None, control_identifier=None, name=None, d The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str :param control_identifier: 控制策略标识。 :type control_identifier: str @@ -55,9 +55,9 @@ def __init__(self, manage_account_id=None, control_identifier=None, name=None, d :type control_objective: str :param behavior: 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 :type behavior: str - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param regional_preference: regional/global。 + :param regional_preference: 区域选项,取值有两种分别是:区域的regional和全局的global。 :type regional_preference: str """ @@ -94,7 +94,7 @@ def __init__(self, manage_account_id=None, control_identifier=None, name=None, d def manage_account_id(self): """Gets the manage_account_id of this EnabledControl. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this EnabledControl. :rtype: str @@ -105,7 +105,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this EnabledControl. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this EnabledControl. :type manage_account_id: str @@ -226,7 +226,7 @@ def behavior(self, behavior): def owner(self): """Gets the owner of this EnabledControl. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this EnabledControl. :rtype: str @@ -237,7 +237,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this EnabledControl. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this EnabledControl. :type owner: str @@ -248,7 +248,7 @@ def owner(self, owner): def regional_preference(self): """Gets the regional_preference of this EnabledControl. - regional/global。 + 区域选项,取值有两种分别是:区域的regional和全局的global。 :return: The regional_preference of this EnabledControl. :rtype: str @@ -259,7 +259,7 @@ def regional_preference(self): def regional_preference(self, regional_preference): """Sets the regional_preference of this EnabledControl. - regional/global。 + 区域选项,取值有两种分别是:区域的regional和全局的global。 :param regional_preference: The regional_preference of this EnabledControl. :type regional_preference: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request.py new file mode 100644 index 0000000000..d141fa255b --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnrollAccountRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'managed_account_id': 'str', + 'body': 'EnrollAccountRequestBody' + } + + attribute_map = { + 'managed_account_id': 'managed_account_id', + 'body': 'body' + } + + def __init__(self, managed_account_id=None, body=None): + """EnrollAccountRequest + + The model defined in huaweicloud sdk + + :param managed_account_id: 纳管账号ID。 + :type managed_account_id: str + :param body: Body of the EnrollAccountRequest + :type body: :class:`huaweicloudsdkrgc.v1.EnrollAccountRequestBody` + """ + + + + self._managed_account_id = None + self._body = None + self.discriminator = None + + self.managed_account_id = managed_account_id + if body is not None: + self.body = body + + @property + def managed_account_id(self): + """Gets the managed_account_id of this EnrollAccountRequest. + + 纳管账号ID。 + + :return: The managed_account_id of this EnrollAccountRequest. + :rtype: str + """ + return self._managed_account_id + + @managed_account_id.setter + def managed_account_id(self, managed_account_id): + """Sets the managed_account_id of this EnrollAccountRequest. + + 纳管账号ID。 + + :param managed_account_id: The managed_account_id of this EnrollAccountRequest. + :type managed_account_id: str + """ + self._managed_account_id = managed_account_id + + @property + def body(self): + """Gets the body of this EnrollAccountRequest. + + :return: The body of this EnrollAccountRequest. + :rtype: :class:`huaweicloudsdkrgc.v1.EnrollAccountRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this EnrollAccountRequest. + + :param body: The body of this EnrollAccountRequest. + :type body: :class:`huaweicloudsdkrgc.v1.EnrollAccountRequestBody` + """ + 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, EnrollAccountRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request_body.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request_body.py new file mode 100644 index 0000000000..d92ec727c1 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_request_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnrollAccountRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'parent_organization_unit_id': 'str', + 'blueprint': 'Blueprint' + } + + attribute_map = { + 'parent_organization_unit_id': 'parent_organization_unit_id', + 'blueprint': 'blueprint' + } + + def __init__(self, parent_organization_unit_id=None, blueprint=None): + """EnrollAccountRequestBody + + The model defined in huaweicloud sdk + + :param parent_organization_unit_id: 注册OU 标识。 + :type parent_organization_unit_id: str + :param blueprint: + :type blueprint: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + + + + self._parent_organization_unit_id = None + self._blueprint = None + self.discriminator = None + + self.parent_organization_unit_id = parent_organization_unit_id + if blueprint is not None: + self.blueprint = blueprint + + @property + def parent_organization_unit_id(self): + """Gets the parent_organization_unit_id of this EnrollAccountRequestBody. + + 注册OU 标识。 + + :return: The parent_organization_unit_id of this EnrollAccountRequestBody. + :rtype: str + """ + return self._parent_organization_unit_id + + @parent_organization_unit_id.setter + def parent_organization_unit_id(self, parent_organization_unit_id): + """Sets the parent_organization_unit_id of this EnrollAccountRequestBody. + + 注册OU 标识。 + + :param parent_organization_unit_id: The parent_organization_unit_id of this EnrollAccountRequestBody. + :type parent_organization_unit_id: str + """ + self._parent_organization_unit_id = parent_organization_unit_id + + @property + def blueprint(self): + """Gets the blueprint of this EnrollAccountRequestBody. + + :return: The blueprint of this EnrollAccountRequestBody. + :rtype: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + return self._blueprint + + @blueprint.setter + def blueprint(self, blueprint): + """Sets the blueprint of this EnrollAccountRequestBody. + + :param blueprint: The blueprint of this EnrollAccountRequestBody. + :type blueprint: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + self._blueprint = blueprint + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EnrollAccountRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_response.py new file mode 100644 index 0000000000..590506f515 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/enroll_account_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnrollAccountResponse(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 = { + 'operation_id': 'str' + } + + attribute_map = { + 'operation_id': 'operation_id' + } + + def __init__(self, operation_id=None): + """EnrollAccountResponse + + The model defined in huaweicloud sdk + + :param operation_id: 创建账号、纳管账号、纳管注册OU的操作ID。 + :type operation_id: str + """ + + super(EnrollAccountResponse, self).__init__() + + self._operation_id = None + self.discriminator = None + + if operation_id is not None: + self.operation_id = operation_id + + @property + def operation_id(self): + """Gets the operation_id of this EnrollAccountResponse. + + 创建账号、纳管账号、纳管注册OU的操作ID。 + + :return: The operation_id of this EnrollAccountResponse. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this EnrollAccountResponse. + + 创建账号、纳管账号、纳管注册OU的操作ID。 + + :param operation_id: The operation_id of this EnrollAccountResponse. + :type operation_id: str + """ + self._operation_id = operation_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, EnrollAccountResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/identity_center_group.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/identity_center_group.py index ebdaf5e9a7..821b94d93b 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/identity_center_group.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/identity_center_group.py @@ -33,11 +33,11 @@ def __init__(self, group_id=None, group_name=None, description=None): The model defined in huaweicloud sdk - :param group_id: Identity Center的group ID。 + :param group_id: Identity Center的用户组ID。 :type group_id: str - :param group_name: group name。 + :param group_name: 用户组名称。 :type group_name: str - :param description: Identity Center的group描述信息。 + :param description: Identity Center的用户组描述信息。 :type description: str """ @@ -59,7 +59,7 @@ def __init__(self, group_id=None, group_name=None, description=None): def group_id(self): """Gets the group_id of this IdentityCenterGroup. - Identity Center的group ID。 + Identity Center的用户组ID。 :return: The group_id of this IdentityCenterGroup. :rtype: str @@ -70,7 +70,7 @@ def group_id(self): def group_id(self, group_id): """Sets the group_id of this IdentityCenterGroup. - Identity Center的group ID。 + Identity Center的用户组ID。 :param group_id: The group_id of this IdentityCenterGroup. :type group_id: str @@ -81,7 +81,7 @@ def group_id(self, group_id): def group_name(self): """Gets the group_name of this IdentityCenterGroup. - group name。 + 用户组名称。 :return: The group_name of this IdentityCenterGroup. :rtype: str @@ -92,7 +92,7 @@ def group_name(self): def group_name(self, group_name): """Sets the group_name of this IdentityCenterGroup. - group name。 + 用户组名称。 :param group_name: The group_name of this IdentityCenterGroup. :type group_name: str @@ -103,7 +103,7 @@ def group_name(self, group_name): def description(self): """Gets the description of this IdentityCenterGroup. - Identity Center的group描述信息。 + Identity Center的用户组描述信息。 :return: The description of this IdentityCenterGroup. :rtype: str @@ -114,7 +114,7 @@ def description(self): def description(self, description): """Sets the description of this IdentityCenterGroup. - Identity Center的group描述信息。 + Identity Center的用户组描述信息。 :param description: The description of this IdentityCenterGroup. :type description: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/landing_zone_error_message.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/landing_zone_error_message.py index de308ad644..3b78c9cc89 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/landing_zone_error_message.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/landing_zone_error_message.py @@ -31,7 +31,7 @@ def __init__(self, level=None, message=None): The model defined in huaweicloud sdk - :param level: Landing Zone的错误级别。包括致命fatal和错误error。 + :param level: Landing Zone的错误级别。 :type level: str :param message: Landing Zone详细的错误信息。 :type message: str @@ -52,7 +52,7 @@ def __init__(self, level=None, message=None): def level(self): """Gets the level of this LandingZoneErrorMessage. - Landing Zone的错误级别。包括致命fatal和错误error。 + Landing Zone的错误级别。 :return: The level of this LandingZoneErrorMessage. :rtype: str @@ -63,7 +63,7 @@ def level(self): def level(self, level): """Sets the level of this LandingZoneErrorMessage. - Landing Zone的错误级别。包括致命fatal和错误error。 + Landing Zone的错误级别。 :param level: The level of this LandingZoneErrorMessage. :type level: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_request.py index 4f8400f202..4ffddd0320 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_request.py @@ -15,82 +15,52 @@ class ListConfigRuleComplianceRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'account_id': 'str', - 'x_security_token': 'str' + 'managed_account_id': 'str' } attribute_map = { - 'account_id': 'account_id', - 'x_security_token': 'X-Security-Token' + 'managed_account_id': 'managed_account_id' } - def __init__(self, account_id=None, x_security_token=None): + def __init__(self, managed_account_id=None): """ListConfigRuleComplianceRequest The model defined in huaweicloud sdk - :param account_id: 账号ID。 - :type account_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str + :param managed_account_id: 纳管账号ID。 + :type managed_account_id: str """ - self._account_id = None - self._x_security_token = None + self._managed_account_id = None self.discriminator = None - self.account_id = account_id - if x_security_token is not None: - self.x_security_token = x_security_token + self.managed_account_id = managed_account_id @property - def account_id(self): - """Gets the account_id of this ListConfigRuleComplianceRequest. + def managed_account_id(self): + """Gets the managed_account_id of this ListConfigRuleComplianceRequest. - 账号ID。 + 纳管账号ID。 - :return: The account_id of this ListConfigRuleComplianceRequest. + :return: The managed_account_id of this ListConfigRuleComplianceRequest. :rtype: str """ - return self._account_id + return self._managed_account_id - @account_id.setter - def account_id(self, account_id): - """Sets the account_id of this ListConfigRuleComplianceRequest. + @managed_account_id.setter + def managed_account_id(self, managed_account_id): + """Sets the managed_account_id of this ListConfigRuleComplianceRequest. - 账号ID。 + 纳管账号ID。 - :param account_id: The account_id of this ListConfigRuleComplianceRequest. - :type account_id: str + :param managed_account_id: The managed_account_id of this ListConfigRuleComplianceRequest. + :type managed_account_id: str """ - self._account_id = account_id - - @property - def x_security_token(self): - """Gets the x_security_token of this ListConfigRuleComplianceRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListConfigRuleComplianceRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListConfigRuleComplianceRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListConfigRuleComplianceRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token + self._managed_account_id = managed_account_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_response.py index 575fb7a71c..ff53ae9e9a 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_config_rule_compliance_response.py @@ -32,9 +32,9 @@ def __init__(self, account_id=None, config_rule_compliances=None): The model defined in huaweicloud sdk - :param account_id: 账号ID + :param account_id: 纳管账号ID :type account_id: str - :param config_rule_compliances: + :param config_rule_compliances: Config规则合规性信息 :type config_rule_compliances: list[:class:`huaweicloudsdkrgc.v1.ConfigRuleCompliance`] """ @@ -53,7 +53,7 @@ def __init__(self, account_id=None, config_rule_compliances=None): def account_id(self): """Gets the account_id of this ListConfigRuleComplianceResponse. - 账号ID + 纳管账号ID :return: The account_id of this ListConfigRuleComplianceResponse. :rtype: str @@ -64,7 +64,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ListConfigRuleComplianceResponse. - 账号ID + 纳管账号ID :param account_id: The account_id of this ListConfigRuleComplianceResponse. :type account_id: str @@ -75,6 +75,8 @@ def account_id(self, account_id): def config_rule_compliances(self): """Gets the config_rule_compliances of this ListConfigRuleComplianceResponse. + Config规则合规性信息 + :return: The config_rule_compliances of this ListConfigRuleComplianceResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.ConfigRuleCompliance`] """ @@ -84,6 +86,8 @@ def config_rule_compliances(self): def config_rule_compliances(self, config_rule_compliances): """Sets the config_rule_compliances of this ListConfigRuleComplianceResponse. + Config规则合规性信息 + :param config_rule_compliances: The config_rule_compliances of this ListConfigRuleComplianceResponse. :type config_rule_compliances: list[:class:`huaweicloudsdkrgc.v1.ConfigRuleCompliance`] """ diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_control_violations_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_control_violations_request.py index c2671cf24b..62c9f48574 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_control_violations_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_control_violations_request.py @@ -15,74 +15,44 @@ class ListControlViolationsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'account_id': 'str', 'organization_unit_id': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'account_id': 'account_id', 'organization_unit_id': 'organization_unit_id' } - def __init__(self, x_security_token=None, account_id=None, organization_unit_id=None): + def __init__(self, account_id=None, organization_unit_id=None): """ListControlViolationsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str - :param account_id: 账户Id。 + :param account_id: 账户ID,用于过滤不合规资源。 :type account_id: str - :param organization_unit_id: OU ID。 + :param organization_unit_id: 注册OU ID,用于过滤不合规资源。 :type organization_unit_id: str """ - self._x_security_token = None self._account_id = None self._organization_unit_id = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if account_id is not None: self.account_id = account_id if organization_unit_id is not None: self.organization_unit_id = organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this ListControlViolationsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListControlViolationsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListControlViolationsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListControlViolationsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def account_id(self): """Gets the account_id of this ListControlViolationsRequest. - 账户Id。 + 账户ID,用于过滤不合规资源。 :return: The account_id of this ListControlViolationsRequest. :rtype: str @@ -93,7 +63,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ListControlViolationsRequest. - 账户Id。 + 账户ID,用于过滤不合规资源。 :param account_id: The account_id of this ListControlViolationsRequest. :type account_id: str @@ -104,7 +74,7 @@ def account_id(self, account_id): def organization_unit_id(self): """Gets the organization_unit_id of this ListControlViolationsRequest. - OU ID。 + 注册OU ID,用于过滤不合规资源。 :return: The organization_unit_id of this ListControlViolationsRequest. :rtype: str @@ -115,7 +85,7 @@ def organization_unit_id(self): def organization_unit_id(self, organization_unit_id): """Sets the organization_unit_id of this ListControlViolationsRequest. - OU ID。 + 注册OU ID,用于过滤不合规资源。 :param organization_unit_id: The organization_unit_id of this ListControlViolationsRequest. :type organization_unit_id: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_account_request.py index 0073c56322..b2c6edcfc3 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_account_request.py @@ -15,31 +15,26 @@ class ListControlsForAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_account_id': 'str', - 'x_security_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { 'managed_account_id': 'managed_account_id', - 'x_security_token': 'X-Security-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, managed_account_id=None, x_security_token=None, limit=None, marker=None): + def __init__(self, managed_account_id=None, limit=None, marker=None): """ListControlsForAccountRequest The model defined in huaweicloud sdk - :param managed_account_id: 账号ID。 + :param managed_account_id: 纳管账号ID。 :type managed_account_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param limit: 分页页面的最大值。 :type limit: int :param marker: 页面标记。 @@ -49,14 +44,11 @@ def __init__(self, managed_account_id=None, x_security_token=None, limit=None, m self._managed_account_id = None - self._x_security_token = None self._limit = None self._marker = None self.discriminator = None self.managed_account_id = managed_account_id - if x_security_token is not None: - self.x_security_token = x_security_token if limit is not None: self.limit = limit if marker is not None: @@ -66,7 +58,7 @@ def __init__(self, managed_account_id=None, x_security_token=None, limit=None, m def managed_account_id(self): """Gets the managed_account_id of this ListControlsForAccountRequest. - 账号ID。 + 纳管账号ID。 :return: The managed_account_id of this ListControlsForAccountRequest. :rtype: str @@ -77,35 +69,13 @@ def managed_account_id(self): def managed_account_id(self, managed_account_id): """Sets the managed_account_id of this ListControlsForAccountRequest. - 账号ID。 + 纳管账号ID。 :param managed_account_id: The managed_account_id of this ListControlsForAccountRequest. :type managed_account_id: str """ self._managed_account_id = managed_account_id - @property - def x_security_token(self): - """Gets the x_security_token of this ListControlsForAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListControlsForAccountRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListControlsForAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListControlsForAccountRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def limit(self): """Gets the limit of this ListControlsForAccountRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_organization_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_organization_unit_request.py index abbe43f4a3..e98a2fb0b5 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_organization_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_for_organization_unit_request.py @@ -15,31 +15,26 @@ class ListControlsForOrganizationUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_organization_unit_id': 'str', - 'x_security_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None, limit=None, marker=None): + def __init__(self, managed_organization_unit_id=None, limit=None, marker=None): """ListControlsForOrganizationUnitRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param limit: 分页页面的最大值。 :type limit: int :param marker: 页面标记。 @@ -49,14 +44,11 @@ def __init__(self, managed_organization_unit_id=None, x_security_token=None, lim self._managed_organization_unit_id = None - self._x_security_token = None self._limit = None self._marker = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token if limit is not None: self.limit = limit if marker is not None: @@ -66,7 +58,7 @@ def __init__(self, managed_organization_unit_id=None, x_security_token=None, lim def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this ListControlsForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this ListControlsForOrganizationUnitRequest. :rtype: str @@ -77,35 +69,13 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this ListControlsForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this ListControlsForOrganizationUnitRequest. :type managed_organization_unit_id: str """ self._managed_organization_unit_id = managed_organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this ListControlsForOrganizationUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListControlsForOrganizationUnitRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListControlsForOrganizationUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListControlsForOrganizationUnitRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def limit(self): """Gets the limit of this ListControlsForOrganizationUnitRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_request.py index f501f978cc..7e3716664c 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_request.py @@ -15,27 +15,22 @@ class ListControlsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_security_token=None, limit=None, marker=None): + def __init__(self, limit=None, marker=None): """ListControlsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param limit: 分页页面的最大值。 :type limit: int :param marker: 页面标记。 @@ -44,40 +39,15 @@ def __init__(self, x_security_token=None, limit=None, marker=None): - self._x_security_token = None self._limit = None self._marker = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if limit is not None: self.limit = limit if marker is not None: self.marker = marker - @property - def x_security_token(self): - """Gets the x_security_token of this ListControlsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListControlsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListControlsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListControlsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def limit(self): """Gets the limit of this ListControlsRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_response.py index 665a9351c1..d56b68a8b6 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_controls_response.py @@ -32,7 +32,7 @@ def __init__(self, controls=None, page_info=None): The model defined in huaweicloud sdk - :param controls: 纳管的OU。 + :param controls: 控制策略信息。 :type controls: list[:class:`huaweicloudsdkrgc.v1.Control`] :param page_info: :type page_info: :class:`huaweicloudsdkrgc.v1.PageInfoDto` @@ -53,7 +53,7 @@ def __init__(self, controls=None, page_info=None): def controls(self): """Gets the controls of this ListControlsResponse. - 纳管的OU。 + 控制策略信息。 :return: The controls of this ListControlsResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.Control`] @@ -64,7 +64,7 @@ def controls(self): def controls(self, controls): """Sets the controls of this ListControlsResponse. - 纳管的OU。 + 控制策略信息。 :param controls: The controls of this ListControlsResponse. :type controls: list[:class:`huaweicloudsdkrgc.v1.Control`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_drift_details_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_drift_details_request.py index 6469dfcd6e..7967e8cb77 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_drift_details_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_drift_details_request.py @@ -15,55 +15,23 @@ class ListDriftDetailsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ListDriftDetailsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ListDriftDetailsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListDriftDetailsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListDriftDetailsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListDriftDetailsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_enabled_controls_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_enabled_controls_request.py index d52ef83d5b..109f92f8e1 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_enabled_controls_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_enabled_controls_request.py @@ -15,27 +15,22 @@ class ListEnabledControlsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_security_token=None, limit=None, marker=None): + def __init__(self, limit=None, marker=None): """ListEnabledControlsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param limit: 分页页面的最大值。 :type limit: int :param marker: 页面标记。 @@ -44,40 +39,15 @@ def __init__(self, x_security_token=None, limit=None, marker=None): - self._x_security_token = None self._limit = None self._marker = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if limit is not None: self.limit = limit if marker is not None: self.marker = marker - @property - def x_security_token(self): - """Gets the x_security_token of this ListEnabledControlsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListEnabledControlsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListEnabledControlsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListEnabledControlsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def limit(self): """Gets the limit of this ListEnabledControlsRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_request.py index 9aa1c2b4c8..52576e3c61 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_request.py @@ -15,31 +15,26 @@ class ListManagedAccountsForParentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_organization_unit_id': 'str', - 'x_security_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None, limit=None, marker=None): + def __init__(self, managed_organization_unit_id=None, limit=None, marker=None): """ListManagedAccountsForParentRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param limit: 分页页面的最大值。 :type limit: int :param marker: 页面标记。 @@ -49,14 +44,11 @@ def __init__(self, managed_organization_unit_id=None, x_security_token=None, lim self._managed_organization_unit_id = None - self._x_security_token = None self._limit = None self._marker = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token if limit is not None: self.limit = limit if marker is not None: @@ -66,7 +58,7 @@ def __init__(self, managed_organization_unit_id=None, x_security_token=None, lim def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this ListManagedAccountsForParentRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this ListManagedAccountsForParentRequest. :rtype: str @@ -77,35 +69,13 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this ListManagedAccountsForParentRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this ListManagedAccountsForParentRequest. :type managed_organization_unit_id: str """ self._managed_organization_unit_id = managed_organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this ListManagedAccountsForParentRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListManagedAccountsForParentRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListManagedAccountsForParentRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListManagedAccountsForParentRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def limit(self): """Gets the limit of this ListManagedAccountsForParentRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_response.py index fd9350a4c1..4203cde75c 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_for_parent_response.py @@ -32,7 +32,7 @@ def __init__(self, managed_accounts=None, page_info=None): The model defined in huaweicloud sdk - :param managed_accounts: 纳管的Account。 + :param managed_accounts: 纳管的账号信息。 :type managed_accounts: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] :param page_info: :type page_info: :class:`huaweicloudsdkrgc.v1.PageInfoDto` @@ -53,7 +53,7 @@ def __init__(self, managed_accounts=None, page_info=None): def managed_accounts(self): """Gets the managed_accounts of this ListManagedAccountsForParentResponse. - 纳管的Account。 + 纳管的账号信息。 :return: The managed_accounts of this ListManagedAccountsForParentResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] @@ -64,7 +64,7 @@ def managed_accounts(self): def managed_accounts(self, managed_accounts): """Sets the managed_accounts of this ListManagedAccountsForParentResponse. - 纳管的Account。 + 纳管的账号信息。 :param managed_accounts: The managed_accounts of this ListManagedAccountsForParentResponse. :type managed_accounts: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_request.py index c9a6b09f00..73480de062 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_request.py @@ -15,29 +15,24 @@ class ListManagedAccountsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'control_id': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'control_id': 'control_id', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_security_token=None, control_id=None, limit=None, marker=None): + def __init__(self, control_id=None, limit=None, marker=None): """ListManagedAccountsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param control_id: 启用的控制策略信息。 :type control_id: str :param limit: 分页页面的最大值。 @@ -48,14 +43,11 @@ def __init__(self, x_security_token=None, control_id=None, limit=None, marker=No - self._x_security_token = None self._control_id = None self._limit = None self._marker = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if control_id is not None: self.control_id = control_id if limit is not None: @@ -63,28 +55,6 @@ def __init__(self, x_security_token=None, control_id=None, limit=None, marker=No if marker is not None: self.marker = marker - @property - def x_security_token(self): - """Gets the x_security_token of this ListManagedAccountsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListManagedAccountsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListManagedAccountsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListManagedAccountsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def control_id(self): """Gets the control_id of this ListManagedAccountsRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_response.py index e8800bb38d..3b286196f7 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_accounts_response.py @@ -32,7 +32,7 @@ def __init__(self, managed_accounts=None, page_info=None): The model defined in huaweicloud sdk - :param managed_accounts: 纳管的Account。 + :param managed_accounts: 纳管的账号信息。 :type managed_accounts: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] :param page_info: :type page_info: :class:`huaweicloudsdkrgc.v1.PageInfoDto` @@ -53,7 +53,7 @@ def __init__(self, managed_accounts=None, page_info=None): def managed_accounts(self): """Gets the managed_accounts of this ListManagedAccountsResponse. - 纳管的Account。 + 纳管的账号信息。 :return: The managed_accounts of this ListManagedAccountsResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] @@ -64,7 +64,7 @@ def managed_accounts(self): def managed_accounts(self, managed_accounts): """Sets the managed_accounts of this ListManagedAccountsResponse. - 纳管的Account。 + 纳管的账号信息。 :param managed_accounts: The managed_accounts of this ListManagedAccountsResponse. :type managed_accounts: list[:class:`huaweicloudsdkrgc.v1.ManagedAccount`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_request.py index 582b2446d0..70ed27d2b4 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_request.py @@ -15,29 +15,24 @@ class ListManagedOrganizationalUnitsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'control_id': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'control_id': 'control_id', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_security_token=None, control_id=None, limit=None, marker=None): + def __init__(self, control_id=None, limit=None, marker=None): """ListManagedOrganizationalUnitsRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param control_id: 启用的控制策略信息。 :type control_id: str :param limit: 分页页面的最大值。 @@ -48,14 +43,11 @@ def __init__(self, x_security_token=None, control_id=None, limit=None, marker=No - self._x_security_token = None self._control_id = None self._limit = None self._marker = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if control_id is not None: self.control_id = control_id if limit is not None: @@ -63,28 +55,6 @@ def __init__(self, x_security_token=None, control_id=None, limit=None, marker=No if marker is not None: self.marker = marker - @property - def x_security_token(self): - """Gets the x_security_token of this ListManagedOrganizationalUnitsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ListManagedOrganizationalUnitsRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ListManagedOrganizationalUnitsRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ListManagedOrganizationalUnitsRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def control_id(self): """Gets the control_id of this ListManagedOrganizationalUnitsRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_response.py index 8f5b293e8d..53461fa503 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/list_managed_organizational_units_response.py @@ -32,7 +32,7 @@ def __init__(self, managed_organization_units=None, page_info=None): The model defined in huaweicloud sdk - :param managed_organization_units: 纳管的OU。 + :param managed_organization_units: 注册OU信息。 :type managed_organization_units: list[:class:`huaweicloudsdkrgc.v1.ManagedOrganizationUnit`] :param page_info: :type page_info: :class:`huaweicloudsdkrgc.v1.PageInfoDto` @@ -53,7 +53,7 @@ def __init__(self, managed_organization_units=None, page_info=None): def managed_organization_units(self): """Gets the managed_organization_units of this ListManagedOrganizationalUnitsResponse. - 纳管的OU。 + 注册OU信息。 :return: The managed_organization_units of this ListManagedOrganizationalUnitsResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.ManagedOrganizationUnit`] @@ -64,7 +64,7 @@ def managed_organization_units(self): def managed_organization_units(self, managed_organization_units): """Sets the managed_organization_units of this ListManagedOrganizationalUnitsResponse. - 纳管的OU。 + 注册OU信息。 :param managed_organization_units: The managed_organization_units of this ListManagedOrganizationalUnitsResponse. :type managed_organization_units: list[:class:`huaweicloudsdkrgc.v1.ManagedOrganizationUnit`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_account.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_account.py index 798938c101..39673099fd 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_account.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_account.py @@ -17,11 +17,10 @@ class ManagedAccount: sensitive_list = [] openapi_types = { - 'phone': 'str', + 'landing_zone_version': 'str', 'manage_account_id': 'str', 'account_id': 'str', 'account_name': 'str', - 'account_email': 'str', 'account_type': 'str', 'owner': 'str', 'state': 'str', @@ -29,7 +28,6 @@ class ManagedAccount: 'parent_organization_unit_id': 'str', 'parent_organization_unit_name': 'str', 'identity_store_user_name': 'str', - 'identity_store_email_name': 'str', 'blueprint_product_id': 'str', 'blueprint_product_version': 'str', 'blueprint_status': 'str', @@ -39,11 +37,10 @@ class ManagedAccount: } attribute_map = { - 'phone': 'phone', + 'landing_zone_version': 'landing_zone_version', 'manage_account_id': 'manage_account_id', 'account_id': 'account_id', 'account_name': 'account_name', - 'account_email': 'account_email', 'account_type': 'account_type', 'owner': 'owner', 'state': 'state', @@ -51,7 +48,6 @@ class ManagedAccount: 'parent_organization_unit_id': 'parent_organization_unit_id', 'parent_organization_unit_name': 'parent_organization_unit_name', 'identity_store_user_name': 'identity_store_user_name', - 'identity_store_email_name': 'identity_store_email_name', 'blueprint_product_id': 'blueprint_product_id', 'blueprint_product_version': 'blueprint_product_version', 'blueprint_status': 'blueprint_status', @@ -60,58 +56,53 @@ class ManagedAccount: 'updated_at': 'updated_at' } - def __init__(self, phone=None, manage_account_id=None, account_id=None, account_name=None, account_email=None, account_type=None, owner=None, state=None, message=None, parent_organization_unit_id=None, parent_organization_unit_name=None, identity_store_user_name=None, identity_store_email_name=None, blueprint_product_id=None, blueprint_product_version=None, blueprint_status=None, regions=None, created_at=None, updated_at=None): + def __init__(self, landing_zone_version=None, manage_account_id=None, account_id=None, account_name=None, account_type=None, owner=None, state=None, message=None, parent_organization_unit_id=None, parent_organization_unit_name=None, identity_store_user_name=None, blueprint_product_id=None, blueprint_product_version=None, blueprint_status=None, regions=None, created_at=None, updated_at=None): """ManagedAccount The model defined in huaweicloud sdk - :param phone: 手机号码。 - :type phone: str - :param manage_account_id: 管理账号ID。 + :param landing_zone_version: Landing Zone版本。 + :type landing_zone_version: str + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str - :param account_id: 账号ID。 + :param account_id: 纳管账号ID。 :type account_id: str - :param account_name: 账号名称。 + :param account_name: 纳管账号名称。 :type account_name: str - :param account_email: 账号email。 - :type account_email: str - :param account_type: 账号类型。 + :param account_type: 纳管账号类型。 :type account_type: str - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param state: 账号状态。 + :param state: 纳管账号状态。 :type state: str :param message: 错误状态描述信息。 :type message: str - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str :param identity_store_user_name: Identity Center用户名。 :type identity_store_user_name: str - :param identity_store_email_name: Identity Center邮箱。 - :type identity_store_email_name: str - :param blueprint_product_id: 蓝图ID。 + :param blueprint_product_id: 模板ID。 :type blueprint_product_id: str - :param blueprint_product_version: 蓝图版本。 + :param blueprint_product_version: 模板版本。 :type blueprint_product_version: str - :param blueprint_status: 蓝图部署状态,包括error, active, in_progress。 + :param blueprint_status: 模板部署状态,包括失败, 完成, 进行中。 :type blueprint_status: str - :param regions: region信息。 + :param regions: 区域信息。 :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] - :param created_at: 被创建的时间。 + :param created_at: 组织里某个注册OU下的纳管账号被创建的时间。 :type created_at: datetime - :param updated_at: 最后一次更新的时间。 + :param updated_at: 组织里某个注册OU下的纳管账号最后一次更新的时间。 :type updated_at: datetime """ - self._phone = None + self._landing_zone_version = None self._manage_account_id = None self._account_id = None self._account_name = None - self._account_email = None self._account_type = None self._owner = None self._state = None @@ -119,7 +110,6 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self._parent_organization_unit_id = None self._parent_organization_unit_name = None self._identity_store_user_name = None - self._identity_store_email_name = None self._blueprint_product_id = None self._blueprint_product_version = None self._blueprint_status = None @@ -128,16 +118,14 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self._updated_at = None self.discriminator = None - if phone is not None: - self.phone = phone + if landing_zone_version is not None: + self.landing_zone_version = landing_zone_version if manage_account_id is not None: self.manage_account_id = manage_account_id if account_id is not None: self.account_id = account_id if account_name is not None: self.account_name = account_name - if account_email is not None: - self.account_email = account_email if account_type is not None: self.account_type = account_type if owner is not None: @@ -152,8 +140,6 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self.parent_organization_unit_name = parent_organization_unit_name if identity_store_user_name is not None: self.identity_store_user_name = identity_store_user_name - if identity_store_email_name is not None: - self.identity_store_email_name = identity_store_email_name if blueprint_product_id is not None: self.blueprint_product_id = blueprint_product_id if blueprint_product_version is not None: @@ -168,32 +154,32 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self.updated_at = updated_at @property - def phone(self): - """Gets the phone of this ManagedAccount. + def landing_zone_version(self): + """Gets the landing_zone_version of this ManagedAccount. - 手机号码。 + Landing Zone版本。 - :return: The phone of this ManagedAccount. + :return: The landing_zone_version of this ManagedAccount. :rtype: str """ - return self._phone + return self._landing_zone_version - @phone.setter - def phone(self, phone): - """Sets the phone of this ManagedAccount. + @landing_zone_version.setter + def landing_zone_version(self, landing_zone_version): + """Sets the landing_zone_version of this ManagedAccount. - 手机号码。 + Landing Zone版本。 - :param phone: The phone of this ManagedAccount. - :type phone: str + :param landing_zone_version: The landing_zone_version of this ManagedAccount. + :type landing_zone_version: str """ - self._phone = phone + self._landing_zone_version = landing_zone_version @property def manage_account_id(self): """Gets the manage_account_id of this ManagedAccount. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this ManagedAccount. :rtype: str @@ -204,7 +190,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this ManagedAccount. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this ManagedAccount. :type manage_account_id: str @@ -215,7 +201,7 @@ def manage_account_id(self, manage_account_id): def account_id(self): """Gets the account_id of this ManagedAccount. - 账号ID。 + 纳管账号ID。 :return: The account_id of this ManagedAccount. :rtype: str @@ -226,7 +212,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ManagedAccount. - 账号ID。 + 纳管账号ID。 :param account_id: The account_id of this ManagedAccount. :type account_id: str @@ -237,7 +223,7 @@ def account_id(self, account_id): def account_name(self): """Gets the account_name of this ManagedAccount. - 账号名称。 + 纳管账号名称。 :return: The account_name of this ManagedAccount. :rtype: str @@ -248,40 +234,18 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this ManagedAccount. - 账号名称。 + 纳管账号名称。 :param account_name: The account_name of this ManagedAccount. :type account_name: str """ self._account_name = account_name - @property - def account_email(self): - """Gets the account_email of this ManagedAccount. - - 账号email。 - - :return: The account_email of this ManagedAccount. - :rtype: str - """ - return self._account_email - - @account_email.setter - def account_email(self, account_email): - """Sets the account_email of this ManagedAccount. - - 账号email。 - - :param account_email: The account_email of this ManagedAccount. - :type account_email: str - """ - self._account_email = account_email - @property def account_type(self): """Gets the account_type of this ManagedAccount. - 账号类型。 + 纳管账号类型。 :return: The account_type of this ManagedAccount. :rtype: str @@ -292,7 +256,7 @@ def account_type(self): def account_type(self, account_type): """Sets the account_type of this ManagedAccount. - 账号类型。 + 纳管账号类型。 :param account_type: The account_type of this ManagedAccount. :type account_type: str @@ -303,7 +267,7 @@ def account_type(self, account_type): def owner(self): """Gets the owner of this ManagedAccount. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this ManagedAccount. :rtype: str @@ -314,7 +278,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this ManagedAccount. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this ManagedAccount. :type owner: str @@ -325,7 +289,7 @@ def owner(self, owner): def state(self): """Gets the state of this ManagedAccount. - 账号状态。 + 纳管账号状态。 :return: The state of this ManagedAccount. :rtype: str @@ -336,7 +300,7 @@ def state(self): def state(self, state): """Sets the state of this ManagedAccount. - 账号状态。 + 纳管账号状态。 :param state: The state of this ManagedAccount. :type state: str @@ -369,7 +333,7 @@ def message(self, message): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this ManagedAccount. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this ManagedAccount. :rtype: str @@ -380,7 +344,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this ManagedAccount. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this ManagedAccount. :type parent_organization_unit_id: str @@ -391,7 +355,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this ManagedAccount. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this ManagedAccount. :rtype: str @@ -402,7 +366,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this ManagedAccount. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this ManagedAccount. :type parent_organization_unit_name: str @@ -431,33 +395,11 @@ def identity_store_user_name(self, identity_store_user_name): """ self._identity_store_user_name = identity_store_user_name - @property - def identity_store_email_name(self): - """Gets the identity_store_email_name of this ManagedAccount. - - Identity Center邮箱。 - - :return: The identity_store_email_name of this ManagedAccount. - :rtype: str - """ - return self._identity_store_email_name - - @identity_store_email_name.setter - def identity_store_email_name(self, identity_store_email_name): - """Sets the identity_store_email_name of this ManagedAccount. - - Identity Center邮箱。 - - :param identity_store_email_name: The identity_store_email_name of this ManagedAccount. - :type identity_store_email_name: str - """ - self._identity_store_email_name = identity_store_email_name - @property def blueprint_product_id(self): """Gets the blueprint_product_id of this ManagedAccount. - 蓝图ID。 + 模板ID。 :return: The blueprint_product_id of this ManagedAccount. :rtype: str @@ -468,7 +410,7 @@ def blueprint_product_id(self): def blueprint_product_id(self, blueprint_product_id): """Sets the blueprint_product_id of this ManagedAccount. - 蓝图ID。 + 模板ID。 :param blueprint_product_id: The blueprint_product_id of this ManagedAccount. :type blueprint_product_id: str @@ -479,7 +421,7 @@ def blueprint_product_id(self, blueprint_product_id): def blueprint_product_version(self): """Gets the blueprint_product_version of this ManagedAccount. - 蓝图版本。 + 模板版本。 :return: The blueprint_product_version of this ManagedAccount. :rtype: str @@ -490,7 +432,7 @@ def blueprint_product_version(self): def blueprint_product_version(self, blueprint_product_version): """Sets the blueprint_product_version of this ManagedAccount. - 蓝图版本。 + 模板版本。 :param blueprint_product_version: The blueprint_product_version of this ManagedAccount. :type blueprint_product_version: str @@ -501,7 +443,7 @@ def blueprint_product_version(self, blueprint_product_version): def blueprint_status(self): """Gets the blueprint_status of this ManagedAccount. - 蓝图部署状态,包括error, active, in_progress。 + 模板部署状态,包括失败, 完成, 进行中。 :return: The blueprint_status of this ManagedAccount. :rtype: str @@ -512,7 +454,7 @@ def blueprint_status(self): def blueprint_status(self, blueprint_status): """Sets the blueprint_status of this ManagedAccount. - 蓝图部署状态,包括error, active, in_progress。 + 模板部署状态,包括失败, 完成, 进行中。 :param blueprint_status: The blueprint_status of this ManagedAccount. :type blueprint_status: str @@ -523,7 +465,7 @@ def blueprint_status(self, blueprint_status): def regions(self): """Gets the regions of this ManagedAccount. - region信息。 + 区域信息。 :return: The regions of this ManagedAccount. :rtype: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] @@ -534,7 +476,7 @@ def regions(self): def regions(self, regions): """Sets the regions of this ManagedAccount. - region信息。 + 区域信息。 :param regions: The regions of this ManagedAccount. :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] @@ -545,7 +487,7 @@ def regions(self, regions): def created_at(self): """Gets the created_at of this ManagedAccount. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :return: The created_at of this ManagedAccount. :rtype: datetime @@ -556,7 +498,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this ManagedAccount. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :param created_at: The created_at of this ManagedAccount. :type created_at: datetime @@ -567,7 +509,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this ManagedAccount. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :return: The updated_at of this ManagedAccount. :rtype: datetime @@ -578,7 +520,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this ManagedAccount. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :param updated_at: The updated_at of this ManagedAccount. :type updated_at: datetime diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_organization_unit.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_organization_unit.py index 9f3a90419c..f8e10567c4 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_organization_unit.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/managed_organization_unit.py @@ -25,7 +25,9 @@ class ManagedOrganizationUnit: 'parent_organization_unit_id': 'str', 'parent_organization_unit_name': 'str', 'created_at': 'datetime', - 'updated_at': 'datetime' + 'landing_zone_version': 'str', + 'updated_at': 'datetime', + 'message': 'str' } attribute_map = { @@ -37,32 +39,38 @@ class ManagedOrganizationUnit: 'parent_organization_unit_id': 'parent_organization_unit_id', 'parent_organization_unit_name': 'parent_organization_unit_name', 'created_at': 'created_at', - 'updated_at': 'updated_at' + 'landing_zone_version': 'landing_zone_version', + 'updated_at': 'updated_at', + 'message': 'message' } - def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None, updated_at=None): + def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None, landing_zone_version=None, updated_at=None, message=None): """ManagedOrganizationUnit The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str - :param organization_unit_id: OU ID。 + :param organization_unit_id: 注册OU ID。 :type organization_unit_id: str - :param organization_unit_name: OU名称。 + :param organization_unit_name: 注册OU名称。 :type organization_unit_name: str - :param organization_unit_status: OU状态。 + :param organization_unit_status: 注册OU状态。 :type organization_unit_status: str :param organization_unit_type: :type organization_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitType` - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str - :param created_at: 被创建的时间。 + :param created_at: 组织里某个注册OU下的纳管账号被创建的时间。 :type created_at: datetime - :param updated_at: 最后一次更新的时间。 + :param landing_zone_version: Landing Zone版本。 + :type landing_zone_version: str + :param updated_at: 组织里某个注册OU下的纳管账号最后一次更新的时间。 :type updated_at: datetime + :param message: 错误信息描述。 + :type message: str """ @@ -75,7 +83,9 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self._parent_organization_unit_id = None self._parent_organization_unit_name = None self._created_at = None + self._landing_zone_version = None self._updated_at = None + self._message = None self.discriminator = None if manage_account_id is not None: @@ -94,14 +104,18 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self.parent_organization_unit_name = parent_organization_unit_name if created_at is not None: self.created_at = created_at + if landing_zone_version is not None: + self.landing_zone_version = landing_zone_version if updated_at is not None: self.updated_at = updated_at + if message is not None: + self.message = message @property def manage_account_id(self): """Gets the manage_account_id of this ManagedOrganizationUnit. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this ManagedOrganizationUnit. :rtype: str @@ -112,7 +126,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this ManagedOrganizationUnit. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this ManagedOrganizationUnit. :type manage_account_id: str @@ -123,7 +137,7 @@ def manage_account_id(self, manage_account_id): def organization_unit_id(self): """Gets the organization_unit_id of this ManagedOrganizationUnit. - OU ID。 + 注册OU ID。 :return: The organization_unit_id of this ManagedOrganizationUnit. :rtype: str @@ -134,7 +148,7 @@ def organization_unit_id(self): def organization_unit_id(self, organization_unit_id): """Sets the organization_unit_id of this ManagedOrganizationUnit. - OU ID。 + 注册OU ID。 :param organization_unit_id: The organization_unit_id of this ManagedOrganizationUnit. :type organization_unit_id: str @@ -145,7 +159,7 @@ def organization_unit_id(self, organization_unit_id): def organization_unit_name(self): """Gets the organization_unit_name of this ManagedOrganizationUnit. - OU名称。 + 注册OU名称。 :return: The organization_unit_name of this ManagedOrganizationUnit. :rtype: str @@ -156,7 +170,7 @@ def organization_unit_name(self): def organization_unit_name(self, organization_unit_name): """Sets the organization_unit_name of this ManagedOrganizationUnit. - OU名称。 + 注册OU名称。 :param organization_unit_name: The organization_unit_name of this ManagedOrganizationUnit. :type organization_unit_name: str @@ -167,7 +181,7 @@ def organization_unit_name(self, organization_unit_name): def organization_unit_status(self): """Gets the organization_unit_status of this ManagedOrganizationUnit. - OU状态。 + 注册OU状态。 :return: The organization_unit_status of this ManagedOrganizationUnit. :rtype: str @@ -178,7 +192,7 @@ def organization_unit_status(self): def organization_unit_status(self, organization_unit_status): """Sets the organization_unit_status of this ManagedOrganizationUnit. - OU状态。 + 注册OU状态。 :param organization_unit_status: The organization_unit_status of this ManagedOrganizationUnit. :type organization_unit_status: str @@ -207,7 +221,7 @@ def organization_unit_type(self, organization_unit_type): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this ManagedOrganizationUnit. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this ManagedOrganizationUnit. :rtype: str @@ -218,7 +232,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this ManagedOrganizationUnit. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this ManagedOrganizationUnit. :type parent_organization_unit_id: str @@ -229,7 +243,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this ManagedOrganizationUnit. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this ManagedOrganizationUnit. :rtype: str @@ -240,7 +254,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this ManagedOrganizationUnit. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this ManagedOrganizationUnit. :type parent_organization_unit_name: str @@ -251,7 +265,7 @@ def parent_organization_unit_name(self, parent_organization_unit_name): def created_at(self): """Gets the created_at of this ManagedOrganizationUnit. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :return: The created_at of this ManagedOrganizationUnit. :rtype: datetime @@ -262,18 +276,40 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this ManagedOrganizationUnit. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :param created_at: The created_at of this ManagedOrganizationUnit. :type created_at: datetime """ self._created_at = created_at + @property + def landing_zone_version(self): + """Gets the landing_zone_version of this ManagedOrganizationUnit. + + Landing Zone版本。 + + :return: The landing_zone_version of this ManagedOrganizationUnit. + :rtype: str + """ + return self._landing_zone_version + + @landing_zone_version.setter + def landing_zone_version(self, landing_zone_version): + """Sets the landing_zone_version of this ManagedOrganizationUnit. + + Landing Zone版本。 + + :param landing_zone_version: The landing_zone_version of this ManagedOrganizationUnit. + :type landing_zone_version: str + """ + self._landing_zone_version = landing_zone_version + @property def updated_at(self): """Gets the updated_at of this ManagedOrganizationUnit. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :return: The updated_at of this ManagedOrganizationUnit. :rtype: datetime @@ -284,13 +320,35 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this ManagedOrganizationUnit. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :param updated_at: The updated_at of this ManagedOrganizationUnit. :type updated_at: datetime """ self._updated_at = updated_at + @property + def message(self): + """Gets the message of this ManagedOrganizationUnit. + + 错误信息描述。 + + :return: The message of this ManagedOrganizationUnit. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ManagedOrganizationUnit. + + 错误信息描述。 + + :param message: The message of this ManagedOrganizationUnit. + :type message: str + """ + self._message = message + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line.py index 4890314c52..0f8023d79b 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line.py @@ -33,11 +33,11 @@ def __init__(self, organizational_unit_name=None, organizational_unit_type=None, The model defined in huaweicloud sdk - :param organizational_unit_name: OU名称。 + :param organizational_unit_name: 注册OU名称。 :type organizational_unit_name: str :param organizational_unit_type: :type organizational_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitTypeForSetup` - :param accounts: 账号基本信息。 + :param accounts: 纳管账号基本信息。 :type accounts: list[:class:`huaweicloudsdkrgc.v1.AccountBaseline`] """ @@ -57,7 +57,7 @@ def __init__(self, organizational_unit_name=None, organizational_unit_type=None, def organizational_unit_name(self): """Gets the organizational_unit_name of this OrganizationStructureBaseLine. - OU名称。 + 注册OU名称。 :return: The organizational_unit_name of this OrganizationStructureBaseLine. :rtype: str @@ -68,7 +68,7 @@ def organizational_unit_name(self): def organizational_unit_name(self, organizational_unit_name): """Sets the organizational_unit_name of this OrganizationStructureBaseLine. - OU名称。 + 注册OU名称。 :param organizational_unit_name: The organizational_unit_name of this OrganizationStructureBaseLine. :type organizational_unit_name: str @@ -97,7 +97,7 @@ def organizational_unit_type(self, organizational_unit_type): def accounts(self): """Gets the accounts of this OrganizationStructureBaseLine. - 账号基本信息。 + 纳管账号基本信息。 :return: The accounts of this OrganizationStructureBaseLine. :rtype: list[:class:`huaweicloudsdkrgc.v1.AccountBaseline`] @@ -108,7 +108,7 @@ def accounts(self): def accounts(self, accounts): """Sets the accounts of this OrganizationStructureBaseLine. - 账号基本信息。 + 纳管账号基本信息。 :param accounts: The accounts of this OrganizationStructureBaseLine. :type accounts: list[:class:`huaweicloudsdkrgc.v1.AccountBaseline`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line_rsp.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line_rsp.py new file mode 100644 index 0000000000..2f7c2f1f9e --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organization_structure_base_line_rsp.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OrganizationStructureBaseLineRsp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'organizational_unit_name': 'str', + 'organizational_unit_type': 'OrganizationalUnitTypeForSetup', + 'accounts': 'list[AccountBaselineRsp]' + } + + attribute_map = { + 'organizational_unit_name': 'organizational_unit_name', + 'organizational_unit_type': 'organizational_unit_type', + 'accounts': 'accounts' + } + + def __init__(self, organizational_unit_name=None, organizational_unit_type=None, accounts=None): + """OrganizationStructureBaseLineRsp + + The model defined in huaweicloud sdk + + :param organizational_unit_name: 注册OU名称。 + :type organizational_unit_name: str + :param organizational_unit_type: + :type organizational_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitTypeForSetup` + :param accounts: 纳管账号基本信息。 + :type accounts: list[:class:`huaweicloudsdkrgc.v1.AccountBaselineRsp`] + """ + + + + self._organizational_unit_name = None + self._organizational_unit_type = None + self._accounts = None + self.discriminator = None + + self.organizational_unit_name = organizational_unit_name + self.organizational_unit_type = organizational_unit_type + if accounts is not None: + self.accounts = accounts + + @property + def organizational_unit_name(self): + """Gets the organizational_unit_name of this OrganizationStructureBaseLineRsp. + + 注册OU名称。 + + :return: The organizational_unit_name of this OrganizationStructureBaseLineRsp. + :rtype: str + """ + return self._organizational_unit_name + + @organizational_unit_name.setter + def organizational_unit_name(self, organizational_unit_name): + """Sets the organizational_unit_name of this OrganizationStructureBaseLineRsp. + + 注册OU名称。 + + :param organizational_unit_name: The organizational_unit_name of this OrganizationStructureBaseLineRsp. + :type organizational_unit_name: str + """ + self._organizational_unit_name = organizational_unit_name + + @property + def organizational_unit_type(self): + """Gets the organizational_unit_type of this OrganizationStructureBaseLineRsp. + + :return: The organizational_unit_type of this OrganizationStructureBaseLineRsp. + :rtype: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitTypeForSetup` + """ + return self._organizational_unit_type + + @organizational_unit_type.setter + def organizational_unit_type(self, organizational_unit_type): + """Sets the organizational_unit_type of this OrganizationStructureBaseLineRsp. + + :param organizational_unit_type: The organizational_unit_type of this OrganizationStructureBaseLineRsp. + :type organizational_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitTypeForSetup` + """ + self._organizational_unit_type = organizational_unit_type + + @property + def accounts(self): + """Gets the accounts of this OrganizationStructureBaseLineRsp. + + 纳管账号基本信息。 + + :return: The accounts of this OrganizationStructureBaseLineRsp. + :rtype: list[:class:`huaweicloudsdkrgc.v1.AccountBaselineRsp`] + """ + return self._accounts + + @accounts.setter + def accounts(self, accounts): + """Sets the accounts of this OrganizationStructureBaseLineRsp. + + 纳管账号基本信息。 + + :param accounts: The accounts of this OrganizationStructureBaseLineRsp. + :type accounts: list[:class:`huaweicloudsdkrgc.v1.AccountBaselineRsp`] + """ + self._accounts = accounts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationStructureBaseLineRsp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organizational_percentage_detail.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organizational_percentage_detail.py index ee96f48eed..af04135cc4 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organizational_percentage_detail.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/organizational_percentage_detail.py @@ -33,7 +33,7 @@ def __init__(self, percentage_name=None, percentage_status=None): :param percentage_name: 进度名称。 :type percentage_name: str - :param percentage_status: 进度完成状态。 + :param percentage_status: 创建账号、注册OU、纳管账号的进度完成状态。 :type percentage_status: str """ @@ -74,7 +74,7 @@ def percentage_name(self, percentage_name): def percentage_status(self): """Gets the percentage_status of this OrganizationalPercentageDetail. - 进度完成状态。 + 创建账号、注册OU、纳管账号的进度完成状态。 :return: The percentage_status of this OrganizationalPercentageDetail. :rtype: str @@ -85,7 +85,7 @@ def percentage_status(self): def percentage_status(self, percentage_status): """Sets the percentage_status of this OrganizationalPercentageDetail. - 进度完成状态。 + 创建账号、注册OU、纳管账号的进度完成状态。 :param percentage_status: The percentage_status of this OrganizationalPercentageDetail. :type percentage_status: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/page_info_dto.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/page_info_dto.py index 97e86c8854..507007c522 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/page_info_dto.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/page_info_dto.py @@ -31,9 +31,9 @@ def __init__(self, next_marker=None, current_count=None): The model defined in huaweicloud sdk - :param next_marker: 下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 如果存在,则表示可用的输出比当前响应中包含的输出多。在对操作的后续调用中,在标签请求参数中使用此值,以获取输出的下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 + :param next_marker: 在标签请求参数中使用以获取输出的下一部分。重复此操作,直到响应元素返回null。如果存在,则表示可用的输出比当前响应中包含的输出多。 :type next_marker: str - :param current_count: 本页返回条目数量 + :param current_count: 本页返回条目数量。 :type current_count: int """ @@ -51,7 +51,7 @@ def __init__(self, next_marker=None, current_count=None): def next_marker(self): """Gets the next_marker of this PageInfoDto. - 下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 如果存在,则表示可用的输出比当前响应中包含的输出多。在对操作的后续调用中,在标签请求参数中使用此值,以获取输出的下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 + 在标签请求参数中使用以获取输出的下一部分。重复此操作,直到响应元素返回null。如果存在,则表示可用的输出比当前响应中包含的输出多。 :return: The next_marker of this PageInfoDto. :rtype: str @@ -62,7 +62,7 @@ def next_marker(self): def next_marker(self, next_marker): """Sets the next_marker of this PageInfoDto. - 下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 如果存在,则表示可用的输出比当前响应中包含的输出多。在对操作的后续调用中,在标签请求参数中使用此值,以获取输出的下一部分。您应该重复此操作,直到next_marker响应元素返回为null。 + 在标签请求参数中使用以获取输出的下一部分。重复此操作,直到响应元素返回null。如果存在,则表示可用的输出比当前响应中包含的输出多。 :param next_marker: The next_marker of this PageInfoDto. :type next_marker: str @@ -73,7 +73,7 @@ def next_marker(self, next_marker): def current_count(self): """Gets the current_count of this PageInfoDto. - 本页返回条目数量 + 本页返回条目数量。 :return: The current_count of this PageInfoDto. :rtype: int @@ -84,7 +84,7 @@ def current_count(self): def current_count(self, current_count): """Sets the current_count of this PageInfoDto. - 本页返回条目数量 + 本页返回条目数量。 :param current_count: The current_count of this PageInfoDto. :type current_count: int diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_request.py new file mode 100644 index 0000000000..46a5f0d7b7 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReRegisterOrganizationalUnitRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'organization_unit_id': 'str' + } + + attribute_map = { + 'organization_unit_id': 'organization_unit_id' + } + + def __init__(self, organization_unit_id=None): + """ReRegisterOrganizationalUnitRequest + + The model defined in huaweicloud sdk + + :param organization_unit_id: 注册OU ID。 + :type organization_unit_id: str + """ + + + + self._organization_unit_id = None + self.discriminator = None + + self.organization_unit_id = organization_unit_id + + @property + def organization_unit_id(self): + """Gets the organization_unit_id of this ReRegisterOrganizationalUnitRequest. + + 注册OU ID。 + + :return: The organization_unit_id of this ReRegisterOrganizationalUnitRequest. + :rtype: str + """ + return self._organization_unit_id + + @organization_unit_id.setter + def organization_unit_id(self, organization_unit_id): + """Sets the organization_unit_id of this ReRegisterOrganizationalUnitRequest. + + 注册OU ID。 + + :param organization_unit_id: The organization_unit_id of this ReRegisterOrganizationalUnitRequest. + :type organization_unit_id: str + """ + self._organization_unit_id = organization_unit_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, ReRegisterOrganizationalUnitRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_response.py new file mode 100644 index 0000000000..5ec01fa817 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/re_register_organizational_unit_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReRegisterOrganizationalUnitResponse(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 = { + 'organizational_unit_operation_id': 'str' + } + + attribute_map = { + 'organizational_unit_operation_id': 'organizational_unit_operation_id' + } + + def __init__(self, organizational_unit_operation_id=None): + """ReRegisterOrganizationalUnitResponse + + The model defined in huaweicloud sdk + + :param organizational_unit_operation_id: 异步接口的操作ID。 + :type organizational_unit_operation_id: str + """ + + super(ReRegisterOrganizationalUnitResponse, self).__init__() + + self._organizational_unit_operation_id = None + self.discriminator = None + + if organizational_unit_operation_id is not None: + self.organizational_unit_operation_id = organizational_unit_operation_id + + @property + def organizational_unit_operation_id(self): + """Gets the organizational_unit_operation_id of this ReRegisterOrganizationalUnitResponse. + + 异步接口的操作ID。 + + :return: The organizational_unit_operation_id of this ReRegisterOrganizationalUnitResponse. + :rtype: str + """ + return self._organizational_unit_operation_id + + @organizational_unit_operation_id.setter + def organizational_unit_operation_id(self, organizational_unit_operation_id): + """Sets the organizational_unit_operation_id of this ReRegisterOrganizationalUnitResponse. + + 异步接口的操作ID。 + + :param organizational_unit_operation_id: The organizational_unit_operation_id of this ReRegisterOrganizationalUnitResponse. + :type organizational_unit_operation_id: str + """ + self._organizational_unit_operation_id = organizational_unit_operation_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, ReRegisterOrganizationalUnitResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_configuration_list.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_configuration_list.py index 3019b1203b..04803a92d3 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_configuration_list.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_configuration_list.py @@ -33,7 +33,7 @@ def __init__(self, region=None, region_configuration_status=None): :param region: 区域名字。 :type region: str - :param region_configuration_status: 账号类型logging,security。 * ENABLED - 开启 * DISABLED - 关闭 + :param region_configuration_status: 纳管账号类型LOGGING,SECURITY。 :type region_configuration_status: str """ @@ -72,7 +72,7 @@ def region(self, region): def region_configuration_status(self): """Gets the region_configuration_status of this RegionConfigurationList. - 账号类型logging,security。 * ENABLED - 开启 * DISABLED - 关闭 + 纳管账号类型LOGGING,SECURITY。 :return: The region_configuration_status of this RegionConfigurationList. :rtype: str @@ -83,7 +83,7 @@ def region_configuration_status(self): def region_configuration_status(self, region_configuration_status): """Sets the region_configuration_status of this RegionConfigurationList. - 账号类型logging,security。 * ENABLED - 开启 * DISABLED - 关闭 + 纳管账号类型LOGGING,SECURITY。 :param region_configuration_status: The region_configuration_status of this RegionConfigurationList. :type region_configuration_status: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_managed_list.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_managed_list.py index a32a736c3a..21dfb4c81f 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_managed_list.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/region_managed_list.py @@ -33,7 +33,7 @@ def __init__(self, region=None, region_status=None): :param region: 区域名字。 :type region: str - :param region_status: available or unavailable。 + :param region_status: 区域的状态,取值为可用或者不可用。 :type region_status: str """ @@ -74,7 +74,7 @@ def region(self, region): def region_status(self): """Gets the region_status of this RegionManagedList. - available or unavailable。 + 区域的状态,取值为可用或者不可用。 :return: The region_status of this RegionManagedList. :rtype: str @@ -85,7 +85,7 @@ def region_status(self): def region_status(self, region_status): """Sets the region_status of this RegionManagedList. - available or unavailable。 + 区域的状态,取值为可用或者不可用。 :param region_status: The region_status of this RegionManagedList. :type region_status: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/register_organizational_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/register_organizational_unit_request.py index b3babc1b03..d054c6917d 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/register_organizational_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/register_organizational_unit_request.py @@ -15,44 +15,36 @@ class RegisterOrganizationalUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'organization_unit_id': 'str', - 'x_security_token': 'str' + 'organization_unit_id': 'str' } attribute_map = { - 'organization_unit_id': 'organization_unit_id', - 'x_security_token': 'X-Security-Token' + 'organization_unit_id': 'organization_unit_id' } - def __init__(self, organization_unit_id=None, x_security_token=None): + def __init__(self, organization_unit_id=None): """RegisterOrganizationalUnitRequest The model defined in huaweicloud sdk - :param organization_unit_id: OU ID。 + :param organization_unit_id: 注册OU ID。 :type organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._organization_unit_id = None - self._x_security_token = None self.discriminator = None self.organization_unit_id = organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def organization_unit_id(self): """Gets the organization_unit_id of this RegisterOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :return: The organization_unit_id of this RegisterOrganizationalUnitRequest. :rtype: str @@ -63,35 +55,13 @@ def organization_unit_id(self): def organization_unit_id(self, organization_unit_id): """Sets the organization_unit_id of this RegisterOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :param organization_unit_id: The organization_unit_id of this RegisterOrganizationalUnitRequest. :type organization_unit_id: str """ self._organization_unit_id = organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this RegisterOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this RegisterOrganizationalUnitRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this RegisterOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this RegisterOrganizationalUnitRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_req_body.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_req_body.py index c3df01086b..db19f4395d 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_req_body.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_req_body.py @@ -46,15 +46,15 @@ def __init__(self, identity_store_email=None, home_region=None, setup_landing_zo The model defined in huaweicloud sdk - :param identity_store_email: 管理员账号创建Identity Center用户所用邮箱。 + :param identity_store_email: 管理员纳管账号创建Identity Center用户所用邮箱。 :type identity_store_email: str :param home_region: 主区域。 :type home_region: str :param setup_landing_zone_action_type: 设置Landing Zone的类型。包括CREATE、REPAIR以及UPDATE。 :type setup_landing_zone_action_type: str - :param region_configuration_list: 当前账号纳管的区域。 + :param region_configuration_list: 当前纳管账号纳管的区域。 :type region_configuration_list: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] - :param organization_structure: 基础环境的账号体系。 + :param organization_structure: 基础环境的纳管账号体系。 :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] :param deny_ungoverned_regions: 是否允许区域拒绝,默认false。 :type deny_ungoverned_regions: bool @@ -96,7 +96,7 @@ def __init__(self, identity_store_email=None, home_region=None, setup_landing_zo def identity_store_email(self): """Gets the identity_store_email of this SetupLandingZoneReqBody. - 管理员账号创建Identity Center用户所用邮箱。 + 管理员纳管账号创建Identity Center用户所用邮箱。 :return: The identity_store_email of this SetupLandingZoneReqBody. :rtype: str @@ -107,7 +107,7 @@ def identity_store_email(self): def identity_store_email(self, identity_store_email): """Sets the identity_store_email of this SetupLandingZoneReqBody. - 管理员账号创建Identity Center用户所用邮箱。 + 管理员纳管账号创建Identity Center用户所用邮箱。 :param identity_store_email: The identity_store_email of this SetupLandingZoneReqBody. :type identity_store_email: str @@ -162,7 +162,7 @@ def setup_landing_zone_action_type(self, setup_landing_zone_action_type): def region_configuration_list(self): """Gets the region_configuration_list of this SetupLandingZoneReqBody. - 当前账号纳管的区域。 + 当前纳管账号纳管的区域。 :return: The region_configuration_list of this SetupLandingZoneReqBody. :rtype: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] @@ -173,7 +173,7 @@ def region_configuration_list(self): def region_configuration_list(self, region_configuration_list): """Sets the region_configuration_list of this SetupLandingZoneReqBody. - 当前账号纳管的区域。 + 当前纳管账号纳管的区域。 :param region_configuration_list: The region_configuration_list of this SetupLandingZoneReqBody. :type region_configuration_list: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] @@ -184,7 +184,7 @@ def region_configuration_list(self, region_configuration_list): def organization_structure(self): """Gets the organization_structure of this SetupLandingZoneReqBody. - 基础环境的账号体系。 + 基础环境的纳管账号体系。 :return: The organization_structure of this SetupLandingZoneReqBody. :rtype: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] @@ -195,7 +195,7 @@ def organization_structure(self): def organization_structure(self, organization_structure): """Sets the organization_structure of this SetupLandingZoneReqBody. - 基础环境的账号体系。 + 基础环境的纳管账号体系。 :param organization_structure: The organization_structure of this SetupLandingZoneReqBody. :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_request.py index 8d744b7943..fd83ffc310 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/setup_landing_zone_request.py @@ -15,62 +15,32 @@ class SetupLandingZoneRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', 'body': 'SetupLandingZoneReqBody' } attribute_map = { - 'x_security_token': 'X-Security-Token', 'body': 'body' } - def __init__(self, x_security_token=None, body=None): + def __init__(self, body=None): """SetupLandingZoneRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param body: Body of the SetupLandingZoneRequest :type body: :class:`huaweicloudsdkrgc.v1.SetupLandingZoneReqBody` """ - self._x_security_token = None self._body = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token if body is not None: self.body = body - @property - def x_security_token(self): - """Gets the x_security_token of this SetupLandingZoneRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this SetupLandingZoneRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this SetupLandingZoneRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this SetupLandingZoneRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def body(self): """Gets the body of this SetupLandingZoneRequest. diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_request.py index 79e9ae6ea8..f316f51447 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_request.py @@ -15,55 +15,23 @@ class ShowAvailableUpdatesRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ShowAvailableUpdatesRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ShowAvailableUpdatesRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowAvailableUpdatesRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowAvailableUpdatesRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowAvailableUpdatesRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_response.py index 5e4d58a55a..9f29c508d8 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_available_updates_response.py @@ -40,7 +40,7 @@ def __init__(self, baseline_update_available=None, control_update_available=None :param baseline_update_available: Landing Zone基础配置是否可用。 :type baseline_update_available: bool - :param control_update_available: 控制策略是否可用。 + :param control_update_available: 当前账号下是否有新的控制策略。 :type control_update_available: bool :param landing_zone_update_available: Landing Zone是否可更新。 :type landing_zone_update_available: bool @@ -96,7 +96,7 @@ def baseline_update_available(self, baseline_update_available): def control_update_available(self): """Gets the control_update_available of this ShowAvailableUpdatesResponse. - 控制策略是否可用。 + 当前账号下是否有新的控制策略。 :return: The control_update_available of this ShowAvailableUpdatesResponse. :rtype: bool @@ -107,7 +107,7 @@ def control_update_available(self): def control_update_available(self, control_update_available): """Sets the control_update_available of this ShowAvailableUpdatesResponse. - 控制策略是否可用。 + 当前账号下是否有新的控制策略。 :param control_update_available: The control_update_available of this ShowAvailableUpdatesResponse. :type control_update_available: bool diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_account_request.py index 6b6875c818..94b25b5d90 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_account_request.py @@ -15,44 +15,43 @@ class ShowComplianceStatusForAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_account_id': 'str', - 'x_security_token': 'str' + 'control_id': 'str' } attribute_map = { 'managed_account_id': 'managed_account_id', - 'x_security_token': 'X-Security-Token' + 'control_id': 'control_id' } - def __init__(self, managed_account_id=None, x_security_token=None): + def __init__(self, managed_account_id=None, control_id=None): """ShowComplianceStatusForAccountRequest The model defined in huaweicloud sdk - :param managed_account_id: 账号ID。 + :param managed_account_id: 纳管账号ID。 :type managed_account_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str + :param control_id: 启用的控制策略信息。 + :type control_id: str """ self._managed_account_id = None - self._x_security_token = None + self._control_id = None self.discriminator = None self.managed_account_id = managed_account_id - if x_security_token is not None: - self.x_security_token = x_security_token + if control_id is not None: + self.control_id = control_id @property def managed_account_id(self): """Gets the managed_account_id of this ShowComplianceStatusForAccountRequest. - 账号ID。 + 纳管账号ID。 :return: The managed_account_id of this ShowComplianceStatusForAccountRequest. :rtype: str @@ -63,7 +62,7 @@ def managed_account_id(self): def managed_account_id(self, managed_account_id): """Sets the managed_account_id of this ShowComplianceStatusForAccountRequest. - 账号ID。 + 纳管账号ID。 :param managed_account_id: The managed_account_id of this ShowComplianceStatusForAccountRequest. :type managed_account_id: str @@ -71,26 +70,26 @@ def managed_account_id(self, managed_account_id): self._managed_account_id = managed_account_id @property - def x_security_token(self): - """Gets the x_security_token of this ShowComplianceStatusForAccountRequest. + def control_id(self): + """Gets the control_id of this ShowComplianceStatusForAccountRequest. - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 + 启用的控制策略信息。 - :return: The x_security_token of this ShowComplianceStatusForAccountRequest. + :return: The control_id of this ShowComplianceStatusForAccountRequest. :rtype: str """ - return self._x_security_token + return self._control_id - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowComplianceStatusForAccountRequest. + @control_id.setter + def control_id(self, control_id): + """Sets the control_id of this ShowComplianceStatusForAccountRequest. - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 + 启用的控制策略信息。 - :param x_security_token: The x_security_token of this ShowComplianceStatusForAccountRequest. - :type x_security_token: str + :param control_id: The control_id of this ShowComplianceStatusForAccountRequest. + :type control_id: str """ - self._x_security_token = x_security_token + self._control_id = control_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_organization_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_organization_unit_request.py index c05eb3e708..050b4b69f0 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_organization_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_compliance_status_for_organization_unit_request.py @@ -15,44 +15,43 @@ class ShowComplianceStatusForOrganizationUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_organization_unit_id': 'str', - 'x_security_token': 'str' + 'control_id': 'str' } attribute_map = { 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token' + 'control_id': 'control_id' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None): + def __init__(self, managed_organization_unit_id=None, control_id=None): """ShowComplianceStatusForOrganizationUnitRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str + :param control_id: 启用的控制策略信息。 + :type control_id: str """ self._managed_organization_unit_id = None - self._x_security_token = None + self._control_id = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token + if control_id is not None: + self.control_id = control_id @property def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this ShowComplianceStatusForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this ShowComplianceStatusForOrganizationUnitRequest. :rtype: str @@ -63,7 +62,7 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this ShowComplianceStatusForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this ShowComplianceStatusForOrganizationUnitRequest. :type managed_organization_unit_id: str @@ -71,26 +70,26 @@ def managed_organization_unit_id(self, managed_organization_unit_id): self._managed_organization_unit_id = managed_organization_unit_id @property - def x_security_token(self): - """Gets the x_security_token of this ShowComplianceStatusForOrganizationUnitRequest. + def control_id(self): + """Gets the control_id of this ShowComplianceStatusForOrganizationUnitRequest. - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 + 启用的控制策略信息。 - :return: The x_security_token of this ShowComplianceStatusForOrganizationUnitRequest. + :return: The control_id of this ShowComplianceStatusForOrganizationUnitRequest. :rtype: str """ - return self._x_security_token + return self._control_id - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowComplianceStatusForOrganizationUnitRequest. + @control_id.setter + def control_id(self, control_id): + """Sets the control_id of this ShowComplianceStatusForOrganizationUnitRequest. - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 + 启用的控制策略信息。 - :param x_security_token: The x_security_token of this ShowComplianceStatusForOrganizationUnitRequest. - :type x_security_token: str + :param control_id: The control_id of this ShowComplianceStatusForOrganizationUnitRequest. + :type control_id: str """ - self._x_security_token = x_security_token + self._control_id = control_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_operate_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_operate_request.py index a376564649..b7e63afa71 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_operate_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_operate_request.py @@ -15,82 +15,52 @@ class ShowControlOperateRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str', - 'control_operate_request_id': 'str' + 'operation_control_status_id': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token', - 'control_operate_request_id': 'control_operate_request_id' + 'operation_control_status_id': 'operation_control_status_id' } - def __init__(self, x_security_token=None, control_operate_request_id=None): + def __init__(self, operation_control_status_id=None): """ShowControlOperateRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str - :param control_operate_request_id: 操作控制策略的请求ID。 - :type control_operate_request_id: str + :param operation_control_status_id: 操作控制策略的请求ID。 + :type operation_control_status_id: str """ - self._x_security_token = None - self._control_operate_request_id = None + self._operation_control_status_id = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - self.control_operate_request_id = control_operate_request_id + self.operation_control_status_id = operation_control_status_id @property - def x_security_token(self): - """Gets the x_security_token of this ShowControlOperateRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowControlOperateRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowControlOperateRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowControlOperateRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - - @property - def control_operate_request_id(self): - """Gets the control_operate_request_id of this ShowControlOperateRequest. + def operation_control_status_id(self): + """Gets the operation_control_status_id of this ShowControlOperateRequest. 操作控制策略的请求ID。 - :return: The control_operate_request_id of this ShowControlOperateRequest. + :return: The operation_control_status_id of this ShowControlOperateRequest. :rtype: str """ - return self._control_operate_request_id + return self._operation_control_status_id - @control_operate_request_id.setter - def control_operate_request_id(self, control_operate_request_id): - """Sets the control_operate_request_id of this ShowControlOperateRequest. + @operation_control_status_id.setter + def operation_control_status_id(self, operation_control_status_id): + """Sets the operation_control_status_id of this ShowControlOperateRequest. 操作控制策略的请求ID。 - :param control_operate_request_id: The control_operate_request_id of this ShowControlOperateRequest. - :type control_operate_request_id: str + :param operation_control_status_id: The operation_control_status_id of this ShowControlOperateRequest. + :type operation_control_status_id: str """ - self._control_operate_request_id = control_operate_request_id + self._operation_control_status_id = operation_control_status_id def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_request.py index 3081777f2d..e8c762ec9f 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_request.py @@ -15,38 +15,30 @@ class ShowControlRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'control_id': 'str', - 'x_security_token': 'str' + 'control_id': 'str' } attribute_map = { - 'control_id': 'control_id', - 'x_security_token': 'X-Security-Token' + 'control_id': 'control_id' } - def __init__(self, control_id=None, x_security_token=None): + def __init__(self, control_id=None): """ShowControlRequest The model defined in huaweicloud sdk :param control_id: 控制策略ID。 :type control_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._control_id = None - self._x_security_token = None self.discriminator = None self.control_id = control_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def control_id(self): @@ -70,28 +62,6 @@ def control_id(self, control_id): """ self._control_id = control_id - @property - def x_security_token(self): - """Gets the x_security_token of this ShowControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowControlRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowControlRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowControlRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_response.py index e5c64e30ed..6798bedf45 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_control_response.py @@ -58,7 +58,7 @@ def __init__(self, identifier=None, implementation=None, guidance=None, resource :param identifier: 控制策略ID。 :type identifier: str - :param implementation: 业务控制策略(SCP),配置规则。 + :param implementation: 服务控制策略(SCP),配置规则。 :type implementation: str :param guidance: 控制策略必须性。 :type guidance: str @@ -72,17 +72,17 @@ def __init__(self, identifier=None, implementation=None, guidance=None, resource :type control_objective: str :param framework: 治理策略来自的框架。 :type framework: list[str] - :param artifacts: 策略内容。 + :param artifacts: 控制策略内容。 :type artifacts: list[:class:`huaweicloudsdkrgc.v1.Artifact`] - :param aliases: 别名列表。 + :param aliases: 控制策略别名。 :type aliases: list[str] - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param severity: 严重性(High)。 + :param severity: 控制策略严重性。 :type severity: str - :param version: 版本。 + :param version: 控制策略版本。 :type version: str - :param release_date: 发布时间。 + :param release_date: 控制策略发布时间。 :type release_date: datetime """ @@ -159,7 +159,7 @@ def identifier(self, identifier): def implementation(self): """Gets the implementation of this ShowControlResponse. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :return: The implementation of this ShowControlResponse. :rtype: str @@ -170,7 +170,7 @@ def implementation(self): def implementation(self, implementation): """Sets the implementation of this ShowControlResponse. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :param implementation: The implementation of this ShowControlResponse. :type implementation: str @@ -313,7 +313,7 @@ def framework(self, framework): def artifacts(self): """Gets the artifacts of this ShowControlResponse. - 策略内容。 + 控制策略内容。 :return: The artifacts of this ShowControlResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.Artifact`] @@ -324,7 +324,7 @@ def artifacts(self): def artifacts(self, artifacts): """Sets the artifacts of this ShowControlResponse. - 策略内容。 + 控制策略内容。 :param artifacts: The artifacts of this ShowControlResponse. :type artifacts: list[:class:`huaweicloudsdkrgc.v1.Artifact`] @@ -335,7 +335,7 @@ def artifacts(self, artifacts): def aliases(self): """Gets the aliases of this ShowControlResponse. - 别名列表。 + 控制策略别名。 :return: The aliases of this ShowControlResponse. :rtype: list[str] @@ -346,7 +346,7 @@ def aliases(self): def aliases(self, aliases): """Sets the aliases of this ShowControlResponse. - 别名列表。 + 控制策略别名。 :param aliases: The aliases of this ShowControlResponse. :type aliases: list[str] @@ -357,7 +357,7 @@ def aliases(self, aliases): def owner(self): """Gets the owner of this ShowControlResponse. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this ShowControlResponse. :rtype: str @@ -368,7 +368,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this ShowControlResponse. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this ShowControlResponse. :type owner: str @@ -379,7 +379,7 @@ def owner(self, owner): def severity(self): """Gets the severity of this ShowControlResponse. - 严重性(High)。 + 控制策略严重性。 :return: The severity of this ShowControlResponse. :rtype: str @@ -390,7 +390,7 @@ def severity(self): def severity(self, severity): """Sets the severity of this ShowControlResponse. - 严重性(High)。 + 控制策略严重性。 :param severity: The severity of this ShowControlResponse. :type severity: str @@ -401,7 +401,7 @@ def severity(self, severity): def version(self): """Gets the version of this ShowControlResponse. - 版本。 + 控制策略版本。 :return: The version of this ShowControlResponse. :rtype: str @@ -412,7 +412,7 @@ def version(self): def version(self, version): """Sets the version of this ShowControlResponse. - 版本。 + 控制策略版本。 :param version: The version of this ShowControlResponse. :type version: str @@ -423,7 +423,7 @@ def version(self, version): def release_date(self): """Gets the release_date of this ShowControlResponse. - 发布时间。 + 控制策略发布时间。 :return: The release_date of this ShowControlResponse. :rtype: datetime @@ -434,7 +434,7 @@ def release_date(self): def release_date(self, release_date): """Sets the release_date of this ShowControlResponse. - 发布时间。 + 控制策略发布时间。 :param release_date: The release_date of this ShowControlResponse. :type release_date: datetime diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_controls_for_organization_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_controls_for_organization_unit_request.py index d4859ea9bc..70d87b948b 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_controls_for_organization_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_controls_for_organization_unit_request.py @@ -15,50 +15,42 @@ class ShowControlsForOrganizationUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_organization_unit_id': 'str', - 'control_id': 'str', - 'x_security_token': 'str' + 'control_id': 'str' } attribute_map = { 'managed_organization_unit_id': 'managed_organization_unit_id', - 'control_id': 'control_id', - 'x_security_token': 'X-Security-Token' + 'control_id': 'control_id' } - def __init__(self, managed_organization_unit_id=None, control_id=None, x_security_token=None): + def __init__(self, managed_organization_unit_id=None, control_id=None): """ShowControlsForOrganizationUnitRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str :param control_id: 控制策略ID。 :type control_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._managed_organization_unit_id = None self._control_id = None - self._x_security_token = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id self.control_id = control_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this ShowControlsForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this ShowControlsForOrganizationUnitRequest. :rtype: str @@ -69,7 +61,7 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this ShowControlsForOrganizationUnitRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this ShowControlsForOrganizationUnitRequest. :type managed_organization_unit_id: str @@ -98,28 +90,6 @@ def control_id(self, control_id): """ self._control_id = control_id - @property - def x_security_token(self): - """Gets the x_security_token of this ShowControlsForOrganizationUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowControlsForOrganizationUnitRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowControlsForOrganizationUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowControlsForOrganizationUnitRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_home_region_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_home_region_request.py index a0ab1104cd..078b52ec13 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_home_region_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_home_region_request.py @@ -15,55 +15,23 @@ class ShowHomeRegionRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ShowHomeRegionRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ShowHomeRegionRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowHomeRegionRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowHomeRegionRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowHomeRegionRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_request.py index dc1a59c5b4..13f07bd9b0 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_request.py @@ -15,55 +15,23 @@ class ShowLandingZoneConfigurationRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ShowLandingZoneConfigurationRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ShowLandingZoneConfigurationRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowLandingZoneConfigurationRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowLandingZoneConfigurationRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowLandingZoneConfigurationRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_response.py index 1698d3dcff..6a5f95c63b 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_configuration_response.py @@ -20,20 +20,18 @@ class ShowLandingZoneConfigurationResponse(SdkResponse): openapi_types = { 'common_configuration': 'CommonConfiguration', 'logging_configuration': 'LoggingConfiguration', - 'organization_structure': 'list[OrganizationStructureBaseLine]', - 'regions': 'list[RegionConfigurationList]', - 'identity_store_email': 'str' + 'organization_structure': 'list[OrganizationStructureBaseLineRsp]', + 'regions': 'list[RegionConfigurationList]' } attribute_map = { 'common_configuration': 'common_configuration', 'logging_configuration': 'logging_configuration', 'organization_structure': 'organization_structure', - 'regions': 'regions', - 'identity_store_email': 'identity_store_email' + 'regions': 'regions' } - def __init__(self, common_configuration=None, logging_configuration=None, organization_structure=None, regions=None, identity_store_email=None): + def __init__(self, common_configuration=None, logging_configuration=None, organization_structure=None, regions=None): """ShowLandingZoneConfigurationResponse The model defined in huaweicloud sdk @@ -43,11 +41,9 @@ def __init__(self, common_configuration=None, logging_configuration=None, organi :param logging_configuration: :type logging_configuration: :class:`huaweicloudsdkrgc.v1.LoggingConfiguration` :param organization_structure: - :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] - :param regions: 纳管的区域 + :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLineRsp`] + :param regions: 纳管的区域信息。 :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] - :param identity_store_email: 管理员账号创建Identity Center用户所用邮箱 - :type identity_store_email: str """ super(ShowLandingZoneConfigurationResponse, self).__init__() @@ -56,7 +52,6 @@ def __init__(self, common_configuration=None, logging_configuration=None, organi self._logging_configuration = None self._organization_structure = None self._regions = None - self._identity_store_email = None self.discriminator = None if common_configuration is not None: @@ -67,8 +62,6 @@ def __init__(self, common_configuration=None, logging_configuration=None, organi self.organization_structure = organization_structure if regions is not None: self.regions = regions - if identity_store_email is not None: - self.identity_store_email = identity_store_email @property def common_configuration(self): @@ -111,7 +104,7 @@ def organization_structure(self): """Gets the organization_structure of this ShowLandingZoneConfigurationResponse. :return: The organization_structure of this ShowLandingZoneConfigurationResponse. - :rtype: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] + :rtype: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLineRsp`] """ return self._organization_structure @@ -120,7 +113,7 @@ def organization_structure(self, organization_structure): """Sets the organization_structure of this ShowLandingZoneConfigurationResponse. :param organization_structure: The organization_structure of this ShowLandingZoneConfigurationResponse. - :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLine`] + :type organization_structure: list[:class:`huaweicloudsdkrgc.v1.OrganizationStructureBaseLineRsp`] """ self._organization_structure = organization_structure @@ -128,7 +121,7 @@ def organization_structure(self, organization_structure): def regions(self): """Gets the regions of this ShowLandingZoneConfigurationResponse. - 纳管的区域 + 纳管的区域信息。 :return: The regions of this ShowLandingZoneConfigurationResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] @@ -139,35 +132,13 @@ def regions(self): def regions(self, regions): """Sets the regions of this ShowLandingZoneConfigurationResponse. - 纳管的区域 + 纳管的区域信息。 :param regions: The regions of this ShowLandingZoneConfigurationResponse. :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionConfigurationList`] """ self._regions = regions - @property - def identity_store_email(self): - """Gets the identity_store_email of this ShowLandingZoneConfigurationResponse. - - 管理员账号创建Identity Center用户所用邮箱 - - :return: The identity_store_email of this ShowLandingZoneConfigurationResponse. - :rtype: str - """ - return self._identity_store_email - - @identity_store_email.setter - def identity_store_email(self, identity_store_email): - """Sets the identity_store_email of this ShowLandingZoneConfigurationResponse. - - 管理员账号创建Identity Center用户所用邮箱 - - :param identity_store_email: The identity_store_email of this ShowLandingZoneConfigurationResponse. - :type identity_store_email: str - """ - self._identity_store_email = identity_store_email - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_identity_center_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_identity_center_request.py index 0c4c08d898..99bc699b3d 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_identity_center_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_identity_center_request.py @@ -15,55 +15,23 @@ class ShowLandingZoneIdentityCenterRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ShowLandingZoneIdentityCenterRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ShowLandingZoneIdentityCenterRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowLandingZoneIdentityCenterRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowLandingZoneIdentityCenterRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowLandingZoneIdentityCenterRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_request.py index 7926d71be7..f294b47450 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_request.py @@ -15,55 +15,23 @@ class ShowLandingZoneStatusRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'x_security_token': 'str' } attribute_map = { - 'x_security_token': 'X-Security-Token' } - def __init__(self, x_security_token=None): + def __init__(self): """ShowLandingZoneStatusRequest The model defined in huaweicloud sdk - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ - - self._x_security_token = None self.discriminator = None - if x_security_token is not None: - self.x_security_token = x_security_token - - @property - def x_security_token(self): - """Gets the x_security_token of this ShowLandingZoneStatusRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowLandingZoneStatusRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowLandingZoneStatusRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowLandingZoneStatusRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_response.py index 2aa750fcf6..6246f586b2 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_landing_zone_status_response.py @@ -46,7 +46,7 @@ def __init__(self, deployed_version=None, landing_zone_status=None, percentage_c :type deployed_version: str :param landing_zone_status: Landing Zone的设置状态,包括进行中,已完成。 :type landing_zone_status: str - :param percentage_complete: LandingZone的完成进度。 + :param percentage_complete: Landing Zone的完成进度。 :type percentage_complete: int :param percentage_details: Landing Zone设置的详细进度信息。 :type percentage_details: list[:class:`huaweicloudsdkrgc.v1.PercentageDetail`] @@ -132,7 +132,7 @@ def landing_zone_status(self, landing_zone_status): def percentage_complete(self): """Gets the percentage_complete of this ShowLandingZoneStatusResponse. - LandingZone的完成进度。 + Landing Zone的完成进度。 :return: The percentage_complete of this ShowLandingZoneStatusResponse. :rtype: int @@ -143,7 +143,7 @@ def percentage_complete(self): def percentage_complete(self, percentage_complete): """Sets the percentage_complete of this ShowLandingZoneStatusResponse. - LandingZone的完成进度。 + Landing Zone的完成进度。 :param percentage_complete: The percentage_complete of this ShowLandingZoneStatusResponse. :type percentage_complete: int diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_request.py index 79c06739aa..d23260a7eb 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_request.py @@ -15,44 +15,36 @@ class ShowManagedAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'managed_account_id': 'str', - 'x_security_token': 'str' + 'managed_account_id': 'str' } attribute_map = { - 'managed_account_id': 'managed_account_id', - 'x_security_token': 'X-Security-Token' + 'managed_account_id': 'managed_account_id' } - def __init__(self, managed_account_id=None, x_security_token=None): + def __init__(self, managed_account_id=None): """ShowManagedAccountRequest The model defined in huaweicloud sdk - :param managed_account_id: 账号ID。 + :param managed_account_id: 纳管账号ID。 :type managed_account_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._managed_account_id = None - self._x_security_token = None self.discriminator = None self.managed_account_id = managed_account_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def managed_account_id(self): """Gets the managed_account_id of this ShowManagedAccountRequest. - 账号ID。 + 纳管账号ID。 :return: The managed_account_id of this ShowManagedAccountRequest. :rtype: str @@ -63,35 +55,13 @@ def managed_account_id(self): def managed_account_id(self, managed_account_id): """Sets the managed_account_id of this ShowManagedAccountRequest. - 账号ID。 + 纳管账号ID。 :param managed_account_id: The managed_account_id of this ShowManagedAccountRequest. :type managed_account_id: str """ self._managed_account_id = managed_account_id - @property - def x_security_token(self): - """Gets the x_security_token of this ShowManagedAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowManagedAccountRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowManagedAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowManagedAccountRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_response.py index e98bb71bb1..2574b67e39 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_account_response.py @@ -18,11 +18,10 @@ class ShowManagedAccountResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'phone': 'str', + 'landing_zone_version': 'str', 'manage_account_id': 'str', 'account_id': 'str', 'account_name': 'str', - 'account_email': 'str', 'account_type': 'str', 'owner': 'str', 'state': 'str', @@ -30,7 +29,6 @@ class ShowManagedAccountResponse(SdkResponse): 'parent_organization_unit_id': 'str', 'parent_organization_unit_name': 'str', 'identity_store_user_name': 'str', - 'identity_store_email_name': 'str', 'blueprint_product_id': 'str', 'blueprint_product_version': 'str', 'blueprint_status': 'str', @@ -40,11 +38,10 @@ class ShowManagedAccountResponse(SdkResponse): } attribute_map = { - 'phone': 'phone', + 'landing_zone_version': 'landing_zone_version', 'manage_account_id': 'manage_account_id', 'account_id': 'account_id', 'account_name': 'account_name', - 'account_email': 'account_email', 'account_type': 'account_type', 'owner': 'owner', 'state': 'state', @@ -52,7 +49,6 @@ class ShowManagedAccountResponse(SdkResponse): 'parent_organization_unit_id': 'parent_organization_unit_id', 'parent_organization_unit_name': 'parent_organization_unit_name', 'identity_store_user_name': 'identity_store_user_name', - 'identity_store_email_name': 'identity_store_email_name', 'blueprint_product_id': 'blueprint_product_id', 'blueprint_product_version': 'blueprint_product_version', 'blueprint_status': 'blueprint_status', @@ -61,58 +57,53 @@ class ShowManagedAccountResponse(SdkResponse): 'updated_at': 'updated_at' } - def __init__(self, phone=None, manage_account_id=None, account_id=None, account_name=None, account_email=None, account_type=None, owner=None, state=None, message=None, parent_organization_unit_id=None, parent_organization_unit_name=None, identity_store_user_name=None, identity_store_email_name=None, blueprint_product_id=None, blueprint_product_version=None, blueprint_status=None, regions=None, created_at=None, updated_at=None): + def __init__(self, landing_zone_version=None, manage_account_id=None, account_id=None, account_name=None, account_type=None, owner=None, state=None, message=None, parent_organization_unit_id=None, parent_organization_unit_name=None, identity_store_user_name=None, blueprint_product_id=None, blueprint_product_version=None, blueprint_status=None, regions=None, created_at=None, updated_at=None): """ShowManagedAccountResponse The model defined in huaweicloud sdk - :param phone: 手机号码。 - :type phone: str - :param manage_account_id: 管理账号ID。 + :param landing_zone_version: Landing Zone版本。 + :type landing_zone_version: str + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str - :param account_id: 账号ID。 + :param account_id: 纳管账号ID。 :type account_id: str - :param account_name: 账号名称。 + :param account_name: 纳管账号名称。 :type account_name: str - :param account_email: 账号email。 - :type account_email: str - :param account_type: 账号类型。 + :param account_type: 纳管账号类型。 :type account_type: str - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param state: 账号状态。 + :param state: 纳管账号状态。 :type state: str :param message: 错误状态描述信息。 :type message: str - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str :param identity_store_user_name: Identity Center用户名。 :type identity_store_user_name: str - :param identity_store_email_name: Identity Center邮箱。 - :type identity_store_email_name: str - :param blueprint_product_id: 蓝图ID。 + :param blueprint_product_id: 模板ID。 :type blueprint_product_id: str - :param blueprint_product_version: 蓝图版本。 + :param blueprint_product_version: 模板版本。 :type blueprint_product_version: str - :param blueprint_status: 蓝图部署状态,包括error, active, in_progress。 + :param blueprint_status: 模板部署状态,包括失败, 完成, 进行中。 :type blueprint_status: str - :param regions: region信息。 + :param regions: 区域信息。 :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] - :param created_at: 被创建的时间。 + :param created_at: 组织里某个注册OU下的纳管账号被创建的时间。 :type created_at: datetime - :param updated_at: 最后一次更新的时间。 + :param updated_at: 组织里某个注册OU下的纳管账号最后一次更新的时间。 :type updated_at: datetime """ super(ShowManagedAccountResponse, self).__init__() - self._phone = None + self._landing_zone_version = None self._manage_account_id = None self._account_id = None self._account_name = None - self._account_email = None self._account_type = None self._owner = None self._state = None @@ -120,7 +111,6 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self._parent_organization_unit_id = None self._parent_organization_unit_name = None self._identity_store_user_name = None - self._identity_store_email_name = None self._blueprint_product_id = None self._blueprint_product_version = None self._blueprint_status = None @@ -129,16 +119,14 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self._updated_at = None self.discriminator = None - if phone is not None: - self.phone = phone + if landing_zone_version is not None: + self.landing_zone_version = landing_zone_version if manage_account_id is not None: self.manage_account_id = manage_account_id if account_id is not None: self.account_id = account_id if account_name is not None: self.account_name = account_name - if account_email is not None: - self.account_email = account_email if account_type is not None: self.account_type = account_type if owner is not None: @@ -153,8 +141,6 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self.parent_organization_unit_name = parent_organization_unit_name if identity_store_user_name is not None: self.identity_store_user_name = identity_store_user_name - if identity_store_email_name is not None: - self.identity_store_email_name = identity_store_email_name if blueprint_product_id is not None: self.blueprint_product_id = blueprint_product_id if blueprint_product_version is not None: @@ -169,32 +155,32 @@ def __init__(self, phone=None, manage_account_id=None, account_id=None, account_ self.updated_at = updated_at @property - def phone(self): - """Gets the phone of this ShowManagedAccountResponse. + def landing_zone_version(self): + """Gets the landing_zone_version of this ShowManagedAccountResponse. - 手机号码。 + Landing Zone版本。 - :return: The phone of this ShowManagedAccountResponse. + :return: The landing_zone_version of this ShowManagedAccountResponse. :rtype: str """ - return self._phone + return self._landing_zone_version - @phone.setter - def phone(self, phone): - """Sets the phone of this ShowManagedAccountResponse. + @landing_zone_version.setter + def landing_zone_version(self, landing_zone_version): + """Sets the landing_zone_version of this ShowManagedAccountResponse. - 手机号码。 + Landing Zone版本。 - :param phone: The phone of this ShowManagedAccountResponse. - :type phone: str + :param landing_zone_version: The landing_zone_version of this ShowManagedAccountResponse. + :type landing_zone_version: str """ - self._phone = phone + self._landing_zone_version = landing_zone_version @property def manage_account_id(self): """Gets the manage_account_id of this ShowManagedAccountResponse. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this ShowManagedAccountResponse. :rtype: str @@ -205,7 +191,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this ShowManagedAccountResponse. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this ShowManagedAccountResponse. :type manage_account_id: str @@ -216,7 +202,7 @@ def manage_account_id(self, manage_account_id): def account_id(self): """Gets the account_id of this ShowManagedAccountResponse. - 账号ID。 + 纳管账号ID。 :return: The account_id of this ShowManagedAccountResponse. :rtype: str @@ -227,7 +213,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ShowManagedAccountResponse. - 账号ID。 + 纳管账号ID。 :param account_id: The account_id of this ShowManagedAccountResponse. :type account_id: str @@ -238,7 +224,7 @@ def account_id(self, account_id): def account_name(self): """Gets the account_name of this ShowManagedAccountResponse. - 账号名称。 + 纳管账号名称。 :return: The account_name of this ShowManagedAccountResponse. :rtype: str @@ -249,40 +235,18 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this ShowManagedAccountResponse. - 账号名称。 + 纳管账号名称。 :param account_name: The account_name of this ShowManagedAccountResponse. :type account_name: str """ self._account_name = account_name - @property - def account_email(self): - """Gets the account_email of this ShowManagedAccountResponse. - - 账号email。 - - :return: The account_email of this ShowManagedAccountResponse. - :rtype: str - """ - return self._account_email - - @account_email.setter - def account_email(self, account_email): - """Sets the account_email of this ShowManagedAccountResponse. - - 账号email。 - - :param account_email: The account_email of this ShowManagedAccountResponse. - :type account_email: str - """ - self._account_email = account_email - @property def account_type(self): """Gets the account_type of this ShowManagedAccountResponse. - 账号类型。 + 纳管账号类型。 :return: The account_type of this ShowManagedAccountResponse. :rtype: str @@ -293,7 +257,7 @@ def account_type(self): def account_type(self, account_type): """Sets the account_type of this ShowManagedAccountResponse. - 账号类型。 + 纳管账号类型。 :param account_type: The account_type of this ShowManagedAccountResponse. :type account_type: str @@ -304,7 +268,7 @@ def account_type(self, account_type): def owner(self): """Gets the owner of this ShowManagedAccountResponse. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this ShowManagedAccountResponse. :rtype: str @@ -315,7 +279,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this ShowManagedAccountResponse. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this ShowManagedAccountResponse. :type owner: str @@ -326,7 +290,7 @@ def owner(self, owner): def state(self): """Gets the state of this ShowManagedAccountResponse. - 账号状态。 + 纳管账号状态。 :return: The state of this ShowManagedAccountResponse. :rtype: str @@ -337,7 +301,7 @@ def state(self): def state(self, state): """Sets the state of this ShowManagedAccountResponse. - 账号状态。 + 纳管账号状态。 :param state: The state of this ShowManagedAccountResponse. :type state: str @@ -370,7 +334,7 @@ def message(self, message): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this ShowManagedAccountResponse. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this ShowManagedAccountResponse. :rtype: str @@ -381,7 +345,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this ShowManagedAccountResponse. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this ShowManagedAccountResponse. :type parent_organization_unit_id: str @@ -392,7 +356,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this ShowManagedAccountResponse. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this ShowManagedAccountResponse. :rtype: str @@ -403,7 +367,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this ShowManagedAccountResponse. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this ShowManagedAccountResponse. :type parent_organization_unit_name: str @@ -432,33 +396,11 @@ def identity_store_user_name(self, identity_store_user_name): """ self._identity_store_user_name = identity_store_user_name - @property - def identity_store_email_name(self): - """Gets the identity_store_email_name of this ShowManagedAccountResponse. - - Identity Center邮箱。 - - :return: The identity_store_email_name of this ShowManagedAccountResponse. - :rtype: str - """ - return self._identity_store_email_name - - @identity_store_email_name.setter - def identity_store_email_name(self, identity_store_email_name): - """Sets the identity_store_email_name of this ShowManagedAccountResponse. - - Identity Center邮箱。 - - :param identity_store_email_name: The identity_store_email_name of this ShowManagedAccountResponse. - :type identity_store_email_name: str - """ - self._identity_store_email_name = identity_store_email_name - @property def blueprint_product_id(self): """Gets the blueprint_product_id of this ShowManagedAccountResponse. - 蓝图ID。 + 模板ID。 :return: The blueprint_product_id of this ShowManagedAccountResponse. :rtype: str @@ -469,7 +411,7 @@ def blueprint_product_id(self): def blueprint_product_id(self, blueprint_product_id): """Sets the blueprint_product_id of this ShowManagedAccountResponse. - 蓝图ID。 + 模板ID。 :param blueprint_product_id: The blueprint_product_id of this ShowManagedAccountResponse. :type blueprint_product_id: str @@ -480,7 +422,7 @@ def blueprint_product_id(self, blueprint_product_id): def blueprint_product_version(self): """Gets the blueprint_product_version of this ShowManagedAccountResponse. - 蓝图版本。 + 模板版本。 :return: The blueprint_product_version of this ShowManagedAccountResponse. :rtype: str @@ -491,7 +433,7 @@ def blueprint_product_version(self): def blueprint_product_version(self, blueprint_product_version): """Sets the blueprint_product_version of this ShowManagedAccountResponse. - 蓝图版本。 + 模板版本。 :param blueprint_product_version: The blueprint_product_version of this ShowManagedAccountResponse. :type blueprint_product_version: str @@ -502,7 +444,7 @@ def blueprint_product_version(self, blueprint_product_version): def blueprint_status(self): """Gets the blueprint_status of this ShowManagedAccountResponse. - 蓝图部署状态,包括error, active, in_progress。 + 模板部署状态,包括失败, 完成, 进行中。 :return: The blueprint_status of this ShowManagedAccountResponse. :rtype: str @@ -513,7 +455,7 @@ def blueprint_status(self): def blueprint_status(self, blueprint_status): """Sets the blueprint_status of this ShowManagedAccountResponse. - 蓝图部署状态,包括error, active, in_progress。 + 模板部署状态,包括失败, 完成, 进行中。 :param blueprint_status: The blueprint_status of this ShowManagedAccountResponse. :type blueprint_status: str @@ -524,7 +466,7 @@ def blueprint_status(self, blueprint_status): def regions(self): """Gets the regions of this ShowManagedAccountResponse. - region信息。 + 区域信息。 :return: The regions of this ShowManagedAccountResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] @@ -535,7 +477,7 @@ def regions(self): def regions(self, regions): """Sets the regions of this ShowManagedAccountResponse. - region信息。 + 区域信息。 :param regions: The regions of this ShowManagedAccountResponse. :type regions: list[:class:`huaweicloudsdkrgc.v1.RegionManagedList`] @@ -546,7 +488,7 @@ def regions(self, regions): def created_at(self): """Gets the created_at of this ShowManagedAccountResponse. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :return: The created_at of this ShowManagedAccountResponse. :rtype: datetime @@ -557,7 +499,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this ShowManagedAccountResponse. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :param created_at: The created_at of this ShowManagedAccountResponse. :type created_at: datetime @@ -568,7 +510,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this ShowManagedAccountResponse. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :return: The updated_at of this ShowManagedAccountResponse. :rtype: datetime @@ -579,7 +521,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this ShowManagedAccountResponse. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :param updated_at: The updated_at of this ShowManagedAccountResponse. :type updated_at: datetime diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_request.py index acc6ad5804..c82ceec129 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_request.py @@ -15,44 +15,36 @@ class ShowManagedCoreAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'account_type': 'str', - 'x_security_token': 'str' + 'account_type': 'str' } attribute_map = { - 'account_type': 'account_type', - 'x_security_token': 'X-Security-Token' + 'account_type': 'account_type' } - def __init__(self, account_type=None, x_security_token=None): + def __init__(self, account_type=None): """ShowManagedCoreAccountRequest The model defined in huaweicloud sdk - :param account_type: 账号类型。包括LOGGING,SECURITY和PRIMARY账号。 + :param account_type: 纳管账号类型。类型包括LOGGING,SECURITY和PRIMARY。 :type account_type: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._account_type = None - self._x_security_token = None self.discriminator = None self.account_type = account_type - if x_security_token is not None: - self.x_security_token = x_security_token @property def account_type(self): """Gets the account_type of this ShowManagedCoreAccountRequest. - 账号类型。包括LOGGING,SECURITY和PRIMARY账号。 + 纳管账号类型。类型包括LOGGING,SECURITY和PRIMARY。 :return: The account_type of this ShowManagedCoreAccountRequest. :rtype: str @@ -63,35 +55,13 @@ def account_type(self): def account_type(self, account_type): """Sets the account_type of this ShowManagedCoreAccountRequest. - 账号类型。包括LOGGING,SECURITY和PRIMARY账号。 + 纳管账号类型。类型包括LOGGING,SECURITY和PRIMARY。 :param account_type: The account_type of this ShowManagedCoreAccountRequest. :type account_type: str """ self._account_type = account_type - @property - def x_security_token(self): - """Gets the x_security_token of this ShowManagedCoreAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowManagedCoreAccountRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowManagedCoreAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowManagedCoreAccountRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_response.py index b090bbd3f3..0c415fb834 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_core_account_response.py @@ -20,29 +20,25 @@ class ShowManagedCoreAccountResponse(SdkResponse): openapi_types = { 'account_id': 'str', 'account_name': 'str', - 'account_email': 'str', 'core_resource_mappings': 'dict(str, str)' } attribute_map = { 'account_id': 'account_id', 'account_name': 'account_name', - 'account_email': 'account_email', 'core_resource_mappings': 'core_resource_mappings' } - def __init__(self, account_id=None, account_name=None, account_email=None, core_resource_mappings=None): + def __init__(self, account_id=None, account_name=None, core_resource_mappings=None): """ShowManagedCoreAccountResponse The model defined in huaweicloud sdk - :param account_id: 账号ID。 + :param account_id: 纳管账号ID。 :type account_id: str - :param account_name: 账号名称。 + :param account_name: 纳管账号名称。 :type account_name: str - :param account_email: 账号邮箱。 - :type account_email: str - :param core_resource_mappings: + :param core_resource_mappings: 核心资源映射。 :type core_resource_mappings: dict(str, str) """ @@ -50,7 +46,6 @@ def __init__(self, account_id=None, account_name=None, account_email=None, core_ self._account_id = None self._account_name = None - self._account_email = None self._core_resource_mappings = None self.discriminator = None @@ -58,8 +53,6 @@ def __init__(self, account_id=None, account_name=None, account_email=None, core_ self.account_id = account_id if account_name is not None: self.account_name = account_name - if account_email is not None: - self.account_email = account_email if core_resource_mappings is not None: self.core_resource_mappings = core_resource_mappings @@ -67,7 +60,7 @@ def __init__(self, account_id=None, account_name=None, account_email=None, core_ def account_id(self): """Gets the account_id of this ShowManagedCoreAccountResponse. - 账号ID。 + 纳管账号ID。 :return: The account_id of this ShowManagedCoreAccountResponse. :rtype: str @@ -78,7 +71,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this ShowManagedCoreAccountResponse. - 账号ID。 + 纳管账号ID。 :param account_id: The account_id of this ShowManagedCoreAccountResponse. :type account_id: str @@ -89,7 +82,7 @@ def account_id(self, account_id): def account_name(self): """Gets the account_name of this ShowManagedCoreAccountResponse. - 账号名称。 + 纳管账号名称。 :return: The account_name of this ShowManagedCoreAccountResponse. :rtype: str @@ -100,39 +93,19 @@ def account_name(self): def account_name(self, account_name): """Sets the account_name of this ShowManagedCoreAccountResponse. - 账号名称。 + 纳管账号名称。 :param account_name: The account_name of this ShowManagedCoreAccountResponse. :type account_name: str """ self._account_name = account_name - @property - def account_email(self): - """Gets the account_email of this ShowManagedCoreAccountResponse. - - 账号邮箱。 - - :return: The account_email of this ShowManagedCoreAccountResponse. - :rtype: str - """ - return self._account_email - - @account_email.setter - def account_email(self, account_email): - """Sets the account_email of this ShowManagedCoreAccountResponse. - - 账号邮箱。 - - :param account_email: The account_email of this ShowManagedCoreAccountResponse. - :type account_email: str - """ - self._account_email = account_email - @property def core_resource_mappings(self): """Gets the core_resource_mappings of this ShowManagedCoreAccountResponse. + 核心资源映射。 + :return: The core_resource_mappings of this ShowManagedCoreAccountResponse. :rtype: dict(str, str) """ @@ -142,6 +115,8 @@ def core_resource_mappings(self): def core_resource_mappings(self, core_resource_mappings): """Sets the core_resource_mappings of this ShowManagedCoreAccountResponse. + 核心资源映射。 + :param core_resource_mappings: The core_resource_mappings of this ShowManagedCoreAccountResponse. :type core_resource_mappings: dict(str, str) """ diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_request.py index fd8061c692..9934c5281c 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_request.py @@ -15,44 +15,36 @@ class ShowManagedOrganizationalUnitRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'managed_organization_unit_id': 'str', - 'x_security_token': 'str' + 'managed_organization_unit_id': 'str' } attribute_map = { - 'managed_organization_unit_id': 'managed_organization_unit_id', - 'x_security_token': 'X-Security-Token' + 'managed_organization_unit_id': 'managed_organization_unit_id' } - def __init__(self, managed_organization_unit_id=None, x_security_token=None): + def __init__(self, managed_organization_unit_id=None): """ShowManagedOrganizationalUnitRequest The model defined in huaweicloud sdk - :param managed_organization_unit_id: OU ID。 + :param managed_organization_unit_id: 注册OU ID。 :type managed_organization_unit_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._managed_organization_unit_id = None - self._x_security_token = None self.discriminator = None self.managed_organization_unit_id = managed_organization_unit_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def managed_organization_unit_id(self): """Gets the managed_organization_unit_id of this ShowManagedOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :return: The managed_organization_unit_id of this ShowManagedOrganizationalUnitRequest. :rtype: str @@ -63,35 +55,13 @@ def managed_organization_unit_id(self): def managed_organization_unit_id(self, managed_organization_unit_id): """Sets the managed_organization_unit_id of this ShowManagedOrganizationalUnitRequest. - OU ID。 + 注册OU ID。 :param managed_organization_unit_id: The managed_organization_unit_id of this ShowManagedOrganizationalUnitRequest. :type managed_organization_unit_id: str """ self._managed_organization_unit_id = managed_organization_unit_id - @property - def x_security_token(self): - """Gets the x_security_token of this ShowManagedOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowManagedOrganizationalUnitRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowManagedOrganizationalUnitRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowManagedOrganizationalUnitRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_response.py index 0008e8f42f..9f348cca59 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_managed_organizational_unit_response.py @@ -26,7 +26,9 @@ class ShowManagedOrganizationalUnitResponse(SdkResponse): 'parent_organization_unit_id': 'str', 'parent_organization_unit_name': 'str', 'created_at': 'datetime', - 'updated_at': 'datetime' + 'landing_zone_version': 'str', + 'updated_at': 'datetime', + 'message': 'str' } attribute_map = { @@ -38,32 +40,38 @@ class ShowManagedOrganizationalUnitResponse(SdkResponse): 'parent_organization_unit_id': 'parent_organization_unit_id', 'parent_organization_unit_name': 'parent_organization_unit_name', 'created_at': 'created_at', - 'updated_at': 'updated_at' + 'landing_zone_version': 'landing_zone_version', + 'updated_at': 'updated_at', + 'message': 'message' } - def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None, updated_at=None): + def __init__(self, manage_account_id=None, organization_unit_id=None, organization_unit_name=None, organization_unit_status=None, organization_unit_type=None, parent_organization_unit_id=None, parent_organization_unit_name=None, created_at=None, landing_zone_version=None, updated_at=None, message=None): """ShowManagedOrganizationalUnitResponse The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str - :param organization_unit_id: OU ID。 + :param organization_unit_id: 注册OU ID。 :type organization_unit_id: str - :param organization_unit_name: OU名称。 + :param organization_unit_name: 注册OU名称。 :type organization_unit_name: str - :param organization_unit_status: OU状态。 + :param organization_unit_status: 注册OU状态。 :type organization_unit_status: str :param organization_unit_type: :type organization_unit_type: :class:`huaweicloudsdkrgc.v1.OrganizationalUnitType` - :param parent_organization_unit_id: 父OU ID。 + :param parent_organization_unit_id: 父注册OU ID。 :type parent_organization_unit_id: str - :param parent_organization_unit_name: 父OU名称。 + :param parent_organization_unit_name: 父注册OU名称。 :type parent_organization_unit_name: str - :param created_at: 被创建的时间。 + :param created_at: 组织里某个注册OU下的纳管账号被创建的时间。 :type created_at: datetime - :param updated_at: 最后一次更新的时间。 + :param landing_zone_version: Landing Zone版本。 + :type landing_zone_version: str + :param updated_at: 组织里某个注册OU下的纳管账号最后一次更新的时间。 :type updated_at: datetime + :param message: 错误信息描述。 + :type message: str """ super(ShowManagedOrganizationalUnitResponse, self).__init__() @@ -76,7 +84,9 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self._parent_organization_unit_id = None self._parent_organization_unit_name = None self._created_at = None + self._landing_zone_version = None self._updated_at = None + self._message = None self.discriminator = None if manage_account_id is not None: @@ -95,14 +105,18 @@ def __init__(self, manage_account_id=None, organization_unit_id=None, organizati self.parent_organization_unit_name = parent_organization_unit_name if created_at is not None: self.created_at = created_at + if landing_zone_version is not None: + self.landing_zone_version = landing_zone_version if updated_at is not None: self.updated_at = updated_at + if message is not None: + self.message = message @property def manage_account_id(self): """Gets the manage_account_id of this ShowManagedOrganizationalUnitResponse. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -113,7 +127,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this ShowManagedOrganizationalUnitResponse. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this ShowManagedOrganizationalUnitResponse. :type manage_account_id: str @@ -124,7 +138,7 @@ def manage_account_id(self, manage_account_id): def organization_unit_id(self): """Gets the organization_unit_id of this ShowManagedOrganizationalUnitResponse. - OU ID。 + 注册OU ID。 :return: The organization_unit_id of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -135,7 +149,7 @@ def organization_unit_id(self): def organization_unit_id(self, organization_unit_id): """Sets the organization_unit_id of this ShowManagedOrganizationalUnitResponse. - OU ID。 + 注册OU ID。 :param organization_unit_id: The organization_unit_id of this ShowManagedOrganizationalUnitResponse. :type organization_unit_id: str @@ -146,7 +160,7 @@ def organization_unit_id(self, organization_unit_id): def organization_unit_name(self): """Gets the organization_unit_name of this ShowManagedOrganizationalUnitResponse. - OU名称。 + 注册OU名称。 :return: The organization_unit_name of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -157,7 +171,7 @@ def organization_unit_name(self): def organization_unit_name(self, organization_unit_name): """Sets the organization_unit_name of this ShowManagedOrganizationalUnitResponse. - OU名称。 + 注册OU名称。 :param organization_unit_name: The organization_unit_name of this ShowManagedOrganizationalUnitResponse. :type organization_unit_name: str @@ -168,7 +182,7 @@ def organization_unit_name(self, organization_unit_name): def organization_unit_status(self): """Gets the organization_unit_status of this ShowManagedOrganizationalUnitResponse. - OU状态。 + 注册OU状态。 :return: The organization_unit_status of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -179,7 +193,7 @@ def organization_unit_status(self): def organization_unit_status(self, organization_unit_status): """Sets the organization_unit_status of this ShowManagedOrganizationalUnitResponse. - OU状态。 + 注册OU状态。 :param organization_unit_status: The organization_unit_status of this ShowManagedOrganizationalUnitResponse. :type organization_unit_status: str @@ -208,7 +222,7 @@ def organization_unit_type(self, organization_unit_type): def parent_organization_unit_id(self): """Gets the parent_organization_unit_id of this ShowManagedOrganizationalUnitResponse. - 父OU ID。 + 父注册OU ID。 :return: The parent_organization_unit_id of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -219,7 +233,7 @@ def parent_organization_unit_id(self): def parent_organization_unit_id(self, parent_organization_unit_id): """Sets the parent_organization_unit_id of this ShowManagedOrganizationalUnitResponse. - 父OU ID。 + 父注册OU ID。 :param parent_organization_unit_id: The parent_organization_unit_id of this ShowManagedOrganizationalUnitResponse. :type parent_organization_unit_id: str @@ -230,7 +244,7 @@ def parent_organization_unit_id(self, parent_organization_unit_id): def parent_organization_unit_name(self): """Gets the parent_organization_unit_name of this ShowManagedOrganizationalUnitResponse. - 父OU名称。 + 父注册OU名称。 :return: The parent_organization_unit_name of this ShowManagedOrganizationalUnitResponse. :rtype: str @@ -241,7 +255,7 @@ def parent_organization_unit_name(self): def parent_organization_unit_name(self, parent_organization_unit_name): """Sets the parent_organization_unit_name of this ShowManagedOrganizationalUnitResponse. - 父OU名称。 + 父注册OU名称。 :param parent_organization_unit_name: The parent_organization_unit_name of this ShowManagedOrganizationalUnitResponse. :type parent_organization_unit_name: str @@ -252,7 +266,7 @@ def parent_organization_unit_name(self, parent_organization_unit_name): def created_at(self): """Gets the created_at of this ShowManagedOrganizationalUnitResponse. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :return: The created_at of this ShowManagedOrganizationalUnitResponse. :rtype: datetime @@ -263,18 +277,40 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this ShowManagedOrganizationalUnitResponse. - 被创建的时间。 + 组织里某个注册OU下的纳管账号被创建的时间。 :param created_at: The created_at of this ShowManagedOrganizationalUnitResponse. :type created_at: datetime """ self._created_at = created_at + @property + def landing_zone_version(self): + """Gets the landing_zone_version of this ShowManagedOrganizationalUnitResponse. + + Landing Zone版本。 + + :return: The landing_zone_version of this ShowManagedOrganizationalUnitResponse. + :rtype: str + """ + return self._landing_zone_version + + @landing_zone_version.setter + def landing_zone_version(self, landing_zone_version): + """Sets the landing_zone_version of this ShowManagedOrganizationalUnitResponse. + + Landing Zone版本。 + + :param landing_zone_version: The landing_zone_version of this ShowManagedOrganizationalUnitResponse. + :type landing_zone_version: str + """ + self._landing_zone_version = landing_zone_version + @property def updated_at(self): """Gets the updated_at of this ShowManagedOrganizationalUnitResponse. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :return: The updated_at of this ShowManagedOrganizationalUnitResponse. :rtype: datetime @@ -285,13 +321,35 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this ShowManagedOrganizationalUnitResponse. - 最后一次更新的时间。 + 组织里某个注册OU下的纳管账号最后一次更新的时间。 :param updated_at: The updated_at of this ShowManagedOrganizationalUnitResponse. :type updated_at: datetime """ self._updated_at = updated_at + @property + def message(self): + """Gets the message of this ShowManagedOrganizationalUnitResponse. + + 错误信息描述。 + + :return: The message of this ShowManagedOrganizationalUnitResponse. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ShowManagedOrganizationalUnitResponse. + + 错误信息描述。 + + :param message: The message of this ShowManagedOrganizationalUnitResponse. + :type message: str + """ + self._message = message + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_request.py index 6789426336..f6808947da 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_request.py @@ -15,38 +15,30 @@ class ShowOperationRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { - 'operation_id': 'str', - 'x_security_token': 'str' + 'operation_id': 'str' } attribute_map = { - 'operation_id': 'operation_id', - 'x_security_token': 'X-Security-Token' + 'operation_id': 'operation_id' } - def __init__(self, operation_id=None, x_security_token=None): + def __init__(self, operation_id=None): """ShowOperationRequest The model defined in huaweicloud sdk :param operation_id: 操作ID。 :type operation_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str """ self._operation_id = None - self._x_security_token = None self.discriminator = None self.operation_id = operation_id - if x_security_token is not None: - self.x_security_token = x_security_token @property def operation_id(self): @@ -70,28 +62,6 @@ def operation_id(self, operation_id): """ self._operation_id = operation_id - @property - def x_security_token(self): - """Gets the x_security_token of this ShowOperationRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this ShowOperationRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this ShowOperationRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this ShowOperationRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_response.py index 24be5051bf..3cd36b399e 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/show_operation_response.py @@ -44,9 +44,9 @@ def __init__(self, operation_id=None, percentage_complete=None, status=None, per :type percentage_complete: int :param status: 状态。 :type status: str - :param percentage_details: 创建账号、纳管OU、纳管账号的详细进度信息。 + :param percentage_details: 创建账号、纳管注册OU、纳管账号的详细进度信息。 :type percentage_details: list[:class:`huaweicloudsdkrgc.v1.OrganizationalPercentageDetail`] - :param message: 错误信息描述。 + :param message: 创建账号、纳管注册OU、纳管账号的错误信息描述。 :type message: str """ @@ -140,7 +140,7 @@ def status(self, status): def percentage_details(self): """Gets the percentage_details of this ShowOperationResponse. - 创建账号、纳管OU、纳管账号的详细进度信息。 + 创建账号、纳管注册OU、纳管账号的详细进度信息。 :return: The percentage_details of this ShowOperationResponse. :rtype: list[:class:`huaweicloudsdkrgc.v1.OrganizationalPercentageDetail`] @@ -151,7 +151,7 @@ def percentage_details(self): def percentage_details(self, percentage_details): """Sets the percentage_details of this ShowOperationResponse. - 创建账号、纳管OU、纳管账号的详细进度信息。 + 创建账号、纳管注册OU、纳管账号的详细进度信息。 :param percentage_details: The percentage_details of this ShowOperationResponse. :type percentage_details: list[:class:`huaweicloudsdkrgc.v1.OrganizationalPercentageDetail`] @@ -162,7 +162,7 @@ def percentage_details(self, percentage_details): def message(self): """Gets the message of this ShowOperationResponse. - 错误信息描述。 + 创建账号、纳管注册OU、纳管账号的错误信息描述。 :return: The message of this ShowOperationResponse. :rtype: str @@ -173,7 +173,7 @@ def message(self): def message(self, message): """Sets the message of this ShowOperationResponse. - 错误信息描述。 + 创建账号、纳管注册OU、纳管账号的错误信息描述。 :param message: The message of this ShowOperationResponse. :type message: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/target_control.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/target_control.py index 78394abe52..20109b303e 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/target_control.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/target_control.py @@ -53,7 +53,7 @@ def __init__(self, manage_account_id=None, control_identifier=None, state=None, The model defined in huaweicloud sdk - :param manage_account_id: 管理账号ID。 + :param manage_account_id: 管理纳管账号ID。 :type manage_account_id: str :param control_identifier: 控制策略标识。 :type control_identifier: str @@ -69,15 +69,15 @@ def __init__(self, manage_account_id=None, control_identifier=None, state=None, :type control_objective: str :param behavior: 控制策略类型。包括主动性控制策略Proactive、检测性控制策略Detective、预防性控制策略Preventive。 :type behavior: str - :param owner: 账号的创建来源,包括CUSTOM和RGC。 + :param owner: 纳管账号的创建来源,包括CUSTOM和RGC。 :type owner: str - :param regional_preference: regional/global。 + :param regional_preference: 区域选项,取值有两种分别是:区域的regional和全局的global。 :type regional_preference: str :param guidance: 控制策略必须性。 :type guidance: str :param service: 控制策略所属服务。 :type service: str - :param implementation: 业务控制策略(SCP),配置规则。 + :param implementation: 服务控制策略(SCP),配置规则。 :type implementation: str """ @@ -129,7 +129,7 @@ def __init__(self, manage_account_id=None, control_identifier=None, state=None, def manage_account_id(self): """Gets the manage_account_id of this TargetControl. - 管理账号ID。 + 管理纳管账号ID。 :return: The manage_account_id of this TargetControl. :rtype: str @@ -140,7 +140,7 @@ def manage_account_id(self): def manage_account_id(self, manage_account_id): """Sets the manage_account_id of this TargetControl. - 管理账号ID。 + 管理纳管账号ID。 :param manage_account_id: The manage_account_id of this TargetControl. :type manage_account_id: str @@ -305,7 +305,7 @@ def behavior(self, behavior): def owner(self): """Gets the owner of this TargetControl. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :return: The owner of this TargetControl. :rtype: str @@ -316,7 +316,7 @@ def owner(self): def owner(self, owner): """Sets the owner of this TargetControl. - 账号的创建来源,包括CUSTOM和RGC。 + 纳管账号的创建来源,包括CUSTOM和RGC。 :param owner: The owner of this TargetControl. :type owner: str @@ -327,7 +327,7 @@ def owner(self, owner): def regional_preference(self): """Gets the regional_preference of this TargetControl. - regional/global。 + 区域选项,取值有两种分别是:区域的regional和全局的global。 :return: The regional_preference of this TargetControl. :rtype: str @@ -338,7 +338,7 @@ def regional_preference(self): def regional_preference(self, regional_preference): """Sets the regional_preference of this TargetControl. - regional/global。 + 区域选项,取值有两种分别是:区域的regional和全局的global。 :param regional_preference: The regional_preference of this TargetControl. :type regional_preference: str @@ -393,7 +393,7 @@ def service(self, service): def implementation(self): """Gets the implementation of this TargetControl. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :return: The implementation of this TargetControl. :rtype: str @@ -404,7 +404,7 @@ def implementation(self): def implementation(self, implementation): """Sets the implementation of this TargetControl. - 业务控制策略(SCP),配置规则。 + 服务控制策略(SCP),配置规则。 :param implementation: The implementation of this TargetControl. :type implementation: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_request.py new file mode 100644 index 0000000000..9b4e1104c9 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnEnrollAccountRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'managed_account_id': 'str' + } + + attribute_map = { + 'managed_account_id': 'managed_account_id' + } + + def __init__(self, managed_account_id=None): + """UnEnrollAccountRequest + + The model defined in huaweicloud sdk + + :param managed_account_id: 纳管账号ID。 + :type managed_account_id: str + """ + + + + self._managed_account_id = None + self.discriminator = None + + self.managed_account_id = managed_account_id + + @property + def managed_account_id(self): + """Gets the managed_account_id of this UnEnrollAccountRequest. + + 纳管账号ID。 + + :return: The managed_account_id of this UnEnrollAccountRequest. + :rtype: str + """ + return self._managed_account_id + + @managed_account_id.setter + def managed_account_id(self, managed_account_id): + """Sets the managed_account_id of this UnEnrollAccountRequest. + + 纳管账号ID。 + + :param managed_account_id: The managed_account_id of this UnEnrollAccountRequest. + :type managed_account_id: str + """ + self._managed_account_id = managed_account_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, UnEnrollAccountRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_response.py new file mode 100644 index 0000000000..a1be728d68 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/un_enroll_account_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnEnrollAccountResponse(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 = { + 'operation_id': 'str' + } + + attribute_map = { + 'operation_id': 'operation_id' + } + + def __init__(self, operation_id=None): + """UnEnrollAccountResponse + + The model defined in huaweicloud sdk + + :param operation_id: 创建账号、纳管账号、纳管注册OU的操作ID。 + :type operation_id: str + """ + + super(UnEnrollAccountResponse, self).__init__() + + self._operation_id = None + self.discriminator = None + + if operation_id is not None: + self.operation_id = operation_id + + @property + def operation_id(self): + """Gets the operation_id of this UnEnrollAccountResponse. + + 创建账号、纳管账号、纳管注册OU的操作ID。 + + :return: The operation_id of this UnEnrollAccountResponse. + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this UnEnrollAccountResponse. + + 创建账号、纳管账号、纳管注册OU的操作ID。 + + :param operation_id: The operation_id of this UnEnrollAccountResponse. + :type operation_id: str + """ + self._operation_id = operation_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, UnEnrollAccountResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request.py index 9894454f54..a521588d2a 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request.py @@ -15,43 +15,35 @@ class UpdateManagedAccountRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_security_token') openapi_types = { 'managed_account_id': 'str', - 'x_security_token': 'str', - 'body': 'CreateManagedAccountRequest' + 'body': 'UpdateManagedAccountRequestBody' } attribute_map = { 'managed_account_id': 'managed_account_id', - 'x_security_token': 'X-Security-Token', 'body': 'body' } - def __init__(self, managed_account_id=None, x_security_token=None, body=None): + def __init__(self, managed_account_id=None, body=None): """UpdateManagedAccountRequest The model defined in huaweicloud sdk - :param managed_account_id: 账号ID。 + :param managed_account_id: 纳管账号ID。 :type managed_account_id: str - :param x_security_token: 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - :type x_security_token: str :param body: Body of the UpdateManagedAccountRequest - :type body: :class:`huaweicloudsdkrgc.v1.CreateManagedAccountRequest` + :type body: :class:`huaweicloudsdkrgc.v1.UpdateManagedAccountRequestBody` """ self._managed_account_id = None - self._x_security_token = None self._body = None self.discriminator = None self.managed_account_id = managed_account_id - if x_security_token is not None: - self.x_security_token = x_security_token if body is not None: self.body = body @@ -59,7 +51,7 @@ def __init__(self, managed_account_id=None, x_security_token=None, body=None): def managed_account_id(self): """Gets the managed_account_id of this UpdateManagedAccountRequest. - 账号ID。 + 纳管账号ID。 :return: The managed_account_id of this UpdateManagedAccountRequest. :rtype: str @@ -70,41 +62,19 @@ def managed_account_id(self): def managed_account_id(self, managed_account_id): """Sets the managed_account_id of this UpdateManagedAccountRequest. - 账号ID。 + 纳管账号ID。 :param managed_account_id: The managed_account_id of this UpdateManagedAccountRequest. :type managed_account_id: str """ self._managed_account_id = managed_account_id - @property - def x_security_token(self): - """Gets the x_security_token of this UpdateManagedAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :return: The x_security_token of this UpdateManagedAccountRequest. - :rtype: str - """ - return self._x_security_token - - @x_security_token.setter - def x_security_token(self, x_security_token): - """Sets the x_security_token of this UpdateManagedAccountRequest. - - 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - - :param x_security_token: The x_security_token of this UpdateManagedAccountRequest. - :type x_security_token: str - """ - self._x_security_token = x_security_token - @property def body(self): """Gets the body of this UpdateManagedAccountRequest. :return: The body of this UpdateManagedAccountRequest. - :rtype: :class:`huaweicloudsdkrgc.v1.CreateManagedAccountRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.UpdateManagedAccountRequestBody` """ return self._body @@ -113,7 +83,7 @@ def body(self, body): """Sets the body of this UpdateManagedAccountRequest. :param body: The body of this UpdateManagedAccountRequest. - :type body: :class:`huaweicloudsdkrgc.v1.CreateManagedAccountRequest` + :type body: :class:`huaweicloudsdkrgc.v1.UpdateManagedAccountRequestBody` """ self._body = body diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request_body.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request_body.py new file mode 100644 index 0000000000..dc149ec560 --- /dev/null +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_request_body.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateManagedAccountRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'parent_organization_unit_id': 'str', + 'parent_organization_unit_name': 'str', + 'blueprint': 'Blueprint' + } + + attribute_map = { + 'parent_organization_unit_id': 'parent_organization_unit_id', + 'parent_organization_unit_name': 'parent_organization_unit_name', + 'blueprint': 'blueprint' + } + + def __init__(self, parent_organization_unit_id=None, parent_organization_unit_name=None, blueprint=None): + """UpdateManagedAccountRequestBody + + The model defined in huaweicloud sdk + + :param parent_organization_unit_id: 父注册OU ID。 + :type parent_organization_unit_id: str + :param parent_organization_unit_name: 父注册OU名称。 + :type parent_organization_unit_name: str + :param blueprint: + :type blueprint: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + + + + self._parent_organization_unit_id = None + self._parent_organization_unit_name = None + self._blueprint = None + self.discriminator = None + + self.parent_organization_unit_id = parent_organization_unit_id + self.parent_organization_unit_name = parent_organization_unit_name + if blueprint is not None: + self.blueprint = blueprint + + @property + def parent_organization_unit_id(self): + """Gets the parent_organization_unit_id of this UpdateManagedAccountRequestBody. + + 父注册OU ID。 + + :return: The parent_organization_unit_id of this UpdateManagedAccountRequestBody. + :rtype: str + """ + return self._parent_organization_unit_id + + @parent_organization_unit_id.setter + def parent_organization_unit_id(self, parent_organization_unit_id): + """Sets the parent_organization_unit_id of this UpdateManagedAccountRequestBody. + + 父注册OU ID。 + + :param parent_organization_unit_id: The parent_organization_unit_id of this UpdateManagedAccountRequestBody. + :type parent_organization_unit_id: str + """ + self._parent_organization_unit_id = parent_organization_unit_id + + @property + def parent_organization_unit_name(self): + """Gets the parent_organization_unit_name of this UpdateManagedAccountRequestBody. + + 父注册OU名称。 + + :return: The parent_organization_unit_name of this UpdateManagedAccountRequestBody. + :rtype: str + """ + return self._parent_organization_unit_name + + @parent_organization_unit_name.setter + def parent_organization_unit_name(self, parent_organization_unit_name): + """Sets the parent_organization_unit_name of this UpdateManagedAccountRequestBody. + + 父注册OU名称。 + + :param parent_organization_unit_name: The parent_organization_unit_name of this UpdateManagedAccountRequestBody. + :type parent_organization_unit_name: str + """ + self._parent_organization_unit_name = parent_organization_unit_name + + @property + def blueprint(self): + """Gets the blueprint of this UpdateManagedAccountRequestBody. + + :return: The blueprint of this UpdateManagedAccountRequestBody. + :rtype: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + return self._blueprint + + @blueprint.setter + def blueprint(self, blueprint): + """Sets the blueprint of this UpdateManagedAccountRequestBody. + + :param blueprint: The blueprint of this UpdateManagedAccountRequestBody. + :type blueprint: :class:`huaweicloudsdkrgc.v1.Blueprint` + """ + self._blueprint = blueprint + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateManagedAccountRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_response.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_response.py index abf62e40eb..7c2469fcd2 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_response.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/model/update_managed_account_response.py @@ -30,7 +30,7 @@ def __init__(self, operation_id=None): The model defined in huaweicloud sdk - :param operation_id: 创建账号、纳管账号、纳管OU的操作ID。 + :param operation_id: 创建账号、纳管账号、纳管注册OU的操作ID。 :type operation_id: str """ @@ -46,7 +46,7 @@ def __init__(self, operation_id=None): def operation_id(self): """Gets the operation_id of this UpdateManagedAccountResponse. - 创建账号、纳管账号、纳管OU的操作ID。 + 创建账号、纳管账号、纳管注册OU的操作ID。 :return: The operation_id of this UpdateManagedAccountResponse. :rtype: str @@ -57,7 +57,7 @@ def operation_id(self): def operation_id(self, operation_id): """Sets the operation_id of this UpdateManagedAccountResponse. - 创建账号、纳管账号、纳管OU的操作ID。 + 创建账号、纳管账号、纳管注册OU的操作ID。 :param operation_id: The operation_id of this UpdateManagedAccountResponse. :type operation_id: str diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/region/rgc_region.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/region/rgc_region.py index 9d262da7f9..873cefeff0 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/region/rgc_region.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/region/rgc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class RgcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Rgc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_async_client.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_async_client.py index 31dba582c1..e4d953f216 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_async_client.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_async_client.py @@ -54,7 +54,7 @@ def disable_control_async_invoker(self, request): def _disable_control_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/governance/control/disable", + "resource_path": "/v1/governance/controls/disable", "request_type": request.__class__.__name__, "response_type": "DisableControlResponse" } @@ -70,8 +70,6 @@ def _disable_control_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -121,7 +119,7 @@ def enable_control_async_invoker(self, request): def _enable_control_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/governance/control/enable", + "resource_path": "/v1/governance/controls/enable", "request_type": request.__class__.__name__, "response_type": "EnableControlResponse" } @@ -137,8 +135,6 @@ def _enable_control_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -167,9 +163,9 @@ def _enable_control_http_info(self, request): return http_info def list_config_rule_compliance_async(self, request): - """查询账号的合规性状态 + """查询纳管账号的Config规则合规性信息 - 查询组织里某个账号下开启的所有控制策略的详细信息。 + 查询纳管账号的Config规则合规性信息 Please refer to HUAWEI cloud API Explorer for details. @@ -188,7 +184,7 @@ def list_config_rule_compliance_async_invoker(self, request): def _list_config_rule_compliance_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/account/{account_id}/config-rule-compliances", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/config-rule-compliances", "request_type": request.__class__.__name__, "response_type": "ListConfigRuleComplianceResponse" } @@ -200,14 +196,12 @@ def _list_config_rule_compliance_http_info(self, request): collection_formats = {} path_params = {} - if 'account_id' in local_var_params: - path_params['account_id'] = local_var_params['account_id'] + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -234,9 +228,9 @@ def _list_config_rule_compliance_http_info(self, request): return http_info def list_control_violations_async(self, request): - """查询不合规信息 + """列出不合规信息 - 查询组织里所有不合规的资源信息。 + 列出组织里所有不合规的资源信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -275,8 +269,6 @@ def _list_control_violations_http_info(self, request): query_params.append(('organization_unit_id', local_var_params['organization_unit_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -303,9 +295,9 @@ def _list_control_violations_http_info(self, request): return http_info def list_controls_async(self, request): - """查询控制策略 + """列出控制策略 - 查询RGC服务里所有的预置控制策略。 + 列出RGC服务里所有的预置控制策略。 Please refer to HUAWEI cloud API Explorer for details. @@ -344,8 +336,6 @@ def _list_controls_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -372,9 +362,9 @@ def _list_controls_http_info(self, request): return http_info def list_controls_for_account_async(self, request): - """查询账号下开启的控制策略 + """列出纳管账号下开启的控制策略 - 查询组织里某个账号开启的所有控制策略信息。 + 列出组织里某个纳管账号开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -393,7 +383,7 @@ def list_controls_for_account_async_invoker(self, request): def _list_controls_for_account_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-account/{managed_account_id}/controls", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/controls", "request_type": request.__class__.__name__, "response_type": "ListControlsForAccountResponse" } @@ -415,8 +405,6 @@ def _list_controls_for_account_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -443,9 +431,9 @@ def _list_controls_for_account_http_info(self, request): return http_info def list_controls_for_organization_unit_async(self, request): - """查询OU下开启的控制策略 + """列出注册OU下开启的控制策略 - 查询组织里某个OU开启的所有控制策略信息。 + 列出组织里某个注册OU开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -464,7 +452,7 @@ def list_controls_for_organization_unit_async_invoker(self, request): def _list_controls_for_organization_unit_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/controls", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls", "request_type": request.__class__.__name__, "response_type": "ListControlsForOrganizationUnitResponse" } @@ -486,8 +474,6 @@ def _list_controls_for_organization_unit_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -514,9 +500,9 @@ def _list_controls_for_organization_unit_http_info(self, request): return http_info def list_drift_details_async(self, request): - """查询漂移信息 + """列出漂移信息 - 查询Landing Zone的所有漂移详细信息。 + 列出Landing Zone的所有漂移详细信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -551,8 +537,6 @@ def _list_drift_details_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -579,9 +563,9 @@ def _list_drift_details_http_info(self, request): return http_info def list_enabled_controls_async(self, request): - """查询开启的控制策略 + """列出开启的控制策略 - 查询组织里开启的所有控制策略信息。 + 列出组织里开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -620,8 +604,6 @@ def _list_enabled_controls_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -648,9 +630,9 @@ def _list_enabled_controls_http_info(self, request): return http_info def show_compliance_status_for_account_async(self, request): - """查询账号的合规状态 + """查询纳管账号的合规状态 - 查询组织里某个账号的资源合规状态。 + 查询组织里某个纳管账号的资源合规状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -669,7 +651,7 @@ def show_compliance_status_for_account_async_invoker(self, request): def _show_compliance_status_for_account_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-account/{managed_account_id}/compliance-status", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/compliance-status", "request_type": request.__class__.__name__, "response_type": "ShowComplianceStatusForAccountResponse" } @@ -685,10 +667,10 @@ def _show_compliance_status_for_account_http_info(self, request): path_params['managed_account_id'] = local_var_params['managed_account_id'] query_params = [] + if 'control_id' in local_var_params: + query_params.append(('control_id', local_var_params['control_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -715,9 +697,9 @@ def _show_compliance_status_for_account_http_info(self, request): return http_info def show_compliance_status_for_organization_unit_async(self, request): - """查询OU的合规状态 + """查询注册OU的合规状态 - 查询组织里某个OU下所有账号的资源合规状态。 + 查询组织里某个注册OU下所有纳管账号的资源合规状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -736,7 +718,7 @@ def show_compliance_status_for_organization_unit_async_invoker(self, request): def _show_compliance_status_for_organization_unit_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/compliance-status", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/compliance-status", "request_type": request.__class__.__name__, "response_type": "ShowComplianceStatusForOrganizationUnitResponse" } @@ -752,10 +734,10 @@ def _show_compliance_status_for_organization_unit_http_info(self, request): path_params['managed_organization_unit_id'] = local_var_params['managed_organization_unit_id'] query_params = [] + if 'control_id' in local_var_params: + query_params.append(('control_id', local_var_params['control_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -821,8 +803,6 @@ def _show_control_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -870,7 +850,7 @@ def show_control_operate_async_invoker(self, request): def _show_control_operate_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/operated-controls/{control_operate_request_id}", + "resource_path": "/v1/governance/operation-control-status/{operation_control_status_id}", "request_type": request.__class__.__name__, "response_type": "ShowControlOperateResponse" } @@ -882,14 +862,12 @@ def _show_control_operate_http_info(self, request): collection_formats = {} path_params = {} - if 'control_operate_request_id' in local_var_params: - path_params['control_operate_request_id'] = local_var_params['control_operate_request_id'] + if 'operation_control_status_id' in local_var_params: + path_params['operation_control_status_id'] = local_var_params['operation_control_status_id'] query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -916,9 +894,9 @@ def _show_control_operate_http_info(self, request): return http_info def show_controls_for_organization_unit_async(self, request): - """查询OU开启的控制策略 + """查询注册OU开启的控制策略 - 查询组织里某个OU下开启的某个控制策略的详细信息。 + 查询组织里某个注册OU下开启的某个控制策略的详细信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -937,7 +915,7 @@ def show_controls_for_organization_unit_async_invoker(self, request): def _show_controls_for_organization_unit_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/controls/{control_id}", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls/{control_id}", "request_type": request.__class__.__name__, "response_type": "ShowControlsForOrganizationUnitResponse" } @@ -957,8 +935,6 @@ def _show_controls_for_organization_unit_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1022,8 +998,6 @@ def _check_launch_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1087,8 +1061,6 @@ def _setup_landing_zone_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1117,9 +1089,9 @@ def _setup_landing_zone_http_info(self, request): return http_info def show_available_updates_async(self, request): - """获取Landing Zone可更新状态 + """查询Landing Zone可更新状态 - 获取Landing Zone当前是否需要升级更新。 + 查询Landing Zone当前是否需要升级更新。 Please refer to HUAWEI cloud API Explorer for details. @@ -1154,8 +1126,6 @@ def _show_available_updates_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1219,8 +1189,6 @@ def _show_home_region_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1247,9 +1215,9 @@ def _show_home_region_http_info(self, request): return http_info def show_landing_zone_configuration_async(self, request): - """获取Landing Zone的配置 + """查询Landing Zone的配置 - 获取当前客户的Landing Zone的所有配置。 + 查询当前客户的Landing Zone的所有配置。 Please refer to HUAWEI cloud API Explorer for details. @@ -1284,8 +1252,6 @@ def _show_landing_zone_configuration_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1312,9 +1278,9 @@ def _show_landing_zone_configuration_http_info(self, request): return http_info def show_landing_zone_identity_center_async(self, request): - """获取当前客户的Identity Center用户信息 + """查询当前客户的Identity Center用户信息 - 获取当前客户的Identity Center用户信息。 + 查询当前客户的Identity Center用户信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1349,8 +1315,6 @@ def _show_landing_zone_identity_center_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1414,8 +1378,6 @@ def _show_landing_zone_status_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1444,7 +1406,7 @@ def _show_landing_zone_status_http_info(self, request): def create_account_async(self, request): """创建账号 - 在组织里的某个OU下创建账号。 + 在组织里的某个注册OU下创建账号。 Please refer to HUAWEI cloud API Explorer for details. @@ -1479,8 +1441,6 @@ def _create_account_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1509,9 +1469,9 @@ def _create_account_http_info(self, request): return http_info def delete_managed_organizational_units_async(self, request): - """删除注册的OU + """删除注册OU - 在组织里删除已注册的OU。 + 在组织里删除已注册OU。 Please refer to HUAWEI cloud API Explorer for details. @@ -1530,7 +1490,7 @@ def delete_managed_organizational_units_async_invoker(self, request): def _delete_managed_organizational_units_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}", "request_type": request.__class__.__name__, "response_type": "DeleteManagedOrganizationalUnitsResponse" } @@ -1548,8 +1508,6 @@ def _delete_managed_organizational_units_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1576,7 +1534,7 @@ def _delete_managed_organizational_units_http_info(self, request): return http_info def deregister_organizational_unit_async(self, request): - """去注册OU + """取消注册OU 将组织里的某个OU从RGC服务里取消注册。 @@ -1597,7 +1555,7 @@ def deregister_organizational_unit_async_invoker(self, request): def _deregister_organizational_unit_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}/de-register", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/de-register", "request_type": request.__class__.__name__, "response_type": "DeregisterOrganizationalUnitResponse" } @@ -1615,8 +1573,6 @@ def _deregister_organizational_unit_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1642,10 +1598,77 @@ def _deregister_organizational_unit_http_info(self, request): return http_info + def enroll_account_async(self, request): + """纳管账号 + + 将组织里的某个账号纳管到RGC服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for EnrollAccount + :type request: :class:`huaweicloudsdkrgc.v1.EnrollAccountRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.EnrollAccountResponse` + """ + http_info = self._enroll_account_http_info(request) + return self._call_api(**http_info) + + def enroll_account_async_invoker(self, request): + http_info = self._enroll_account_http_info(request) + return AsyncInvoker(self, http_info) + + def _enroll_account_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/accounts/{managed_account_id}/enroll", + "request_type": request.__class__.__name__, + "response_type": "EnrollAccountResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_managed_accounts_async(self, request): - """查询注册的账号信息 + """列举控制策略生效的纳管账号信息 - 查询组织里所有注册的账号信息。 + 列举控制策略生效的纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1686,8 +1709,6 @@ def _list_managed_accounts_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1714,9 +1735,9 @@ def _list_managed_accounts_http_info(self, request): return http_info def list_managed_accounts_for_parent_async(self, request): - """查询纳管OU下的账号信息 + """列出注册OU下的纳管账号信息 - 查询组织里某个注册OU下的所有账号信息。 + 列出组织里某个注册OU下的所有纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1735,7 +1756,7 @@ def list_managed_accounts_for_parent_async_invoker(self, request): def _list_managed_accounts_for_parent_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}/managed-accounts", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/managed-accounts", "request_type": request.__class__.__name__, "response_type": "ListManagedAccountsForParentResponse" } @@ -1757,8 +1778,6 @@ def _list_managed_accounts_for_parent_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1785,9 +1804,9 @@ def _list_managed_accounts_for_parent_http_info(self, request): return http_info def list_managed_organizational_units_async(self, request): - """查询纳管的OU信息 + """列举控制策略生效的注册OU信息 - 查询组织里所有通过RGC服务注册的OU信息。 + 列举控制策略生效的注册OU信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1828,8 +1847,71 @@ def _list_managed_organizational_units_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def re_register_organizational_unit_async(self, request): + """重新注册OU + + 重新注册组织里的某个OU到RGC服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ReRegisterOrganizationalUnit + :type request: :class:`huaweicloudsdkrgc.v1.ReRegisterOrganizationalUnitRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.ReRegisterOrganizationalUnitResponse` + """ + http_info = self._re_register_organizational_unit_http_info(request) + return self._call_api(**http_info) + + def re_register_organizational_unit_async_invoker(self, request): + http_info = self._re_register_organizational_unit_http_info(request) + return AsyncInvoker(self, http_info) + + def _re_register_organizational_unit_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/organization-units/{organization_unit_id}/re-register", + "request_type": request.__class__.__name__, + "response_type": "ReRegisterOrganizationalUnitResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'organization_unit_id' in local_var_params: + path_params['organization_unit_id'] = local_var_params['organization_unit_id'] + + query_params = [] + + header_params = {} form_params = {} @@ -1877,7 +1959,7 @@ def register_organizational_unit_async_invoker(self, request): def _register_organizational_unit_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/organization-unit/{organization_unit_id}/register", + "resource_path": "/v1/managed-organization/organization-units/{organization_unit_id}/register", "request_type": request.__class__.__name__, "response_type": "RegisterOrganizationalUnitResponse" } @@ -1895,8 +1977,6 @@ def _register_organizational_unit_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1923,9 +2003,9 @@ def _register_organizational_unit_http_info(self, request): return http_info def show_managed_account_async(self, request): - """查询注册的账号信息 + """查询纳管账号信息 - 查询组织里某个注册的账号信息。 + 查询组织里某个纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1944,7 +2024,7 @@ def show_managed_account_async_invoker(self, request): def _show_managed_account_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-account/{managed_account_id}", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}", "request_type": request.__class__.__name__, "response_type": "ShowManagedAccountResponse" } @@ -1962,8 +2042,6 @@ def _show_managed_account_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1990,9 +2068,9 @@ def _show_managed_account_http_info(self, request): return http_info def show_managed_core_account_async(self, request): - """查询核心账号 + """列出核心纳管账号 - 查询组织里的所有核心账号信息。 + 列出组织里的所有核心纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2011,7 +2089,7 @@ def show_managed_core_account_async_invoker(self, request): def _show_managed_core_account_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-core-account", + "resource_path": "/v1/managed-organization/managed-core-accounts", "request_type": request.__class__.__name__, "response_type": "ShowManagedCoreAccountResponse" } @@ -2029,8 +2107,6 @@ def _show_managed_core_account_http_info(self, request): query_params.append(('account_type', local_var_params['account_type'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -2057,9 +2133,9 @@ def _show_managed_core_account_http_info(self, request): return http_info def show_managed_organizational_unit_async(self, request): - """查询纳管的OU信息 + """查询已注册OU信息 - 查询在RGC服务里注册的OU信息。 + 查询在RGC服务里的注册OU信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2078,7 +2154,7 @@ def show_managed_organizational_unit_async_invoker(self, request): def _show_managed_organizational_unit_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}", "request_type": request.__class__.__name__, "response_type": "ShowManagedOrganizationalUnitResponse" } @@ -2096,8 +2172,6 @@ def _show_managed_organizational_unit_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -2163,8 +2237,71 @@ def _show_operation_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def un_enroll_account_async(self, request): + """取消纳管账号 + + 将组织里的某个账号从RGC服务里取消纳管。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UnEnrollAccount + :type request: :class:`huaweicloudsdkrgc.v1.UnEnrollAccountRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.UnEnrollAccountResponse` + """ + http_info = self._un_enroll_account_http_info(request) + return self._call_api(**http_info) + + def un_enroll_account_async_invoker(self, request): + http_info = self._un_enroll_account_http_info(request) + return AsyncInvoker(self, http_info) + + def _un_enroll_account_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}/un-enroll", + "request_type": request.__class__.__name__, + "response_type": "UnEnrollAccountResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] + + query_params = [] + + header_params = {} form_params = {} @@ -2191,9 +2328,9 @@ def _show_operation_http_info(self, request): return http_info def update_managed_account_async(self, request): - """更新注册的账号 + """更新纳管账号 - 更新组织里某个已在RGC服务注册的账号。 + 更新组织里某个已在RGC服务的纳管账号。 Please refer to HUAWEI cloud API Explorer for details. @@ -2212,7 +2349,7 @@ def update_managed_account_async_invoker(self, request): def _update_managed_account_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/managed-account/{managed_account_id}/update", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}/update", "request_type": request.__class__.__name__, "response_type": "UpdateManagedAccountResponse" } @@ -2230,8 +2367,6 @@ def _update_managed_account_http_info(self, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} diff --git a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_client.py b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_client.py index 12dcdc479d..588c0bdc19 100644 --- a/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_client.py +++ b/huaweicloud-sdk-rgc/huaweicloudsdkrgc/v1/rgc_client.py @@ -54,7 +54,7 @@ def disable_control_invoker(self, request): def _disable_control_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/governance/control/disable", + "resource_path": "/v1/governance/controls/disable", "request_type": request.__class__.__name__, "response_type": "DisableControlResponse" } @@ -70,8 +70,6 @@ def _disable_control_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -121,7 +119,7 @@ def enable_control_invoker(self, request): def _enable_control_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/governance/control/enable", + "resource_path": "/v1/governance/controls/enable", "request_type": request.__class__.__name__, "response_type": "EnableControlResponse" } @@ -137,8 +135,6 @@ def _enable_control_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -167,9 +163,9 @@ def _enable_control_http_info(cls, request): return http_info def list_config_rule_compliance(self, request): - """查询账号的合规性状态 + """查询纳管账号的Config规则合规性信息 - 查询组织里某个账号下开启的所有控制策略的详细信息。 + 查询纳管账号的Config规则合规性信息 Please refer to HUAWEI cloud API Explorer for details. @@ -188,7 +184,7 @@ def list_config_rule_compliance_invoker(self, request): def _list_config_rule_compliance_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/account/{account_id}/config-rule-compliances", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/config-rule-compliances", "request_type": request.__class__.__name__, "response_type": "ListConfigRuleComplianceResponse" } @@ -200,14 +196,12 @@ def _list_config_rule_compliance_http_info(cls, request): collection_formats = {} path_params = {} - if 'account_id' in local_var_params: - path_params['account_id'] = local_var_params['account_id'] + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -234,9 +228,9 @@ def _list_config_rule_compliance_http_info(cls, request): return http_info def list_control_violations(self, request): - """查询不合规信息 + """列出不合规信息 - 查询组织里所有不合规的资源信息。 + 列出组织里所有不合规的资源信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -275,8 +269,6 @@ def _list_control_violations_http_info(cls, request): query_params.append(('organization_unit_id', local_var_params['organization_unit_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -303,9 +295,9 @@ def _list_control_violations_http_info(cls, request): return http_info def list_controls(self, request): - """查询控制策略 + """列出控制策略 - 查询RGC服务里所有的预置控制策略。 + 列出RGC服务里所有的预置控制策略。 Please refer to HUAWEI cloud API Explorer for details. @@ -344,8 +336,6 @@ def _list_controls_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -372,9 +362,9 @@ def _list_controls_http_info(cls, request): return http_info def list_controls_for_account(self, request): - """查询账号下开启的控制策略 + """列出纳管账号下开启的控制策略 - 查询组织里某个账号开启的所有控制策略信息。 + 列出组织里某个纳管账号开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -393,7 +383,7 @@ def list_controls_for_account_invoker(self, request): def _list_controls_for_account_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-account/{managed_account_id}/controls", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/controls", "request_type": request.__class__.__name__, "response_type": "ListControlsForAccountResponse" } @@ -415,8 +405,6 @@ def _list_controls_for_account_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -443,9 +431,9 @@ def _list_controls_for_account_http_info(cls, request): return http_info def list_controls_for_organization_unit(self, request): - """查询OU下开启的控制策略 + """列出注册OU下开启的控制策略 - 查询组织里某个OU开启的所有控制策略信息。 + 列出组织里某个注册OU开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -464,7 +452,7 @@ def list_controls_for_organization_unit_invoker(self, request): def _list_controls_for_organization_unit_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/controls", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls", "request_type": request.__class__.__name__, "response_type": "ListControlsForOrganizationUnitResponse" } @@ -486,8 +474,6 @@ def _list_controls_for_organization_unit_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -514,9 +500,9 @@ def _list_controls_for_organization_unit_http_info(cls, request): return http_info def list_drift_details(self, request): - """查询漂移信息 + """列出漂移信息 - 查询Landing Zone的所有漂移详细信息。 + 列出Landing Zone的所有漂移详细信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -551,8 +537,6 @@ def _list_drift_details_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -579,9 +563,9 @@ def _list_drift_details_http_info(cls, request): return http_info def list_enabled_controls(self, request): - """查询开启的控制策略 + """列出开启的控制策略 - 查询组织里开启的所有控制策略信息。 + 列出组织里开启的所有控制策略信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -620,8 +604,6 @@ def _list_enabled_controls_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -648,9 +630,9 @@ def _list_enabled_controls_http_info(cls, request): return http_info def show_compliance_status_for_account(self, request): - """查询账号的合规状态 + """查询纳管账号的合规状态 - 查询组织里某个账号的资源合规状态。 + 查询组织里某个纳管账号的资源合规状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -669,7 +651,7 @@ def show_compliance_status_for_account_invoker(self, request): def _show_compliance_status_for_account_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-account/{managed_account_id}/compliance-status", + "resource_path": "/v1/governance/managed-accounts/{managed_account_id}/compliance-status", "request_type": request.__class__.__name__, "response_type": "ShowComplianceStatusForAccountResponse" } @@ -685,10 +667,10 @@ def _show_compliance_status_for_account_http_info(cls, request): path_params['managed_account_id'] = local_var_params['managed_account_id'] query_params = [] + if 'control_id' in local_var_params: + query_params.append(('control_id', local_var_params['control_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -715,9 +697,9 @@ def _show_compliance_status_for_account_http_info(cls, request): return http_info def show_compliance_status_for_organization_unit(self, request): - """查询OU的合规状态 + """查询注册OU的合规状态 - 查询组织里某个OU下所有账号的资源合规状态。 + 查询组织里某个注册OU下所有纳管账号的资源合规状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -736,7 +718,7 @@ def show_compliance_status_for_organization_unit_invoker(self, request): def _show_compliance_status_for_organization_unit_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/compliance-status", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/compliance-status", "request_type": request.__class__.__name__, "response_type": "ShowComplianceStatusForOrganizationUnitResponse" } @@ -752,10 +734,10 @@ def _show_compliance_status_for_organization_unit_http_info(cls, request): path_params['managed_organization_unit_id'] = local_var_params['managed_organization_unit_id'] query_params = [] + if 'control_id' in local_var_params: + query_params.append(('control_id', local_var_params['control_id'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -821,8 +803,6 @@ def _show_control_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -870,7 +850,7 @@ def show_control_operate_invoker(self, request): def _show_control_operate_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/operated-controls/{control_operate_request_id}", + "resource_path": "/v1/governance/operation-control-status/{operation_control_status_id}", "request_type": request.__class__.__name__, "response_type": "ShowControlOperateResponse" } @@ -882,14 +862,12 @@ def _show_control_operate_http_info(cls, request): collection_formats = {} path_params = {} - if 'control_operate_request_id' in local_var_params: - path_params['control_operate_request_id'] = local_var_params['control_operate_request_id'] + if 'operation_control_status_id' in local_var_params: + path_params['operation_control_status_id'] = local_var_params['operation_control_status_id'] query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -916,9 +894,9 @@ def _show_control_operate_http_info(cls, request): return http_info def show_controls_for_organization_unit(self, request): - """查询OU开启的控制策略 + """查询注册OU开启的控制策略 - 查询组织里某个OU下开启的某个控制策略的详细信息。 + 查询组织里某个注册OU下开启的某个控制策略的详细信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -937,7 +915,7 @@ def show_controls_for_organization_unit_invoker(self, request): def _show_controls_for_organization_unit_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/governance/managed-organization-unit/{managed_organization_unit_id}/controls/{control_id}", + "resource_path": "/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls/{control_id}", "request_type": request.__class__.__name__, "response_type": "ShowControlsForOrganizationUnitResponse" } @@ -957,8 +935,6 @@ def _show_controls_for_organization_unit_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1022,8 +998,6 @@ def _check_launch_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1087,8 +1061,6 @@ def _setup_landing_zone_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1117,9 +1089,9 @@ def _setup_landing_zone_http_info(cls, request): return http_info def show_available_updates(self, request): - """获取Landing Zone可更新状态 + """查询Landing Zone可更新状态 - 获取Landing Zone当前是否需要升级更新。 + 查询Landing Zone当前是否需要升级更新。 Please refer to HUAWEI cloud API Explorer for details. @@ -1154,8 +1126,6 @@ def _show_available_updates_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1219,8 +1189,6 @@ def _show_home_region_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1247,9 +1215,9 @@ def _show_home_region_http_info(cls, request): return http_info def show_landing_zone_configuration(self, request): - """获取Landing Zone的配置 + """查询Landing Zone的配置 - 获取当前客户的Landing Zone的所有配置。 + 查询当前客户的Landing Zone的所有配置。 Please refer to HUAWEI cloud API Explorer for details. @@ -1284,8 +1252,6 @@ def _show_landing_zone_configuration_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1312,9 +1278,9 @@ def _show_landing_zone_configuration_http_info(cls, request): return http_info def show_landing_zone_identity_center(self, request): - """获取当前客户的Identity Center用户信息 + """查询当前客户的Identity Center用户信息 - 获取当前客户的Identity Center用户信息。 + 查询当前客户的Identity Center用户信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1349,8 +1315,6 @@ def _show_landing_zone_identity_center_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1414,8 +1378,6 @@ def _show_landing_zone_status_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1444,7 +1406,7 @@ def _show_landing_zone_status_http_info(cls, request): def create_account(self, request): """创建账号 - 在组织里的某个OU下创建账号。 + 在组织里的某个注册OU下创建账号。 Please refer to HUAWEI cloud API Explorer for details. @@ -1479,8 +1441,6 @@ def _create_account_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1509,9 +1469,9 @@ def _create_account_http_info(cls, request): return http_info def delete_managed_organizational_units(self, request): - """删除注册的OU + """删除注册OU - 在组织里删除已注册的OU。 + 在组织里删除已注册OU。 Please refer to HUAWEI cloud API Explorer for details. @@ -1530,7 +1490,7 @@ def delete_managed_organizational_units_invoker(self, request): def _delete_managed_organizational_units_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}", "request_type": request.__class__.__name__, "response_type": "DeleteManagedOrganizationalUnitsResponse" } @@ -1548,8 +1508,6 @@ def _delete_managed_organizational_units_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1576,7 +1534,7 @@ def _delete_managed_organizational_units_http_info(cls, request): return http_info def deregister_organizational_unit(self, request): - """去注册OU + """取消注册OU 将组织里的某个OU从RGC服务里取消注册。 @@ -1597,7 +1555,7 @@ def deregister_organizational_unit_invoker(self, request): def _deregister_organizational_unit_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}/de-register", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/de-register", "request_type": request.__class__.__name__, "response_type": "DeregisterOrganizationalUnitResponse" } @@ -1615,8 +1573,6 @@ def _deregister_organizational_unit_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1642,10 +1598,77 @@ def _deregister_organizational_unit_http_info(cls, request): return http_info + def enroll_account(self, request): + """纳管账号 + + 将组织里的某个账号纳管到RGC服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for EnrollAccount + :type request: :class:`huaweicloudsdkrgc.v1.EnrollAccountRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.EnrollAccountResponse` + """ + http_info = self._enroll_account_http_info(request) + return self._call_api(**http_info) + + def enroll_account_invoker(self, request): + http_info = self._enroll_account_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _enroll_account_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/accounts/{managed_account_id}/enroll", + "request_type": request.__class__.__name__, + "response_type": "EnrollAccountResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_managed_accounts(self, request): - """查询注册的账号信息 + """列举控制策略生效的纳管账号信息 - 查询组织里所有注册的账号信息。 + 列举控制策略生效的纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1686,8 +1709,6 @@ def _list_managed_accounts_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1714,9 +1735,9 @@ def _list_managed_accounts_http_info(cls, request): return http_info def list_managed_accounts_for_parent(self, request): - """查询纳管OU下的账号信息 + """列出注册OU下的纳管账号信息 - 查询组织里某个注册OU下的所有账号信息。 + 列出组织里某个注册OU下的所有纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1735,7 +1756,7 @@ def list_managed_accounts_for_parent_invoker(self, request): def _list_managed_accounts_for_parent_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}/managed-accounts", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}/managed-accounts", "request_type": request.__class__.__name__, "response_type": "ListManagedAccountsForParentResponse" } @@ -1757,8 +1778,6 @@ def _list_managed_accounts_for_parent_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1785,9 +1804,9 @@ def _list_managed_accounts_for_parent_http_info(cls, request): return http_info def list_managed_organizational_units(self, request): - """查询纳管的OU信息 + """列举控制策略生效的注册OU信息 - 查询组织里所有通过RGC服务注册的OU信息。 + 列举控制策略生效的注册OU信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1828,8 +1847,71 @@ def _list_managed_organizational_units_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def re_register_organizational_unit(self, request): + """重新注册OU + + 重新注册组织里的某个OU到RGC服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ReRegisterOrganizationalUnit + :type request: :class:`huaweicloudsdkrgc.v1.ReRegisterOrganizationalUnitRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.ReRegisterOrganizationalUnitResponse` + """ + http_info = self._re_register_organizational_unit_http_info(request) + return self._call_api(**http_info) + + def re_register_organizational_unit_invoker(self, request): + http_info = self._re_register_organizational_unit_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _re_register_organizational_unit_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/organization-units/{organization_unit_id}/re-register", + "request_type": request.__class__.__name__, + "response_type": "ReRegisterOrganizationalUnitResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'organization_unit_id' in local_var_params: + path_params['organization_unit_id'] = local_var_params['organization_unit_id'] + + query_params = [] + + header_params = {} form_params = {} @@ -1877,7 +1959,7 @@ def register_organizational_unit_invoker(self, request): def _register_organizational_unit_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/organization-unit/{organization_unit_id}/register", + "resource_path": "/v1/managed-organization/organization-units/{organization_unit_id}/register", "request_type": request.__class__.__name__, "response_type": "RegisterOrganizationalUnitResponse" } @@ -1895,8 +1977,6 @@ def _register_organizational_unit_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1923,9 +2003,9 @@ def _register_organizational_unit_http_info(cls, request): return http_info def show_managed_account(self, request): - """查询注册的账号信息 + """查询纳管账号信息 - 查询组织里某个注册的账号信息。 + 查询组织里某个纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -1944,7 +2024,7 @@ def show_managed_account_invoker(self, request): def _show_managed_account_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-account/{managed_account_id}", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}", "request_type": request.__class__.__name__, "response_type": "ShowManagedAccountResponse" } @@ -1962,8 +2042,6 @@ def _show_managed_account_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -1990,9 +2068,9 @@ def _show_managed_account_http_info(cls, request): return http_info def show_managed_core_account(self, request): - """查询核心账号 + """列出核心纳管账号 - 查询组织里的所有核心账号信息。 + 列出组织里的所有核心纳管账号信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2011,7 +2089,7 @@ def show_managed_core_account_invoker(self, request): def _show_managed_core_account_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-core-account", + "resource_path": "/v1/managed-organization/managed-core-accounts", "request_type": request.__class__.__name__, "response_type": "ShowManagedCoreAccountResponse" } @@ -2029,8 +2107,6 @@ def _show_managed_core_account_http_info(cls, request): query_params.append(('account_type', local_var_params['account_type'])) header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -2057,9 +2133,9 @@ def _show_managed_core_account_http_info(cls, request): return http_info def show_managed_organizational_unit(self, request): - """查询纳管的OU信息 + """查询已注册OU信息 - 查询在RGC服务里注册的OU信息。 + 查询在RGC服务里的注册OU信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2078,7 +2154,7 @@ def show_managed_organizational_unit_invoker(self, request): def _show_managed_organizational_unit_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/managed-organization/managed-organization-unit/{managed_organization_unit_id}", + "resource_path": "/v1/managed-organization/managed-organization-units/{managed_organization_unit_id}", "request_type": request.__class__.__name__, "response_type": "ShowManagedOrganizationalUnitResponse" } @@ -2096,8 +2172,6 @@ def _show_managed_organizational_unit_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} @@ -2163,8 +2237,71 @@ def _show_operation_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['AccessKeyAuth'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def un_enroll_account(self, request): + """取消纳管账号 + + 将组织里的某个账号从RGC服务里取消纳管。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UnEnrollAccount + :type request: :class:`huaweicloudsdkrgc.v1.UnEnrollAccountRequest` + :rtype: :class:`huaweicloudsdkrgc.v1.UnEnrollAccountResponse` + """ + http_info = self._un_enroll_account_http_info(request) + return self._call_api(**http_info) + + def un_enroll_account_invoker(self, request): + http_info = self._un_enroll_account_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _un_enroll_account_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}/un-enroll", + "request_type": request.__class__.__name__, + "response_type": "UnEnrollAccountResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'managed_account_id' in local_var_params: + path_params['managed_account_id'] = local_var_params['managed_account_id'] + + query_params = [] + + header_params = {} form_params = {} @@ -2191,9 +2328,9 @@ def _show_operation_http_info(cls, request): return http_info def update_managed_account(self, request): - """更新注册的账号 + """更新纳管账号 - 更新组织里某个已在RGC服务注册的账号。 + 更新组织里某个已在RGC服务的纳管账号。 Please refer to HUAWEI cloud API Explorer for details. @@ -2212,7 +2349,7 @@ def update_managed_account_invoker(self, request): def _update_managed_account_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/managed-organization/managed-account/{managed_account_id}/update", + "resource_path": "/v1/managed-organization/managed-accounts/{managed_account_id}/update", "request_type": request.__class__.__name__, "response_type": "UpdateManagedAccountResponse" } @@ -2230,8 +2367,6 @@ def _update_managed_account_http_info(cls, request): query_params = [] header_params = {} - if 'x_security_token' in local_var_params: - header_params['X-Security-Token'] = local_var_params['x_security_token'] form_params = {} diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 4523779975..2135c51e38 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py index 75468096f5..2b4c268ce8 100644 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class RmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Rms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index edc211f1aa..81f1587f78 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/resend_req.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/resend_req.py index e2486529c1..ca3d521db8 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/resend_req.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/resend_req.py @@ -18,23 +18,27 @@ class ResendReq: openapi_types = { 'group': 'str', + 'topic': 'str', 'client_id': 'str', 'msg_id_list': 'list[str]' } attribute_map = { 'group': 'group', + 'topic': 'topic', 'client_id': 'client_id', 'msg_id_list': 'msg_id_list' } - def __init__(self, group=None, client_id=None, msg_id_list=None): + def __init__(self, group=None, topic=None, client_id=None, msg_id_list=None): """ResendReq The model defined in huaweicloud sdk :param group: Group ID。 :type group: str + :param topic: 消息所属topic。 + :type topic: str :param client_id: 客户端ID。 :type client_id: str :param msg_id_list: 消息列表。 @@ -44,12 +48,15 @@ def __init__(self, group=None, client_id=None, msg_id_list=None): self._group = None + self._topic = None self._client_id = None self._msg_id_list = None self.discriminator = None if group is not None: self.group = group + if topic is not None: + self.topic = topic if client_id is not None: self.client_id = client_id if msg_id_list is not None: @@ -77,6 +84,28 @@ def group(self, group): """ self._group = group + @property + def topic(self): + """Gets the topic of this ResendReq. + + 消息所属topic。 + + :return: The topic of this ResendReq. + :rtype: str + """ + return self._topic + + @topic.setter + def topic(self, topic): + """Sets the topic of this ResendReq. + + 消息所属topic。 + + :param topic: The topic of this ResendReq. + :type topic: str + """ + self._topic = topic + @property def client_id(self): """Gets the client_id of this ResendReq. diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py index 937233f353..741a2114ef 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,6 +52,8 @@ class RocketMQRegion: "https://dms.me-east-1.myhuaweicloud.com") NA_MEXICO_1 = Region("na-mexico-1", "https://dms.na-mexico-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://dms.cn-east-5.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -80,14 +79,15 @@ class RocketMQRegion: "eu-west-0": EU_WEST_0, "me-east-1": ME_EAST_1, "na-mexico-1": NA_MEXICO_1, + "cn-east-5": CN_EAST_5, } @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +96,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'RocketMQ': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 84b7c01a48..76ec410d6a 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py b/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py index bd28fbfcc2..0218746990 100644 --- a/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py +++ b/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class RomaRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Roma': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index b176de8c31..aa4be20c93 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] 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 b4ce830e08..738f9ecaef 100644 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class SaRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Sa': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py index b4ce830e08..738f9ecaef 100644 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class SaRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Sa': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 1d156d5c9a..7a6df9d71d 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py index b028c2b277..7b35c5d29a 100644 --- a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py +++ b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class ScmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Scm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 4170391257..68f776ea5f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py b/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py index 7e2928e409..4e9caf2bdc 100644 --- a/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py +++ b/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -37,9 +34,9 @@ class SdrsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -48,6 +45,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Sdrs': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 501315bc35..6dc1cd9d13 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py index 22f21847f2..25f90e7312 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class SecMasterRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'SecMaster': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py index 22f21847f2..25f90e7312 100644 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class SecMasterRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'SecMaster': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 8abb3c0b4c..b9134ee34e 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py index b435ace33d..5720f1df4a 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -61,9 +58,9 @@ class ServiceStageRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -72,6 +69,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'ServiceStage': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/region/servicestage_region.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/region/servicestage_region.py index b435ace33d..5720f1df4a 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/region/servicestage_region.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/region/servicestage_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -61,9 +58,9 @@ class ServiceStageRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -72,6 +69,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'ServiceStage': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 3fd9a761be..9a8fe8d24a 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py index b131b4bedc..3f65486424 100644 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class SFSTurboRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'SFSTurbo': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index e703ad96eb..8ccdcb353d 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py b/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py index 7773c8edb2..4385ab63c6 100644 --- a/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py +++ b/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class SisRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Sis': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index ae1e663908..d545d58eff 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py b/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py index b87d8a150e..eecd6a1af1 100644 --- a/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py +++ b/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class SmnRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Smn': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index e20beda365..1c510f60c8 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py index 3d827a39e9..1fcec9ca0c 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class SmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Sms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 3d915f4ba0..6a0de1e088 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py b/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py index d1d4a86623..3612d2147c 100644 --- a/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py +++ b/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -79,9 +76,9 @@ class SwrRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -90,6 +87,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Swr': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 78b96a38e2..debaa8673f 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/huaweicloudsdktics/v1/region/tics_region.py b/huaweicloud-sdk-tics/huaweicloudsdktics/v1/region/tics_region.py index 927943d5d3..9ccd289ede 100644 --- a/huaweicloud-sdk-tics/huaweicloudsdktics/v1/region/tics_region.py +++ b/huaweicloud-sdk-tics/huaweicloudsdktics/v1/region/tics_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class TicsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Tics': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 6bed429789..568d0b338d 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py b/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py index c9aaf7bc40..c5618ba21a 100644 --- a/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py +++ b/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -25,9 +22,9 @@ class TmsRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -36,6 +33,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Tms': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index ec0a1a931f..ba12c51cab 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py b/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py index 1b72a3447b..df5c573e47 100644 --- a/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py +++ b/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -22,9 +19,9 @@ class UgoRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -33,6 +30,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Ugo': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 4d987c6219..63f6d34397 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py b/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py index 62d7886653..662c518aec 100644 --- a/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py +++ b/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -40,9 +37,9 @@ class VasRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -51,6 +48,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vas': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 7a2b6380af..b510605271 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py b/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py index 325c0160f1..7d0846122a 100644 --- a/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py +++ b/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -19,9 +16,9 @@ class VcmRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -30,6 +27,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vcm': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index 998bf9464e..191a311395 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py index 5fa113ee2e..f40dd90cba 100644 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -34,9 +31,9 @@ class VodRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -45,6 +42,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vod': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index f7e49647fc..9e9f92b50c 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py index 7f3cc491e3..c17fe642fd 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -85,9 +82,9 @@ class VpcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +93,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vpc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py index 7f3cc491e3..c17fe642fd 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -85,9 +82,9 @@ class VpcRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -96,6 +93,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vpc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 008c1c1c4a..9049287ddd 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py index 516b3916b8..326b14ac52 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -76,9 +73,9 @@ class VpcepRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -87,6 +84,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vpcep': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index b6c6e9886a..97065ece51 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py index 5268e34781..5e55854550 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py @@ -6,9 +6,15 @@ from huaweicloudsdkvpn.v5.vpn_async_client import VpnAsyncClient from huaweicloudsdkvpn.v5.model.availability_zones import AvailabilityZones +from huaweicloudsdkvpn.v5.model.batch_create_resource_tags_request import BatchCreateResourceTagsRequest +from huaweicloudsdkvpn.v5.model.batch_create_resource_tags_response import BatchCreateResourceTagsResponse +from huaweicloudsdkvpn.v5.model.batch_delete_resource_tags_request import BatchDeleteResourceTagsRequest +from huaweicloudsdkvpn.v5.model.batch_delete_resource_tags_response import BatchDeleteResourceTagsResponse from huaweicloudsdkvpn.v5.model.ca_certificate import CaCertificate from huaweicloudsdkvpn.v5.model.ca_certificate_request import CaCertificateRequest from huaweicloudsdkvpn.v5.model.connection_monitor_info import ConnectionMonitorInfo +from huaweicloudsdkvpn.v5.model.count_resources_by_tags_request import CountResourcesByTagsRequest +from huaweicloudsdkvpn.v5.model.count_resources_by_tags_response import CountResourcesByTagsResponse from huaweicloudsdkvpn.v5.model.create_cgw_request import CreateCgwRequest from huaweicloudsdkvpn.v5.model.create_cgw_request_body import CreateCgwRequestBody from huaweicloudsdkvpn.v5.model.create_cgw_request_body_content import CreateCgwRequestBodyContent @@ -19,6 +25,7 @@ from huaweicloudsdkvpn.v5.model.create_connection_monitor_request_body_content import CreateConnectionMonitorRequestBodyContent from huaweicloudsdkvpn.v5.model.create_connection_monitor_response import CreateConnectionMonitorResponse from huaweicloudsdkvpn.v5.model.create_request_eip import CreateRequestEip +from huaweicloudsdkvpn.v5.model.create_resources_tags_request_body import CreateResourcesTagsRequestBody from huaweicloudsdkvpn.v5.model.create_response_vpn_connection import CreateResponseVpnConnection from huaweicloudsdkvpn.v5.model.create_response_vpn_gateway import CreateResponseVpnGateway from huaweicloudsdkvpn.v5.model.create_vgw_certificate_request import CreateVgwCertificateRequest @@ -35,6 +42,7 @@ from huaweicloudsdkvpn.v5.model.delete_cgw_response import DeleteCgwResponse from huaweicloudsdkvpn.v5.model.delete_connection_monitor_request import DeleteConnectionMonitorRequest from huaweicloudsdkvpn.v5.model.delete_connection_monitor_response import DeleteConnectionMonitorResponse +from huaweicloudsdkvpn.v5.model.delete_resources_tags_request_body import DeleteResourcesTagsRequestBody from huaweicloudsdkvpn.v5.model.delete_vgw_request import DeleteVgwRequest from huaweicloudsdkvpn.v5.model.delete_vgw_response import DeleteVgwResponse from huaweicloudsdkvpn.v5.model.delete_vpn_connection_request import DeleteVpnConnectionRequest @@ -48,14 +56,23 @@ from huaweicloudsdkvpn.v5.model.list_cgws_response import ListCgwsResponse from huaweicloudsdkvpn.v5.model.list_connection_monitors_request import ListConnectionMonitorsRequest from huaweicloudsdkvpn.v5.model.list_connection_monitors_response import ListConnectionMonitorsResponse +from huaweicloudsdkvpn.v5.model.list_project_tags_request import ListProjectTagsRequest +from huaweicloudsdkvpn.v5.model.list_project_tags_response import ListProjectTagsResponse +from huaweicloudsdkvpn.v5.model.list_resources_by_tags_request import ListResourcesByTagsRequest +from huaweicloudsdkvpn.v5.model.list_resources_by_tags_response import ListResourcesByTagsResponse from huaweicloudsdkvpn.v5.model.list_vgws_request import ListVgwsRequest from huaweicloudsdkvpn.v5.model.list_vgws_response import ListVgwsResponse from huaweicloudsdkvpn.v5.model.list_vpn_connections_request import ListVpnConnectionsRequest from huaweicloudsdkvpn.v5.model.list_vpn_connections_response import ListVpnConnectionsResponse +from huaweicloudsdkvpn.v5.model.match import Match from huaweicloudsdkvpn.v5.model.page_info import PageInfo from huaweicloudsdkvpn.v5.model.policy_rule import PolicyRule +from huaweicloudsdkvpn.v5.model.policy_template import PolicyTemplate +from huaweicloudsdkvpn.v5.model.query_resources_request_body import QueryResourcesRequestBody from huaweicloudsdkvpn.v5.model.quota import Quota from huaweicloudsdkvpn.v5.model.quotas import Quotas +from huaweicloudsdkvpn.v5.model.resource import Resource +from huaweicloudsdkvpn.v5.model.resource_tag import ResourceTag from huaweicloudsdkvpn.v5.model.response_customer_gateway import ResponseCustomerGateway from huaweicloudsdkvpn.v5.model.response_eip import ResponseEip from huaweicloudsdkvpn.v5.model.response_vpn_connection import ResponseVpnConnection @@ -66,12 +83,15 @@ from huaweicloudsdkvpn.v5.model.show_connection_monitor_response import ShowConnectionMonitorResponse from huaweicloudsdkvpn.v5.model.show_quotas_info_request import ShowQuotasInfoRequest from huaweicloudsdkvpn.v5.model.show_quotas_info_response import ShowQuotasInfoResponse +from huaweicloudsdkvpn.v5.model.show_resource_tags_request import ShowResourceTagsRequest +from huaweicloudsdkvpn.v5.model.show_resource_tags_response import ShowResourceTagsResponse from huaweicloudsdkvpn.v5.model.show_vgw_request import ShowVgwRequest from huaweicloudsdkvpn.v5.model.show_vgw_response import ShowVgwResponse from huaweicloudsdkvpn.v5.model.show_vpn_connection_request import ShowVpnConnectionRequest from huaweicloudsdkvpn.v5.model.show_vpn_connection_response import ShowVpnConnectionResponse from huaweicloudsdkvpn.v5.model.show_vpn_gateway_certificate_request import ShowVpnGatewayCertificateRequest from huaweicloudsdkvpn.v5.model.show_vpn_gateway_certificate_response import ShowVpnGatewayCertificateResponse +from huaweicloudsdkvpn.v5.model.tag import Tag from huaweicloudsdkvpn.v5.model.update_cgw_request import UpdateCgwRequest from huaweicloudsdkvpn.v5.model.update_cgw_request_body import UpdateCgwRequestBody from huaweicloudsdkvpn.v5.model.update_cgw_request_body_content import UpdateCgwRequestBodyContent @@ -79,10 +99,13 @@ from huaweicloudsdkvpn.v5.model.update_dpd import UpdateDpd from huaweicloudsdkvpn.v5.model.update_ike_policy import UpdateIkePolicy from huaweicloudsdkvpn.v5.model.update_ipsec_policy import UpdateIpsecPolicy +from huaweicloudsdkvpn.v5.model.update_request_policy_template import UpdateRequestPolicyTemplate from huaweicloudsdkvpn.v5.model.update_response_vpn_connection import UpdateResponseVpnConnection from huaweicloudsdkvpn.v5.model.update_response_vpn_gateway import UpdateResponseVpnGateway from huaweicloudsdkvpn.v5.model.update_vgw_certificate_request import UpdateVgwCertificateRequest from huaweicloudsdkvpn.v5.model.update_vgw_certificate_response import UpdateVgwCertificateResponse +from huaweicloudsdkvpn.v5.model.update_vgw_ike_policy import UpdateVgwIkePolicy +from huaweicloudsdkvpn.v5.model.update_vgw_ipsec_policy import UpdateVgwIpsecPolicy from huaweicloudsdkvpn.v5.model.update_vgw_request import UpdateVgwRequest from huaweicloudsdkvpn.v5.model.update_vgw_request_body import UpdateVgwRequestBody from huaweicloudsdkvpn.v5.model.update_vgw_request_body_content import UpdateVgwRequestBodyContent @@ -91,9 +114,12 @@ from huaweicloudsdkvpn.v5.model.update_vpn_connection_request_body import UpdateVpnConnectionRequestBody from huaweicloudsdkvpn.v5.model.update_vpn_connection_request_body_content import UpdateVpnConnectionRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vpn_connection_response import UpdateVpnConnectionResponse +from huaweicloudsdkvpn.v5.model.vgw_ike_policy import VgwIkePolicy +from huaweicloudsdkvpn.v5.model.vgw_ipsec_policy import VgwIpsecPolicy from huaweicloudsdkvpn.v5.model.vpn_gateway_availability_zones import VpnGatewayAvailabilityZones from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate import VpnGatewayCertificate from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_config import VpnGatewayCertificateConfig from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_request_body import VpnGatewayCertificateRequestBody from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_request_body_content import VpnGatewayCertificateRequestBodyContent +from huaweicloudsdkvpn.v5.model.vpn_resource_tag import VpnResourceTag diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py index ade9a721ee..ec6c54859a 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py @@ -4,9 +4,15 @@ # import models into model package from huaweicloudsdkvpn.v5.model.availability_zones import AvailabilityZones +from huaweicloudsdkvpn.v5.model.batch_create_resource_tags_request import BatchCreateResourceTagsRequest +from huaweicloudsdkvpn.v5.model.batch_create_resource_tags_response import BatchCreateResourceTagsResponse +from huaweicloudsdkvpn.v5.model.batch_delete_resource_tags_request import BatchDeleteResourceTagsRequest +from huaweicloudsdkvpn.v5.model.batch_delete_resource_tags_response import BatchDeleteResourceTagsResponse from huaweicloudsdkvpn.v5.model.ca_certificate import CaCertificate from huaweicloudsdkvpn.v5.model.ca_certificate_request import CaCertificateRequest from huaweicloudsdkvpn.v5.model.connection_monitor_info import ConnectionMonitorInfo +from huaweicloudsdkvpn.v5.model.count_resources_by_tags_request import CountResourcesByTagsRequest +from huaweicloudsdkvpn.v5.model.count_resources_by_tags_response import CountResourcesByTagsResponse from huaweicloudsdkvpn.v5.model.create_cgw_request import CreateCgwRequest from huaweicloudsdkvpn.v5.model.create_cgw_request_body import CreateCgwRequestBody from huaweicloudsdkvpn.v5.model.create_cgw_request_body_content import CreateCgwRequestBodyContent @@ -17,6 +23,7 @@ from huaweicloudsdkvpn.v5.model.create_connection_monitor_request_body_content import CreateConnectionMonitorRequestBodyContent from huaweicloudsdkvpn.v5.model.create_connection_monitor_response import CreateConnectionMonitorResponse from huaweicloudsdkvpn.v5.model.create_request_eip import CreateRequestEip +from huaweicloudsdkvpn.v5.model.create_resources_tags_request_body import CreateResourcesTagsRequestBody from huaweicloudsdkvpn.v5.model.create_response_vpn_connection import CreateResponseVpnConnection from huaweicloudsdkvpn.v5.model.create_response_vpn_gateway import CreateResponseVpnGateway from huaweicloudsdkvpn.v5.model.create_vgw_certificate_request import CreateVgwCertificateRequest @@ -33,6 +40,7 @@ from huaweicloudsdkvpn.v5.model.delete_cgw_response import DeleteCgwResponse from huaweicloudsdkvpn.v5.model.delete_connection_monitor_request import DeleteConnectionMonitorRequest from huaweicloudsdkvpn.v5.model.delete_connection_monitor_response import DeleteConnectionMonitorResponse +from huaweicloudsdkvpn.v5.model.delete_resources_tags_request_body import DeleteResourcesTagsRequestBody from huaweicloudsdkvpn.v5.model.delete_vgw_request import DeleteVgwRequest from huaweicloudsdkvpn.v5.model.delete_vgw_response import DeleteVgwResponse from huaweicloudsdkvpn.v5.model.delete_vpn_connection_request import DeleteVpnConnectionRequest @@ -46,14 +54,23 @@ from huaweicloudsdkvpn.v5.model.list_cgws_response import ListCgwsResponse from huaweicloudsdkvpn.v5.model.list_connection_monitors_request import ListConnectionMonitorsRequest from huaweicloudsdkvpn.v5.model.list_connection_monitors_response import ListConnectionMonitorsResponse +from huaweicloudsdkvpn.v5.model.list_project_tags_request import ListProjectTagsRequest +from huaweicloudsdkvpn.v5.model.list_project_tags_response import ListProjectTagsResponse +from huaweicloudsdkvpn.v5.model.list_resources_by_tags_request import ListResourcesByTagsRequest +from huaweicloudsdkvpn.v5.model.list_resources_by_tags_response import ListResourcesByTagsResponse from huaweicloudsdkvpn.v5.model.list_vgws_request import ListVgwsRequest from huaweicloudsdkvpn.v5.model.list_vgws_response import ListVgwsResponse from huaweicloudsdkvpn.v5.model.list_vpn_connections_request import ListVpnConnectionsRequest from huaweicloudsdkvpn.v5.model.list_vpn_connections_response import ListVpnConnectionsResponse +from huaweicloudsdkvpn.v5.model.match import Match from huaweicloudsdkvpn.v5.model.page_info import PageInfo from huaweicloudsdkvpn.v5.model.policy_rule import PolicyRule +from huaweicloudsdkvpn.v5.model.policy_template import PolicyTemplate +from huaweicloudsdkvpn.v5.model.query_resources_request_body import QueryResourcesRequestBody from huaweicloudsdkvpn.v5.model.quota import Quota from huaweicloudsdkvpn.v5.model.quotas import Quotas +from huaweicloudsdkvpn.v5.model.resource import Resource +from huaweicloudsdkvpn.v5.model.resource_tag import ResourceTag from huaweicloudsdkvpn.v5.model.response_customer_gateway import ResponseCustomerGateway from huaweicloudsdkvpn.v5.model.response_eip import ResponseEip from huaweicloudsdkvpn.v5.model.response_vpn_connection import ResponseVpnConnection @@ -64,12 +81,15 @@ from huaweicloudsdkvpn.v5.model.show_connection_monitor_response import ShowConnectionMonitorResponse from huaweicloudsdkvpn.v5.model.show_quotas_info_request import ShowQuotasInfoRequest from huaweicloudsdkvpn.v5.model.show_quotas_info_response import ShowQuotasInfoResponse +from huaweicloudsdkvpn.v5.model.show_resource_tags_request import ShowResourceTagsRequest +from huaweicloudsdkvpn.v5.model.show_resource_tags_response import ShowResourceTagsResponse from huaweicloudsdkvpn.v5.model.show_vgw_request import ShowVgwRequest from huaweicloudsdkvpn.v5.model.show_vgw_response import ShowVgwResponse from huaweicloudsdkvpn.v5.model.show_vpn_connection_request import ShowVpnConnectionRequest from huaweicloudsdkvpn.v5.model.show_vpn_connection_response import ShowVpnConnectionResponse from huaweicloudsdkvpn.v5.model.show_vpn_gateway_certificate_request import ShowVpnGatewayCertificateRequest from huaweicloudsdkvpn.v5.model.show_vpn_gateway_certificate_response import ShowVpnGatewayCertificateResponse +from huaweicloudsdkvpn.v5.model.tag import Tag from huaweicloudsdkvpn.v5.model.update_cgw_request import UpdateCgwRequest from huaweicloudsdkvpn.v5.model.update_cgw_request_body import UpdateCgwRequestBody from huaweicloudsdkvpn.v5.model.update_cgw_request_body_content import UpdateCgwRequestBodyContent @@ -77,10 +97,13 @@ from huaweicloudsdkvpn.v5.model.update_dpd import UpdateDpd from huaweicloudsdkvpn.v5.model.update_ike_policy import UpdateIkePolicy from huaweicloudsdkvpn.v5.model.update_ipsec_policy import UpdateIpsecPolicy +from huaweicloudsdkvpn.v5.model.update_request_policy_template import UpdateRequestPolicyTemplate from huaweicloudsdkvpn.v5.model.update_response_vpn_connection import UpdateResponseVpnConnection from huaweicloudsdkvpn.v5.model.update_response_vpn_gateway import UpdateResponseVpnGateway from huaweicloudsdkvpn.v5.model.update_vgw_certificate_request import UpdateVgwCertificateRequest from huaweicloudsdkvpn.v5.model.update_vgw_certificate_response import UpdateVgwCertificateResponse +from huaweicloudsdkvpn.v5.model.update_vgw_ike_policy import UpdateVgwIkePolicy +from huaweicloudsdkvpn.v5.model.update_vgw_ipsec_policy import UpdateVgwIpsecPolicy from huaweicloudsdkvpn.v5.model.update_vgw_request import UpdateVgwRequest from huaweicloudsdkvpn.v5.model.update_vgw_request_body import UpdateVgwRequestBody from huaweicloudsdkvpn.v5.model.update_vgw_request_body_content import UpdateVgwRequestBodyContent @@ -89,8 +112,11 @@ from huaweicloudsdkvpn.v5.model.update_vpn_connection_request_body import UpdateVpnConnectionRequestBody from huaweicloudsdkvpn.v5.model.update_vpn_connection_request_body_content import UpdateVpnConnectionRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vpn_connection_response import UpdateVpnConnectionResponse +from huaweicloudsdkvpn.v5.model.vgw_ike_policy import VgwIkePolicy +from huaweicloudsdkvpn.v5.model.vgw_ipsec_policy import VgwIpsecPolicy from huaweicloudsdkvpn.v5.model.vpn_gateway_availability_zones import VpnGatewayAvailabilityZones from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate import VpnGatewayCertificate from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_config import VpnGatewayCertificateConfig from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_request_body import VpnGatewayCertificateRequestBody from huaweicloudsdkvpn.v5.model.vpn_gateway_certificate_request_body_content import VpnGatewayCertificateRequestBodyContent +from huaweicloudsdkvpn.v5.model.vpn_resource_tag import VpnResourceTag diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/availability_zones.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/availability_zones.py index f776e46ae8..f4b27f4f2b 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/availability_zones.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/availability_zones.py @@ -20,6 +20,8 @@ class AvailabilityZones: 'basic': 'VpnGatewayAvailabilityZones', 'professional1': 'VpnGatewayAvailabilityZones', 'professional2': 'VpnGatewayAvailabilityZones', + 'professional1_non_fixed_ip': 'VpnGatewayAvailabilityZones', + 'professional2_non_fixed_ip': 'VpnGatewayAvailabilityZones', 'gm': 'VpnGatewayAvailabilityZones' } @@ -27,10 +29,12 @@ class AvailabilityZones: 'basic': 'basic', 'professional1': 'professional1', 'professional2': 'professional2', + 'professional1_non_fixed_ip': 'Professional1-NonFixedIP', + 'professional2_non_fixed_ip': 'Professional2-NonFixedIP', 'gm': 'gm' } - def __init__(self, basic=None, professional1=None, professional2=None, gm=None): + def __init__(self, basic=None, professional1=None, professional2=None, professional1_non_fixed_ip=None, professional2_non_fixed_ip=None, gm=None): """AvailabilityZones The model defined in huaweicloud sdk @@ -41,6 +45,10 @@ def __init__(self, basic=None, professional1=None, professional2=None, gm=None): :type professional1: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` :param professional2: :type professional2: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + :param professional1_non_fixed_ip: + :type professional1_non_fixed_ip: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + :param professional2_non_fixed_ip: + :type professional2_non_fixed_ip: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` :param gm: :type gm: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` """ @@ -50,6 +58,8 @@ def __init__(self, basic=None, professional1=None, professional2=None, gm=None): self._basic = None self._professional1 = None self._professional2 = None + self._professional1_non_fixed_ip = None + self._professional2_non_fixed_ip = None self._gm = None self.discriminator = None @@ -59,6 +69,10 @@ def __init__(self, basic=None, professional1=None, professional2=None, gm=None): self.professional1 = professional1 if professional2 is not None: self.professional2 = professional2 + if professional1_non_fixed_ip is not None: + self.professional1_non_fixed_ip = professional1_non_fixed_ip + if professional2_non_fixed_ip is not None: + self.professional2_non_fixed_ip = professional2_non_fixed_ip if gm is not None: self.gm = gm @@ -116,6 +130,42 @@ def professional2(self, professional2): """ self._professional2 = professional2 + @property + def professional1_non_fixed_ip(self): + """Gets the professional1_non_fixed_ip of this AvailabilityZones. + + :return: The professional1_non_fixed_ip of this AvailabilityZones. + :rtype: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + """ + return self._professional1_non_fixed_ip + + @professional1_non_fixed_ip.setter + def professional1_non_fixed_ip(self, professional1_non_fixed_ip): + """Sets the professional1_non_fixed_ip of this AvailabilityZones. + + :param professional1_non_fixed_ip: The professional1_non_fixed_ip of this AvailabilityZones. + :type professional1_non_fixed_ip: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + """ + self._professional1_non_fixed_ip = professional1_non_fixed_ip + + @property + def professional2_non_fixed_ip(self): + """Gets the professional2_non_fixed_ip of this AvailabilityZones. + + :return: The professional2_non_fixed_ip of this AvailabilityZones. + :rtype: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + """ + return self._professional2_non_fixed_ip + + @professional2_non_fixed_ip.setter + def professional2_non_fixed_ip(self, professional2_non_fixed_ip): + """Sets the professional2_non_fixed_ip of this AvailabilityZones. + + :param professional2_non_fixed_ip: The professional2_non_fixed_ip of this AvailabilityZones. + :type professional2_non_fixed_ip: :class:`huaweicloudsdkvpn.v5.VpnGatewayAvailabilityZones` + """ + self._professional2_non_fixed_ip = professional2_non_fixed_ip + @property def gm(self): """Gets the gm of this AvailabilityZones. diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_request.py new file mode 100644 index 0000000000..24399157ab --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchCreateResourceTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str', + 'resource_id': 'str', + 'body': 'CreateResourcesTagsRequestBody' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'resource_id': 'resource_id', + 'body': 'body' + } + + def __init__(self, resource_type=None, resource_id=None, body=None): + """BatchCreateResourceTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + :param resource_id: 资源ID + :type resource_id: str + :param body: Body of the BatchCreateResourceTagsRequest + :type body: :class:`huaweicloudsdkvpn.v5.CreateResourcesTagsRequestBody` + """ + + + + self._resource_type = None + self._resource_id = None + self._body = None + self.discriminator = None + + self.resource_type = resource_type + self.resource_id = resource_id + if body is not None: + self.body = body + + @property + def resource_type(self): + """Gets the resource_type of this BatchCreateResourceTagsRequest. + + 资源类型 + + :return: The resource_type of this BatchCreateResourceTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this BatchCreateResourceTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this BatchCreateResourceTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def resource_id(self): + """Gets the resource_id of this BatchCreateResourceTagsRequest. + + 资源ID + + :return: The resource_id of this BatchCreateResourceTagsRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this BatchCreateResourceTagsRequest. + + 资源ID + + :param resource_id: The resource_id of this BatchCreateResourceTagsRequest. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def body(self): + """Gets the body of this BatchCreateResourceTagsRequest. + + :return: The body of this BatchCreateResourceTagsRequest. + :rtype: :class:`huaweicloudsdkvpn.v5.CreateResourcesTagsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchCreateResourceTagsRequest. + + :param body: The body of this BatchCreateResourceTagsRequest. + :type body: :class:`huaweicloudsdkvpn.v5.CreateResourcesTagsRequestBody` + """ + 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, BatchCreateResourceTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_response.py new file mode 100644 index 0000000000..bc6d786c61 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_create_resource_tags_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchCreateResourceTagsResponse(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): + """BatchCreateResourceTagsResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchCreateResourceTagsResponse, 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, BatchCreateResourceTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_request.py new file mode 100644 index 0000000000..f404920b68 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteResourceTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str', + 'resource_id': 'str', + 'body': 'DeleteResourcesTagsRequestBody' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'resource_id': 'resource_id', + 'body': 'body' + } + + def __init__(self, resource_type=None, resource_id=None, body=None): + """BatchDeleteResourceTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + :param resource_id: 资源ID + :type resource_id: str + :param body: Body of the BatchDeleteResourceTagsRequest + :type body: :class:`huaweicloudsdkvpn.v5.DeleteResourcesTagsRequestBody` + """ + + + + self._resource_type = None + self._resource_id = None + self._body = None + self.discriminator = None + + self.resource_type = resource_type + self.resource_id = resource_id + if body is not None: + self.body = body + + @property + def resource_type(self): + """Gets the resource_type of this BatchDeleteResourceTagsRequest. + + 资源类型 + + :return: The resource_type of this BatchDeleteResourceTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this BatchDeleteResourceTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this BatchDeleteResourceTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def resource_id(self): + """Gets the resource_id of this BatchDeleteResourceTagsRequest. + + 资源ID + + :return: The resource_id of this BatchDeleteResourceTagsRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this BatchDeleteResourceTagsRequest. + + 资源ID + + :param resource_id: The resource_id of this BatchDeleteResourceTagsRequest. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def body(self): + """Gets the body of this BatchDeleteResourceTagsRequest. + + :return: The body of this BatchDeleteResourceTagsRequest. + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteResourcesTagsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchDeleteResourceTagsRequest. + + :param body: The body of this BatchDeleteResourceTagsRequest. + :type body: :class:`huaweicloudsdkvpn.v5.DeleteResourcesTagsRequestBody` + """ + 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, BatchDeleteResourceTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_response.py new file mode 100644 index 0000000000..66b79801f2 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/batch_delete_resource_tags_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteResourceTagsResponse(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): + """BatchDeleteResourceTagsResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchDeleteResourceTagsResponse, 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, BatchDeleteResourceTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate.py index ed5155f9e8..5eda9034d9 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate.py @@ -15,8 +15,10 @@ class CaCertificate: and the value is json key in definition. """ sensitive_list = [] + sensitive_list.append('issuer') openapi_types = { + 'id': 'str', 'serial_number': 'str', 'signature_algorithm': 'str', 'issuer': 'str', @@ -26,6 +28,7 @@ class CaCertificate: } attribute_map = { + 'id': 'id', 'serial_number': 'serial_number', 'signature_algorithm': 'signature_algorithm', 'issuer': 'issuer', @@ -34,11 +37,13 @@ class CaCertificate: 'is_updatable': 'is_updatable' } - def __init__(self, serial_number=None, signature_algorithm=None, issuer=None, subject=None, expire_time=None, is_updatable=None): + def __init__(self, id=None, serial_number=None, signature_algorithm=None, issuer=None, subject=None, expire_time=None, is_updatable=None): """CaCertificate The model defined in huaweicloud sdk + :param id: 证书ID + :type id: str :param serial_number: 证书序列号 :type serial_number: str :param signature_algorithm: 签名算法 @@ -55,6 +60,7 @@ def __init__(self, serial_number=None, signature_algorithm=None, issuer=None, su + self._id = None self._serial_number = None self._signature_algorithm = None self._issuer = None @@ -63,6 +69,8 @@ def __init__(self, serial_number=None, signature_algorithm=None, issuer=None, su self._is_updatable = None self.discriminator = None + if id is not None: + self.id = id if serial_number is not None: self.serial_number = serial_number if signature_algorithm is not None: @@ -76,6 +84,28 @@ def __init__(self, serial_number=None, signature_algorithm=None, issuer=None, su if is_updatable is not None: self.is_updatable = is_updatable + @property + def id(self): + """Gets the id of this CaCertificate. + + 证书ID + + :return: The id of this CaCertificate. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CaCertificate. + + 证书ID + + :param id: The id of this CaCertificate. + :type id: str + """ + self._id = id + @property def serial_number(self): """Gets the serial_number of this CaCertificate. diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate_request.py index cfdda45210..d9bcca2398 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate_request.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/ca_certificate_request.py @@ -18,30 +18,59 @@ class CaCertificateRequest: sensitive_list.append('content') openapi_types = { + 'id': 'str', 'content': 'str' } attribute_map = { + 'id': 'id', 'content': 'content' } - def __init__(self, content=None): + def __init__(self, id=None, content=None): """CaCertificateRequest The model defined in huaweicloud sdk + :param id: 使用已有证书ID + :type id: str :param content: 对端网关CA证书内容 :type content: str """ + self._id = None self._content = None self.discriminator = None + if id is not None: + self.id = id if content is not None: self.content = content + @property + def id(self): + """Gets the id of this CaCertificateRequest. + + 使用已有证书ID + + :return: The id of this CaCertificateRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CaCertificateRequest. + + 使用已有证书ID + + :param id: The id of this CaCertificateRequest. + :type id: str + """ + self._id = id + @property def content(self): """Gets the content of this CaCertificateRequest. diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_request.py new file mode 100644 index 0000000000..c3354db0c5 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CountResourcesByTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str', + 'body': 'QueryResourcesRequestBody' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'body': 'body' + } + + def __init__(self, resource_type=None, body=None): + """CountResourcesByTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + :param body: Body of the CountResourcesByTagsRequest + :type body: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + + + + self._resource_type = None + self._body = None + self.discriminator = None + + self.resource_type = resource_type + if body is not None: + self.body = body + + @property + def resource_type(self): + """Gets the resource_type of this CountResourcesByTagsRequest. + + 资源类型 + + :return: The resource_type of this CountResourcesByTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this CountResourcesByTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this CountResourcesByTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def body(self): + """Gets the body of this CountResourcesByTagsRequest. + + :return: The body of this CountResourcesByTagsRequest. + :rtype: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CountResourcesByTagsRequest. + + :param body: The body of this CountResourcesByTagsRequest. + :type body: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + 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, CountResourcesByTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_response.py new file mode 100644 index 0000000000..1dc274b6b0 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/count_resources_by_tags_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CountResourcesByTagsResponse(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 = { + 'total_count': 'int' + } + + attribute_map = { + 'total_count': 'total_count' + } + + def __init__(self, total_count=None): + """CountResourcesByTagsResponse + + The model defined in huaweicloud sdk + + :param total_count: + :type total_count: int + """ + + super(CountResourcesByTagsResponse, self).__init__() + + self._total_count = None + self.discriminator = None + + if total_count is not None: + self.total_count = total_count + + @property + def total_count(self): + """Gets the total_count of this CountResourcesByTagsResponse. + + :return: The total_count of this CountResourcesByTagsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this CountResourcesByTagsResponse. + + :param total_count: The total_count of this CountResourcesByTagsResponse. + :type total_count: int + """ + self._total_count = total_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, CountResourcesByTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_cgw_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_cgw_request_body_content.py index 8be3fc8371..eda0cf8d35 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_cgw_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_cgw_request_body_content.py @@ -18,55 +18,63 @@ class CreateCgwRequestBodyContent: openapi_types = { 'name': 'str', - 'route_mode': 'str', + 'id_type': 'str', + 'id_value': 'str', 'bgp_asn': 'int', - 'ip': 'str', - 'ca_certificate': 'CaCertificateRequest' + 'ca_certificate': 'CaCertificateRequest', + 'tags': 'list[VpnResourceTag]' } attribute_map = { 'name': 'name', - 'route_mode': 'route_mode', + 'id_type': 'id_type', + 'id_value': 'id_value', 'bgp_asn': 'bgp_asn', - 'ip': 'ip', - 'ca_certificate': 'ca_certificate' + 'ca_certificate': 'ca_certificate', + 'tags': 'tags' } - def __init__(self, name=None, route_mode=None, bgp_asn=None, ip=None, ca_certificate=None): + def __init__(self, name=None, id_type=None, id_value=None, bgp_asn=None, ca_certificate=None, tags=None): """CreateCgwRequestBodyContent The model defined in huaweicloud sdk :param name: 网关名称 :type name: str - :param route_mode: 网关路由模式 - :type route_mode: str - :param bgp_asn: 网关的bgp asn号,仅当route_mode为bgp时需要,默认值为65000 + :param id_type: 对端网关标识类型 + :type id_type: str + :param id_value: 对端网关标识值 + :type id_value: str + :param bgp_asn: 网关的bgp asn号,默认值为65000 :type bgp_asn: int - :param ip: 网关ip地址 - :type ip: str :param ca_certificate: :type ca_certificate: :class:`huaweicloudsdkvpn.v5.CaCertificateRequest` + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ self._name = None - self._route_mode = None + self._id_type = None + self._id_value = None self._bgp_asn = None - self._ip = None self._ca_certificate = None + self._tags = None self.discriminator = None if name is not None: self.name = name - if route_mode is not None: - self.route_mode = route_mode + if id_type is not None: + self.id_type = id_type + if id_value is not None: + self.id_value = id_value if bgp_asn is not None: self.bgp_asn = bgp_asn - self.ip = ip if ca_certificate is not None: self.ca_certificate = ca_certificate + if tags is not None: + self.tags = tags @property def name(self): @@ -91,32 +99,54 @@ def name(self, name): self._name = name @property - def route_mode(self): - """Gets the route_mode of this CreateCgwRequestBodyContent. + def id_type(self): + """Gets the id_type of this CreateCgwRequestBodyContent. - 网关路由模式 + 对端网关标识类型 - :return: The route_mode of this CreateCgwRequestBodyContent. + :return: The id_type of this CreateCgwRequestBodyContent. :rtype: str """ - return self._route_mode + return self._id_type - @route_mode.setter - def route_mode(self, route_mode): - """Sets the route_mode of this CreateCgwRequestBodyContent. + @id_type.setter + def id_type(self, id_type): + """Sets the id_type of this CreateCgwRequestBodyContent. - 网关路由模式 + 对端网关标识类型 - :param route_mode: The route_mode of this CreateCgwRequestBodyContent. - :type route_mode: str + :param id_type: The id_type of this CreateCgwRequestBodyContent. + :type id_type: str """ - self._route_mode = route_mode + self._id_type = id_type + + @property + def id_value(self): + """Gets the id_value of this CreateCgwRequestBodyContent. + + 对端网关标识值 + + :return: The id_value of this CreateCgwRequestBodyContent. + :rtype: str + """ + return self._id_value + + @id_value.setter + def id_value(self, id_value): + """Sets the id_value of this CreateCgwRequestBodyContent. + + 对端网关标识值 + + :param id_value: The id_value of this CreateCgwRequestBodyContent. + :type id_value: str + """ + self._id_value = id_value @property def bgp_asn(self): """Gets the bgp_asn of this CreateCgwRequestBodyContent. - 网关的bgp asn号,仅当route_mode为bgp时需要,默认值为65000 + 网关的bgp asn号,默认值为65000 :return: The bgp_asn of this CreateCgwRequestBodyContent. :rtype: int @@ -127,35 +157,13 @@ def bgp_asn(self): def bgp_asn(self, bgp_asn): """Sets the bgp_asn of this CreateCgwRequestBodyContent. - 网关的bgp asn号,仅当route_mode为bgp时需要,默认值为65000 + 网关的bgp asn号,默认值为65000 :param bgp_asn: The bgp_asn of this CreateCgwRequestBodyContent. :type bgp_asn: int """ self._bgp_asn = bgp_asn - @property - def ip(self): - """Gets the ip of this CreateCgwRequestBodyContent. - - 网关ip地址 - - :return: The ip of this CreateCgwRequestBodyContent. - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this CreateCgwRequestBodyContent. - - 网关ip地址 - - :param ip: The ip of this CreateCgwRequestBodyContent. - :type ip: str - """ - self._ip = ip - @property def ca_certificate(self): """Gets the ca_certificate of this CreateCgwRequestBodyContent. @@ -174,6 +182,28 @@ def ca_certificate(self, ca_certificate): """ self._ca_certificate = ca_certificate + @property + def tags(self): + """Gets the tags of this CreateCgwRequestBodyContent. + + 标签 + + :return: The tags of this CreateCgwRequestBodyContent. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateCgwRequestBodyContent. + + 标签 + + :param tags: The tags of this CreateCgwRequestBodyContent. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_request_eip.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_request_eip.py index 457459946e..14391069a5 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_request_eip.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_request_eip.py @@ -41,7 +41,7 @@ def __init__(self, id=None, type=None, charge_mode=None, bandwidth_size=None, ba :type id: str :param type: 功能说明:EIP的类型 取值范围:5_bgp(全动态BGP),5_sbgp(静态BGP) 华南-广州:5_bgp、5_sbgp 华东-上海一:5_bgp、5_sbgp 华东-上海二:5_bgp、5_sbgp 华北-北京一:5_bgp、5_sbgp 中国-香港:5_bgp 亚太-曼谷:5_bgp 亚太-新加坡:5_bgp 非洲-约翰内斯堡:5_bgp 西南-贵阳一:5_bgp、5_sbgp 华北-北京四:5_bgp、5_sbgp 拉美-圣地亚哥:5_bgp 拉美-圣保罗一:5_bgp 拉美-墨西哥城一:5_bgp 拉美-布宜诺斯艾利一:5_bgp 拉美-利马一:5_bgp 拉美-圣地亚哥二: 5_bgp 约束:必须是系统具体支持的类型。 :type type: str - :param charge_mode: 功能说明:按流量计费还是按带宽计费 取值范围:bandwidth,traffic + :param charge_mode: 功能说明:按流量计费还是按带宽计费 取值范围: bandwidth:按带宽计费 traffic:按流量计费 95peak_plus:按增强型95计费 :type charge_mode: str :param bandwidth_size: 带宽大小Mbit/s。flavor为Basic时,取值不能大于100;flavor为Professional1时,取值不能大于300;flavor为Professional2时,取值不能大于1024 :type bandwidth_size: int @@ -117,7 +117,7 @@ def type(self, type): def charge_mode(self): """Gets the charge_mode of this CreateRequestEip. - 功能说明:按流量计费还是按带宽计费 取值范围:bandwidth,traffic + 功能说明:按流量计费还是按带宽计费 取值范围: bandwidth:按带宽计费 traffic:按流量计费 95peak_plus:按增强型95计费 :return: The charge_mode of this CreateRequestEip. :rtype: str @@ -128,7 +128,7 @@ def charge_mode(self): def charge_mode(self, charge_mode): """Sets the charge_mode of this CreateRequestEip. - 功能说明:按流量计费还是按带宽计费 取值范围:bandwidth,traffic + 功能说明:按流量计费还是按带宽计费 取值范围: bandwidth:按带宽计费 traffic:按流量计费 95peak_plus:按增强型95计费 :param charge_mode: The charge_mode of this CreateRequestEip. :type charge_mode: str diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_resources_tags_request_body.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_resources_tags_request_body.py new file mode 100644 index 0000000000..bcb7f376f3 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_resources_tags_request_body.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateResourcesTagsRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tags': 'list[ResourceTag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """CreateResourcesTagsRequestBody + + The model defined in huaweicloud sdk + + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + + + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this CreateResourcesTagsRequestBody. + + :return: The tags of this CreateResourcesTagsRequestBody. + :rtype: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateResourcesTagsRequestBody. + + :param tags: The tags of this CreateResourcesTagsRequestBody. + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + 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, CreateResourcesTagsRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_connection.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_connection.py index 1bd8c555f1..4b6133421d 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_connection.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_connection.py @@ -34,7 +34,8 @@ class CreateResponseVpnConnection: 'updated_at': 'str', 'enterprise_project_id': 'str', 'connection_monitor_id': 'str', - 'ha_role': 'str' + 'ha_role': 'str', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -55,10 +56,11 @@ class CreateResponseVpnConnection: 'updated_at': 'updated_at', 'enterprise_project_id': 'enterprise_project_id', 'connection_monitor_id': 'connection_monitor_id', - 'ha_role': 'ha_role' + 'ha_role': 'ha_role', + 'tags': 'tags' } - def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None): + def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None, tags=None): """CreateResponseVpnConnection The model defined in huaweicloud sdk @@ -99,6 +101,8 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw :type connection_monitor_id: str :param ha_role: 连接的HA角色 :type ha_role: str + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -121,6 +125,7 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw self._enterprise_project_id = None self._connection_monitor_id = None self._ha_role = None + self._tags = None self.discriminator = None if id is not None: @@ -159,6 +164,8 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw self.connection_monitor_id = connection_monitor_id if ha_role is not None: self.ha_role = ha_role + if tags is not None: + self.tags = tags @property def id(self): @@ -548,6 +555,28 @@ def ha_role(self, ha_role): """ self._ha_role = ha_role + @property + def tags(self): + """Gets the tags of this CreateResponseVpnConnection. + + 标签 + + :return: The tags of this CreateResponseVpnConnection. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateResponseVpnConnection. + + 标签 + + :param tags: The tags of this CreateResponseVpnConnection. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_gateway.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_gateway.py index 41c92c8f21..7b75950050 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_gateway.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_response_vpn_gateway.py @@ -20,6 +20,7 @@ class CreateResponseVpnGateway: 'id': 'str', 'name': 'str', 'attachment_type': 'str', + 'certificate_id': 'str', 'er_id': 'str', 'vpc_id': 'str', 'local_subnets': 'list[str]', @@ -32,13 +33,16 @@ class CreateResponseVpnGateway: 'connection_number': 'int', 'used_connection_number': 'int', 'used_connection_group': 'int', - 'enterprise_project_id': 'str' + 'enterprise_project_id': 'str', + 'ha_mode': 'str', + 'policy_template': 'PolicyTemplate' } attribute_map = { 'id': 'id', 'name': 'name', 'attachment_type': 'attachment_type', + 'certificate_id': 'certificate_id', 'er_id': 'er_id', 'vpc_id': 'vpc_id', 'local_subnets': 'local_subnets', @@ -51,10 +55,12 @@ class CreateResponseVpnGateway: 'connection_number': 'connection_number', 'used_connection_number': 'used_connection_number', 'used_connection_group': 'used_connection_group', - 'enterprise_project_id': 'enterprise_project_id' + 'enterprise_project_id': 'enterprise_project_id', + 'ha_mode': 'ha_mode', + 'policy_template': 'policy_template' } - def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, bgp_asn=None, flavor=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None): + def __init__(self, id=None, name=None, attachment_type=None, certificate_id=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, bgp_asn=None, flavor=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None, ha_mode=None, policy_template=None): """CreateResponseVpnGateway The model defined in huaweicloud sdk @@ -65,6 +71,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type name: str :param attachment_type: 关联模式 :type attachment_type: str + :param certificate_id: + :type certificate_id: str :param er_id: VPN网关所连接的ER实例的ID :type er_id: str :param vpc_id: VPN网关所连接的VPC的ID @@ -91,6 +99,10 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type used_connection_group: int :param enterprise_project_id: 企业项目ID :type enterprise_project_id: str + :param ha_mode: ha模式 + :type ha_mode: str + :param policy_template: + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` """ @@ -98,6 +110,7 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self._id = None self._name = None self._attachment_type = None + self._certificate_id = None self._er_id = None self._vpc_id = None self._local_subnets = None @@ -111,6 +124,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self._used_connection_number = None self._used_connection_group = None self._enterprise_project_id = None + self._ha_mode = None + self._policy_template = None self.discriminator = None if id is not None: @@ -119,6 +134,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.name = name if attachment_type is not None: self.attachment_type = attachment_type + if certificate_id is not None: + self.certificate_id = certificate_id if er_id is not None: self.er_id = er_id if vpc_id is not None: @@ -145,6 +162,10 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.used_connection_group = used_connection_group if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id + if ha_mode is not None: + self.ha_mode = ha_mode + if policy_template is not None: + self.policy_template = policy_template @property def id(self): @@ -212,6 +233,24 @@ def attachment_type(self, attachment_type): """ self._attachment_type = attachment_type + @property + def certificate_id(self): + """Gets the certificate_id of this CreateResponseVpnGateway. + + :return: The certificate_id of this CreateResponseVpnGateway. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this CreateResponseVpnGateway. + + :param certificate_id: The certificate_id of this CreateResponseVpnGateway. + :type certificate_id: str + """ + self._certificate_id = certificate_id + @property def er_id(self): """Gets the er_id of this CreateResponseVpnGateway. @@ -498,6 +537,46 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id + @property + def ha_mode(self): + """Gets the ha_mode of this CreateResponseVpnGateway. + + ha模式 + + :return: The ha_mode of this CreateResponseVpnGateway. + :rtype: str + """ + return self._ha_mode + + @ha_mode.setter + def ha_mode(self, ha_mode): + """Sets the ha_mode of this CreateResponseVpnGateway. + + ha模式 + + :param ha_mode: The ha_mode of this CreateResponseVpnGateway. + :type ha_mode: str + """ + self._ha_mode = ha_mode + + @property + def policy_template(self): + """Gets the policy_template of this CreateResponseVpnGateway. + + :return: The policy_template of this CreateResponseVpnGateway. + :rtype: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + return self._policy_template + + @policy_template.setter + def policy_template(self, policy_template): + """Sets the policy_template of this CreateResponseVpnGateway. + + :param policy_template: The policy_template of this CreateResponseVpnGateway. + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + self._policy_template = policy_template + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vgw_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vgw_request_body_content.py index cc3d44702f..2c742604f0 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vgw_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vgw_request_body_content.py @@ -27,14 +27,15 @@ class CreateVgwRequestBodyContent: 'flavor': 'str', 'availability_zone_ids': 'list[str]', 'enterprise_project_id': 'str', - 'master_eip': 'CreateRequestEip', - 'slave_eip': 'CreateRequestEip', 'eip1': 'CreateRequestEip', 'eip2': 'CreateRequestEip', + 'access_private_ip_1': 'str', + 'access_private_ip_2': 'str', 'network_type': 'str', 'access_vpc_id': 'str', 'access_subnet_id': 'str', - 'ha_mode': 'str' + 'ha_mode': 'str', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -48,17 +49,18 @@ class CreateVgwRequestBodyContent: 'flavor': 'flavor', 'availability_zone_ids': 'availability_zone_ids', 'enterprise_project_id': 'enterprise_project_id', - 'master_eip': 'master_eip', - 'slave_eip': 'slave_eip', 'eip1': 'eip1', 'eip2': 'eip2', + 'access_private_ip_1': 'access_private_ip_1', + 'access_private_ip_2': 'access_private_ip_2', 'network_type': 'network_type', 'access_vpc_id': 'access_vpc_id', 'access_subnet_id': 'access_subnet_id', - 'ha_mode': 'ha_mode' + 'ha_mode': 'ha_mode', + 'tags': 'tags' } - def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, bgp_asn=None, flavor=None, availability_zone_ids=None, enterprise_project_id=None, master_eip=None, slave_eip=None, eip1=None, eip2=None, network_type=None, access_vpc_id=None, access_subnet_id=None, ha_mode=None): + def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, bgp_asn=None, flavor=None, availability_zone_ids=None, enterprise_project_id=None, eip1=None, eip2=None, access_private_ip_1=None, access_private_ip_2=None, network_type=None, access_vpc_id=None, access_subnet_id=None, ha_mode=None, tags=None): """CreateVgwRequestBodyContent The model defined in huaweicloud sdk @@ -83,14 +85,14 @@ def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, loc :type availability_zone_ids: list[str] :param enterprise_project_id: 企业项目ID :type enterprise_project_id: str - :param master_eip: - :type master_eip: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` - :param slave_eip: - :type slave_eip: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` :param eip1: :type eip1: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` :param eip2: :type eip2: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` + :param access_private_ip_1: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + :type access_private_ip_1: str + :param access_private_ip_2: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + :type access_private_ip_2: str :param network_type: VPN网关北向类型,默认为公网(public) :type network_type: str :param access_vpc_id: VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值 @@ -99,6 +101,8 @@ def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, loc :type access_subnet_id: str :param ha_mode: ha模式 :type ha_mode: str + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -113,14 +117,15 @@ def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, loc self._flavor = None self._availability_zone_ids = None self._enterprise_project_id = None - self._master_eip = None - self._slave_eip = None self._eip1 = None self._eip2 = None + self._access_private_ip_1 = None + self._access_private_ip_2 = None self._network_type = None self._access_vpc_id = None self._access_subnet_id = None self._ha_mode = None + self._tags = None self.discriminator = None if name is not None: @@ -143,14 +148,14 @@ def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, loc self.availability_zone_ids = availability_zone_ids if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id - if master_eip is not None: - self.master_eip = master_eip - if slave_eip is not None: - self.slave_eip = slave_eip if eip1 is not None: self.eip1 = eip1 if eip2 is not None: self.eip2 = eip2 + if access_private_ip_1 is not None: + self.access_private_ip_1 = access_private_ip_1 + if access_private_ip_2 is not None: + self.access_private_ip_2 = access_private_ip_2 if network_type is not None: self.network_type = network_type if access_vpc_id is not None: @@ -159,6 +164,8 @@ def __init__(self, name=None, attachment_type=None, er_id=None, vpc_id=None, loc self.access_subnet_id = access_subnet_id if ha_mode is not None: self.ha_mode = ha_mode + if tags is not None: + self.tags = tags @property def name(self): @@ -380,42 +387,6 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id - @property - def master_eip(self): - """Gets the master_eip of this CreateVgwRequestBodyContent. - - :return: The master_eip of this CreateVgwRequestBodyContent. - :rtype: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` - """ - return self._master_eip - - @master_eip.setter - def master_eip(self, master_eip): - """Sets the master_eip of this CreateVgwRequestBodyContent. - - :param master_eip: The master_eip of this CreateVgwRequestBodyContent. - :type master_eip: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` - """ - self._master_eip = master_eip - - @property - def slave_eip(self): - """Gets the slave_eip of this CreateVgwRequestBodyContent. - - :return: The slave_eip of this CreateVgwRequestBodyContent. - :rtype: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` - """ - return self._slave_eip - - @slave_eip.setter - def slave_eip(self, slave_eip): - """Sets the slave_eip of this CreateVgwRequestBodyContent. - - :param slave_eip: The slave_eip of this CreateVgwRequestBodyContent. - :type slave_eip: :class:`huaweicloudsdkvpn.v5.CreateRequestEip` - """ - self._slave_eip = slave_eip - @property def eip1(self): """Gets the eip1 of this CreateVgwRequestBodyContent. @@ -452,6 +423,50 @@ def eip2(self, eip2): """ self._eip2 = eip2 + @property + def access_private_ip_1(self): + """Gets the access_private_ip_1 of this CreateVgwRequestBodyContent. + + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + + :return: The access_private_ip_1 of this CreateVgwRequestBodyContent. + :rtype: str + """ + return self._access_private_ip_1 + + @access_private_ip_1.setter + def access_private_ip_1(self, access_private_ip_1): + """Sets the access_private_ip_1 of this CreateVgwRequestBodyContent. + + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + + :param access_private_ip_1: The access_private_ip_1 of this CreateVgwRequestBodyContent. + :type access_private_ip_1: str + """ + self._access_private_ip_1 = access_private_ip_1 + + @property + def access_private_ip_2(self): + """Gets the access_private_ip_2 of this CreateVgwRequestBodyContent. + + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + + :return: The access_private_ip_2 of this CreateVgwRequestBodyContent. + :rtype: str + """ + return self._access_private_ip_2 + + @access_private_ip_2.setter + def access_private_ip_2(self, access_private_ip_2): + """Sets the access_private_ip_2 of this CreateVgwRequestBodyContent. + + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + + :param access_private_ip_2: The access_private_ip_2 of this CreateVgwRequestBodyContent. + :type access_private_ip_2: str + """ + self._access_private_ip_2 = access_private_ip_2 + @property def network_type(self): """Gets the network_type of this CreateVgwRequestBodyContent. @@ -540,6 +555,28 @@ def ha_mode(self, ha_mode): """ self._ha_mode = ha_mode + @property + def tags(self): + """Gets the tags of this CreateVgwRequestBodyContent. + + 标签 + + :return: The tags of this CreateVgwRequestBodyContent. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateVgwRequestBodyContent. + + 标签 + + :param tags: The tags of this CreateVgwRequestBodyContent. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vpn_connection_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vpn_connection_request_body_content.py index 394ca29eb2..b53fd43f0d 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vpn_connection_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/create_vpn_connection_request_body_content.py @@ -31,7 +31,8 @@ class CreateVpnConnectionRequestBodyContent: 'policy_rules': 'list[PolicyRule]', 'ikepolicy': 'IkePolicy', 'ipsecpolicy': 'IpsecPolicy', - 'ha_role': 'str' + 'ha_role': 'str', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -48,10 +49,11 @@ class CreateVpnConnectionRequestBodyContent: 'policy_rules': 'policy_rules', 'ikepolicy': 'ikepolicy', 'ipsecpolicy': 'ipsecpolicy', - 'ha_role': 'ha_role' + 'ha_role': 'ha_role', + 'tags': 'tags' } - def __init__(self, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, psk=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, ha_role=None): + def __init__(self, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, psk=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, ha_role=None, tags=None): """CreateVpnConnectionRequestBodyContent The model defined in huaweicloud sdk @@ -84,6 +86,8 @@ def __init__(self, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, :type ipsecpolicy: :class:`huaweicloudsdkvpn.v5.IpsecPolicy` :param ha_role: 连接的HA角色 :type ha_role: str + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -102,6 +106,7 @@ def __init__(self, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, self._ikepolicy = None self._ipsecpolicy = None self._ha_role = None + self._tags = None self.discriminator = None if name is not None: @@ -129,6 +134,8 @@ def __init__(self, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, self.ipsecpolicy = ipsecpolicy if ha_role is not None: self.ha_role = ha_role + if tags is not None: + self.tags = tags @property def name(self): @@ -430,6 +437,28 @@ def ha_role(self, ha_role): """ self._ha_role = ha_role + @property + def tags(self): + """Gets the tags of this CreateVpnConnectionRequestBodyContent. + + 标签 + + :return: The tags of this CreateVpnConnectionRequestBodyContent. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateVpnConnectionRequestBodyContent. + + 标签 + + :param tags: The tags of this CreateVpnConnectionRequestBodyContent. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/delete_resources_tags_request_body.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/delete_resources_tags_request_body.py new file mode 100644 index 0000000000..5e35f13387 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/delete_resources_tags_request_body.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteResourcesTagsRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tags': 'list[ResourceTag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """DeleteResourcesTagsRequestBody + + The model defined in huaweicloud sdk + + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + + + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this DeleteResourcesTagsRequestBody. + + :return: The tags of this DeleteResourcesTagsRequestBody. + :rtype: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this DeleteResourcesTagsRequestBody. + + :param tags: The tags of this DeleteResourcesTagsRequestBody. + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + 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, DeleteResourcesTagsRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_request.py new file mode 100644 index 0000000000..b828e63d6b --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListProjectTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str' + } + + attribute_map = { + 'resource_type': 'resource_type' + } + + def __init__(self, resource_type=None): + """ListProjectTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + """ + + + + self._resource_type = None + self.discriminator = None + + self.resource_type = resource_type + + @property + def resource_type(self): + """Gets the resource_type of this ListProjectTagsRequest. + + 资源类型 + + :return: The resource_type of this ListProjectTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this ListProjectTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this ListProjectTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_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, ListProjectTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_response.py new file mode 100644 index 0000000000..4bacf9eaeb --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_project_tags_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListProjectTagsResponse(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 = { + 'tags': 'list[Tag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ListProjectTagsResponse + + The model defined in huaweicloud sdk + + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.Tag`] + """ + + super(ListProjectTagsResponse, self).__init__() + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this ListProjectTagsResponse. + + :return: The tags of this ListProjectTagsResponse. + :rtype: list[:class:`huaweicloudsdkvpn.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListProjectTagsResponse. + + :param tags: The tags of this ListProjectTagsResponse. + :type tags: list[:class:`huaweicloudsdkvpn.v5.Tag`] + """ + 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, ListProjectTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_request.py new file mode 100644 index 0000000000..b00c5c96b1 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_request.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListResourcesByTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str', + 'limit': 'str', + 'offset': 'str', + 'body': 'QueryResourcesRequestBody' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'limit': 'limit', + 'offset': 'offset', + 'body': 'body' + } + + def __init__(self, resource_type=None, limit=None, offset=None, body=None): + """ListResourcesByTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + :param limit: limit + :type limit: str + :param offset: offset + :type offset: str + :param body: Body of the ListResourcesByTagsRequest + :type body: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + + + + self._resource_type = None + self._limit = None + self._offset = None + self._body = None + self.discriminator = None + + self.resource_type = resource_type + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if body is not None: + self.body = body + + @property + def resource_type(self): + """Gets the resource_type of this ListResourcesByTagsRequest. + + 资源类型 + + :return: The resource_type of this ListResourcesByTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this ListResourcesByTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this ListResourcesByTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def limit(self): + """Gets the limit of this ListResourcesByTagsRequest. + + limit + + :return: The limit of this ListResourcesByTagsRequest. + :rtype: str + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListResourcesByTagsRequest. + + limit + + :param limit: The limit of this ListResourcesByTagsRequest. + :type limit: str + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListResourcesByTagsRequest. + + offset + + :return: The offset of this ListResourcesByTagsRequest. + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListResourcesByTagsRequest. + + offset + + :param offset: The offset of this ListResourcesByTagsRequest. + :type offset: str + """ + self._offset = offset + + @property + def body(self): + """Gets the body of this ListResourcesByTagsRequest. + + :return: The body of this ListResourcesByTagsRequest. + :rtype: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListResourcesByTagsRequest. + + :param body: The body of this ListResourcesByTagsRequest. + :type body: :class:`huaweicloudsdkvpn.v5.QueryResourcesRequestBody` + """ + 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, ListResourcesByTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_response.py new file mode 100644 index 0000000000..8c3d0d2f9e --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/list_resources_by_tags_response.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListResourcesByTagsResponse(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 = { + 'resources': 'list[Resource]', + 'total_count': 'int' + } + + attribute_map = { + 'resources': 'resources', + 'total_count': 'total_count' + } + + def __init__(self, resources=None, total_count=None): + """ListResourcesByTagsResponse + + The model defined in huaweicloud sdk + + :param resources: + :type resources: list[:class:`huaweicloudsdkvpn.v5.Resource`] + :param total_count: + :type total_count: int + """ + + super(ListResourcesByTagsResponse, self).__init__() + + self._resources = None + self._total_count = None + self.discriminator = None + + if resources is not None: + self.resources = resources + if total_count is not None: + self.total_count = total_count + + @property + def resources(self): + """Gets the resources of this ListResourcesByTagsResponse. + + :return: The resources of this ListResourcesByTagsResponse. + :rtype: list[:class:`huaweicloudsdkvpn.v5.Resource`] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ListResourcesByTagsResponse. + + :param resources: The resources of this ListResourcesByTagsResponse. + :type resources: list[:class:`huaweicloudsdkvpn.v5.Resource`] + """ + self._resources = resources + + @property + def total_count(self): + """Gets the total_count of this ListResourcesByTagsResponse. + + :return: The total_count of this ListResourcesByTagsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListResourcesByTagsResponse. + + :param total_count: The total_count of this ListResourcesByTagsResponse. + :type total_count: int + """ + self._total_count = total_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, ListResourcesByTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/match.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/match.py new file mode 100644 index 0000000000..8482cbde35 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/match.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Match: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """Match + + 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 Match. + + :return: The key of this Match. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Match. + + :param key: The key of this Match. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this Match. + + :return: The value of this Match. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Match. + + :param value: The value of this Match. + :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, Match): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/policy_template.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/policy_template.py new file mode 100644 index 0000000000..77ba527a49 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/policy_template.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PolicyTemplate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ike_policy': 'VgwIkePolicy', + 'ipsec_policy': 'VgwIpsecPolicy' + } + + attribute_map = { + 'ike_policy': 'ike_policy', + 'ipsec_policy': 'ipsec_policy' + } + + def __init__(self, ike_policy=None, ipsec_policy=None): + """PolicyTemplate + + The model defined in huaweicloud sdk + + :param ike_policy: + :type ike_policy: :class:`huaweicloudsdkvpn.v5.VgwIkePolicy` + :param ipsec_policy: + :type ipsec_policy: :class:`huaweicloudsdkvpn.v5.VgwIpsecPolicy` + """ + + + + self._ike_policy = None + self._ipsec_policy = None + self.discriminator = None + + if ike_policy is not None: + self.ike_policy = ike_policy + if ipsec_policy is not None: + self.ipsec_policy = ipsec_policy + + @property + def ike_policy(self): + """Gets the ike_policy of this PolicyTemplate. + + :return: The ike_policy of this PolicyTemplate. + :rtype: :class:`huaweicloudsdkvpn.v5.VgwIkePolicy` + """ + return self._ike_policy + + @ike_policy.setter + def ike_policy(self, ike_policy): + """Sets the ike_policy of this PolicyTemplate. + + :param ike_policy: The ike_policy of this PolicyTemplate. + :type ike_policy: :class:`huaweicloudsdkvpn.v5.VgwIkePolicy` + """ + self._ike_policy = ike_policy + + @property + def ipsec_policy(self): + """Gets the ipsec_policy of this PolicyTemplate. + + :return: The ipsec_policy of this PolicyTemplate. + :rtype: :class:`huaweicloudsdkvpn.v5.VgwIpsecPolicy` + """ + return self._ipsec_policy + + @ipsec_policy.setter + def ipsec_policy(self, ipsec_policy): + """Sets the ipsec_policy of this PolicyTemplate. + + :param ipsec_policy: The ipsec_policy of this PolicyTemplate. + :type ipsec_policy: :class:`huaweicloudsdkvpn.v5.VgwIpsecPolicy` + """ + self._ipsec_policy = ipsec_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PolicyTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/query_resources_request_body.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/query_resources_request_body.py new file mode 100644 index 0000000000..5a8ec04bb5 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/query_resources_request_body.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryResourcesRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'without_any_tag': 'bool', + 'tags': 'list[Tag]', + 'matches': 'list[Match]' + } + + attribute_map = { + 'without_any_tag': 'without_any_tag', + 'tags': 'tags', + 'matches': 'matches' + } + + def __init__(self, without_any_tag=None, tags=None, matches=None): + """QueryResourcesRequestBody + + The model defined in huaweicloud sdk + + :param without_any_tag: + :type without_any_tag: bool + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.Tag`] + :param matches: + :type matches: list[:class:`huaweicloudsdkvpn.v5.Match`] + """ + + + + self._without_any_tag = None + self._tags = None + self._matches = None + self.discriminator = None + + if without_any_tag is not None: + self.without_any_tag = without_any_tag + if tags is not None: + self.tags = tags + if matches is not None: + self.matches = matches + + @property + def without_any_tag(self): + """Gets the without_any_tag of this QueryResourcesRequestBody. + + :return: The without_any_tag of this QueryResourcesRequestBody. + :rtype: bool + """ + return self._without_any_tag + + @without_any_tag.setter + def without_any_tag(self, without_any_tag): + """Sets the without_any_tag of this QueryResourcesRequestBody. + + :param without_any_tag: The without_any_tag of this QueryResourcesRequestBody. + :type without_any_tag: bool + """ + self._without_any_tag = without_any_tag + + @property + def tags(self): + """Gets the tags of this QueryResourcesRequestBody. + + :return: The tags of this QueryResourcesRequestBody. + :rtype: list[:class:`huaweicloudsdkvpn.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this QueryResourcesRequestBody. + + :param tags: The tags of this QueryResourcesRequestBody. + :type tags: list[:class:`huaweicloudsdkvpn.v5.Tag`] + """ + self._tags = tags + + @property + def matches(self): + """Gets the matches of this QueryResourcesRequestBody. + + :return: The matches of this QueryResourcesRequestBody. + :rtype: list[:class:`huaweicloudsdkvpn.v5.Match`] + """ + return self._matches + + @matches.setter + def matches(self, matches): + """Sets the matches of this QueryResourcesRequestBody. + + :param matches: The matches of this QueryResourcesRequestBody. + :type matches: list[:class:`huaweicloudsdkvpn.v5.Match`] + """ + self._matches = matches + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryResourcesRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource.py new file mode 100644 index 0000000000..b97e186b92 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Resource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_id': 'str', + 'resource_detail': 'object', + 'tags': 'list[ResourceTag]', + 'resource_name': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'resource_detail': 'resource_detail', + 'tags': 'tags', + 'resource_name': 'resource_name' + } + + def __init__(self, resource_id=None, resource_detail=None, tags=None, resource_name=None): + """Resource + + The model defined in huaweicloud sdk + + :param resource_id: + :type resource_id: str + :param resource_detail: + :type resource_detail: object + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + :param resource_name: + :type resource_name: str + """ + + + + self._resource_id = None + self._resource_detail = None + self._tags = None + self._resource_name = None + self.discriminator = None + + self.resource_id = resource_id + self.resource_detail = resource_detail + self.tags = tags + self.resource_name = resource_name + + @property + def resource_id(self): + """Gets the resource_id of this Resource. + + :return: The resource_id of this Resource. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this Resource. + + :param resource_id: The resource_id of this Resource. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_detail(self): + """Gets the resource_detail of this Resource. + + :return: The resource_detail of this Resource. + :rtype: object + """ + return self._resource_detail + + @resource_detail.setter + def resource_detail(self, resource_detail): + """Sets the resource_detail of this Resource. + + :param resource_detail: The resource_detail of this Resource. + :type resource_detail: object + """ + self._resource_detail = resource_detail + + @property + def tags(self): + """Gets the tags of this Resource. + + :return: The tags of this Resource. + :rtype: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this Resource. + + :param tags: The tags of this Resource. + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + self._tags = tags + + @property + def resource_name(self): + """Gets the resource_name of this Resource. + + :return: The resource_name of this Resource. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this Resource. + + :param resource_name: The resource_name of this Resource. + :type resource_name: str + """ + self._resource_name = resource_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, Resource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource_tag.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource_tag.py new file mode 100644 index 0000000000..4c15eeccb9 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/resource_tag.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResourceTag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ResourceTag + + The model defined in huaweicloud sdk + + :param key: 标签的key + :type key: str + :param value: 标签的value + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this ResourceTag. + + 标签的key + + :return: The key of this ResourceTag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ResourceTag. + + 标签的key + + :param key: The key of this ResourceTag. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this ResourceTag. + + 标签的value + + :return: The value of this ResourceTag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResourceTag. + + 标签的value + + :param value: The value of this ResourceTag. + :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, ResourceTag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_customer_gateway.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_customer_gateway.py index 1a3957f9de..745cadd94f 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_customer_gateway.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_customer_gateway.py @@ -19,26 +19,28 @@ class ResponseCustomerGateway: openapi_types = { 'id': 'str', 'name': 'str', - 'route_mode': 'str', 'bgp_asn': 'int', - 'ip': 'str', + 'id_type': 'str', + 'id_value': 'str', 'ca_certificate': 'CaCertificate', 'created_at': 'datetime', - 'updated_at': 'datetime' + 'updated_at': 'datetime', + 'tags': 'list[VpnResourceTag]' } attribute_map = { 'id': 'id', 'name': 'name', - 'route_mode': 'route_mode', 'bgp_asn': 'bgp_asn', - 'ip': 'ip', + 'id_type': 'id_type', + 'id_value': 'id_value', 'ca_certificate': 'ca_certificate', 'created_at': 'created_at', - 'updated_at': 'updated_at' + 'updated_at': 'updated_at', + 'tags': 'tags' } - def __init__(self, id=None, name=None, route_mode=None, bgp_asn=None, ip=None, ca_certificate=None, created_at=None, updated_at=None): + def __init__(self, id=None, name=None, bgp_asn=None, id_type=None, id_value=None, ca_certificate=None, created_at=None, updated_at=None, tags=None): """ResponseCustomerGateway The model defined in huaweicloud sdk @@ -47,48 +49,53 @@ def __init__(self, id=None, name=None, route_mode=None, bgp_asn=None, ip=None, c :type id: str :param name: 网关名称 :type name: str - :param route_mode: 网关路由模式 - :type route_mode: str :param bgp_asn: 网关的bgp asn号 :type bgp_asn: int - :param ip: 网关ip地址 - :type ip: str + :param id_type: 对端网关标识类型 + :type id_type: str + :param id_value: 对端网关标识值 + :type id_value: str :param ca_certificate: :type ca_certificate: :class:`huaweicloudsdkvpn.v5.CaCertificate` :param created_at: 创建时间 :type created_at: datetime :param updated_at: 更新时间 :type updated_at: datetime + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ self._id = None self._name = None - self._route_mode = None self._bgp_asn = None - self._ip = None + self._id_type = None + self._id_value = None self._ca_certificate = None self._created_at = None self._updated_at = None + self._tags = None self.discriminator = None if id is not None: self.id = id if name is not None: self.name = name - if route_mode is not None: - self.route_mode = route_mode if bgp_asn is not None: self.bgp_asn = bgp_asn - if ip is not None: - self.ip = ip + if id_type is not None: + self.id_type = id_type + if id_value is not None: + self.id_value = id_value if ca_certificate is not None: self.ca_certificate = ca_certificate if created_at is not None: self.created_at = created_at if updated_at is not None: self.updated_at = updated_at + if tags is not None: + self.tags = tags @property def id(self): @@ -134,28 +141,6 @@ def name(self, name): """ self._name = name - @property - def route_mode(self): - """Gets the route_mode of this ResponseCustomerGateway. - - 网关路由模式 - - :return: The route_mode of this ResponseCustomerGateway. - :rtype: str - """ - return self._route_mode - - @route_mode.setter - def route_mode(self, route_mode): - """Sets the route_mode of this ResponseCustomerGateway. - - 网关路由模式 - - :param route_mode: The route_mode of this ResponseCustomerGateway. - :type route_mode: str - """ - self._route_mode = route_mode - @property def bgp_asn(self): """Gets the bgp_asn of this ResponseCustomerGateway. @@ -179,26 +164,48 @@ def bgp_asn(self, bgp_asn): self._bgp_asn = bgp_asn @property - def ip(self): - """Gets the ip of this ResponseCustomerGateway. + def id_type(self): + """Gets the id_type of this ResponseCustomerGateway. - 网关ip地址 + 对端网关标识类型 - :return: The ip of this ResponseCustomerGateway. + :return: The id_type of this ResponseCustomerGateway. :rtype: str """ - return self._ip + return self._id_type - @ip.setter - def ip(self, ip): - """Sets the ip of this ResponseCustomerGateway. + @id_type.setter + def id_type(self, id_type): + """Sets the id_type of this ResponseCustomerGateway. - 网关ip地址 + 对端网关标识类型 - :param ip: The ip of this ResponseCustomerGateway. - :type ip: str + :param id_type: The id_type of this ResponseCustomerGateway. + :type id_type: str """ - self._ip = ip + self._id_type = id_type + + @property + def id_value(self): + """Gets the id_value of this ResponseCustomerGateway. + + 对端网关标识值 + + :return: The id_value of this ResponseCustomerGateway. + :rtype: str + """ + return self._id_value + + @id_value.setter + def id_value(self, id_value): + """Sets the id_value of this ResponseCustomerGateway. + + 对端网关标识值 + + :param id_value: The id_value of this ResponseCustomerGateway. + :type id_value: str + """ + self._id_value = id_value @property def ca_certificate(self): @@ -262,6 +269,28 @@ def updated_at(self, updated_at): """ self._updated_at = updated_at + @property + def tags(self): + """Gets the tags of this ResponseCustomerGateway. + + 标签 + + :return: The tags of this ResponseCustomerGateway. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ResponseCustomerGateway. + + 标签 + + :param tags: The tags of this ResponseCustomerGateway. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_eip.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_eip.py index aa04e3c85d..7d6bc23841 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_eip.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_eip.py @@ -49,7 +49,7 @@ def __init__(self, id=None, ip_version=None, ip_billing_info=None, type=None, ip :param id: 功能说明:公网IP的唯一标识 :type id: str - :param ip_version: 功能说明: 公网IP版本号 + :param ip_version: 功能说明: 公网IP版本号 取值范围:4, 6 :type ip_version: int :param ip_billing_info: 功能说明:公网IP的订单信息 约束:包周期才会有订单信息,按需资源此字段为空 :type ip_billing_info: str @@ -130,7 +130,7 @@ def id(self, id): def ip_version(self): """Gets the ip_version of this ResponseEip. - 功能说明: 公网IP版本号 + 功能说明: 公网IP版本号 取值范围:4, 6 :return: The ip_version of this ResponseEip. :rtype: int @@ -141,7 +141,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this ResponseEip. - 功能说明: 公网IP版本号 + 功能说明: 公网IP版本号 取值范围:4, 6 :param ip_version: The ip_version of this ResponseEip. :type ip_version: int diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_connection.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_connection.py index 073d04147a..821ae0d20d 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_connection.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_connection.py @@ -35,7 +35,8 @@ class ResponseVpnConnection: 'updated_at': 'str', 'enterprise_project_id': 'str', 'connection_monitor_id': 'str', - 'ha_role': 'str' + 'ha_role': 'str', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -57,10 +58,11 @@ class ResponseVpnConnection: 'updated_at': 'updated_at', 'enterprise_project_id': 'enterprise_project_id', 'connection_monitor_id': 'connection_monitor_id', - 'ha_role': 'ha_role' + 'ha_role': 'ha_role', + 'tags': 'tags' } - def __init__(self, id=None, name=None, status=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None): + def __init__(self, id=None, name=None, status=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None, tags=None): """ResponseVpnConnection The model defined in huaweicloud sdk @@ -103,6 +105,8 @@ def __init__(self, id=None, name=None, status=None, vgw_id=None, vgw_ip=None, st :type connection_monitor_id: str :param ha_role: 连接的HA角色 :type ha_role: str + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -126,6 +130,7 @@ def __init__(self, id=None, name=None, status=None, vgw_id=None, vgw_ip=None, st self._enterprise_project_id = None self._connection_monitor_id = None self._ha_role = None + self._tags = None self.discriminator = None if id is not None: @@ -166,6 +171,8 @@ def __init__(self, id=None, name=None, status=None, vgw_id=None, vgw_ip=None, st self.connection_monitor_id = connection_monitor_id if ha_role is not None: self.ha_role = ha_role + if tags is not None: + self.tags = tags @property def id(self): @@ -577,6 +584,28 @@ def ha_role(self, ha_role): """ self._ha_role = ha_role + @property + def tags(self): + """Gets the tags of this ResponseVpnConnection. + + 标签 + + :return: The tags of this ResponseVpnConnection. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ResponseVpnConnection. + + 标签 + + :param tags: The tags of this ResponseVpnConnection. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_gateway.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_gateway.py index c171cceceb..cac5b48f8a 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_gateway.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/response_vpn_gateway.py @@ -29,7 +29,6 @@ class ResponseVpnGateway: 'network_type': 'str', 'access_vpc_id': 'str', 'access_subnet_id': 'str', - 'access_private_ips': 'list[str]', 'access_private_ip_1': 'str', 'access_private_ip_2': 'str', 'bgp_asn': 'int', @@ -40,12 +39,13 @@ class ResponseVpnGateway: 'used_connection_group': 'int', 'enterprise_project_id': 'str', 'ha_mode': 'str', - 'master_eip': 'ResponseEip', - 'slave_eip': 'ResponseEip', 'eip1': 'ResponseEip', 'eip2': 'ResponseEip', 'created_at': 'datetime', - 'updated_at': 'datetime' + 'updated_at': 'datetime', + 'policy_template': 'PolicyTemplate', + 'supported_flavors': 'list[str]', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -61,7 +61,6 @@ class ResponseVpnGateway: 'network_type': 'network_type', 'access_vpc_id': 'access_vpc_id', 'access_subnet_id': 'access_subnet_id', - 'access_private_ips': 'access_private_ips', 'access_private_ip_1': 'access_private_ip_1', 'access_private_ip_2': 'access_private_ip_2', 'bgp_asn': 'bgp_asn', @@ -72,15 +71,16 @@ class ResponseVpnGateway: 'used_connection_group': 'used_connection_group', 'enterprise_project_id': 'enterprise_project_id', 'ha_mode': 'ha_mode', - 'master_eip': 'master_eip', - 'slave_eip': 'slave_eip', 'eip1': 'eip1', 'eip2': 'eip2', 'created_at': 'created_at', - 'updated_at': 'updated_at' + 'updated_at': 'updated_at', + 'policy_template': 'policy_template', + 'supported_flavors': 'supported_flavors', + 'tags': 'tags' } - def __init__(self, id=None, name=None, status=None, attachment_type=None, certificate_id=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, access_private_ips=None, access_private_ip_1=None, access_private_ip_2=None, bgp_asn=None, flavor=None, availability_zone_ids=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None, ha_mode=None, master_eip=None, slave_eip=None, eip1=None, eip2=None, created_at=None, updated_at=None): + def __init__(self, id=None, name=None, status=None, attachment_type=None, certificate_id=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, access_private_ip_1=None, access_private_ip_2=None, bgp_asn=None, flavor=None, availability_zone_ids=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None, ha_mode=None, eip1=None, eip2=None, created_at=None, updated_at=None, policy_template=None, supported_flavors=None, tags=None): """ResponseVpnGateway The model defined in huaweicloud sdk @@ -109,11 +109,9 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif :type access_vpc_id: str :param access_subnet_id: VPN网关北向接入VPC中的接入子网ID :type access_subnet_id: str - :param access_private_ips: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - :type access_private_ips: list[str] - :param access_private_ip_1: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + :param access_private_ip_1: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :type access_private_ip_1: str - :param access_private_ip_2: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + :param access_private_ip_2: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :type access_private_ip_2: str :param bgp_asn: bgp所使用的asn号 :type bgp_asn: int @@ -131,10 +129,6 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif :type enterprise_project_id: str :param ha_mode: ha模式 :type ha_mode: str - :param master_eip: - :type master_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - :param slave_eip: - :type slave_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` :param eip1: :type eip1: :class:`huaweicloudsdkvpn.v5.ResponseEip` :param eip2: @@ -143,6 +137,12 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif :type created_at: datetime :param updated_at: 更新时间 :type updated_at: datetime + :param policy_template: + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + :param supported_flavors: 网关可升配到的目标规格 + :type supported_flavors: list[str] + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -159,7 +159,6 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif self._network_type = None self._access_vpc_id = None self._access_subnet_id = None - self._access_private_ips = None self._access_private_ip_1 = None self._access_private_ip_2 = None self._bgp_asn = None @@ -170,12 +169,13 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif self._used_connection_group = None self._enterprise_project_id = None self._ha_mode = None - self._master_eip = None - self._slave_eip = None self._eip1 = None self._eip2 = None self._created_at = None self._updated_at = None + self._policy_template = None + self._supported_flavors = None + self._tags = None self.discriminator = None if id is not None: @@ -202,8 +202,6 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif self.access_vpc_id = access_vpc_id if access_subnet_id is not None: self.access_subnet_id = access_subnet_id - if access_private_ips is not None: - self.access_private_ips = access_private_ips if access_private_ip_1 is not None: self.access_private_ip_1 = access_private_ip_1 if access_private_ip_2 is not None: @@ -224,10 +222,6 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif self.enterprise_project_id = enterprise_project_id if ha_mode is not None: self.ha_mode = ha_mode - if master_eip is not None: - self.master_eip = master_eip - if slave_eip is not None: - self.slave_eip = slave_eip if eip1 is not None: self.eip1 = eip1 if eip2 is not None: @@ -236,6 +230,12 @@ def __init__(self, id=None, name=None, status=None, attachment_type=None, certif self.created_at = created_at if updated_at is not None: self.updated_at = updated_at + if policy_template is not None: + self.policy_template = policy_template + if supported_flavors is not None: + self.supported_flavors = supported_flavors + if tags is not None: + self.tags = tags @property def id(self): @@ -497,33 +497,11 @@ def access_subnet_id(self, access_subnet_id): """ self._access_subnet_id = access_subnet_id - @property - def access_private_ips(self): - """Gets the access_private_ips of this ResponseVpnGateway. - - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - - :return: The access_private_ips of this ResponseVpnGateway. - :rtype: list[str] - """ - return self._access_private_ips - - @access_private_ips.setter - def access_private_ips(self, access_private_ips): - """Sets the access_private_ips of this ResponseVpnGateway. - - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - - :param access_private_ips: The access_private_ips of this ResponseVpnGateway. - :type access_private_ips: list[str] - """ - self._access_private_ips = access_private_ips - @property def access_private_ip_1(self): """Gets the access_private_ip_1 of this ResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :return: The access_private_ip_1 of this ResponseVpnGateway. :rtype: str @@ -534,7 +512,7 @@ def access_private_ip_1(self): def access_private_ip_1(self, access_private_ip_1): """Sets the access_private_ip_1 of this ResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :param access_private_ip_1: The access_private_ip_1 of this ResponseVpnGateway. :type access_private_ip_1: str @@ -545,7 +523,7 @@ def access_private_ip_1(self, access_private_ip_1): def access_private_ip_2(self): """Gets the access_private_ip_2 of this ResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :return: The access_private_ip_2 of this ResponseVpnGateway. :rtype: str @@ -556,7 +534,7 @@ def access_private_ip_2(self): def access_private_ip_2(self, access_private_ip_2): """Sets the access_private_ip_2 of this ResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :param access_private_ip_2: The access_private_ip_2 of this ResponseVpnGateway. :type access_private_ip_2: str @@ -739,42 +717,6 @@ def ha_mode(self, ha_mode): """ self._ha_mode = ha_mode - @property - def master_eip(self): - """Gets the master_eip of this ResponseVpnGateway. - - :return: The master_eip of this ResponseVpnGateway. - :rtype: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - return self._master_eip - - @master_eip.setter - def master_eip(self, master_eip): - """Sets the master_eip of this ResponseVpnGateway. - - :param master_eip: The master_eip of this ResponseVpnGateway. - :type master_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - self._master_eip = master_eip - - @property - def slave_eip(self): - """Gets the slave_eip of this ResponseVpnGateway. - - :return: The slave_eip of this ResponseVpnGateway. - :rtype: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - return self._slave_eip - - @slave_eip.setter - def slave_eip(self, slave_eip): - """Sets the slave_eip of this ResponseVpnGateway. - - :param slave_eip: The slave_eip of this ResponseVpnGateway. - :type slave_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - self._slave_eip = slave_eip - @property def eip1(self): """Gets the eip1 of this ResponseVpnGateway. @@ -855,6 +797,68 @@ def updated_at(self, updated_at): """ self._updated_at = updated_at + @property + def policy_template(self): + """Gets the policy_template of this ResponseVpnGateway. + + :return: The policy_template of this ResponseVpnGateway. + :rtype: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + return self._policy_template + + @policy_template.setter + def policy_template(self, policy_template): + """Sets the policy_template of this ResponseVpnGateway. + + :param policy_template: The policy_template of this ResponseVpnGateway. + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + self._policy_template = policy_template + + @property + def supported_flavors(self): + """Gets the supported_flavors of this ResponseVpnGateway. + + 网关可升配到的目标规格 + + :return: The supported_flavors of this ResponseVpnGateway. + :rtype: list[str] + """ + return self._supported_flavors + + @supported_flavors.setter + def supported_flavors(self, supported_flavors): + """Sets the supported_flavors of this ResponseVpnGateway. + + 网关可升配到的目标规格 + + :param supported_flavors: The supported_flavors of this ResponseVpnGateway. + :type supported_flavors: list[str] + """ + self._supported_flavors = supported_flavors + + @property + def tags(self): + """Gets the tags of this ResponseVpnGateway. + + 标签 + + :return: The tags of this ResponseVpnGateway. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ResponseVpnGateway. + + 标签 + + :param tags: The tags of this ResponseVpnGateway. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_request.py new file mode 100644 index 0000000000..5550783d2d --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowResourceTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_type': 'str', + 'resource_id': 'str' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'resource_id': 'resource_id' + } + + def __init__(self, resource_type=None, resource_id=None): + """ShowResourceTagsRequest + + The model defined in huaweicloud sdk + + :param resource_type: 资源类型 + :type resource_type: str + :param resource_id: 资源ID + :type resource_id: str + """ + + + + self._resource_type = None + self._resource_id = None + self.discriminator = None + + self.resource_type = resource_type + self.resource_id = resource_id + + @property + def resource_type(self): + """Gets the resource_type of this ShowResourceTagsRequest. + + 资源类型 + + :return: The resource_type of this ShowResourceTagsRequest. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this ShowResourceTagsRequest. + + 资源类型 + + :param resource_type: The resource_type of this ShowResourceTagsRequest. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def resource_id(self): + """Gets the resource_id of this ShowResourceTagsRequest. + + 资源ID + + :return: The resource_id of this ShowResourceTagsRequest. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ShowResourceTagsRequest. + + 资源ID + + :param resource_id: The resource_id of this ShowResourceTagsRequest. + :type resource_id: str + """ + self._resource_id = resource_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, ShowResourceTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_response.py new file mode 100644 index 0000000000..d76aecc4ae --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/show_resource_tags_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowResourceTagsResponse(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 = { + 'tags': 'list[ResourceTag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ShowResourceTagsResponse + + The model defined in huaweicloud sdk + + :param tags: + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + + super(ShowResourceTagsResponse, self).__init__() + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this ShowResourceTagsResponse. + + :return: The tags of this ShowResourceTagsResponse. + :rtype: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowResourceTagsResponse. + + :param tags: The tags of this ShowResourceTagsResponse. + :type tags: list[:class:`huaweicloudsdkvpn.v5.ResourceTag`] + """ + 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, ShowResourceTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/tag.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/tag.py new file mode 100644 index 0000000000..296b4b5e0a --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/tag.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Tag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'values': 'list[str]' + } + + attribute_map = { + 'key': 'key', + 'values': 'values' + } + + def __init__(self, key=None, values=None): + """Tag + + The model defined in huaweicloud sdk + + :param key: + :type key: str + :param values: + :type values: list[str] + """ + + + + self._key = None + self._values = None + self.discriminator = None + + self.key = key + self.values = values + + @property + def key(self): + """Gets the key of this Tag. + + :return: The key of this Tag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Tag. + + :param key: The key of this Tag. + :type key: str + """ + self._key = key + + @property + def values(self): + """Gets the values of this Tag. + + :return: The values of this Tag. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this Tag. + + :param values: The values of this Tag. + :type values: list[str] + """ + 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, Tag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_cgw_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_cgw_request_body_content.py index de53bab9fa..2a97b91b69 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_cgw_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_cgw_request_body_content.py @@ -17,29 +17,36 @@ class UpdateCgwRequestBodyContent: sensitive_list = [] openapi_types = { - 'name': 'str' + 'name': 'str', + 'ca_certificate': 'CaCertificateRequest' } attribute_map = { - 'name': 'name' + 'name': 'name', + 'ca_certificate': 'ca_certificate' } - def __init__(self, name=None): + def __init__(self, name=None, ca_certificate=None): """UpdateCgwRequestBodyContent The model defined in huaweicloud sdk :param name: 网关名称 :type name: str + :param ca_certificate: + :type ca_certificate: :class:`huaweicloudsdkvpn.v5.CaCertificateRequest` """ self._name = None + self._ca_certificate = None self.discriminator = None if name is not None: self.name = name + if ca_certificate is not None: + self.ca_certificate = ca_certificate @property def name(self): @@ -63,6 +70,24 @@ def name(self, name): """ self._name = name + @property + def ca_certificate(self): + """Gets the ca_certificate of this UpdateCgwRequestBodyContent. + + :return: The ca_certificate of this UpdateCgwRequestBodyContent. + :rtype: :class:`huaweicloudsdkvpn.v5.CaCertificateRequest` + """ + return self._ca_certificate + + @ca_certificate.setter + def ca_certificate(self, ca_certificate): + """Sets the ca_certificate of this UpdateCgwRequestBodyContent. + + :param ca_certificate: The ca_certificate of this UpdateCgwRequestBodyContent. + :type ca_certificate: :class:`huaweicloudsdkvpn.v5.CaCertificateRequest` + """ + self._ca_certificate = ca_certificate + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_request_policy_template.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_request_policy_template.py new file mode 100644 index 0000000000..71d112c276 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_request_policy_template.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateRequestPolicyTemplate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ike_policy': 'UpdateVgwIkePolicy', + 'ipsec_policy': 'UpdateVgwIpsecPolicy' + } + + attribute_map = { + 'ike_policy': 'ike_policy', + 'ipsec_policy': 'ipsec_policy' + } + + def __init__(self, ike_policy=None, ipsec_policy=None): + """UpdateRequestPolicyTemplate + + The model defined in huaweicloud sdk + + :param ike_policy: + :type ike_policy: :class:`huaweicloudsdkvpn.v5.UpdateVgwIkePolicy` + :param ipsec_policy: + :type ipsec_policy: :class:`huaweicloudsdkvpn.v5.UpdateVgwIpsecPolicy` + """ + + + + self._ike_policy = None + self._ipsec_policy = None + self.discriminator = None + + if ike_policy is not None: + self.ike_policy = ike_policy + if ipsec_policy is not None: + self.ipsec_policy = ipsec_policy + + @property + def ike_policy(self): + """Gets the ike_policy of this UpdateRequestPolicyTemplate. + + :return: The ike_policy of this UpdateRequestPolicyTemplate. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwIkePolicy` + """ + return self._ike_policy + + @ike_policy.setter + def ike_policy(self, ike_policy): + """Sets the ike_policy of this UpdateRequestPolicyTemplate. + + :param ike_policy: The ike_policy of this UpdateRequestPolicyTemplate. + :type ike_policy: :class:`huaweicloudsdkvpn.v5.UpdateVgwIkePolicy` + """ + self._ike_policy = ike_policy + + @property + def ipsec_policy(self): + """Gets the ipsec_policy of this UpdateRequestPolicyTemplate. + + :return: The ipsec_policy of this UpdateRequestPolicyTemplate. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwIpsecPolicy` + """ + return self._ipsec_policy + + @ipsec_policy.setter + def ipsec_policy(self, ipsec_policy): + """Sets the ipsec_policy of this UpdateRequestPolicyTemplate. + + :param ipsec_policy: The ipsec_policy of this UpdateRequestPolicyTemplate. + :type ipsec_policy: :class:`huaweicloudsdkvpn.v5.UpdateVgwIpsecPolicy` + """ + self._ipsec_policy = ipsec_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequestPolicyTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_connection.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_connection.py index c9501d67d3..b21a27e003 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_connection.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_connection.py @@ -34,7 +34,8 @@ class UpdateResponseVpnConnection: 'updated_at': 'str', 'enterprise_project_id': 'str', 'connection_monitor_id': 'str', - 'ha_role': 'str' + 'ha_role': 'str', + 'tags': 'list[VpnResourceTag]' } attribute_map = { @@ -55,10 +56,11 @@ class UpdateResponseVpnConnection: 'updated_at': 'updated_at', 'enterprise_project_id': 'enterprise_project_id', 'connection_monitor_id': 'connection_monitor_id', - 'ha_role': 'ha_role' + 'ha_role': 'ha_role', + 'tags': 'tags' } - def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None): + def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw_id=None, peer_subnets=None, tunnel_local_address=None, tunnel_peer_address=None, enable_nqa=None, policy_rules=None, ikepolicy=None, ipsecpolicy=None, created_at=None, updated_at=None, enterprise_project_id=None, connection_monitor_id=None, ha_role=None, tags=None): """UpdateResponseVpnConnection The model defined in huaweicloud sdk @@ -99,6 +101,8 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw :type connection_monitor_id: str :param ha_role: 连接的HA角色 :type ha_role: str + :param tags: 标签 + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] """ @@ -121,6 +125,7 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw self._enterprise_project_id = None self._connection_monitor_id = None self._ha_role = None + self._tags = None self.discriminator = None if id is not None: @@ -159,6 +164,8 @@ def __init__(self, id=None, name=None, vgw_id=None, vgw_ip=None, style=None, cgw self.connection_monitor_id = connection_monitor_id if ha_role is not None: self.ha_role = ha_role + if tags is not None: + self.tags = tags @property def id(self): @@ -548,6 +555,28 @@ def ha_role(self, ha_role): """ self._ha_role = ha_role + @property + def tags(self): + """Gets the tags of this UpdateResponseVpnConnection. + + 标签 + + :return: The tags of this UpdateResponseVpnConnection. + :rtype: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this UpdateResponseVpnConnection. + + 标签 + + :param tags: The tags of this UpdateResponseVpnConnection. + :type tags: list[:class:`huaweicloudsdkvpn.v5.VpnResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_gateway.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_gateway.py index 2c2204121d..fd22fcea9d 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_gateway.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_response_vpn_gateway.py @@ -20,6 +20,7 @@ class UpdateResponseVpnGateway: 'id': 'str', 'name': 'str', 'attachment_type': 'str', + 'certificate_id': 'str', 'er_id': 'str', 'vpc_id': 'str', 'local_subnets': 'list[str]', @@ -27,7 +28,6 @@ class UpdateResponseVpnGateway: 'network_type': 'str', 'access_vpc_id': 'str', 'access_subnet_id': 'str', - 'access_private_ips': 'list[str]', 'access_private_ip_1': 'str', 'access_private_ip_2': 'str', 'bgp_asn': 'int', @@ -38,18 +38,18 @@ class UpdateResponseVpnGateway: 'used_connection_group': 'int', 'enterprise_project_id': 'str', 'ha_mode': 'str', - 'master_eip': 'ResponseEip', - 'slave_eip': 'ResponseEip', 'eip1': 'ResponseEip', 'eip2': 'ResponseEip', 'created_at': 'datetime', - 'updated_at': 'datetime' + 'updated_at': 'datetime', + 'policy_template': 'PolicyTemplate' } attribute_map = { 'id': 'id', 'name': 'name', 'attachment_type': 'attachment_type', + 'certificate_id': 'certificate_id', 'er_id': 'er_id', 'vpc_id': 'vpc_id', 'local_subnets': 'local_subnets', @@ -57,7 +57,6 @@ class UpdateResponseVpnGateway: 'network_type': 'network_type', 'access_vpc_id': 'access_vpc_id', 'access_subnet_id': 'access_subnet_id', - 'access_private_ips': 'access_private_ips', 'access_private_ip_1': 'access_private_ip_1', 'access_private_ip_2': 'access_private_ip_2', 'bgp_asn': 'bgp_asn', @@ -68,15 +67,14 @@ class UpdateResponseVpnGateway: 'used_connection_group': 'used_connection_group', 'enterprise_project_id': 'enterprise_project_id', 'ha_mode': 'ha_mode', - 'master_eip': 'master_eip', - 'slave_eip': 'slave_eip', 'eip1': 'eip1', 'eip2': 'eip2', 'created_at': 'created_at', - 'updated_at': 'updated_at' + 'updated_at': 'updated_at', + 'policy_template': 'policy_template' } - def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, access_private_ips=None, access_private_ip_1=None, access_private_ip_2=None, bgp_asn=None, flavor=None, availability_zone_ids=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None, ha_mode=None, master_eip=None, slave_eip=None, eip1=None, eip2=None, created_at=None, updated_at=None): + def __init__(self, id=None, name=None, attachment_type=None, certificate_id=None, er_id=None, vpc_id=None, local_subnets=None, connect_subnet=None, network_type=None, access_vpc_id=None, access_subnet_id=None, access_private_ip_1=None, access_private_ip_2=None, bgp_asn=None, flavor=None, availability_zone_ids=None, connection_number=None, used_connection_number=None, used_connection_group=None, enterprise_project_id=None, ha_mode=None, eip1=None, eip2=None, created_at=None, updated_at=None, policy_template=None): """UpdateResponseVpnGateway The model defined in huaweicloud sdk @@ -87,6 +85,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type name: str :param attachment_type: 关联模式 :type attachment_type: str + :param certificate_id: + :type certificate_id: str :param er_id: VPN网关所连接的ER实例的ID :type er_id: str :param vpc_id: VPN网关所连接的VPC的ID @@ -101,11 +101,9 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type access_vpc_id: str :param access_subnet_id: VPN网关北向接入VPC中的接入子网ID :type access_subnet_id: str - :param access_private_ips: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - :type access_private_ips: list[str] - :param access_private_ip_1: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + :param access_private_ip_1: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :type access_private_ip_1: str - :param access_private_ip_2: VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + :param access_private_ip_2: VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :type access_private_ip_2: str :param bgp_asn: bgp所使用的asn号 :type bgp_asn: int @@ -123,10 +121,6 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type enterprise_project_id: str :param ha_mode: ha模式 :type ha_mode: str - :param master_eip: - :type master_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - :param slave_eip: - :type slave_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` :param eip1: :type eip1: :class:`huaweicloudsdkvpn.v5.ResponseEip` :param eip2: @@ -135,6 +129,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= :type created_at: datetime :param updated_at: 更新时间 :type updated_at: datetime + :param policy_template: + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` """ @@ -142,6 +138,7 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self._id = None self._name = None self._attachment_type = None + self._certificate_id = None self._er_id = None self._vpc_id = None self._local_subnets = None @@ -149,7 +146,6 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self._network_type = None self._access_vpc_id = None self._access_subnet_id = None - self._access_private_ips = None self._access_private_ip_1 = None self._access_private_ip_2 = None self._bgp_asn = None @@ -160,12 +156,11 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self._used_connection_group = None self._enterprise_project_id = None self._ha_mode = None - self._master_eip = None - self._slave_eip = None self._eip1 = None self._eip2 = None self._created_at = None self._updated_at = None + self._policy_template = None self.discriminator = None if id is not None: @@ -174,6 +169,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.name = name if attachment_type is not None: self.attachment_type = attachment_type + if certificate_id is not None: + self.certificate_id = certificate_id if er_id is not None: self.er_id = er_id if vpc_id is not None: @@ -188,8 +185,6 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.access_vpc_id = access_vpc_id if access_subnet_id is not None: self.access_subnet_id = access_subnet_id - if access_private_ips is not None: - self.access_private_ips = access_private_ips if access_private_ip_1 is not None: self.access_private_ip_1 = access_private_ip_1 if access_private_ip_2 is not None: @@ -210,10 +205,6 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.enterprise_project_id = enterprise_project_id if ha_mode is not None: self.ha_mode = ha_mode - if master_eip is not None: - self.master_eip = master_eip - if slave_eip is not None: - self.slave_eip = slave_eip if eip1 is not None: self.eip1 = eip1 if eip2 is not None: @@ -222,6 +213,8 @@ def __init__(self, id=None, name=None, attachment_type=None, er_id=None, vpc_id= self.created_at = created_at if updated_at is not None: self.updated_at = updated_at + if policy_template is not None: + self.policy_template = policy_template @property def id(self): @@ -289,6 +282,24 @@ def attachment_type(self, attachment_type): """ self._attachment_type = attachment_type + @property + def certificate_id(self): + """Gets the certificate_id of this UpdateResponseVpnGateway. + + :return: The certificate_id of this UpdateResponseVpnGateway. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this UpdateResponseVpnGateway. + + :param certificate_id: The certificate_id of this UpdateResponseVpnGateway. + :type certificate_id: str + """ + self._certificate_id = certificate_id + @property def er_id(self): """Gets the er_id of this UpdateResponseVpnGateway. @@ -443,33 +454,11 @@ def access_subnet_id(self, access_subnet_id): """ self._access_subnet_id = access_subnet_id - @property - def access_private_ips(self): - """Gets the access_private_ips of this UpdateResponseVpnGateway. - - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - - :return: The access_private_ips of this UpdateResponseVpnGateway. - :rtype: list[str] - """ - return self._access_private_ips - - @access_private_ips.setter - def access_private_ips(self, access_private_ips): - """Sets the access_private_ips of this UpdateResponseVpnGateway. - - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 - - :param access_private_ips: The access_private_ips of this UpdateResponseVpnGateway. - :type access_private_ips: list[str] - """ - self._access_private_ips = access_private_ips - @property def access_private_ip_1(self): """Gets the access_private_ip_1 of this UpdateResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :return: The access_private_ip_1 of this UpdateResponseVpnGateway. :rtype: str @@ -480,7 +469,7 @@ def access_private_ip_1(self): def access_private_ip_1(self, access_private_ip_1): """Sets the access_private_ip_1 of this UpdateResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP :param access_private_ip_1: The access_private_ip_1 of this UpdateResponseVpnGateway. :type access_private_ip_1: str @@ -491,7 +480,7 @@ def access_private_ip_1(self, access_private_ip_1): def access_private_ip_2(self): """Gets the access_private_ip_2 of this UpdateResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :return: The access_private_ip_2 of this UpdateResponseVpnGateway. :rtype: str @@ -502,7 +491,7 @@ def access_private_ip_2(self): def access_private_ip_2(self, access_private_ip_2): """Sets the access_private_ip_2 of this UpdateResponseVpnGateway. - VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP + VPN网关北向接入私网IP,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP :param access_private_ip_2: The access_private_ip_2 of this UpdateResponseVpnGateway. :type access_private_ip_2: str @@ -685,42 +674,6 @@ def ha_mode(self, ha_mode): """ self._ha_mode = ha_mode - @property - def master_eip(self): - """Gets the master_eip of this UpdateResponseVpnGateway. - - :return: The master_eip of this UpdateResponseVpnGateway. - :rtype: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - return self._master_eip - - @master_eip.setter - def master_eip(self, master_eip): - """Sets the master_eip of this UpdateResponseVpnGateway. - - :param master_eip: The master_eip of this UpdateResponseVpnGateway. - :type master_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - self._master_eip = master_eip - - @property - def slave_eip(self): - """Gets the slave_eip of this UpdateResponseVpnGateway. - - :return: The slave_eip of this UpdateResponseVpnGateway. - :rtype: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - return self._slave_eip - - @slave_eip.setter - def slave_eip(self, slave_eip): - """Sets the slave_eip of this UpdateResponseVpnGateway. - - :param slave_eip: The slave_eip of this UpdateResponseVpnGateway. - :type slave_eip: :class:`huaweicloudsdkvpn.v5.ResponseEip` - """ - self._slave_eip = slave_eip - @property def eip1(self): """Gets the eip1 of this UpdateResponseVpnGateway. @@ -801,6 +754,24 @@ def updated_at(self, updated_at): """ self._updated_at = updated_at + @property + def policy_template(self): + """Gets the policy_template of this UpdateResponseVpnGateway. + + :return: The policy_template of this UpdateResponseVpnGateway. + :rtype: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + return self._policy_template + + @policy_template.setter + def policy_template(self, policy_template): + """Sets the policy_template of this UpdateResponseVpnGateway. + + :param policy_template: The policy_template of this UpdateResponseVpnGateway. + :type policy_template: :class:`huaweicloudsdkvpn.v5.PolicyTemplate` + """ + self._policy_template = policy_template + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ike_policy.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ike_policy.py new file mode 100644 index 0000000000..f47aad2ffb --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ike_policy.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVgwIkePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authentication_algorithm': 'str', + 'encryption_algorithm': 'str', + 'dh_group': 'str', + 'lifetime_seconds': 'int' + } + + attribute_map = { + 'authentication_algorithm': 'authentication_algorithm', + 'encryption_algorithm': 'encryption_algorithm', + 'dh_group': 'dh_group', + 'lifetime_seconds': 'lifetime_seconds' + } + + def __init__(self, authentication_algorithm=None, encryption_algorithm=None, dh_group=None, lifetime_seconds=None): + """UpdateVgwIkePolicy + + The model defined in huaweicloud sdk + + :param authentication_algorithm: 加密算法 + :type authentication_algorithm: str + :param encryption_algorithm: 加密算法 + :type encryption_algorithm: str + :param dh_group: DH密钥组 + :type dh_group: str + :param lifetime_seconds: 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + :type lifetime_seconds: int + """ + + + + self._authentication_algorithm = None + self._encryption_algorithm = None + self._dh_group = None + self._lifetime_seconds = None + self.discriminator = None + + if authentication_algorithm is not None: + self.authentication_algorithm = authentication_algorithm + if encryption_algorithm is not None: + self.encryption_algorithm = encryption_algorithm + if dh_group is not None: + self.dh_group = dh_group + if lifetime_seconds is not None: + self.lifetime_seconds = lifetime_seconds + + @property + def authentication_algorithm(self): + """Gets the authentication_algorithm of this UpdateVgwIkePolicy. + + 加密算法 + + :return: The authentication_algorithm of this UpdateVgwIkePolicy. + :rtype: str + """ + return self._authentication_algorithm + + @authentication_algorithm.setter + def authentication_algorithm(self, authentication_algorithm): + """Sets the authentication_algorithm of this UpdateVgwIkePolicy. + + 加密算法 + + :param authentication_algorithm: The authentication_algorithm of this UpdateVgwIkePolicy. + :type authentication_algorithm: str + """ + self._authentication_algorithm = authentication_algorithm + + @property + def encryption_algorithm(self): + """Gets the encryption_algorithm of this UpdateVgwIkePolicy. + + 加密算法 + + :return: The encryption_algorithm of this UpdateVgwIkePolicy. + :rtype: str + """ + return self._encryption_algorithm + + @encryption_algorithm.setter + def encryption_algorithm(self, encryption_algorithm): + """Sets the encryption_algorithm of this UpdateVgwIkePolicy. + + 加密算法 + + :param encryption_algorithm: The encryption_algorithm of this UpdateVgwIkePolicy. + :type encryption_algorithm: str + """ + self._encryption_algorithm = encryption_algorithm + + @property + def dh_group(self): + """Gets the dh_group of this UpdateVgwIkePolicy. + + DH密钥组 + + :return: The dh_group of this UpdateVgwIkePolicy. + :rtype: str + """ + return self._dh_group + + @dh_group.setter + def dh_group(self, dh_group): + """Sets the dh_group of this UpdateVgwIkePolicy. + + DH密钥组 + + :param dh_group: The dh_group of this UpdateVgwIkePolicy. + :type dh_group: str + """ + self._dh_group = dh_group + + @property + def lifetime_seconds(self): + """Gets the lifetime_seconds of this UpdateVgwIkePolicy. + + 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + + :return: The lifetime_seconds of this UpdateVgwIkePolicy. + :rtype: int + """ + return self._lifetime_seconds + + @lifetime_seconds.setter + def lifetime_seconds(self, lifetime_seconds): + """Sets the lifetime_seconds of this UpdateVgwIkePolicy. + + 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + + :param lifetime_seconds: The lifetime_seconds of this UpdateVgwIkePolicy. + :type lifetime_seconds: int + """ + self._lifetime_seconds = lifetime_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVgwIkePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ipsec_policy.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ipsec_policy.py new file mode 100644 index 0000000000..34b9dcaa43 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_ipsec_policy.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVgwIpsecPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authentication_algorithm': 'str', + 'encryption_algorithm': 'str', + 'pfs': 'str', + 'lifetime_seconds': 'int' + } + + attribute_map = { + 'authentication_algorithm': 'authentication_algorithm', + 'encryption_algorithm': 'encryption_algorithm', + 'pfs': 'pfs', + 'lifetime_seconds': 'lifetime_seconds' + } + + def __init__(self, authentication_algorithm=None, encryption_algorithm=None, pfs=None, lifetime_seconds=None): + """UpdateVgwIpsecPolicy + + The model defined in huaweicloud sdk + + :param authentication_algorithm: 加密算法 + :type authentication_algorithm: str + :param encryption_algorithm: 加密算法 + :type encryption_algorithm: str + :param pfs: PFS使用的DH密钥组 + :type pfs: str + :param lifetime_seconds: 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + :type lifetime_seconds: int + """ + + + + self._authentication_algorithm = None + self._encryption_algorithm = None + self._pfs = None + self._lifetime_seconds = None + self.discriminator = None + + if authentication_algorithm is not None: + self.authentication_algorithm = authentication_algorithm + if encryption_algorithm is not None: + self.encryption_algorithm = encryption_algorithm + if pfs is not None: + self.pfs = pfs + if lifetime_seconds is not None: + self.lifetime_seconds = lifetime_seconds + + @property + def authentication_algorithm(self): + """Gets the authentication_algorithm of this UpdateVgwIpsecPolicy. + + 加密算法 + + :return: The authentication_algorithm of this UpdateVgwIpsecPolicy. + :rtype: str + """ + return self._authentication_algorithm + + @authentication_algorithm.setter + def authentication_algorithm(self, authentication_algorithm): + """Sets the authentication_algorithm of this UpdateVgwIpsecPolicy. + + 加密算法 + + :param authentication_algorithm: The authentication_algorithm of this UpdateVgwIpsecPolicy. + :type authentication_algorithm: str + """ + self._authentication_algorithm = authentication_algorithm + + @property + def encryption_algorithm(self): + """Gets the encryption_algorithm of this UpdateVgwIpsecPolicy. + + 加密算法 + + :return: The encryption_algorithm of this UpdateVgwIpsecPolicy. + :rtype: str + """ + return self._encryption_algorithm + + @encryption_algorithm.setter + def encryption_algorithm(self, encryption_algorithm): + """Sets the encryption_algorithm of this UpdateVgwIpsecPolicy. + + 加密算法 + + :param encryption_algorithm: The encryption_algorithm of this UpdateVgwIpsecPolicy. + :type encryption_algorithm: str + """ + self._encryption_algorithm = encryption_algorithm + + @property + def pfs(self): + """Gets the pfs of this UpdateVgwIpsecPolicy. + + PFS使用的DH密钥组 + + :return: The pfs of this UpdateVgwIpsecPolicy. + :rtype: str + """ + return self._pfs + + @pfs.setter + def pfs(self, pfs): + """Sets the pfs of this UpdateVgwIpsecPolicy. + + PFS使用的DH密钥组 + + :param pfs: The pfs of this UpdateVgwIpsecPolicy. + :type pfs: str + """ + self._pfs = pfs + + @property + def lifetime_seconds(self): + """Gets the lifetime_seconds of this UpdateVgwIpsecPolicy. + + 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + + :return: The lifetime_seconds of this UpdateVgwIpsecPolicy. + :rtype: int + """ + return self._lifetime_seconds + + @lifetime_seconds.setter + def lifetime_seconds(self, lifetime_seconds): + """Sets the lifetime_seconds of this UpdateVgwIpsecPolicy. + + 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + + :param lifetime_seconds: The lifetime_seconds of this UpdateVgwIpsecPolicy. + :type lifetime_seconds: int + """ + self._lifetime_seconds = lifetime_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVgwIpsecPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_request_body_content.py index 9137796f50..36d3e28239 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_request_body_content.py @@ -19,22 +19,20 @@ class UpdateVgwRequestBodyContent: openapi_types = { 'name': 'str', 'local_subnets': 'list[str]', - 'master_eip_id': 'str', - 'slave_eip_id': 'str', 'eip_id_1': 'str', - 'eip_id_2': 'str' + 'eip_id_2': 'str', + 'policy_template': 'UpdateRequestPolicyTemplate' } attribute_map = { 'name': 'name', 'local_subnets': 'local_subnets', - 'master_eip_id': 'master_eip_id', - 'slave_eip_id': 'slave_eip_id', 'eip_id_1': 'eip_id_1', - 'eip_id_2': 'eip_id_2' + 'eip_id_2': 'eip_id_2', + 'policy_template': 'policy_template' } - def __init__(self, name=None, local_subnets=None, master_eip_id=None, slave_eip_id=None, eip_id_1=None, eip_id_2=None): + def __init__(self, name=None, local_subnets=None, eip_id_1=None, eip_id_2=None, policy_template=None): """UpdateVgwRequestBodyContent The model defined in huaweicloud sdk @@ -43,38 +41,33 @@ def __init__(self, name=None, local_subnets=None, master_eip_id=None, slave_eip_ :type name: str :param local_subnets: 本端子网 :type local_subnets: list[str] - :param master_eip_id: 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP - :type master_eip_id: str - :param slave_eip_id: 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP - :type slave_eip_id: str :param eip_id_1: 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP :type eip_id_1: str :param eip_id_2: 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP :type eip_id_2: str + :param policy_template: + :type policy_template: :class:`huaweicloudsdkvpn.v5.UpdateRequestPolicyTemplate` """ self._name = None self._local_subnets = None - self._master_eip_id = None - self._slave_eip_id = None self._eip_id_1 = None self._eip_id_2 = None + self._policy_template = None self.discriminator = None if name is not None: self.name = name if local_subnets is not None: self.local_subnets = local_subnets - if master_eip_id is not None: - self.master_eip_id = master_eip_id - if slave_eip_id is not None: - self.slave_eip_id = slave_eip_id if eip_id_1 is not None: self.eip_id_1 = eip_id_1 if eip_id_2 is not None: self.eip_id_2 = eip_id_2 + if policy_template is not None: + self.policy_template = policy_template @property def name(self): @@ -120,50 +113,6 @@ def local_subnets(self, local_subnets): """ self._local_subnets = local_subnets - @property - def master_eip_id(self): - """Gets the master_eip_id of this UpdateVgwRequestBodyContent. - - 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP - - :return: The master_eip_id of this UpdateVgwRequestBodyContent. - :rtype: str - """ - return self._master_eip_id - - @master_eip_id.setter - def master_eip_id(self, master_eip_id): - """Sets the master_eip_id of this UpdateVgwRequestBodyContent. - - 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP - - :param master_eip_id: The master_eip_id of this UpdateVgwRequestBodyContent. - :type master_eip_id: str - """ - self._master_eip_id = master_eip_id - - @property - def slave_eip_id(self): - """Gets the slave_eip_id of this UpdateVgwRequestBodyContent. - - 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP - - :return: The slave_eip_id of this UpdateVgwRequestBodyContent. - :rtype: str - """ - return self._slave_eip_id - - @slave_eip_id.setter - def slave_eip_id(self, slave_eip_id): - """Sets the slave_eip_id of this UpdateVgwRequestBodyContent. - - 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP - - :param slave_eip_id: The slave_eip_id of this UpdateVgwRequestBodyContent. - :type slave_eip_id: str - """ - self._slave_eip_id = slave_eip_id - @property def eip_id_1(self): """Gets the eip_id_1 of this UpdateVgwRequestBodyContent. @@ -208,6 +157,24 @@ def eip_id_2(self, eip_id_2): """ self._eip_id_2 = eip_id_2 + @property + def policy_template(self): + """Gets the policy_template of this UpdateVgwRequestBodyContent. + + :return: The policy_template of this UpdateVgwRequestBodyContent. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateRequestPolicyTemplate` + """ + return self._policy_template + + @policy_template.setter + def policy_template(self, policy_template): + """Sets the policy_template of this UpdateVgwRequestBodyContent. + + :param policy_template: The policy_template of this UpdateVgwRequestBodyContent. + :type policy_template: :class:`huaweicloudsdkvpn.v5.UpdateRequestPolicyTemplate` + """ + self._policy_template = policy_template + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ike_policy.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ike_policy.py new file mode 100644 index 0000000000..9a7be27451 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ike_policy.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VgwIkePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'encryption_algorithm': 'str', + 'dh_group': 'str', + 'authentication_algorithm': 'str', + 'lifetime_seconds': 'int' + } + + attribute_map = { + 'encryption_algorithm': 'encryption_algorithm', + 'dh_group': 'dh_group', + 'authentication_algorithm': 'authentication_algorithm', + 'lifetime_seconds': 'lifetime_seconds' + } + + def __init__(self, encryption_algorithm=None, dh_group=None, authentication_algorithm=None, lifetime_seconds=None): + """VgwIkePolicy + + The model defined in huaweicloud sdk + + :param encryption_algorithm: 加密算法 + :type encryption_algorithm: str + :param dh_group: DH密钥组 + :type dh_group: str + :param authentication_algorithm: 认证算法 + :type authentication_algorithm: str + :param lifetime_seconds: 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + :type lifetime_seconds: int + """ + + + + self._encryption_algorithm = None + self._dh_group = None + self._authentication_algorithm = None + self._lifetime_seconds = None + self.discriminator = None + + if encryption_algorithm is not None: + self.encryption_algorithm = encryption_algorithm + if dh_group is not None: + self.dh_group = dh_group + if authentication_algorithm is not None: + self.authentication_algorithm = authentication_algorithm + if lifetime_seconds is not None: + self.lifetime_seconds = lifetime_seconds + + @property + def encryption_algorithm(self): + """Gets the encryption_algorithm of this VgwIkePolicy. + + 加密算法 + + :return: The encryption_algorithm of this VgwIkePolicy. + :rtype: str + """ + return self._encryption_algorithm + + @encryption_algorithm.setter + def encryption_algorithm(self, encryption_algorithm): + """Sets the encryption_algorithm of this VgwIkePolicy. + + 加密算法 + + :param encryption_algorithm: The encryption_algorithm of this VgwIkePolicy. + :type encryption_algorithm: str + """ + self._encryption_algorithm = encryption_algorithm + + @property + def dh_group(self): + """Gets the dh_group of this VgwIkePolicy. + + DH密钥组 + + :return: The dh_group of this VgwIkePolicy. + :rtype: str + """ + return self._dh_group + + @dh_group.setter + def dh_group(self, dh_group): + """Sets the dh_group of this VgwIkePolicy. + + DH密钥组 + + :param dh_group: The dh_group of this VgwIkePolicy. + :type dh_group: str + """ + self._dh_group = dh_group + + @property + def authentication_algorithm(self): + """Gets the authentication_algorithm of this VgwIkePolicy. + + 认证算法 + + :return: The authentication_algorithm of this VgwIkePolicy. + :rtype: str + """ + return self._authentication_algorithm + + @authentication_algorithm.setter + def authentication_algorithm(self, authentication_algorithm): + """Sets the authentication_algorithm of this VgwIkePolicy. + + 认证算法 + + :param authentication_algorithm: The authentication_algorithm of this VgwIkePolicy. + :type authentication_algorithm: str + """ + self._authentication_algorithm = authentication_algorithm + + @property + def lifetime_seconds(self): + """Gets the lifetime_seconds of this VgwIkePolicy. + + 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + + :return: The lifetime_seconds of this VgwIkePolicy. + :rtype: int + """ + return self._lifetime_seconds + + @lifetime_seconds.setter + def lifetime_seconds(self, lifetime_seconds): + """Sets the lifetime_seconds of this VgwIkePolicy. + + 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新 + + :param lifetime_seconds: The lifetime_seconds of this VgwIkePolicy. + :type lifetime_seconds: int + """ + self._lifetime_seconds = lifetime_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VgwIkePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ipsec_policy.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ipsec_policy.py new file mode 100644 index 0000000000..6e7c0e9e42 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vgw_ipsec_policy.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VgwIpsecPolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authentication_algorithm': 'str', + 'encryption_algorithm': 'str', + 'pfs': 'str', + 'lifetime_seconds': 'int' + } + + attribute_map = { + 'authentication_algorithm': 'authentication_algorithm', + 'encryption_algorithm': 'encryption_algorithm', + 'pfs': 'pfs', + 'lifetime_seconds': 'lifetime_seconds' + } + + def __init__(self, authentication_algorithm=None, encryption_algorithm=None, pfs=None, lifetime_seconds=None): + """VgwIpsecPolicy + + The model defined in huaweicloud sdk + + :param authentication_algorithm: 认证算法 + :type authentication_algorithm: str + :param encryption_algorithm: 加密算法 + :type encryption_algorithm: str + :param pfs: DH密钥组 + :type pfs: str + :param lifetime_seconds: 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + :type lifetime_seconds: int + """ + + + + self._authentication_algorithm = None + self._encryption_algorithm = None + self._pfs = None + self._lifetime_seconds = None + self.discriminator = None + + if authentication_algorithm is not None: + self.authentication_algorithm = authentication_algorithm + if encryption_algorithm is not None: + self.encryption_algorithm = encryption_algorithm + if pfs is not None: + self.pfs = pfs + if lifetime_seconds is not None: + self.lifetime_seconds = lifetime_seconds + + @property + def authentication_algorithm(self): + """Gets the authentication_algorithm of this VgwIpsecPolicy. + + 认证算法 + + :return: The authentication_algorithm of this VgwIpsecPolicy. + :rtype: str + """ + return self._authentication_algorithm + + @authentication_algorithm.setter + def authentication_algorithm(self, authentication_algorithm): + """Sets the authentication_algorithm of this VgwIpsecPolicy. + + 认证算法 + + :param authentication_algorithm: The authentication_algorithm of this VgwIpsecPolicy. + :type authentication_algorithm: str + """ + self._authentication_algorithm = authentication_algorithm + + @property + def encryption_algorithm(self): + """Gets the encryption_algorithm of this VgwIpsecPolicy. + + 加密算法 + + :return: The encryption_algorithm of this VgwIpsecPolicy. + :rtype: str + """ + return self._encryption_algorithm + + @encryption_algorithm.setter + def encryption_algorithm(self, encryption_algorithm): + """Sets the encryption_algorithm of this VgwIpsecPolicy. + + 加密算法 + + :param encryption_algorithm: The encryption_algorithm of this VgwIpsecPolicy. + :type encryption_algorithm: str + """ + self._encryption_algorithm = encryption_algorithm + + @property + def pfs(self): + """Gets the pfs of this VgwIpsecPolicy. + + DH密钥组 + + :return: The pfs of this VgwIpsecPolicy. + :rtype: str + """ + return self._pfs + + @pfs.setter + def pfs(self, pfs): + """Sets the pfs of this VgwIpsecPolicy. + + DH密钥组 + + :param pfs: The pfs of this VgwIpsecPolicy. + :type pfs: str + """ + self._pfs = pfs + + @property + def lifetime_seconds(self): + """Gets the lifetime_seconds of this VgwIpsecPolicy. + + 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + + :return: The lifetime_seconds of this VgwIpsecPolicy. + :rtype: int + """ + return self._lifetime_seconds + + @lifetime_seconds.setter + def lifetime_seconds(self, lifetime_seconds): + """Sets the lifetime_seconds of this VgwIpsecPolicy. + + 表示配置IPSec连接建立的隧道以时间为基准的生存周期 + + :param lifetime_seconds: The lifetime_seconds of this VgwIpsecPolicy. + :type lifetime_seconds: int + """ + self._lifetime_seconds = lifetime_seconds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VgwIpsecPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate.py index a57ec9e89f..ca2c580327 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate.py @@ -15,6 +15,7 @@ class VpnGatewayCertificate: and the value is json key in definition. """ sensitive_list = [] + sensitive_list.append('issuer') openapi_types = { 'id': 'str', diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_config.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_config.py index 5791a351cf..a501fabbe4 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_config.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_config.py @@ -15,6 +15,7 @@ class VpnGatewayCertificateConfig: and the value is json key in definition. """ sensitive_list = [] + sensitive_list.append('issuer') openapi_types = { 'id': 'str', diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body.py index 846bf50f3f..6059704237 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body.py @@ -38,8 +38,7 @@ def __init__(self, certificate=None): self._certificate = None self.discriminator = None - if certificate is not None: - self.certificate = certificate + self.certificate = certificate @property def certificate(self): diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body_content.py index 71cb1ecbd2..58c1d1edcc 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body_content.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_gateway_certificate_request_body_content.py @@ -70,16 +70,11 @@ def __init__(self, name=None, certificate=None, private_key=None, certificate_ch if name is not None: self.name = name - if certificate is not None: - self.certificate = certificate - if private_key is not None: - self.private_key = private_key - if certificate_chain is not None: - self.certificate_chain = certificate_chain - if enc_certificate is not None: - self.enc_certificate = enc_certificate - if enc_private_key is not None: - self.enc_private_key = enc_private_key + self.certificate = certificate + self.private_key = private_key + self.certificate_chain = certificate_chain + self.enc_certificate = enc_certificate + self.enc_private_key = enc_private_key @property def name(self): diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_resource_tag.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_resource_tag.py new file mode 100644 index 0000000000..efcaa8e427 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/vpn_resource_tag.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VpnResourceTag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """VpnResourceTag + + The model defined in huaweicloud sdk + + :param key: 标签的key + :type key: str + :param value: 标签的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 VpnResourceTag. + + 标签的key + + :return: The key of this VpnResourceTag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this VpnResourceTag. + + 标签的key + + :param key: The key of this VpnResourceTag. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this VpnResourceTag. + + 标签的value + + :return: The value of this VpnResourceTag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this VpnResourceTag. + + 标签的value + + :param value: The value of this VpnResourceTag. + :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, VpnResourceTag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py index 1aeaa4794c..aeb161efc3 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -55,9 +52,9 @@ class VpnRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -66,6 +63,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Vpn': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py index 424619f84b..58f172fc75 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def create_cgw_async(self, request): - """创建对端网关 + def create_connection_monitor_async(self, request): + """创建VPN连接监控 - 创建租户用于与VPN网关相连的对端网关 + 创建VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateCgw - :type request: :class:`huaweicloudsdkvpn.v5.CreateCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateCgwResponse` + :param request: Request instance for CreateConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorResponse` """ - http_info = self._create_cgw_http_info(request) + http_info = self._create_connection_monitor_http_info(request) return self._call_api(**http_info) - def create_cgw_async_invoker(self, request): - http_info = self._create_cgw_http_info(request) + def create_connection_monitor_async_invoker(self, request): + http_info = self._create_connection_monitor_http_info(request) return AsyncInvoker(self, http_info) - def _create_cgw_http_info(self, request): + def _create_connection_monitor_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/customer-gateways", + "resource_path": "/v5/{project_id}/connection-monitors", "request_type": request.__class__.__name__, - "response_type": "CreateCgwResponse" + "response_type": "CreateConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -97,31 +97,31 @@ def _create_cgw_http_info(self, request): return http_info - def delete_cgw_async(self, request): - """删除对端网关 + def delete_connection_monitor_async(self, request): + """删除VPN连接监控 - 根据对端网关ID,删除指定的对端网关 + 根据VPN连接监控的ID,删除指定的VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteCgw - :type request: :class:`huaweicloudsdkvpn.v5.DeleteCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteCgwResponse` + :param request: Request instance for DeleteConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorResponse` """ - http_info = self._delete_cgw_http_info(request) + http_info = self._delete_connection_monitor_http_info(request) return self._call_api(**http_info) - def delete_cgw_async_invoker(self, request): - http_info = self._delete_cgw_http_info(request) + def delete_connection_monitor_async_invoker(self, request): + http_info = self._delete_connection_monitor_http_info(request) return AsyncInvoker(self, http_info) - def _delete_cgw_http_info(self, request): + def _delete_connection_monitor_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteCgwResponse" + "response_type": "DeleteConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -131,8 +131,8 @@ def _delete_cgw_http_info(self, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] + if 'connection_monitor_id' in local_var_params: + path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] @@ -162,31 +162,31 @@ def _delete_cgw_http_info(self, request): return http_info - def list_cgws_async(self, request): - """查询对端网关列表 + def list_connection_monitors_async(self, request): + """查询VPN连接监控列表 - 查询对端网关列表 + 查询VPN连接监控列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListCgws - :type request: :class:`huaweicloudsdkvpn.v5.ListCgwsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListCgwsResponse` + :param request: Request instance for ListConnectionMonitors + :type request: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsResponse` """ - http_info = self._list_cgws_http_info(request) + http_info = self._list_connection_monitors_http_info(request) return self._call_api(**http_info) - def list_cgws_async_invoker(self, request): - http_info = self._list_cgws_http_info(request) + def list_connection_monitors_async_invoker(self, request): + http_info = self._list_connection_monitors_http_info(request) return AsyncInvoker(self, http_info) - def _list_cgws_http_info(self, request): + def _list_connection_monitors_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/customer-gateways", + "resource_path": "/v5/{project_id}/connection-monitors", "request_type": request.__class__.__name__, - "response_type": "ListCgwsResponse" + "response_type": "ListConnectionMonitorsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -198,12 +198,11 @@ def _list_cgws_http_info(self, request): path_params = {} query_params = [] - if 'cgw_id' in local_var_params: - query_params.append(('cgw_id', local_var_params['cgw_id'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) + if 'vpn_connection_id' in local_var_params: + query_params.append(('vpn_connection_id', local_var_params['vpn_connection_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' header_params = {} @@ -231,31 +230,31 @@ def _list_cgws_http_info(self, request): return http_info - def show_cgw_async(self, request): - """查询对端网关 + def show_connection_monitor_async(self, request): + """查询VPN连接监控 - 根据对端网关ID,查询指定的对端网关 + 根据VPN连接监控的ID,查询指定的VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowCgw - :type request: :class:`huaweicloudsdkvpn.v5.ShowCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowCgwResponse` + :param request: Request instance for ShowConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorResponse` """ - http_info = self._show_cgw_http_info(request) + http_info = self._show_connection_monitor_http_info(request) return self._call_api(**http_info) - def show_cgw_async_invoker(self, request): - http_info = self._show_cgw_http_info(request) + def show_connection_monitor_async_invoker(self, request): + http_info = self._show_connection_monitor_http_info(request) return AsyncInvoker(self, http_info) - def _show_cgw_http_info(self, request): + def _show_connection_monitor_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", "request_type": request.__class__.__name__, - "response_type": "ShowCgwResponse" + "response_type": "ShowConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -265,8 +264,8 @@ def _show_cgw_http_info(self, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] + if 'connection_monitor_id' in local_var_params: + path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] @@ -296,31 +295,31 @@ def _show_cgw_http_info(self, request): return http_info - def update_cgw_async(self, request): - """更新对端网关 + def create_cgw_async(self, request): + """创建对端网关 - 根据对端网关ID,更新指定的对端网关 + 创建租户用于与VPN网关相连的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateCgw - :type request: :class:`huaweicloudsdkvpn.v5.UpdateCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateCgwResponse` + :param request: Request instance for CreateCgw + :type request: :class:`huaweicloudsdkvpn.v5.CreateCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateCgwResponse` """ - http_info = self._update_cgw_http_info(request) + http_info = self._create_cgw_http_info(request) return self._call_api(**http_info) - def update_cgw_async_invoker(self, request): - http_info = self._update_cgw_http_info(request) + def create_cgw_async_invoker(self, request): + http_info = self._create_cgw_http_info(request) return AsyncInvoker(self, http_info) - def _update_cgw_http_info(self, request): + def _create_cgw_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/customer-gateways", "request_type": request.__class__.__name__, - "response_type": "UpdateCgwResponse" + "response_type": "CreateCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -330,8 +329,6 @@ def _update_cgw_http_info(self, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -345,7 +342,7 @@ def _update_cgw_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -363,31 +360,31 @@ def _update_cgw_http_info(self, request): return http_info - def create_vpn_connection_async(self, request): - """创建VPN连接 + def delete_cgw_async(self, request): + """删除对端网关 - 创建VPN连接,连接VPN网关与对端网关 + 根据对端网关ID,删除指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionResponse` + :param request: Request instance for DeleteCgw + :type request: :class:`huaweicloudsdkvpn.v5.DeleteCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteCgwResponse` """ - http_info = self._create_vpn_connection_http_info(request) + http_info = self._delete_cgw_http_info(request) return self._call_api(**http_info) - def create_vpn_connection_async_invoker(self, request): - http_info = self._create_vpn_connection_http_info(request) + def delete_cgw_async_invoker(self, request): + http_info = self._delete_cgw_http_info(request) return AsyncInvoker(self, http_info) - def _create_vpn_connection_http_info(self, request): + def _delete_cgw_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/{project_id}/vpn-connection", + "method": "DELETE", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "CreateVpnConnectionResponse" + "response_type": "DeleteCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -397,6 +394,8 @@ def _create_vpn_connection_http_info(self, request): collection_formats = {} path_params = {} + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -405,12 +404,10 @@ def _create_vpn_connection_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -428,31 +425,31 @@ def _create_vpn_connection_http_info(self, request): return http_info - def delete_vpn_connection_async(self, request): - """删除VPN连接 + def list_cgws_async(self, request): + """查询对端网关列表 - 根据连接ID,删除指定的VPN连接 + 查询对端网关列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionResponse` + :param request: Request instance for ListCgws + :type request: :class:`huaweicloudsdkvpn.v5.ListCgwsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListCgwsResponse` """ - http_info = self._delete_vpn_connection_http_info(request) + http_info = self._list_cgws_http_info(request) return self._call_api(**http_info) - def delete_vpn_connection_async_invoker(self, request): - http_info = self._delete_vpn_connection_http_info(request) + def list_cgws_async_invoker(self, request): + http_info = self._list_cgws_http_info(request) return AsyncInvoker(self, http_info) - def _delete_vpn_connection_http_info(self, request): + def _list_cgws_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/customer-gateways", "request_type": request.__class__.__name__, - "response_type": "DeleteVpnConnectionResponse" + "response_type": "ListCgwsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -462,10 +459,14 @@ def _delete_vpn_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] query_params = [] + if 'cgw_id' in local_var_params: + query_params.append(('cgw_id', local_var_params['cgw_id'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) header_params = {} @@ -493,31 +494,31 @@ def _delete_vpn_connection_http_info(self, request): return http_info - def list_vpn_connections_async(self, request): - """查询VPN连接列表 + def show_cgw_async(self, request): + """查询对端网关 - 查询VPN连接列表 + 根据对端网关ID,查询指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListVpnConnections - :type request: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsResponse` + :param request: Request instance for ShowCgw + :type request: :class:`huaweicloudsdkvpn.v5.ShowCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowCgwResponse` """ - http_info = self._list_vpn_connections_http_info(request) + http_info = self._show_cgw_http_info(request) return self._call_api(**http_info) - def list_vpn_connections_async_invoker(self, request): - http_info = self._list_vpn_connections_http_info(request) + def show_cgw_async_invoker(self, request): + http_info = self._show_cgw_http_info(request) return AsyncInvoker(self, http_info) - def _list_vpn_connections_http_info(self, request): + def _show_cgw_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-connection", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListVpnConnectionsResponse" + "response_type": "ShowCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -527,23 +528,10 @@ def _list_vpn_connections_http_info(self, request): collection_formats = {} path_params = {} + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] - if 'vpn_id' in local_var_params: - query_params.append(('vpn_id', local_var_params['vpn_id'])) - if 'eip_id' in local_var_params: - query_params.append(('eip_id', local_var_params['eip_id'])) - if 'vgw_ip' in local_var_params: - query_params.append(('vgw_ip', local_var_params['vgw_ip'])) - if 'vgw_id' in local_var_params: - query_params.append(('vgw_id', local_var_params['vgw_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) header_params = {} @@ -553,7 +541,7 @@ def _list_vpn_connections_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -571,31 +559,31 @@ def _list_vpn_connections_http_info(self, request): return http_info - def show_vpn_connection_async(self, request): - """查询VPN连接 + def update_cgw_async(self, request): + """更新对端网关 - 根据连接ID,查询指定的VPN连接的参数 + 根据对端网关ID,更新指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionResponse` + :param request: Request instance for UpdateCgw + :type request: :class:`huaweicloudsdkvpn.v5.UpdateCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateCgwResponse` """ - http_info = self._show_vpn_connection_http_info(request) + http_info = self._update_cgw_http_info(request) return self._call_api(**http_info) - def show_vpn_connection_async_invoker(self, request): - http_info = self._show_vpn_connection_http_info(request) + def update_cgw_async_invoker(self, request): + http_info = self._update_cgw_http_info(request) return AsyncInvoker(self, http_info) - def _show_vpn_connection_http_info(self, request): + def _update_cgw_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "PUT", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ShowVpnConnectionResponse" + "response_type": "UpdateCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -605,8 +593,8 @@ def _show_vpn_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -615,10 +603,12 @@ def _show_vpn_connection_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -636,31 +626,31 @@ def _show_vpn_connection_http_info(self, request): return http_info - def update_vpn_connection_async(self, request): - """更新VPN连接 + def batch_create_resource_tags_async(self, request): + """批量添加资源标签 - 根据连接ID,更新指定的VPN连接的参数 + 为指定实例批量添加标签,标签管理服务需要使用该接口批量管理实例的标签.一个资源上最多有20个标签 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionResponse` + :param request: Request instance for BatchCreateResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.BatchCreateResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.BatchCreateResourceTagsResponse` """ - http_info = self._update_vpn_connection_http_info(request) + http_info = self._batch_create_resource_tags_http_info(request) return self._call_api(**http_info) - def update_vpn_connection_async_invoker(self, request): - http_info = self._update_vpn_connection_http_info(request) + def batch_create_resource_tags_async_invoker(self, request): + http_info = self._batch_create_resource_tags_http_info(request) return AsyncInvoker(self, http_info) - def _update_vpn_connection_http_info(self, request): + def _batch_create_resource_tags_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/create", "request_type": request.__class__.__name__, - "response_type": "UpdateVpnConnectionResponse" + "response_type": "BatchCreateResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -670,8 +660,10 @@ def _update_vpn_connection_http_info(self, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -685,7 +677,7 @@ def _update_vpn_connection_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -703,31 +695,31 @@ def _update_vpn_connection_http_info(self, request): return http_info - def create_vgw_async(self, request): - """创建VPN网关 + def batch_delete_resource_tags_async(self, request): + """批量删除资源标签 - 创建一个VPN网关 + 为指定实例批量删除标签,标签管理服务需要使用该接口批量管理实例的标签. Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVgw - :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwResponse` + :param request: Request instance for BatchDeleteResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.BatchDeleteResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.BatchDeleteResourceTagsResponse` """ - http_info = self._create_vgw_http_info(request) + http_info = self._batch_delete_resource_tags_http_info(request) return self._call_api(**http_info) - def create_vgw_async_invoker(self, request): - http_info = self._create_vgw_http_info(request) + def batch_delete_resource_tags_async_invoker(self, request): + http_info = self._batch_delete_resource_tags_http_info(request) return AsyncInvoker(self, http_info) - def _create_vgw_http_info(self, request): + def _batch_delete_resource_tags_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/vpn-gateways", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/delete", "request_type": request.__class__.__name__, - "response_type": "CreateVgwResponse" + "response_type": "BatchDeleteResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -737,6 +729,10 @@ def _create_vgw_http_info(self, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -750,7 +746,7 @@ def _create_vgw_http_info(self, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -768,31 +764,31 @@ def _create_vgw_http_info(self, request): return http_info - def delete_vgw_async(self, request): - """删除VPN网关 + def count_resources_by_tags_async(self, request): + """查询标签下资源实例数量 - 根据VPN网关ID,删除指定的VPN网关 + 使用标签过滤实例,并查询实例数量,需要各服务提供查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteVgw - :type request: :class:`huaweicloudsdkvpn.v5.DeleteVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVgwResponse` + :param request: Request instance for CountResourcesByTags + :type request: :class:`huaweicloudsdkvpn.v5.CountResourcesByTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CountResourcesByTagsResponse` """ - http_info = self._delete_vgw_http_info(request) + http_info = self._count_resources_by_tags_http_info(request) return self._call_api(**http_info) - def delete_vgw_async_invoker(self, request): - http_info = self._delete_vgw_http_info(request) + def count_resources_by_tags_async_invoker(self, request): + http_info = self._count_resources_by_tags_http_info(request) return AsyncInvoker(self, http_info) - def _delete_vgw_http_info(self, request): + def _count_resources_by_tags_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/count", "request_type": request.__class__.__name__, - "response_type": "DeleteVgwResponse" + "response_type": "CountResourcesByTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -802,8 +798,8 @@ def _delete_vgw_http_info(self, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] @@ -812,6 +808,8 @@ def _delete_vgw_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -833,31 +831,31 @@ def _delete_vgw_http_info(self, request): return http_info - def list_availability_zones_async(self, request): - """查询VPN网关可用区 + def list_project_tags_async(self, request): + """查询项目下标签 - 查询VPN网关可用区 + 查询租户在指定Project中实例类型的所有资源标签集合 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAvailabilityZones - :type request: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesResponse` + :param request: Request instance for ListProjectTags + :type request: :class:`huaweicloudsdkvpn.v5.ListProjectTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListProjectTagsResponse` """ - http_info = self._list_availability_zones_http_info(request) + http_info = self._list_project_tags_http_info(request) return self._call_api(**http_info) - def list_availability_zones_async_invoker(self, request): - http_info = self._list_availability_zones_http_info(request) + def list_project_tags_async_invoker(self, request): + http_info = self._list_project_tags_http_info(request) return AsyncInvoker(self, http_info) - def _list_availability_zones_http_info(self, request): + def _list_project_tags_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/availability-zones", + "resource_path": "/v5/{project_id}/{resource_type}/tags", "request_type": request.__class__.__name__, - "response_type": "ListAvailabilityZonesResponse" + "response_type": "ListProjectTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -867,6 +865,8 @@ def _list_availability_zones_http_info(self, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] @@ -896,31 +896,31 @@ def _list_availability_zones_http_info(self, request): return http_info - def list_vgws_async(self, request): - """查询VPN网关列表 + def list_resources_by_tags_async(self, request): + """按标签查询资源 - 查询VPN网关列表 + 使用标签过滤实例,并查询实例数量,需要各服务提供查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListVgws - :type request: :class:`huaweicloudsdkvpn.v5.ListVgwsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListVgwsResponse` + :param request: Request instance for ListResourcesByTags + :type request: :class:`huaweicloudsdkvpn.v5.ListResourcesByTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListResourcesByTagsResponse` """ - http_info = self._list_vgws_http_info(request) + http_info = self._list_resources_by_tags_http_info(request) return self._call_api(**http_info) - def list_vgws_async_invoker(self, request): - http_info = self._list_vgws_http_info(request) + def list_resources_by_tags_async_invoker(self, request): + http_info = self._list_resources_by_tags_http_info(request) return AsyncInvoker(self, http_info) - def _list_vgws_http_info(self, request): + def _list_resources_by_tags_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter", "request_type": request.__class__.__name__, - "response_type": "ListVgwsResponse" + "response_type": "ListResourcesByTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -930,19 +930,22 @@ def _list_vgws_http_info(self, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] - if 'vgw_id' in local_var_params: - query_params.append(('vgw_id', local_var_params['vgw_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' + 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 = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -964,31 +967,31 @@ def _list_vgws_http_info(self, request): return http_info - def show_vgw_async(self, request): - """查询VPN网关 + def show_resource_tags_async(self, request): + """查询资源标签 - 根据VPN网关ID,查询指定的VPN网关 + 查询指定实例的标签信息,标签管理服务需要使用该接口查询指定实例的全部标签数据 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVgw - :type request: :class:`huaweicloudsdkvpn.v5.ShowVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVgwResponse` + :param request: Request instance for ShowResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.ShowResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowResourceTagsResponse` """ - http_info = self._show_vgw_http_info(request) + http_info = self._show_resource_tags_http_info(request) return self._call_api(**http_info) - def show_vgw_async_invoker(self, request): - http_info = self._show_vgw_http_info(request) + def show_resource_tags_async_invoker(self, request): + http_info = self._show_resource_tags_http_info(request) return AsyncInvoker(self, http_info) - def _show_vgw_http_info(self, request): + def _show_resource_tags_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags", "request_type": request.__class__.__name__, - "response_type": "ShowVgwResponse" + "response_type": "ShowResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -998,8 +1001,10 @@ def _show_vgw_http_info(self, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -1029,31 +1034,436 @@ def _show_vgw_http_info(self, request): return http_info - def update_vgw_async(self, request): - """更新VPN网关 + def create_vpn_connection_async(self, request): + """创建VPN连接 - 根据VPN网关ID,更新指定的VPN网关 + 创建VPN连接,连接VPN网关与对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVgw - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwResponse` + :param request: Request instance for CreateVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionResponse` """ - http_info = self._update_vgw_http_info(request) + http_info = self._create_vpn_connection_http_info(request) return self._call_api(**http_info) - def update_vgw_async_invoker(self, request): - http_info = self._update_vgw_http_info(request) + def create_vpn_connection_async_invoker(self, request): + http_info = self._create_vpn_connection_http_info(request) return AsyncInvoker(self, http_info) - def _update_vgw_http_info(self, request): + def _create_vpn_connection_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-connection", + "request_type": request.__class__.__name__, + "response_type": "CreateVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_vpn_connection_async(self, request): + """删除VPN连接 + + 根据连接ID,删除指定的VPN连接 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionResponse` + """ + http_info = self._delete_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def delete_vpn_connection_async_invoker(self, request): + http_info = self._delete_vpn_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_vpn_connection_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_vpn_connections_async(self, request): + """查询VPN连接列表 + + 查询VPN连接列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListVpnConnections + :type request: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsResponse` + """ + http_info = self._list_vpn_connections_http_info(request) + return self._call_api(**http_info) + + def list_vpn_connections_async_invoker(self, request): + http_info = self._list_vpn_connections_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_vpn_connections_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-connection", + "request_type": request.__class__.__name__, + "response_type": "ListVpnConnectionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'vpn_id' in local_var_params: + query_params.append(('vpn_id', local_var_params['vpn_id'])) + if 'eip_id' in local_var_params: + query_params.append(('eip_id', local_var_params['eip_id'])) + if 'vgw_ip' in local_var_params: + query_params.append(('vgw_ip', local_var_params['vgw_ip'])) + if 'vgw_id' in local_var_params: + query_params.append(('vgw_id', local_var_params['vgw_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_vpn_connection_async(self, request): + """查询VPN连接 + + 根据连接ID,查询指定的VPN连接的参数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionResponse` + """ + http_info = self._show_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def show_vpn_connection_async_invoker(self, request): + http_info = self._show_vpn_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_vpn_connection_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_vpn_connection_async(self, request): + """更新VPN连接 + + 根据连接ID,更新指定的VPN连接的参数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionResponse` + """ + http_info = self._update_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def update_vpn_connection_async_invoker(self, request): + http_info = self._update_vpn_connection_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_vpn_connection_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_vgw_async(self, request): + """创建VPN网关 + + 创建一个VPN网关 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateVgw + :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwResponse` + """ + http_info = self._create_vgw_http_info(request) + return self._call_api(**http_info) + + def create_vgw_async_invoker(self, request): + http_info = self._create_vgw_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_vgw_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-gateways", + "request_type": request.__class__.__name__, + "response_type": "CreateVgwResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_vgw_async(self, request): + """删除VPN网关 + + 根据VPN网关ID,删除指定的VPN网关 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteVgw + :type request: :class:`huaweicloudsdkvpn.v5.DeleteVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVgwResponse` + """ + http_info = self._delete_vgw_http_info(request) + return self._call_api(**http_info) + + def delete_vgw_async_invoker(self, request): + http_info = self._delete_vgw_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_vgw_http_info(self, request): http_info = { - "method": "PUT", + "method": "DELETE", "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateVgwResponse" + "response_type": "DeleteVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1073,12 +1483,10 @@ def _update_vgw_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1096,31 +1504,31 @@ def _update_vgw_http_info(self, request): return http_info - def create_vgw_certificate_async(self, request): - """导入VPN网关证书 + def list_availability_zones_async(self, request): + """查询VPN网关可用区 - 导入租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 + 查询VPN网关可用区 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVgwCertificate - :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateResponse` + :param request: Request instance for ListAvailabilityZones + :type request: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesResponse` """ - http_info = self._create_vgw_certificate_http_info(request) + http_info = self._list_availability_zones_http_info(request) return self._call_api(**http_info) - def create_vgw_certificate_async_invoker(self, request): - http_info = self._create_vgw_certificate_http_info(request) + def list_availability_zones_async_invoker(self, request): + http_info = self._list_availability_zones_http_info(request) return AsyncInvoker(self, http_info) - def _create_vgw_certificate_http_info(self, request): + def _list_availability_zones_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/availability-zones", "request_type": request.__class__.__name__, - "response_type": "CreateVgwCertificateResponse" + "response_type": "ListAvailabilityZonesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1130,8 +1538,6 @@ def _create_vgw_certificate_http_info(self, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1140,12 +1546,10 @@ def _create_vgw_certificate_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1163,31 +1567,31 @@ def _create_vgw_certificate_http_info(self, request): return http_info - def show_vpn_gateway_certificate_async(self, request): - """查询VPN网关证书 + def list_vgws_async(self, request): + """查询VPN网关列表 - 根据VPN网关ID,查询所指定的VPN网关证书 + 查询VPN网关列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVpnGatewayCertificate - :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateResponse` + :param request: Request instance for ListVgws + :type request: :class:`huaweicloudsdkvpn.v5.ListVgwsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListVgwsResponse` """ - http_info = self._show_vpn_gateway_certificate_http_info(request) + http_info = self._list_vgws_http_info(request) return self._call_api(**http_info) - def show_vpn_gateway_certificate_async_invoker(self, request): - http_info = self._show_vpn_gateway_certificate_http_info(request) + def list_vgws_async_invoker(self, request): + http_info = self._list_vgws_http_info(request) return AsyncInvoker(self, http_info) - def _show_vpn_gateway_certificate_http_info(self, request): + def _list_vgws_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", + "resource_path": "/v5/{project_id}/vpn-gateways", "request_type": request.__class__.__name__, - "response_type": "ShowVpnGatewayCertificateResponse" + "response_type": "ListVgwsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1197,10 +1601,13 @@ def _show_vpn_gateway_certificate_http_info(self, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] + if 'vgw_id' in local_var_params: + query_params.append(('vgw_id', local_var_params['vgw_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' header_params = {} @@ -1228,31 +1635,31 @@ def _show_vpn_gateway_certificate_http_info(self, request): return http_info - def update_vgw_certificate_async(self, request): - """更新VPN网关证书 + def show_vgw_async(self, request): + """查询VPN网关 - 更新租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 + 根据VPN网关ID,查询指定的VPN网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVgwCertificate - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateResponse` + :param request: Request instance for ShowVgw + :type request: :class:`huaweicloudsdkvpn.v5.ShowVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVgwResponse` """ - http_info = self._update_vgw_certificate_http_info(request) + http_info = self._show_vgw_http_info(request) return self._call_api(**http_info) - def update_vgw_certificate_async_invoker(self, request): - http_info = self._update_vgw_certificate_http_info(request) + def show_vgw_async_invoker(self, request): + http_info = self._show_vgw_http_info(request) return AsyncInvoker(self, http_info) - def _update_vgw_certificate_http_info(self, request): + def _show_vgw_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate/{certificate_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateVgwCertificateResponse" + "response_type": "ShowVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1264,8 +1671,6 @@ def _update_vgw_certificate_http_info(self, request): path_params = {} if 'vgw_id' in local_var_params: path_params['vgw_id'] = local_var_params['vgw_id'] - if 'certificate_id' in local_var_params: - path_params['certificate_id'] = local_var_params['certificate_id'] query_params = [] @@ -1274,12 +1679,10 @@ def _update_vgw_certificate_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1297,31 +1700,31 @@ def _update_vgw_certificate_http_info(self, request): return http_info - def show_quotas_info_async(self, request): - """查询指定租户配额 + def update_vgw_async(self, request): + """更新VPN网关 - 查询指定租户的配额 + 根据VPN网关ID,更新指定的VPN网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQuotasInfo - :type request: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoResponse` + :param request: Request instance for UpdateVgw + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwResponse` """ - http_info = self._show_quotas_info_http_info(request) + http_info = self._update_vgw_http_info(request) return self._call_api(**http_info) - def show_quotas_info_async_invoker(self, request): - http_info = self._show_quotas_info_http_info(request) + def update_vgw_async_invoker(self, request): + http_info = self._update_vgw_http_info(request) return AsyncInvoker(self, http_info) - def _show_quotas_info_http_info(self, request): + def _update_vgw_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn/quotas", + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "ShowQuotasInfoResponse" + "response_type": "UpdateVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1331,6 +1734,8 @@ def _show_quotas_info_http_info(self, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1339,10 +1744,12 @@ def _show_quotas_info_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1360,31 +1767,31 @@ def _show_quotas_info_http_info(self, request): return http_info - def create_connection_monitor_async(self, request): - """创建VPN连接监控 + def create_vgw_certificate_async(self, request): + """导入VPN网关证书 - 创建VPN连接监控 + 导入租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorResponse` + :param request: Request instance for CreateVgwCertificate + :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateResponse` """ - http_info = self._create_connection_monitor_http_info(request) + http_info = self._create_vgw_certificate_http_info(request) return self._call_api(**http_info) - def create_connection_monitor_async_invoker(self, request): - http_info = self._create_connection_monitor_http_info(request) + def create_vgw_certificate_async_invoker(self, request): + http_info = self._create_vgw_certificate_http_info(request) return AsyncInvoker(self, http_info) - def _create_connection_monitor_http_info(self, request): + def _create_vgw_certificate_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/connection-monitors", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", "request_type": request.__class__.__name__, - "response_type": "CreateConnectionMonitorResponse" + "response_type": "CreateVgwCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1394,6 +1801,8 @@ def _create_connection_monitor_http_info(self, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1425,31 +1834,31 @@ def _create_connection_monitor_http_info(self, request): return http_info - def delete_connection_monitor_async(self, request): - """删除VPN连接监控 + def show_vpn_gateway_certificate_async(self, request): + """查询VPN网关证书 - 根据VPN连接监控的ID,删除指定的VPN连接监控 + 根据VPN网关ID,查询所指定的VPN网关证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorResponse` + :param request: Request instance for ShowVpnGatewayCertificate + :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateResponse` """ - http_info = self._delete_connection_monitor_http_info(request) + http_info = self._show_vpn_gateway_certificate_http_info(request) return self._call_api(**http_info) - def delete_connection_monitor_async_invoker(self, request): - http_info = self._delete_connection_monitor_http_info(request) + def show_vpn_gateway_certificate_async_invoker(self, request): + http_info = self._show_vpn_gateway_certificate_http_info(request) return AsyncInvoker(self, http_info) - def _delete_connection_monitor_http_info(self, request): + def _show_vpn_gateway_certificate_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", "request_type": request.__class__.__name__, - "response_type": "DeleteConnectionMonitorResponse" + "response_type": "ShowVpnGatewayCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1459,8 +1868,8 @@ def _delete_connection_monitor_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_monitor_id' in local_var_params: - path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1490,31 +1899,31 @@ def _delete_connection_monitor_http_info(self, request): return http_info - def list_connection_monitors_async(self, request): - """查询VPN连接监控列表 + def update_vgw_certificate_async(self, request): + """更新VPN网关证书 - 查询VPN连接监控列表 + 更新租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListConnectionMonitors - :type request: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsResponse` + :param request: Request instance for UpdateVgwCertificate + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateResponse` """ - http_info = self._list_connection_monitors_http_info(request) + http_info = self._update_vgw_certificate_http_info(request) return self._call_api(**http_info) - def list_connection_monitors_async_invoker(self, request): - http_info = self._list_connection_monitors_http_info(request) + def update_vgw_certificate_async_invoker(self, request): + http_info = self._update_vgw_certificate_http_info(request) return AsyncInvoker(self, http_info) - def _list_connection_monitors_http_info(self, request): + def _update_vgw_certificate_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/connection-monitors", + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate/{certificate_id}", "request_type": request.__class__.__name__, - "response_type": "ListConnectionMonitorsResponse" + "response_type": "UpdateVgwCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1524,23 +1933,24 @@ def _list_connection_monitors_http_info(self, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] query_params = [] - if 'vpn_connection_id' in local_var_params: - query_params.append(('vpn_connection_id', local_var_params['vpn_connection_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1558,31 +1968,31 @@ def _list_connection_monitors_http_info(self, request): return http_info - def show_connection_monitor_async(self, request): - """查询VPN连接监控 + def show_quotas_info_async(self, request): + """查询指定租户配额 - 根据VPN连接监控的ID,查询指定的VPN连接监控 + 查询指定租户的配额 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorResponse` + :param request: Request instance for ShowQuotasInfo + :type request: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoResponse` """ - http_info = self._show_connection_monitor_http_info(request) + http_info = self._show_quotas_info_http_info(request) return self._call_api(**http_info) - def show_connection_monitor_async_invoker(self, request): - http_info = self._show_connection_monitor_http_info(request) + def show_quotas_info_async_invoker(self, request): + http_info = self._show_quotas_info_http_info(request) return AsyncInvoker(self, http_info) - def _show_connection_monitor_http_info(self, request): + def _show_quotas_info_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", + "resource_path": "/v5/{project_id}/vpn/quotas", "request_type": request.__class__.__name__, - "response_type": "ShowConnectionMonitorResponse" + "response_type": "ShowQuotasInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1592,8 +2002,6 @@ def _show_connection_monitor_http_info(self, request): collection_formats = {} path_params = {} - if 'connection_monitor_id' in local_var_params: - path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py index 5e51c4a104..5dfbc51dee 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def create_cgw(self, request): - """创建对端网关 + def create_connection_monitor(self, request): + """创建VPN连接监控 - 创建租户用于与VPN网关相连的对端网关 + 创建VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateCgw - :type request: :class:`huaweicloudsdkvpn.v5.CreateCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateCgwResponse` + :param request: Request instance for CreateConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorResponse` """ - http_info = self._create_cgw_http_info(request) + http_info = self._create_connection_monitor_http_info(request) return self._call_api(**http_info) - def create_cgw_invoker(self, request): - http_info = self._create_cgw_http_info(request) + def create_connection_monitor_invoker(self, request): + http_info = self._create_connection_monitor_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_cgw_http_info(cls, request): + def _create_connection_monitor_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/customer-gateways", + "resource_path": "/v5/{project_id}/connection-monitors", "request_type": request.__class__.__name__, - "response_type": "CreateCgwResponse" + "response_type": "CreateConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -97,31 +97,31 @@ def _create_cgw_http_info(cls, request): return http_info - def delete_cgw(self, request): - """删除对端网关 + def delete_connection_monitor(self, request): + """删除VPN连接监控 - 根据对端网关ID,删除指定的对端网关 + 根据VPN连接监控的ID,删除指定的VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteCgw - :type request: :class:`huaweicloudsdkvpn.v5.DeleteCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteCgwResponse` + :param request: Request instance for DeleteConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorResponse` """ - http_info = self._delete_cgw_http_info(request) + http_info = self._delete_connection_monitor_http_info(request) return self._call_api(**http_info) - def delete_cgw_invoker(self, request): - http_info = self._delete_cgw_http_info(request) + def delete_connection_monitor_invoker(self, request): + http_info = self._delete_connection_monitor_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_cgw_http_info(cls, request): + def _delete_connection_monitor_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteCgwResponse" + "response_type": "DeleteConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -131,8 +131,8 @@ def _delete_cgw_http_info(cls, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] + if 'connection_monitor_id' in local_var_params: + path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] @@ -162,31 +162,31 @@ def _delete_cgw_http_info(cls, request): return http_info - def list_cgws(self, request): - """查询对端网关列表 + def list_connection_monitors(self, request): + """查询VPN连接监控列表 - 查询对端网关列表 + 查询VPN连接监控列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListCgws - :type request: :class:`huaweicloudsdkvpn.v5.ListCgwsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListCgwsResponse` + :param request: Request instance for ListConnectionMonitors + :type request: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsResponse` """ - http_info = self._list_cgws_http_info(request) + http_info = self._list_connection_monitors_http_info(request) return self._call_api(**http_info) - def list_cgws_invoker(self, request): - http_info = self._list_cgws_http_info(request) + def list_connection_monitors_invoker(self, request): + http_info = self._list_connection_monitors_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_cgws_http_info(cls, request): + def _list_connection_monitors_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/customer-gateways", + "resource_path": "/v5/{project_id}/connection-monitors", "request_type": request.__class__.__name__, - "response_type": "ListCgwsResponse" + "response_type": "ListConnectionMonitorsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -198,12 +198,11 @@ def _list_cgws_http_info(cls, request): path_params = {} query_params = [] - if 'cgw_id' in local_var_params: - query_params.append(('cgw_id', local_var_params['cgw_id'])) - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) + if 'vpn_connection_id' in local_var_params: + query_params.append(('vpn_connection_id', local_var_params['vpn_connection_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' header_params = {} @@ -231,31 +230,31 @@ def _list_cgws_http_info(cls, request): return http_info - def show_cgw(self, request): - """查询对端网关 + def show_connection_monitor(self, request): + """查询VPN连接监控 - 根据对端网关ID,查询指定的对端网关 + 根据VPN连接监控的ID,查询指定的VPN连接监控 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowCgw - :type request: :class:`huaweicloudsdkvpn.v5.ShowCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowCgwResponse` + :param request: Request instance for ShowConnectionMonitor + :type request: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorResponse` """ - http_info = self._show_cgw_http_info(request) + http_info = self._show_connection_monitor_http_info(request) return self._call_api(**http_info) - def show_cgw_invoker(self, request): - http_info = self._show_cgw_http_info(request) + def show_connection_monitor_invoker(self, request): + http_info = self._show_connection_monitor_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_cgw_http_info(cls, request): + def _show_connection_monitor_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", "request_type": request.__class__.__name__, - "response_type": "ShowCgwResponse" + "response_type": "ShowConnectionMonitorResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -265,8 +264,8 @@ def _show_cgw_http_info(cls, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] + if 'connection_monitor_id' in local_var_params: + path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] @@ -296,31 +295,31 @@ def _show_cgw_http_info(cls, request): return http_info - def update_cgw(self, request): - """更新对端网关 + def create_cgw(self, request): + """创建对端网关 - 根据对端网关ID,更新指定的对端网关 + 创建租户用于与VPN网关相连的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateCgw - :type request: :class:`huaweicloudsdkvpn.v5.UpdateCgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateCgwResponse` + :param request: Request instance for CreateCgw + :type request: :class:`huaweicloudsdkvpn.v5.CreateCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateCgwResponse` """ - http_info = self._update_cgw_http_info(request) + http_info = self._create_cgw_http_info(request) return self._call_api(**http_info) - def update_cgw_invoker(self, request): - http_info = self._update_cgw_http_info(request) + def create_cgw_invoker(self, request): + http_info = self._create_cgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_cgw_http_info(cls, request): + def _create_cgw_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/customer-gateways", "request_type": request.__class__.__name__, - "response_type": "UpdateCgwResponse" + "response_type": "CreateCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -330,8 +329,6 @@ def _update_cgw_http_info(cls, request): collection_formats = {} path_params = {} - if 'customer_gateway_id' in local_var_params: - path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -345,7 +342,7 @@ def _update_cgw_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -363,31 +360,31 @@ def _update_cgw_http_info(cls, request): return http_info - def create_vpn_connection(self, request): - """创建VPN连接 + def delete_cgw(self, request): + """删除对端网关 - 创建VPN连接,连接VPN网关与对端网关 + 根据对端网关ID,删除指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionResponse` + :param request: Request instance for DeleteCgw + :type request: :class:`huaweicloudsdkvpn.v5.DeleteCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteCgwResponse` """ - http_info = self._create_vpn_connection_http_info(request) + http_info = self._delete_cgw_http_info(request) return self._call_api(**http_info) - def create_vpn_connection_invoker(self, request): - http_info = self._create_vpn_connection_http_info(request) + def delete_cgw_invoker(self, request): + http_info = self._delete_cgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_vpn_connection_http_info(cls, request): + def _delete_cgw_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/{project_id}/vpn-connection", + "method": "DELETE", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "CreateVpnConnectionResponse" + "response_type": "DeleteCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -397,6 +394,8 @@ def _create_vpn_connection_http_info(cls, request): collection_formats = {} path_params = {} + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -405,12 +404,10 @@ def _create_vpn_connection_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -428,31 +425,31 @@ def _create_vpn_connection_http_info(cls, request): return http_info - def delete_vpn_connection(self, request): - """删除VPN连接 + def list_cgws(self, request): + """查询对端网关列表 - 根据连接ID,删除指定的VPN连接 + 查询对端网关列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionResponse` + :param request: Request instance for ListCgws + :type request: :class:`huaweicloudsdkvpn.v5.ListCgwsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListCgwsResponse` """ - http_info = self._delete_vpn_connection_http_info(request) + http_info = self._list_cgws_http_info(request) return self._call_api(**http_info) - def delete_vpn_connection_invoker(self, request): - http_info = self._delete_vpn_connection_http_info(request) + def list_cgws_invoker(self, request): + http_info = self._list_cgws_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_vpn_connection_http_info(cls, request): + def _list_cgws_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/customer-gateways", "request_type": request.__class__.__name__, - "response_type": "DeleteVpnConnectionResponse" + "response_type": "ListCgwsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -462,10 +459,14 @@ def _delete_vpn_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] query_params = [] + if 'cgw_id' in local_var_params: + query_params.append(('cgw_id', local_var_params['cgw_id'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) header_params = {} @@ -493,31 +494,31 @@ def _delete_vpn_connection_http_info(cls, request): return http_info - def list_vpn_connections(self, request): - """查询VPN连接列表 + def show_cgw(self, request): + """查询对端网关 - 查询VPN连接列表 + 根据对端网关ID,查询指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListVpnConnections - :type request: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsResponse` + :param request: Request instance for ShowCgw + :type request: :class:`huaweicloudsdkvpn.v5.ShowCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowCgwResponse` """ - http_info = self._list_vpn_connections_http_info(request) + http_info = self._show_cgw_http_info(request) return self._call_api(**http_info) - def list_vpn_connections_invoker(self, request): - http_info = self._list_vpn_connections_http_info(request) + def show_cgw_invoker(self, request): + http_info = self._show_cgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_vpn_connections_http_info(cls, request): + def _show_cgw_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-connection", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ListVpnConnectionsResponse" + "response_type": "ShowCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -527,23 +528,10 @@ def _list_vpn_connections_http_info(cls, request): collection_formats = {} path_params = {} + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] - if 'vpn_id' in local_var_params: - query_params.append(('vpn_id', local_var_params['vpn_id'])) - if 'eip_id' in local_var_params: - query_params.append(('eip_id', local_var_params['eip_id'])) - if 'vgw_ip' in local_var_params: - query_params.append(('vgw_ip', local_var_params['vgw_ip'])) - if 'vgw_id' in local_var_params: - query_params.append(('vgw_id', local_var_params['vgw_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'marker' in local_var_params: - query_params.append(('marker', local_var_params['marker'])) header_params = {} @@ -553,7 +541,7 @@ def _list_vpn_connections_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -571,31 +559,31 @@ def _list_vpn_connections_http_info(cls, request): return http_info - def show_vpn_connection(self, request): - """查询VPN连接 + def update_cgw(self, request): + """更新对端网关 - 根据连接ID,查询指定的VPN连接的参数 + 根据对端网关ID,更新指定的对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionResponse` + :param request: Request instance for UpdateCgw + :type request: :class:`huaweicloudsdkvpn.v5.UpdateCgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateCgwResponse` """ - http_info = self._show_vpn_connection_http_info(request) + http_info = self._update_cgw_http_info(request) return self._call_api(**http_info) - def show_vpn_connection_invoker(self, request): - http_info = self._show_vpn_connection_http_info(request) + def update_cgw_invoker(self, request): + http_info = self._update_cgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_vpn_connection_http_info(cls, request): + def _update_cgw_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "PUT", + "resource_path": "/v5/{project_id}/customer-gateways/{customer_gateway_id}", "request_type": request.__class__.__name__, - "response_type": "ShowVpnConnectionResponse" + "response_type": "UpdateCgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -605,8 +593,8 @@ def _show_vpn_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + if 'customer_gateway_id' in local_var_params: + path_params['customer_gateway_id'] = local_var_params['customer_gateway_id'] query_params = [] @@ -615,10 +603,12 @@ def _show_vpn_connection_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -636,31 +626,31 @@ def _show_vpn_connection_http_info(cls, request): return http_info - def update_vpn_connection(self, request): - """更新VPN连接 + def batch_create_resource_tags(self, request): + """批量添加资源标签 - 根据连接ID,更新指定的VPN连接的参数 + 为指定实例批量添加标签,标签管理服务需要使用该接口批量管理实例的标签.一个资源上最多有20个标签 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVpnConnection - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionResponse` + :param request: Request instance for BatchCreateResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.BatchCreateResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.BatchCreateResourceTagsResponse` """ - http_info = self._update_vpn_connection_http_info(request) + http_info = self._batch_create_resource_tags_http_info(request) return self._call_api(**http_info) - def update_vpn_connection_invoker(self, request): - http_info = self._update_vpn_connection_http_info(request) + def batch_create_resource_tags_invoker(self, request): + http_info = self._batch_create_resource_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_vpn_connection_http_info(cls, request): + def _batch_create_resource_tags_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/create", "request_type": request.__class__.__name__, - "response_type": "UpdateVpnConnectionResponse" + "response_type": "BatchCreateResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -670,8 +660,10 @@ def _update_vpn_connection_http_info(cls, request): collection_formats = {} path_params = {} - if 'vpn_connection_id' in local_var_params: - path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -685,7 +677,7 @@ def _update_vpn_connection_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -703,31 +695,31 @@ def _update_vpn_connection_http_info(cls, request): return http_info - def create_vgw(self, request): - """创建VPN网关 + def batch_delete_resource_tags(self, request): + """批量删除资源标签 - 创建一个VPN网关 + 为指定实例批量删除标签,标签管理服务需要使用该接口批量管理实例的标签. Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVgw - :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwResponse` + :param request: Request instance for BatchDeleteResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.BatchDeleteResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.BatchDeleteResourceTagsResponse` """ - http_info = self._create_vgw_http_info(request) + http_info = self._batch_delete_resource_tags_http_info(request) return self._call_api(**http_info) - def create_vgw_invoker(self, request): - http_info = self._create_vgw_http_info(request) + def batch_delete_resource_tags_invoker(self, request): + http_info = self._batch_delete_resource_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_vgw_http_info(cls, request): + def _batch_delete_resource_tags_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/vpn-gateways", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags/delete", "request_type": request.__class__.__name__, - "response_type": "CreateVgwResponse" + "response_type": "BatchDeleteResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -737,6 +729,10 @@ def _create_vgw_http_info(cls, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -750,7 +746,7 @@ def _create_vgw_http_info(cls, request): if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -768,31 +764,31 @@ def _create_vgw_http_info(cls, request): return http_info - def delete_vgw(self, request): - """删除VPN网关 + def count_resources_by_tags(self, request): + """查询标签下资源实例数量 - 根据VPN网关ID,删除指定的VPN网关 + 使用标签过滤实例,并查询实例数量,需要各服务提供查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteVgw - :type request: :class:`huaweicloudsdkvpn.v5.DeleteVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVgwResponse` + :param request: Request instance for CountResourcesByTags + :type request: :class:`huaweicloudsdkvpn.v5.CountResourcesByTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CountResourcesByTagsResponse` """ - http_info = self._delete_vgw_http_info(request) + http_info = self._count_resources_by_tags_http_info(request) return self._call_api(**http_info) - def delete_vgw_invoker(self, request): - http_info = self._delete_vgw_http_info(request) + def count_resources_by_tags_invoker(self, request): + http_info = self._count_resources_by_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_vgw_http_info(cls, request): + def _count_resources_by_tags_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/count", "request_type": request.__class__.__name__, - "response_type": "DeleteVgwResponse" + "response_type": "CountResourcesByTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -802,8 +798,8 @@ def _delete_vgw_http_info(cls, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] @@ -812,6 +808,8 @@ def _delete_vgw_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -833,31 +831,31 @@ def _delete_vgw_http_info(cls, request): return http_info - def list_availability_zones(self, request): - """查询VPN网关可用区 + def list_project_tags(self, request): + """查询项目下标签 - 查询VPN网关可用区 + 查询租户在指定Project中实例类型的所有资源标签集合 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAvailabilityZones - :type request: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesResponse` + :param request: Request instance for ListProjectTags + :type request: :class:`huaweicloudsdkvpn.v5.ListProjectTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListProjectTagsResponse` """ - http_info = self._list_availability_zones_http_info(request) + http_info = self._list_project_tags_http_info(request) return self._call_api(**http_info) - def list_availability_zones_invoker(self, request): - http_info = self._list_availability_zones_http_info(request) + def list_project_tags_invoker(self, request): + http_info = self._list_project_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_availability_zones_http_info(cls, request): + def _list_project_tags_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/availability-zones", + "resource_path": "/v5/{project_id}/{resource_type}/tags", "request_type": request.__class__.__name__, - "response_type": "ListAvailabilityZonesResponse" + "response_type": "ListProjectTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -867,6 +865,8 @@ def _list_availability_zones_http_info(cls, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] @@ -896,31 +896,31 @@ def _list_availability_zones_http_info(cls, request): return http_info - def list_vgws(self, request): - """查询VPN网关列表 + def list_resources_by_tags(self, request): + """按标签查询资源 - 查询VPN网关列表 + 使用标签过滤实例,并查询实例数量,需要各服务提供查询 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListVgws - :type request: :class:`huaweicloudsdkvpn.v5.ListVgwsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListVgwsResponse` + :param request: Request instance for ListResourcesByTags + :type request: :class:`huaweicloudsdkvpn.v5.ListResourcesByTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListResourcesByTagsResponse` """ - http_info = self._list_vgws_http_info(request) + http_info = self._list_resources_by_tags_http_info(request) return self._call_api(**http_info) - def list_vgws_invoker(self, request): - http_info = self._list_vgws_http_info(request) + def list_resources_by_tags_invoker(self, request): + http_info = self._list_resources_by_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_vgws_http_info(cls, request): + def _list_resources_by_tags_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways", + "method": "POST", + "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter", "request_type": request.__class__.__name__, - "response_type": "ListVgwsResponse" + "response_type": "ListResourcesByTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -930,19 +930,22 @@ def _list_vgws_http_info(cls, request): collection_formats = {} path_params = {} + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] query_params = [] - if 'vgw_id' in local_var_params: - query_params.append(('vgw_id', local_var_params['vgw_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' + 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 = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -964,31 +967,31 @@ def _list_vgws_http_info(cls, request): return http_info - def show_vgw(self, request): - """查询VPN网关 + def show_resource_tags(self, request): + """查询资源标签 - 根据VPN网关ID,查询指定的VPN网关 + 查询指定实例的标签信息,标签管理服务需要使用该接口查询指定实例的全部标签数据 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVgw - :type request: :class:`huaweicloudsdkvpn.v5.ShowVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVgwResponse` + :param request: Request instance for ShowResourceTags + :type request: :class:`huaweicloudsdkvpn.v5.ShowResourceTagsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowResourceTagsResponse` """ - http_info = self._show_vgw_http_info(request) + http_info = self._show_resource_tags_http_info(request) return self._call_api(**http_info) - def show_vgw_invoker(self, request): - http_info = self._show_vgw_http_info(request) + def show_resource_tags_invoker(self, request): + http_info = self._show_resource_tags_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_vgw_http_info(cls, request): + def _show_resource_tags_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", + "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags", "request_type": request.__class__.__name__, - "response_type": "ShowVgwResponse" + "response_type": "ShowResourceTagsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -998,8 +1001,10 @@ def _show_vgw_http_info(cls, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] + if 'resource_type' in local_var_params: + path_params['resource_type'] = local_var_params['resource_type'] + if 'resource_id' in local_var_params: + path_params['resource_id'] = local_var_params['resource_id'] query_params = [] @@ -1029,31 +1034,436 @@ def _show_vgw_http_info(cls, request): return http_info - def update_vgw(self, request): - """更新VPN网关 + def create_vpn_connection(self, request): + """创建VPN连接 - 根据VPN网关ID,更新指定的VPN网关 + 创建VPN连接,连接VPN网关与对端网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVgw - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwResponse` + :param request: Request instance for CreateVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVpnConnectionResponse` """ - http_info = self._update_vgw_http_info(request) + http_info = self._create_vpn_connection_http_info(request) return self._call_api(**http_info) - def update_vgw_invoker(self, request): - http_info = self._update_vgw_http_info(request) + def create_vpn_connection_invoker(self, request): + http_info = self._create_vpn_connection_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_vgw_http_info(cls, request): + def _create_vpn_connection_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-connection", + "request_type": request.__class__.__name__, + "response_type": "CreateVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_vpn_connection(self, request): + """删除VPN连接 + + 根据连接ID,删除指定的VPN连接 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVpnConnectionResponse` + """ + http_info = self._delete_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def delete_vpn_connection_invoker(self, request): + http_info = self._delete_vpn_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_vpn_connection_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_vpn_connections(self, request): + """查询VPN连接列表 + + 查询VPN连接列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListVpnConnections + :type request: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListVpnConnectionsResponse` + """ + http_info = self._list_vpn_connections_http_info(request) + return self._call_api(**http_info) + + def list_vpn_connections_invoker(self, request): + http_info = self._list_vpn_connections_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_vpn_connections_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-connection", + "request_type": request.__class__.__name__, + "response_type": "ListVpnConnectionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'vpn_id' in local_var_params: + query_params.append(('vpn_id', local_var_params['vpn_id'])) + if 'eip_id' in local_var_params: + query_params.append(('eip_id', local_var_params['eip_id'])) + if 'vgw_ip' in local_var_params: + query_params.append(('vgw_ip', local_var_params['vgw_ip'])) + if 'vgw_id' in local_var_params: + query_params.append(('vgw_id', local_var_params['vgw_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_vpn_connection(self, request): + """查询VPN连接 + + 根据连接ID,查询指定的VPN连接的参数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnConnectionResponse` + """ + http_info = self._show_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def show_vpn_connection_invoker(self, request): + http_info = self._show_vpn_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_vpn_connection_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_vpn_connection(self, request): + """更新VPN连接 + + 根据连接ID,更新指定的VPN连接的参数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateVpnConnection + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVpnConnectionResponse` + """ + http_info = self._update_vpn_connection_http_info(request) + return self._call_api(**http_info) + + def update_vpn_connection_invoker(self, request): + http_info = self._update_vpn_connection_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_vpn_connection_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-connection/{vpn_connection_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateVpnConnectionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vpn_connection_id' in local_var_params: + path_params['vpn_connection_id'] = local_var_params['vpn_connection_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_vgw(self, request): + """创建VPN网关 + + 创建一个VPN网关 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateVgw + :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwResponse` + """ + http_info = self._create_vgw_http_info(request) + return self._call_api(**http_info) + + def create_vgw_invoker(self, request): + http_info = self._create_vgw_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_vgw_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-gateways", + "request_type": request.__class__.__name__, + "response_type": "CreateVgwResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["header-response-token", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_vgw(self, request): + """删除VPN网关 + + 根据VPN网关ID,删除指定的VPN网关 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteVgw + :type request: :class:`huaweicloudsdkvpn.v5.DeleteVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.DeleteVgwResponse` + """ + http_info = self._delete_vgw_http_info(request) + return self._call_api(**http_info) + + def delete_vgw_invoker(self, request): + http_info = self._delete_vgw_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_vgw_http_info(cls, request): http_info = { - "method": "PUT", + "method": "DELETE", "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateVgwResponse" + "response_type": "DeleteVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1073,12 +1483,10 @@ def _update_vgw_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1096,31 +1504,31 @@ def _update_vgw_http_info(cls, request): return http_info - def create_vgw_certificate(self, request): - """导入VPN网关证书 + def list_availability_zones(self, request): + """查询VPN网关可用区 - 导入租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 + 查询VPN网关可用区 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateVgwCertificate - :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateResponse` + :param request: Request instance for ListAvailabilityZones + :type request: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListAvailabilityZonesResponse` """ - http_info = self._create_vgw_certificate_http_info(request) + http_info = self._list_availability_zones_http_info(request) return self._call_api(**http_info) - def create_vgw_certificate_invoker(self, request): - http_info = self._create_vgw_certificate_http_info(request) + def list_availability_zones_invoker(self, request): + http_info = self._list_availability_zones_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_vgw_certificate_http_info(cls, request): + def _list_availability_zones_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/availability-zones", "request_type": request.__class__.__name__, - "response_type": "CreateVgwCertificateResponse" + "response_type": "ListAvailabilityZonesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1130,8 +1538,6 @@ def _create_vgw_certificate_http_info(cls, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1140,12 +1546,10 @@ def _create_vgw_certificate_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1163,31 +1567,31 @@ def _create_vgw_certificate_http_info(cls, request): return http_info - def show_vpn_gateway_certificate(self, request): - """查询VPN网关证书 + def list_vgws(self, request): + """查询VPN网关列表 - 根据VPN网关ID,查询所指定的VPN网关证书 + 查询VPN网关列表 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowVpnGatewayCertificate - :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateResponse` + :param request: Request instance for ListVgws + :type request: :class:`huaweicloudsdkvpn.v5.ListVgwsRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ListVgwsResponse` """ - http_info = self._show_vpn_gateway_certificate_http_info(request) + http_info = self._list_vgws_http_info(request) return self._call_api(**http_info) - def show_vpn_gateway_certificate_invoker(self, request): - http_info = self._show_vpn_gateway_certificate_http_info(request) + def list_vgws_invoker(self, request): + http_info = self._list_vgws_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_vpn_gateway_certificate_http_info(cls, request): + def _list_vgws_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", + "resource_path": "/v5/{project_id}/vpn-gateways", "request_type": request.__class__.__name__, - "response_type": "ShowVpnGatewayCertificateResponse" + "response_type": "ListVgwsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1197,10 +1601,13 @@ def _show_vpn_gateway_certificate_http_info(cls, request): collection_formats = {} path_params = {} - if 'vgw_id' in local_var_params: - path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] + if 'vgw_id' in local_var_params: + query_params.append(('vgw_id', local_var_params['vgw_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' header_params = {} @@ -1228,31 +1635,31 @@ def _show_vpn_gateway_certificate_http_info(cls, request): return http_info - def update_vgw_certificate(self, request): - """更新VPN网关证书 + def show_vgw(self, request): + """查询VPN网关 - 更新租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 + 根据VPN网关ID,查询指定的VPN网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateVgwCertificate - :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateResponse` + :param request: Request instance for ShowVgw + :type request: :class:`huaweicloudsdkvpn.v5.ShowVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVgwResponse` """ - http_info = self._update_vgw_certificate_http_info(request) + http_info = self._show_vgw_http_info(request) return self._call_api(**http_info) - def update_vgw_certificate_invoker(self, request): - http_info = self._update_vgw_certificate_http_info(request) + def show_vgw_invoker(self, request): + http_info = self._show_vgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_vgw_certificate_http_info(cls, request): + def _show_vgw_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate/{certificate_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "UpdateVgwCertificateResponse" + "response_type": "ShowVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1264,8 +1671,6 @@ def _update_vgw_certificate_http_info(cls, request): path_params = {} if 'vgw_id' in local_var_params: path_params['vgw_id'] = local_var_params['vgw_id'] - if 'certificate_id' in local_var_params: - path_params['certificate_id'] = local_var_params['certificate_id'] query_params = [] @@ -1274,12 +1679,10 @@ def _update_vgw_certificate_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = ["header-response-token", ] + response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1297,31 +1700,31 @@ def _update_vgw_certificate_http_info(cls, request): return http_info - def show_quotas_info(self, request): - """查询指定租户配额 + def update_vgw(self, request): + """更新VPN网关 - 查询指定租户的配额 + 根据VPN网关ID,更新指定的VPN网关 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowQuotasInfo - :type request: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoResponse` + :param request: Request instance for UpdateVgw + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwResponse` """ - http_info = self._show_quotas_info_http_info(request) + http_info = self._update_vgw_http_info(request) return self._call_api(**http_info) - def show_quotas_info_invoker(self, request): - http_info = self._show_quotas_info_http_info(request) + def update_vgw_invoker(self, request): + http_info = self._update_vgw_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_quotas_info_http_info(cls, request): + def _update_vgw_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/vpn/quotas", + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}", "request_type": request.__class__.__name__, - "response_type": "ShowQuotasInfoResponse" + "response_type": "UpdateVgwResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1331,6 +1734,8 @@ def _show_quotas_info_http_info(cls, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1339,10 +1744,12 @@ def _show_quotas_info_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1360,31 +1767,31 @@ def _show_quotas_info_http_info(cls, request): return http_info - def create_connection_monitor(self, request): - """创建VPN连接监控 + def create_vgw_certificate(self, request): + """导入VPN网关证书 - 创建VPN连接监控 + 导入租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.CreateConnectionMonitorResponse` + :param request: Request instance for CreateVgwCertificate + :type request: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.CreateVgwCertificateResponse` """ - http_info = self._create_connection_monitor_http_info(request) + http_info = self._create_vgw_certificate_http_info(request) return self._call_api(**http_info) - def create_connection_monitor_invoker(self, request): - http_info = self._create_connection_monitor_http_info(request) + def create_vgw_certificate_invoker(self, request): + http_info = self._create_vgw_certificate_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_connection_monitor_http_info(cls, request): + def _create_vgw_certificate_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/{project_id}/connection-monitors", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", "request_type": request.__class__.__name__, - "response_type": "CreateConnectionMonitorResponse" + "response_type": "CreateVgwCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1394,6 +1801,8 @@ def _create_connection_monitor_http_info(cls, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1425,31 +1834,31 @@ def _create_connection_monitor_http_info(cls, request): return http_info - def delete_connection_monitor(self, request): - """删除VPN连接监控 + def show_vpn_gateway_certificate(self, request): + """查询VPN网关证书 - 根据VPN连接监控的ID,删除指定的VPN连接监控 + 根据VPN网关ID,查询所指定的VPN网关证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.DeleteConnectionMonitorResponse` + :param request: Request instance for ShowVpnGatewayCertificate + :type request: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowVpnGatewayCertificateResponse` """ - http_info = self._delete_connection_monitor_http_info(request) + http_info = self._show_vpn_gateway_certificate_http_info(request) return self._call_api(**http_info) - def delete_connection_monitor_invoker(self, request): - http_info = self._delete_connection_monitor_http_info(request) + def show_vpn_gateway_certificate_invoker(self, request): + http_info = self._show_vpn_gateway_certificate_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_connection_monitor_http_info(cls, request): + def _show_vpn_gateway_certificate_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", + "method": "GET", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate", "request_type": request.__class__.__name__, - "response_type": "DeleteConnectionMonitorResponse" + "response_type": "ShowVpnGatewayCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1459,8 +1868,8 @@ def _delete_connection_monitor_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_monitor_id' in local_var_params: - path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] query_params = [] @@ -1490,31 +1899,31 @@ def _delete_connection_monitor_http_info(cls, request): return http_info - def list_connection_monitors(self, request): - """查询VPN连接监控列表 + def update_vgw_certificate(self, request): + """更新VPN网关证书 - 查询VPN连接监控列表 + 更新租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListConnectionMonitors - :type request: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ListConnectionMonitorsResponse` + :param request: Request instance for UpdateVgwCertificate + :type request: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwCertificateResponse` """ - http_info = self._list_connection_monitors_http_info(request) + http_info = self._update_vgw_certificate_http_info(request) return self._call_api(**http_info) - def list_connection_monitors_invoker(self, request): - http_info = self._list_connection_monitors_http_info(request) + def update_vgw_certificate_invoker(self, request): + http_info = self._update_vgw_certificate_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_connection_monitors_http_info(cls, request): + def _update_vgw_certificate_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/{project_id}/connection-monitors", + "method": "PUT", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/certificate/{certificate_id}", "request_type": request.__class__.__name__, - "response_type": "ListConnectionMonitorsResponse" + "response_type": "UpdateVgwCertificateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1524,23 +1933,24 @@ def _list_connection_monitors_http_info(cls, request): collection_formats = {} path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_id'] + if 'certificate_id' in local_var_params: + path_params['certificate_id'] = local_var_params['certificate_id'] query_params = [] - if 'vpn_connection_id' in local_var_params: - query_params.append(('vpn_connection_id', local_var_params['vpn_connection_id'])) - if 'enterprise_project_id' in local_var_params: - query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) - collection_formats['enterprise_project_id'] = 'multi' header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() - response_headers = [] + response_headers = ["header-response-token", ] header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -1558,31 +1968,31 @@ def _list_connection_monitors_http_info(cls, request): return http_info - def show_connection_monitor(self, request): - """查询VPN连接监控 + def show_quotas_info(self, request): + """查询指定租户配额 - 根据VPN连接监控的ID,查询指定的VPN连接监控 + 查询指定租户的配额 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowConnectionMonitor - :type request: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorRequest` - :rtype: :class:`huaweicloudsdkvpn.v5.ShowConnectionMonitorResponse` + :param request: Request instance for ShowQuotasInfo + :type request: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.ShowQuotasInfoResponse` """ - http_info = self._show_connection_monitor_http_info(request) + http_info = self._show_quotas_info_http_info(request) return self._call_api(**http_info) - def show_connection_monitor_invoker(self, request): - http_info = self._show_connection_monitor_http_info(request) + def show_quotas_info_invoker(self, request): + http_info = self._show_quotas_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_connection_monitor_http_info(cls, request): + def _show_quotas_info_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/{project_id}/connection-monitors/{connection_monitor_id}", + "resource_path": "/v5/{project_id}/vpn/quotas", "request_type": request.__class__.__name__, - "response_type": "ShowConnectionMonitorResponse" + "response_type": "ShowQuotasInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1592,8 +2002,6 @@ def _show_connection_monitor_http_info(cls, request): collection_formats = {} path_params = {} - if 'connection_monitor_id' in local_var_params: - path_params['connection_monitor_id'] = local_var_params['connection_monitor_id'] query_params = [] diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 41a0620da1..5c53a84bbe 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py index 336bfd72cc..3269e9824f 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -73,9 +70,9 @@ class WafRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -84,6 +81,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Waf': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 54cfe1107b..57b82c9fde 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_detail_info.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_detail_info.py index 2a190006bb..9b0310bfa7 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_detail_info.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_detail_info.py @@ -27,9 +27,7 @@ class JobDetailInfo: 'fail_reason': 'str', 'message': 'str', 'job_id': 'str', - 'desktop_name': 'str', - 'ip_address': 'str', - 'mac_address': 'str' + 'process': 'int' } attribute_map = { @@ -43,12 +41,10 @@ class JobDetailInfo: 'fail_reason': 'fail_reason', 'message': 'message', 'job_id': 'job_id', - 'desktop_name': 'desktop_name', - 'ip_address': 'ip_address', - 'mac_address': 'mac_address' + 'process': 'process' } - def __init__(self, id=None, job_type=None, entities=None, begin_time=None, end_time=None, status=None, error_code=None, fail_reason=None, message=None, job_id=None, desktop_name=None, ip_address=None, mac_address=None): + def __init__(self, id=None, job_type=None, entities=None, begin_time=None, end_time=None, status=None, error_code=None, fail_reason=None, message=None, job_id=None, process=None): """JobDetailInfo The model defined in huaweicloud sdk @@ -73,12 +69,8 @@ def __init__(self, id=None, job_type=None, entities=None, begin_time=None, end_t :type message: str :param job_id: 任务ID。 :type job_id: str - :param desktop_name: 桌面名称。 - :type desktop_name: str - :param ip_address: ip地址。 - :type ip_address: str - :param mac_address: mac地址。 - :type mac_address: str + :param process: 任务进度。 + :type process: int """ @@ -93,9 +85,7 @@ def __init__(self, id=None, job_type=None, entities=None, begin_time=None, end_t self._fail_reason = None self._message = None self._job_id = None - self._desktop_name = None - self._ip_address = None - self._mac_address = None + self._process = None self.discriminator = None if id is not None: @@ -118,12 +108,8 @@ def __init__(self, id=None, job_type=None, entities=None, begin_time=None, end_t self.message = message if job_id is not None: self.job_id = job_id - if desktop_name is not None: - self.desktop_name = desktop_name - if ip_address is not None: - self.ip_address = ip_address - if mac_address is not None: - self.mac_address = mac_address + if process is not None: + self.process = process @property def id(self): @@ -342,70 +328,26 @@ def job_id(self, job_id): self._job_id = job_id @property - def desktop_name(self): - """Gets the desktop_name of this JobDetailInfo. + def process(self): + """Gets the process of this JobDetailInfo. - 桌面名称。 + 任务进度。 - :return: The desktop_name of this JobDetailInfo. - :rtype: str - """ - return self._desktop_name - - @desktop_name.setter - def desktop_name(self, desktop_name): - """Sets the desktop_name of this JobDetailInfo. - - 桌面名称。 - - :param desktop_name: The desktop_name of this JobDetailInfo. - :type desktop_name: str - """ - self._desktop_name = desktop_name - - @property - def ip_address(self): - """Gets the ip_address of this JobDetailInfo. - - ip地址。 - - :return: The ip_address of this JobDetailInfo. - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this JobDetailInfo. - - ip地址。 - - :param ip_address: The ip_address of this JobDetailInfo. - :type ip_address: str - """ - self._ip_address = ip_address - - @property - def mac_address(self): - """Gets the mac_address of this JobDetailInfo. - - mac地址。 - - :return: The mac_address of this JobDetailInfo. - :rtype: str + :return: The process of this JobDetailInfo. + :rtype: int """ - return self._mac_address + return self._process - @mac_address.setter - def mac_address(self, mac_address): - """Sets the mac_address of this JobDetailInfo. + @process.setter + def process(self, process): + """Sets the process of this JobDetailInfo. - mac地址。 + 任务进度。 - :param mac_address: The mac_address of this JobDetailInfo. - :type mac_address: str + :param process: The process of this JobDetailInfo. + :type process: int """ - self._mac_address = mac_address + self._process = process def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_entities.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_entities.py index be3ef46288..3fca208746 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_entities.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/job_entities.py @@ -19,16 +19,20 @@ class JobEntities: openapi_types = { 'desktop_id': 'str', 'product_id': 'str', - 'user_name': 'str' + 'user_name': 'str', + 'desktop_name': 'str', + 'ip_address': 'str' } attribute_map = { 'desktop_id': 'desktop_id', 'product_id': 'product_id', - 'user_name': 'user_name' + 'user_name': 'user_name', + 'desktop_name': 'desktop_name', + 'ip_address': 'ip_address' } - def __init__(self, desktop_id=None, product_id=None, user_name=None): + def __init__(self, desktop_id=None, product_id=None, user_name=None, desktop_name=None, ip_address=None): """JobEntities The model defined in huaweicloud sdk @@ -39,6 +43,10 @@ def __init__(self, desktop_id=None, product_id=None, user_name=None): :type product_id: str :param user_name: 用户名。 :type user_name: str + :param desktop_name: 桌面名称。 + :type desktop_name: str + :param ip_address: ip地址。 + :type ip_address: str """ @@ -46,6 +54,8 @@ def __init__(self, desktop_id=None, product_id=None, user_name=None): self._desktop_id = None self._product_id = None self._user_name = None + self._desktop_name = None + self._ip_address = None self.discriminator = None if desktop_id is not None: @@ -54,6 +64,10 @@ def __init__(self, desktop_id=None, product_id=None, user_name=None): self.product_id = product_id if user_name is not None: self.user_name = user_name + if desktop_name is not None: + self.desktop_name = desktop_name + if ip_address is not None: + self.ip_address = ip_address @property def desktop_id(self): @@ -121,6 +135,50 @@ def user_name(self, user_name): """ self._user_name = user_name + @property + def desktop_name(self): + """Gets the desktop_name of this JobEntities. + + 桌面名称。 + + :return: The desktop_name of this JobEntities. + :rtype: str + """ + return self._desktop_name + + @desktop_name.setter + def desktop_name(self, desktop_name): + """Sets the desktop_name of this JobEntities. + + 桌面名称。 + + :param desktop_name: The desktop_name of this JobEntities. + :type desktop_name: str + """ + self._desktop_name = desktop_name + + @property + def ip_address(self): + """Gets the ip_address of this JobEntities. + + ip地址。 + + :return: The ip_address of this JobEntities. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """Sets the ip_address of this JobEntities. + + ip地址。 + + :param ip_address: The ip_address of this JobEntities. + :type ip_address: str + """ + self._ip_address = ip_address + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py index 6bac57d357..fb19a07c58 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -43,9 +40,9 @@ class WorkspaceRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -54,6 +51,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'Workspace': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 42991b54bc..65875b4892 100644 --- 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.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/account_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/account_info.py index 3cee2eca59..667a8392e6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/account_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/account_info.py @@ -41,17 +41,17 @@ def __init__(self, id=None, account=None, account_type=None, domain=None, email= The model defined in huaweicloud sdk - :param id: 用户ID(或用户组ID),根据 account_type 参数决定值类型 对于用户组类型,必须传入用户组ID `USER` - 用户ID `USER_GROUP` - 用户组ID + :param id: 用户ID(或用户组ID),根据 account_type 参数决定值类型。 对于用户组类型,必须传入用户组ID。 `USER` - 用户ID。 `USER_GROUP` - 用户组ID。 :type id: str - :param account: 用户名(或用户组名),根据 account_type 参数决定值类型 `USER` - 用户名 `USER_GROUP` - 用户组名 + :param account: 用户名(或用户组名),根据 account_type 参数决定值类型。 `USER` - 用户名。 `USER_GROUP` - 用户组名。 :type account: str :param account_type: :type account_type: :class:`huaweicloudsdkworkspaceapp.v1.AccountTypeEnum` - :param domain: 域名城 + :param domain: 域名城。 :type domain: str - :param email: 邮箱 + :param email: 邮箱。 :type email: str - :param telephone_number: 手机 + :param telephone_number: 手机。 :type telephone_number: str :param platform_type: :type platform_type: :class:`huaweicloudsdkworkspaceapp.v1.PlatformTypeEnum` @@ -85,7 +85,7 @@ def __init__(self, id=None, account=None, account_type=None, domain=None, email= def id(self): """Gets the id of this AccountInfo. - 用户ID(或用户组ID),根据 account_type 参数决定值类型 对于用户组类型,必须传入用户组ID `USER` - 用户ID `USER_GROUP` - 用户组ID + 用户ID(或用户组ID),根据 account_type 参数决定值类型。 对于用户组类型,必须传入用户组ID。 `USER` - 用户ID。 `USER_GROUP` - 用户组ID。 :return: The id of this AccountInfo. :rtype: str @@ -96,7 +96,7 @@ def id(self): def id(self, id): """Sets the id of this AccountInfo. - 用户ID(或用户组ID),根据 account_type 参数决定值类型 对于用户组类型,必须传入用户组ID `USER` - 用户ID `USER_GROUP` - 用户组ID + 用户ID(或用户组ID),根据 account_type 参数决定值类型。 对于用户组类型,必须传入用户组ID。 `USER` - 用户ID。 `USER_GROUP` - 用户组ID。 :param id: The id of this AccountInfo. :type id: str @@ -107,7 +107,7 @@ def id(self, id): def account(self): """Gets the account of this AccountInfo. - 用户名(或用户组名),根据 account_type 参数决定值类型 `USER` - 用户名 `USER_GROUP` - 用户组名 + 用户名(或用户组名),根据 account_type 参数决定值类型。 `USER` - 用户名。 `USER_GROUP` - 用户组名。 :return: The account of this AccountInfo. :rtype: str @@ -118,7 +118,7 @@ def account(self): def account(self, account): """Sets the account of this AccountInfo. - 用户名(或用户组名),根据 account_type 参数决定值类型 `USER` - 用户名 `USER_GROUP` - 用户组名 + 用户名(或用户组名),根据 account_type 参数决定值类型。 `USER` - 用户名。 `USER_GROUP` - 用户组名。 :param account: The account of this AccountInfo. :type account: str @@ -147,7 +147,7 @@ def account_type(self, account_type): def domain(self): """Gets the domain of this AccountInfo. - 域名城 + 域名城。 :return: The domain of this AccountInfo. :rtype: str @@ -158,7 +158,7 @@ def domain(self): def domain(self, domain): """Sets the domain of this AccountInfo. - 域名城 + 域名城。 :param domain: The domain of this AccountInfo. :type domain: str @@ -169,7 +169,7 @@ def domain(self, domain): def email(self): """Gets the email of this AccountInfo. - 邮箱 + 邮箱。 :return: The email of this AccountInfo. :rtype: str @@ -180,7 +180,7 @@ def email(self): def email(self, email): """Sets the email of this AccountInfo. - 邮箱 + 邮箱。 :param email: The email of this AccountInfo. :type email: str @@ -191,7 +191,7 @@ def email(self, email): def telephone_number(self): """Gets the telephone_number of this AccountInfo. - 手机 + 手机。 :return: The telephone_number of this AccountInfo. :rtype: str @@ -202,7 +202,7 @@ def telephone_number(self): def telephone_number(self, telephone_number): """Sets the telephone_number of this AccountInfo. - 手机 + 手机。 :param telephone_number: The telephone_number of this AccountInfo. :type telephone_number: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/add_app_group_authorization_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/add_app_group_authorization_request.py index 9cb1bb88de..dbd686bccc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/add_app_group_authorization_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/add_app_group_authorization_request.py @@ -31,7 +31,7 @@ def __init__(self, x_language=None, body=None): The model defined in huaweicloud sdk - :param x_language: 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + :param x_language: 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :type x_language: str :param body: Body of the AddAppGroupAuthorizationRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.AppGroupAuthorizeReq` @@ -52,7 +52,7 @@ def __init__(self, x_language=None, body=None): def x_language(self): """Gets the x_language of this AddAppGroupAuthorizationRequest. - 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :return: The x_language of this AddAppGroupAuthorizationRequest. :rtype: str @@ -63,7 +63,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this AddAppGroupAuthorizationRequest. - 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :param x_language: The x_language of this AddAppGroupAuthorizationRequest. :type x_language: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app.py index 2d4032aed8..3f72de002f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app.py @@ -63,41 +63,41 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute The model defined in huaweicloud sdk - :param id: 应用ID + :param id: 应用ID。 :type id: str - :param name: 应用名称 + :param name: 应用名称。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param icon_path: 应用图标的路径 + :param icon_path: 应用图标的路径。 :type icon_path: str - :param icon_index: 应用图标的索引 + :param icon_index: 应用图标的索引。 :type icon_index: int - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param app_group_id: 应用组标识Id + :param app_group_id: 应用组标识Id。 :type app_group_id: str :param state: :type state: :class:`huaweicloudsdkworkspaceapp.v1.AppStateEnum` - :param tenant_id: 所在的租户ID + :param tenant_id: 所在的租户ID。 :type tenant_id: str - :param publish_at: 发布时间 + :param publish_at: 发布时间。 :type publish_at: datetime - :param source_type: 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + :param source_type: 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :type source_type: int - :param publisher: 应用发布者 + :param publisher: 应用发布者。 :type publisher: str - :param icon_url: 图标url + :param icon_url: 图标url。 :type icon_url: str - :param publishable: 是否可发布应用 - true: 可发布 - false: 不可发布 + :param publishable: 是否可发布应用: - true: 可发布。 - false: 不可发布。 :type publishable: bool - :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :type sandbox_enable: bool """ @@ -164,7 +164,7 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute def id(self): """Gets the id of this App. - 应用ID + 应用ID。 :return: The id of this App. :rtype: str @@ -175,7 +175,7 @@ def id(self): def id(self, id): """Sets the id of this App. - 应用ID + 应用ID。 :param id: The id of this App. :type id: str @@ -186,7 +186,7 @@ def id(self, id): def name(self): """Gets the name of this App. - 应用名称 + 应用名称。 :return: The name of this App. :rtype: str @@ -197,7 +197,7 @@ def name(self): def name(self, name): """Sets the name of this App. - 应用名称 + 应用名称。 :param name: The name of this App. :type name: str @@ -208,7 +208,7 @@ def name(self, name): def version(self): """Gets the version of this App. - 应用版本号 + 应用版本号。 :return: The version of this App. :rtype: str @@ -219,7 +219,7 @@ def version(self): def version(self, version): """Sets the version of this App. - 应用版本号 + 应用版本号。 :param version: The version of this App. :type version: str @@ -230,7 +230,7 @@ def version(self, version): def command_param(self): """Gets the command_param of this App. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this App. :rtype: str @@ -241,7 +241,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this App. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this App. :type command_param: str @@ -252,7 +252,7 @@ def command_param(self, command_param): def execute_path(self): """Gets the execute_path of this App. - 执行路径 + 执行路径。 :return: The execute_path of this App. :rtype: str @@ -263,7 +263,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this App. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this App. :type execute_path: str @@ -274,7 +274,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this App. - 应用工作目录 + 应用工作目录。 :return: The work_path of this App. :rtype: str @@ -285,7 +285,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this App. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this App. :type work_path: str @@ -296,7 +296,7 @@ def work_path(self, work_path): def icon_path(self): """Gets the icon_path of this App. - 应用图标的路径 + 应用图标的路径。 :return: The icon_path of this App. :rtype: str @@ -307,7 +307,7 @@ def icon_path(self): def icon_path(self, icon_path): """Sets the icon_path of this App. - 应用图标的路径 + 应用图标的路径。 :param icon_path: The icon_path of this App. :type icon_path: str @@ -318,7 +318,7 @@ def icon_path(self, icon_path): def icon_index(self): """Gets the icon_index of this App. - 应用图标的索引 + 应用图标的索引。 :return: The icon_index of this App. :rtype: int @@ -329,7 +329,7 @@ def icon_index(self): def icon_index(self, icon_index): """Sets the icon_index of this App. - 应用图标的索引 + 应用图标的索引。 :param icon_index: The icon_index of this App. :type icon_index: int @@ -340,7 +340,7 @@ def icon_index(self, icon_index): def description(self): """Gets the description of this App. - 应用描述 + 应用描述。 :return: The description of this App. :rtype: str @@ -351,7 +351,7 @@ def description(self): def description(self, description): """Sets the description of this App. - 应用描述 + 应用描述。 :param description: The description of this App. :type description: str @@ -362,7 +362,7 @@ def description(self, description): def app_group_id(self): """Gets the app_group_id of this App. - 应用组标识Id + 应用组标识Id。 :return: The app_group_id of this App. :rtype: str @@ -373,7 +373,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this App. - 应用组标识Id + 应用组标识Id。 :param app_group_id: The app_group_id of this App. :type app_group_id: str @@ -402,7 +402,7 @@ def state(self, state): def tenant_id(self): """Gets the tenant_id of this App. - 所在的租户ID + 所在的租户ID。 :return: The tenant_id of this App. :rtype: str @@ -413,7 +413,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this App. - 所在的租户ID + 所在的租户ID。 :param tenant_id: The tenant_id of this App. :type tenant_id: str @@ -424,7 +424,7 @@ def tenant_id(self, tenant_id): def publish_at(self): """Gets the publish_at of this App. - 发布时间 + 发布时间。 :return: The publish_at of this App. :rtype: datetime @@ -435,7 +435,7 @@ def publish_at(self): def publish_at(self, publish_at): """Sets the publish_at of this App. - 发布时间 + 发布时间。 :param publish_at: The publish_at of this App. :type publish_at: datetime @@ -446,7 +446,7 @@ def publish_at(self, publish_at): def source_type(self): """Gets the source_type of this App. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :return: The source_type of this App. :rtype: int @@ -457,7 +457,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this App. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :param source_type: The source_type of this App. :type source_type: int @@ -468,7 +468,7 @@ def source_type(self, source_type): def publisher(self): """Gets the publisher of this App. - 应用发布者 + 应用发布者。 :return: The publisher of this App. :rtype: str @@ -479,7 +479,7 @@ def publisher(self): def publisher(self, publisher): """Sets the publisher of this App. - 应用发布者 + 应用发布者。 :param publisher: The publisher of this App. :type publisher: str @@ -490,7 +490,7 @@ def publisher(self, publisher): def icon_url(self): """Gets the icon_url of this App. - 图标url + 图标url。 :return: The icon_url of this App. :rtype: str @@ -501,7 +501,7 @@ def icon_url(self): def icon_url(self, icon_url): """Sets the icon_url of this App. - 图标url + 图标url。 :param icon_url: The icon_url of this App. :type icon_url: str @@ -512,7 +512,7 @@ def icon_url(self, icon_url): def publishable(self): """Gets the publishable of this App. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :return: The publishable of this App. :rtype: bool @@ -523,7 +523,7 @@ def publishable(self): def publishable(self, publishable): """Sets the publishable of this App. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :param publishable: The publishable of this App. :type publishable: bool @@ -534,7 +534,7 @@ def publishable(self, publishable): def sandbox_enable(self): """Gets the sandbox_enable of this App. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :return: The sandbox_enable of this App. :rtype: bool @@ -545,7 +545,7 @@ def sandbox_enable(self): def sandbox_enable(self, sandbox_enable): """Sets the sandbox_enable of this App. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :param sandbox_enable: The sandbox_enable of this App. :type sandbox_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_connection_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_connection_info.py index 7292f24a26..10959c3e5e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_connection_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_connection_info.py @@ -67,45 +67,45 @@ def __init__(self, id=None, sid=None, machine_name=None, user_name=None, app_gro The model defined in huaweicloud sdk - :param id: 应用连接唯一标识ID + :param id: 应用连接唯一标识ID。 :type id: str - :param sid: 应用服务器sid + :param sid: 应用服务器sid。 :type sid: str - :param machine_name: 应用服务器名称 + :param machine_name: 应用服务器名称。 :type machine_name: str - :param user_name: 登录用户 + :param user_name: 登录用户。 :type user_name: str - :param app_group_name: 应用组名称 + :param app_group_name: 应用组名称。 :type app_group_name: str - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str - :param app_name: 应用名称 + :param app_name: 应用名称。 :type app_name: str - :param brokering_time: 登录应用时间 + :param brokering_time: 登录应用时间。 :type brokering_time: datetime - :param failed_code: 连接失败状态码 + :param failed_code: 连接失败状态码。 :type failed_code: str - :param connection_failure_reason: 连接失败原因 + :param connection_failure_reason: 连接失败原因。 :type connection_failure_reason: str - :param client_mac: 客户端Mac + :param client_mac: 客户端Mac。 :type client_mac: str - :param client_name: 客户端名称 + :param client_name: 客户端名称。 :type client_name: str - :param client_ip: 客户端ip + :param client_ip: 客户端ip。 :type client_ip: str - :param client_version: 客户端版本 + :param client_version: 客户端版本。 :type client_version: str - :param client_type: 客户端操作系统类型 + :param client_type: 客户端操作系统类型。 :type client_type: str - :param agent_version: aps hda版本 + :param agent_version: aps hda版本。 :type agent_version: str - :param vm_ip: 应用服务器ip + :param vm_ip: 应用服务器ip。 :type vm_ip: str - :param wi_ip: 连接IP + :param wi_ip: 连接IP。 :type wi_ip: str - :param tenant_id: 租户id + :param tenant_id: 租户id。 :type tenant_id: str - :param virtual_ip: 会话虚拟ip + :param virtual_ip: 会话虚拟ip。 :type virtual_ip: str """ @@ -178,7 +178,7 @@ def __init__(self, id=None, sid=None, machine_name=None, user_name=None, app_gro def id(self): """Gets the id of this AppConnectionInfo. - 应用连接唯一标识ID + 应用连接唯一标识ID。 :return: The id of this AppConnectionInfo. :rtype: str @@ -189,7 +189,7 @@ def id(self): def id(self, id): """Sets the id of this AppConnectionInfo. - 应用连接唯一标识ID + 应用连接唯一标识ID。 :param id: The id of this AppConnectionInfo. :type id: str @@ -200,7 +200,7 @@ def id(self, id): def sid(self): """Gets the sid of this AppConnectionInfo. - 应用服务器sid + 应用服务器sid。 :return: The sid of this AppConnectionInfo. :rtype: str @@ -211,7 +211,7 @@ def sid(self): def sid(self, sid): """Sets the sid of this AppConnectionInfo. - 应用服务器sid + 应用服务器sid。 :param sid: The sid of this AppConnectionInfo. :type sid: str @@ -222,7 +222,7 @@ def sid(self, sid): def machine_name(self): """Gets the machine_name of this AppConnectionInfo. - 应用服务器名称 + 应用服务器名称。 :return: The machine_name of this AppConnectionInfo. :rtype: str @@ -233,7 +233,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this AppConnectionInfo. - 应用服务器名称 + 应用服务器名称。 :param machine_name: The machine_name of this AppConnectionInfo. :type machine_name: str @@ -244,7 +244,7 @@ def machine_name(self, machine_name): def user_name(self): """Gets the user_name of this AppConnectionInfo. - 登录用户 + 登录用户。 :return: The user_name of this AppConnectionInfo. :rtype: str @@ -255,7 +255,7 @@ def user_name(self): def user_name(self, user_name): """Sets the user_name of this AppConnectionInfo. - 登录用户 + 登录用户。 :param user_name: The user_name of this AppConnectionInfo. :type user_name: str @@ -266,7 +266,7 @@ def user_name(self, user_name): def app_group_name(self): """Gets the app_group_name of this AppConnectionInfo. - 应用组名称 + 应用组名称。 :return: The app_group_name of this AppConnectionInfo. :rtype: str @@ -277,7 +277,7 @@ def app_group_name(self): def app_group_name(self, app_group_name): """Sets the app_group_name of this AppConnectionInfo. - 应用组名称 + 应用组名称。 :param app_group_name: The app_group_name of this AppConnectionInfo. :type app_group_name: str @@ -288,7 +288,7 @@ def app_group_name(self, app_group_name): def app_group_id(self): """Gets the app_group_id of this AppConnectionInfo. - 应用组ID + 应用组ID。 :return: The app_group_id of this AppConnectionInfo. :rtype: str @@ -299,7 +299,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this AppConnectionInfo. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this AppConnectionInfo. :type app_group_id: str @@ -310,7 +310,7 @@ def app_group_id(self, app_group_id): def app_name(self): """Gets the app_name of this AppConnectionInfo. - 应用名称 + 应用名称。 :return: The app_name of this AppConnectionInfo. :rtype: str @@ -321,7 +321,7 @@ def app_name(self): def app_name(self, app_name): """Sets the app_name of this AppConnectionInfo. - 应用名称 + 应用名称。 :param app_name: The app_name of this AppConnectionInfo. :type app_name: str @@ -332,7 +332,7 @@ def app_name(self, app_name): def brokering_time(self): """Gets the brokering_time of this AppConnectionInfo. - 登录应用时间 + 登录应用时间。 :return: The brokering_time of this AppConnectionInfo. :rtype: datetime @@ -343,7 +343,7 @@ def brokering_time(self): def brokering_time(self, brokering_time): """Sets the brokering_time of this AppConnectionInfo. - 登录应用时间 + 登录应用时间。 :param brokering_time: The brokering_time of this AppConnectionInfo. :type brokering_time: datetime @@ -354,7 +354,7 @@ def brokering_time(self, brokering_time): def failed_code(self): """Gets the failed_code of this AppConnectionInfo. - 连接失败状态码 + 连接失败状态码。 :return: The failed_code of this AppConnectionInfo. :rtype: str @@ -365,7 +365,7 @@ def failed_code(self): def failed_code(self, failed_code): """Sets the failed_code of this AppConnectionInfo. - 连接失败状态码 + 连接失败状态码。 :param failed_code: The failed_code of this AppConnectionInfo. :type failed_code: str @@ -376,7 +376,7 @@ def failed_code(self, failed_code): def connection_failure_reason(self): """Gets the connection_failure_reason of this AppConnectionInfo. - 连接失败原因 + 连接失败原因。 :return: The connection_failure_reason of this AppConnectionInfo. :rtype: str @@ -387,7 +387,7 @@ def connection_failure_reason(self): def connection_failure_reason(self, connection_failure_reason): """Sets the connection_failure_reason of this AppConnectionInfo. - 连接失败原因 + 连接失败原因。 :param connection_failure_reason: The connection_failure_reason of this AppConnectionInfo. :type connection_failure_reason: str @@ -398,7 +398,7 @@ def connection_failure_reason(self, connection_failure_reason): def client_mac(self): """Gets the client_mac of this AppConnectionInfo. - 客户端Mac + 客户端Mac。 :return: The client_mac of this AppConnectionInfo. :rtype: str @@ -409,7 +409,7 @@ def client_mac(self): def client_mac(self, client_mac): """Sets the client_mac of this AppConnectionInfo. - 客户端Mac + 客户端Mac。 :param client_mac: The client_mac of this AppConnectionInfo. :type client_mac: str @@ -420,7 +420,7 @@ def client_mac(self, client_mac): def client_name(self): """Gets the client_name of this AppConnectionInfo. - 客户端名称 + 客户端名称。 :return: The client_name of this AppConnectionInfo. :rtype: str @@ -431,7 +431,7 @@ def client_name(self): def client_name(self, client_name): """Sets the client_name of this AppConnectionInfo. - 客户端名称 + 客户端名称。 :param client_name: The client_name of this AppConnectionInfo. :type client_name: str @@ -442,7 +442,7 @@ def client_name(self, client_name): def client_ip(self): """Gets the client_ip of this AppConnectionInfo. - 客户端ip + 客户端ip。 :return: The client_ip of this AppConnectionInfo. :rtype: str @@ -453,7 +453,7 @@ def client_ip(self): def client_ip(self, client_ip): """Sets the client_ip of this AppConnectionInfo. - 客户端ip + 客户端ip。 :param client_ip: The client_ip of this AppConnectionInfo. :type client_ip: str @@ -464,7 +464,7 @@ def client_ip(self, client_ip): def client_version(self): """Gets the client_version of this AppConnectionInfo. - 客户端版本 + 客户端版本。 :return: The client_version of this AppConnectionInfo. :rtype: str @@ -475,7 +475,7 @@ def client_version(self): def client_version(self, client_version): """Sets the client_version of this AppConnectionInfo. - 客户端版本 + 客户端版本。 :param client_version: The client_version of this AppConnectionInfo. :type client_version: str @@ -486,7 +486,7 @@ def client_version(self, client_version): def client_type(self): """Gets the client_type of this AppConnectionInfo. - 客户端操作系统类型 + 客户端操作系统类型。 :return: The client_type of this AppConnectionInfo. :rtype: str @@ -497,7 +497,7 @@ def client_type(self): def client_type(self, client_type): """Sets the client_type of this AppConnectionInfo. - 客户端操作系统类型 + 客户端操作系统类型。 :param client_type: The client_type of this AppConnectionInfo. :type client_type: str @@ -508,7 +508,7 @@ def client_type(self, client_type): def agent_version(self): """Gets the agent_version of this AppConnectionInfo. - aps hda版本 + aps hda版本。 :return: The agent_version of this AppConnectionInfo. :rtype: str @@ -519,7 +519,7 @@ def agent_version(self): def agent_version(self, agent_version): """Sets the agent_version of this AppConnectionInfo. - aps hda版本 + aps hda版本。 :param agent_version: The agent_version of this AppConnectionInfo. :type agent_version: str @@ -530,7 +530,7 @@ def agent_version(self, agent_version): def vm_ip(self): """Gets the vm_ip of this AppConnectionInfo. - 应用服务器ip + 应用服务器ip。 :return: The vm_ip of this AppConnectionInfo. :rtype: str @@ -541,7 +541,7 @@ def vm_ip(self): def vm_ip(self, vm_ip): """Sets the vm_ip of this AppConnectionInfo. - 应用服务器ip + 应用服务器ip。 :param vm_ip: The vm_ip of this AppConnectionInfo. :type vm_ip: str @@ -552,7 +552,7 @@ def vm_ip(self, vm_ip): def wi_ip(self): """Gets the wi_ip of this AppConnectionInfo. - 连接IP + 连接IP。 :return: The wi_ip of this AppConnectionInfo. :rtype: str @@ -563,7 +563,7 @@ def wi_ip(self): def wi_ip(self, wi_ip): """Sets the wi_ip of this AppConnectionInfo. - 连接IP + 连接IP。 :param wi_ip: The wi_ip of this AppConnectionInfo. :type wi_ip: str @@ -574,7 +574,7 @@ def wi_ip(self, wi_ip): def tenant_id(self): """Gets the tenant_id of this AppConnectionInfo. - 租户id + 租户id。 :return: The tenant_id of this AppConnectionInfo. :rtype: str @@ -585,7 +585,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this AppConnectionInfo. - 租户id + 租户id。 :param tenant_id: The tenant_id of this AppConnectionInfo. :type tenant_id: str @@ -596,7 +596,7 @@ def tenant_id(self, tenant_id): def virtual_ip(self): """Gets the virtual_ip of this AppConnectionInfo. - 会话虚拟ip + 会话虚拟ip。 :return: The virtual_ip of this AppConnectionInfo. :rtype: str @@ -607,7 +607,7 @@ def virtual_ip(self): def virtual_ip(self, virtual_ip): """Sets the virtual_ip of this AppConnectionInfo. - 会话虚拟ip + 会话虚拟ip。 :param virtual_ip: The virtual_ip of this AppConnectionInfo. :type virtual_ip: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group.py index a65550b7a9..d6873e38e0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group.py @@ -47,25 +47,25 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou The model defined in huaweicloud sdk - :param id: 应用组ID + :param id: 应用组ID。 :type id: str - :param name: 应用组名称 + :param name: 应用组名称。 :type name: str - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param app_server_group_name: 应用服务器组名称 + :param app_server_group_name: 应用服务器组名称。 :type app_server_group_name: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` - :param tenant_id: 租户ID + :param tenant_id: 租户ID。 :type tenant_id: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` - :param create_at: 发布时间 + :param create_at: 发布时间。 :type create_at: datetime - :param app_count: 应用数量 + :param app_count: 应用数量。 :type app_count: int """ @@ -108,7 +108,7 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou def id(self): """Gets the id of this AppGroup. - 应用组ID + 应用组ID。 :return: The id of this AppGroup. :rtype: str @@ -119,7 +119,7 @@ def id(self): def id(self, id): """Sets the id of this AppGroup. - 应用组ID + 应用组ID。 :param id: The id of this AppGroup. :type id: str @@ -130,7 +130,7 @@ def id(self, id): def name(self): """Gets the name of this AppGroup. - 应用组名称 + 应用组名称。 :return: The name of this AppGroup. :rtype: str @@ -141,7 +141,7 @@ def name(self): def name(self, name): """Sets the name of this AppGroup. - 应用组名称 + 应用组名称。 :param name: The name of this AppGroup. :type name: str @@ -152,7 +152,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this AppGroup. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this AppGroup. :rtype: str @@ -163,7 +163,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this AppGroup. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this AppGroup. :type app_server_group_id: str @@ -174,7 +174,7 @@ def app_server_group_id(self, app_server_group_id): def app_server_group_name(self): """Gets the app_server_group_name of this AppGroup. - 应用服务器组名称 + 应用服务器组名称。 :return: The app_server_group_name of this AppGroup. :rtype: str @@ -185,7 +185,7 @@ def app_server_group_name(self): def app_server_group_name(self, app_server_group_name): """Sets the app_server_group_name of this AppGroup. - 应用服务器组名称 + 应用服务器组名称。 :param app_server_group_name: The app_server_group_name of this AppGroup. :type app_server_group_name: str @@ -196,7 +196,7 @@ def app_server_group_name(self, app_server_group_name): def description(self): """Gets the description of this AppGroup. - 应用组描述 + 应用组描述。 :return: The description of this AppGroup. :rtype: str @@ -207,7 +207,7 @@ def description(self): def description(self, description): """Sets the description of this AppGroup. - 应用组描述 + 应用组描述。 :param description: The description of this AppGroup. :type description: str @@ -236,7 +236,7 @@ def authorization_type(self, authorization_type): def tenant_id(self): """Gets the tenant_id of this AppGroup. - 租户ID + 租户ID。 :return: The tenant_id of this AppGroup. :rtype: str @@ -247,7 +247,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this AppGroup. - 租户ID + 租户ID。 :param tenant_id: The tenant_id of this AppGroup. :type tenant_id: str @@ -276,7 +276,7 @@ def app_type(self, app_type): def create_at(self): """Gets the create_at of this AppGroup. - 发布时间 + 发布时间。 :return: The create_at of this AppGroup. :rtype: datetime @@ -287,7 +287,7 @@ def create_at(self): def create_at(self, create_at): """Sets the create_at of this AppGroup. - 发布时间 + 发布时间。 :param create_at: The create_at of this AppGroup. :type create_at: datetime @@ -298,7 +298,7 @@ def create_at(self, create_at): def app_count(self): """Gets the app_count of this AppGroup. - 应用数量 + 应用数量。 :return: The app_count of this AppGroup. :rtype: int @@ -309,7 +309,7 @@ def app_count(self): def app_count(self, app_count): """Sets the app_count of this AppGroup. - 应用数量 + 应用数量。 :param app_count: The app_count of this AppGroup. :type app_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group_authorize_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group_authorize_req.py index cd8c5ac3a4..ad0f85d5d7 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group_authorize_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_group_authorize_req.py @@ -31,9 +31,9 @@ def __init__(self, app_group_ids=None, accounts=None): The model defined in huaweicloud sdk - :param app_group_ids: 应用组ID,最多同时操作10个 + :param app_group_ids: 应用组ID,最多同时操作10个。 :type app_group_ids: list[str] - :param accounts: 用户(组),单次最多允许操作50个用户(组) + :param accounts: 用户(组),单次最多允许操作50个用户(组)。 :type accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.AccountInfo`] """ @@ -50,7 +50,7 @@ def __init__(self, app_group_ids=None, accounts=None): def app_group_ids(self): """Gets the app_group_ids of this AppGroupAuthorizeReq. - 应用组ID,最多同时操作10个 + 应用组ID,最多同时操作10个。 :return: The app_group_ids of this AppGroupAuthorizeReq. :rtype: list[str] @@ -61,7 +61,7 @@ def app_group_ids(self): def app_group_ids(self, app_group_ids): """Sets the app_group_ids of this AppGroupAuthorizeReq. - 应用组ID,最多同时操作10个 + 应用组ID,最多同时操作10个。 :param app_group_ids: The app_group_ids of this AppGroupAuthorizeReq. :type app_group_ids: list[str] @@ -72,7 +72,7 @@ def app_group_ids(self, app_group_ids): def accounts(self): """Gets the accounts of this AppGroupAuthorizeReq. - 用户(组),单次最多允许操作50个用户(组) + 用户(组),单次最多允许操作50个用户(组)。 :return: The accounts of this AppGroupAuthorizeReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AccountInfo`] @@ -83,7 +83,7 @@ def accounts(self): def accounts(self, accounts): """Sets the accounts of this AppGroupAuthorizeReq. - 用户(组),单次最多允许操作50个用户(组) + 用户(组),单次最多允许操作50个用户(组)。 :param accounts: The accounts of this AppGroupAuthorizeReq. :type accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.AccountInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py index dd45092664..6e0a13f36b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py @@ -97,75 +97,75 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv The model defined in huaweicloud sdk - :param id: aps实例的唯一标识 + :param id: aps实例的唯一标识。 :type id: str - :param name: 服务器名称 + :param name: 服务器名称。 :type name: str - :param machine_name: 计算机名称 + :param machine_name: 计算机名称。 :type machine_name: str - :param description: 描述 + :param description: 描述。 :type description: str - :param server_group_id: 服务器组ID + :param server_group_id: 服务器组ID。 :type server_group_id: str :param flavor: :type flavor: :class:`huaweicloudsdkworkspaceapp.v1.Flavor` :param status: :type status: :class:`huaweicloudsdkworkspaceapp.v1.ServerStatus` - :param create_time: 服务器创建时间 + :param create_time: 服务器创建时间。 :type create_time: datetime - :param update_time: 更新时间 + :param update_time: 更新时间。 :type update_time: datetime - :param image_id: 镜像ID + :param image_id: 镜像ID。 :type image_id: str - :param availability_zone: 服务器可用分区 + :param availability_zone: 服务器可用分区。 :type availability_zone: str - :param domain: 域 + :param domain: 域。 :type domain: str - :param ou_name: 组织名称 + :param ou_name: 组织名称。 :type ou_name: str - :param sid: 实例的SID + :param sid: 实例的SID。 :type sid: str - :param instance_id: 实例的ID + :param instance_id: 实例的ID。 :type instance_id: str - :param os_version: 服务器系统版本 + :param os_version: 服务器系统版本。 :type os_version: str - :param os_type: 操作系统类型,当前仅支持Windows - Linux - Windows - Other + :param os_type: 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :type os_type: str - :param order_id: 包周期产品的订单ID + :param order_id: 包周期产品的订单ID。 :type order_id: str - :param maintain_status: 是否维护状态 + :param maintain_status: 是否维护状态。 :type maintain_status: bool - :param scaling_auto_create: 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + :param scaling_auto_create: 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :type scaling_auto_create: bool - :param job_id: 上一次执行job的id + :param job_id: 上一次执行job的id。 :type job_id: str :param job_type: :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.JobType` :param job_status: :type job_status: :class:`huaweicloudsdkworkspaceapp.v1.JobStatus` - :param job_time: 上一次执行job的执行时间 + :param job_time: 上一次执行job的执行时间。 :type job_time: datetime - :param resource_pool_id: 资源池ID + :param resource_pool_id: 资源池ID。 :type resource_pool_id: str - :param resource_pool_type: 资源池类型 - private:私有资源池 - public: 工作资源池 + :param resource_pool_type: 资源池类型: - private:私有资源池。 - public: 工作资源池。 :type resource_pool_type: str - :param host_id: 云专属主机id + :param host_id: 云专属主机id。 :type host_id: str - :param server_group_name: 服务器组名称 + :param server_group_name: 服务器组名称。 :type server_group_name: str :param product_info: :type product_info: :class:`huaweicloudsdkworkspaceapp.v1.ProductInfo` :param metadata: 弹性云服务器元数据。 > 1. charging_mode 云服务器的计费类型。 - “0”:按需计费(即postPaid-后付费方式)。 - “1”:按包年包月计费(即prePaid-预付费方式)。\"2\":竞价实例计费 2. metering.order_id 按“包年/包月”计费的云服务器对应的订单ID。 3. metering.product_id 按“包年/包月”计费的云服务器对应的产品ID。 4. vpc_id 云服务器所属的虚拟私有云ID。 5. EcmResStatus 云服务器的冻结状态。 - normal:云服务器正常状态(未被冻结)。 - freeze:云服务器被冻结。 > 当云服务器被冻结或者解冻后,系统默认添加该字段,且该字段必选。 6. metering.image_id 云服务器操作系统对应的镜像ID 7. metering.imagetype 镜像类型,目前支持: - 公共镜像(gold) - 私有镜像(private) - 共享镜像(shared) 8. metering.resourcespeccode 云服务器对应的资源规格。 9. image_name 云服务器操作系统对应的镜像名称。 10. os_bit 操作系统位数,一般取值为“32”或者“64”。 11. lockCheckEndpoint 回调URL,用于检查弹性云服务器的加锁是否有效。 - 如果有效,则云服务器保持锁定状态。 - 如果无效,解除锁定状态,删除失效的锁。 12. lockSource 弹性云服务器来自哪个服务。订单加锁(ORDER) 13. lockSourceId 弹性云服务器的加锁来自哪个ID。lockSource为“ORDER”时,lockSourceId为订单ID。 14. lockScene 弹性云服务器的加锁类型。 - 按需转包周期(TO_PERIOD_LOCK) 15. virtual_env_type - IOS镜像创建虚拟机,\"virtual_env_type\": \"IsoImage\" 属性; - 非IOS镜像创建虚拟机,在19.5.0版本以后创建的虚拟机将不会添加virtual_env_type 属性,而在此之前的版本创建的虚拟机可能会返回\"virtual_env_type\": \"FusionCompute\"属性 。 > virtual_env_type属性不允许用户增加、删除和修改。 16. metering.resourcetype 云服务器对应的资源类型。 17. os_type 操作系统类型,取值为:Linux、Windows。 18. cascaded.instance_extrainfo 系统内部虚拟机扩展信息。 19. __support_agent_list 云服务器是否支持企业主机安全、主机监控。 - “hss”:企业主机安全 - “ces”:主机监控 20. agency_name 委托的名称。 委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。 :type metadata: dict(str, str) - :param session_count: 会话数量 + :param session_count: 会话数量。 :type session_count: int :param vm_status: :type vm_status: :class:`huaweicloudsdkworkspaceapp.v1.AppServerStatus` :param task_status: :type task_status: :class:`huaweicloudsdkworkspaceapp.v1.AppServerTaskStatus` - :param freeze: 冻结信息 + :param freeze: 冻结信息。 :type freeze: list[:class:`huaweicloudsdkworkspaceapp.v1.CbcFreezeInfo`] - :param host_address: vpc和子网信息 + :param host_address: vpc和子网信息。 :type host_address: list[:class:`huaweicloudsdkworkspaceapp.v1.EcsNetWork`] """ @@ -283,7 +283,7 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv def id(self): """Gets the id of this AppServer. - aps实例的唯一标识 + aps实例的唯一标识。 :return: The id of this AppServer. :rtype: str @@ -294,7 +294,7 @@ def id(self): def id(self, id): """Sets the id of this AppServer. - aps实例的唯一标识 + aps实例的唯一标识。 :param id: The id of this AppServer. :type id: str @@ -305,7 +305,7 @@ def id(self, id): def name(self): """Gets the name of this AppServer. - 服务器名称 + 服务器名称。 :return: The name of this AppServer. :rtype: str @@ -316,7 +316,7 @@ def name(self): def name(self, name): """Sets the name of this AppServer. - 服务器名称 + 服务器名称。 :param name: The name of this AppServer. :type name: str @@ -327,7 +327,7 @@ def name(self, name): def machine_name(self): """Gets the machine_name of this AppServer. - 计算机名称 + 计算机名称。 :return: The machine_name of this AppServer. :rtype: str @@ -338,7 +338,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this AppServer. - 计算机名称 + 计算机名称。 :param machine_name: The machine_name of this AppServer. :type machine_name: str @@ -349,7 +349,7 @@ def machine_name(self, machine_name): def description(self): """Gets the description of this AppServer. - 描述 + 描述。 :return: The description of this AppServer. :rtype: str @@ -360,7 +360,7 @@ def description(self): def description(self, description): """Sets the description of this AppServer. - 描述 + 描述。 :param description: The description of this AppServer. :type description: str @@ -371,7 +371,7 @@ def description(self, description): def server_group_id(self): """Gets the server_group_id of this AppServer. - 服务器组ID + 服务器组ID。 :return: The server_group_id of this AppServer. :rtype: str @@ -382,7 +382,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this AppServer. - 服务器组ID + 服务器组ID。 :param server_group_id: The server_group_id of this AppServer. :type server_group_id: str @@ -429,7 +429,7 @@ def status(self, status): def create_time(self): """Gets the create_time of this AppServer. - 服务器创建时间 + 服务器创建时间。 :return: The create_time of this AppServer. :rtype: datetime @@ -440,7 +440,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this AppServer. - 服务器创建时间 + 服务器创建时间。 :param create_time: The create_time of this AppServer. :type create_time: datetime @@ -451,7 +451,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this AppServer. - 更新时间 + 更新时间。 :return: The update_time of this AppServer. :rtype: datetime @@ -462,7 +462,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this AppServer. - 更新时间 + 更新时间。 :param update_time: The update_time of this AppServer. :type update_time: datetime @@ -473,7 +473,7 @@ def update_time(self, update_time): def image_id(self): """Gets the image_id of this AppServer. - 镜像ID + 镜像ID。 :return: The image_id of this AppServer. :rtype: str @@ -484,7 +484,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this AppServer. - 镜像ID + 镜像ID。 :param image_id: The image_id of this AppServer. :type image_id: str @@ -495,7 +495,7 @@ def image_id(self, image_id): def availability_zone(self): """Gets the availability_zone of this AppServer. - 服务器可用分区 + 服务器可用分区。 :return: The availability_zone of this AppServer. :rtype: str @@ -506,7 +506,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this AppServer. - 服务器可用分区 + 服务器可用分区。 :param availability_zone: The availability_zone of this AppServer. :type availability_zone: str @@ -517,7 +517,7 @@ def availability_zone(self, availability_zone): def domain(self): """Gets the domain of this AppServer. - 域 + 域。 :return: The domain of this AppServer. :rtype: str @@ -528,7 +528,7 @@ def domain(self): def domain(self, domain): """Sets the domain of this AppServer. - 域 + 域。 :param domain: The domain of this AppServer. :type domain: str @@ -539,7 +539,7 @@ def domain(self, domain): def ou_name(self): """Gets the ou_name of this AppServer. - 组织名称 + 组织名称。 :return: The ou_name of this AppServer. :rtype: str @@ -550,7 +550,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this AppServer. - 组织名称 + 组织名称。 :param ou_name: The ou_name of this AppServer. :type ou_name: str @@ -561,7 +561,7 @@ def ou_name(self, ou_name): def sid(self): """Gets the sid of this AppServer. - 实例的SID + 实例的SID。 :return: The sid of this AppServer. :rtype: str @@ -572,7 +572,7 @@ def sid(self): def sid(self, sid): """Sets the sid of this AppServer. - 实例的SID + 实例的SID。 :param sid: The sid of this AppServer. :type sid: str @@ -583,7 +583,7 @@ def sid(self, sid): def instance_id(self): """Gets the instance_id of this AppServer. - 实例的ID + 实例的ID。 :return: The instance_id of this AppServer. :rtype: str @@ -594,7 +594,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this AppServer. - 实例的ID + 实例的ID。 :param instance_id: The instance_id of this AppServer. :type instance_id: str @@ -605,7 +605,7 @@ def instance_id(self, instance_id): def os_version(self): """Gets the os_version of this AppServer. - 服务器系统版本 + 服务器系统版本。 :return: The os_version of this AppServer. :rtype: str @@ -616,7 +616,7 @@ def os_version(self): def os_version(self, os_version): """Sets the os_version of this AppServer. - 服务器系统版本 + 服务器系统版本。 :param os_version: The os_version of this AppServer. :type os_version: str @@ -627,7 +627,7 @@ def os_version(self, os_version): def os_type(self): """Gets the os_type of this AppServer. - 操作系统类型,当前仅支持Windows - Linux - Windows - Other + 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :return: The os_type of this AppServer. :rtype: str @@ -638,7 +638,7 @@ def os_type(self): def os_type(self, os_type): """Sets the os_type of this AppServer. - 操作系统类型,当前仅支持Windows - Linux - Windows - Other + 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :param os_type: The os_type of this AppServer. :type os_type: str @@ -649,7 +649,7 @@ def os_type(self, os_type): def order_id(self): """Gets the order_id of this AppServer. - 包周期产品的订单ID + 包周期产品的订单ID。 :return: The order_id of this AppServer. :rtype: str @@ -660,7 +660,7 @@ def order_id(self): def order_id(self, order_id): """Sets the order_id of this AppServer. - 包周期产品的订单ID + 包周期产品的订单ID。 :param order_id: The order_id of this AppServer. :type order_id: str @@ -671,7 +671,7 @@ def order_id(self, order_id): def maintain_status(self): """Gets the maintain_status of this AppServer. - 是否维护状态 + 是否维护状态。 :return: The maintain_status of this AppServer. :rtype: bool @@ -682,7 +682,7 @@ def maintain_status(self): def maintain_status(self, maintain_status): """Sets the maintain_status of this AppServer. - 是否维护状态 + 是否维护状态。 :param maintain_status: The maintain_status of this AppServer. :type maintain_status: bool @@ -693,7 +693,7 @@ def maintain_status(self, maintain_status): def scaling_auto_create(self): """Gets the scaling_auto_create of this AppServer. - 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :return: The scaling_auto_create of this AppServer. :rtype: bool @@ -704,7 +704,7 @@ def scaling_auto_create(self): def scaling_auto_create(self, scaling_auto_create): """Sets the scaling_auto_create of this AppServer. - 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :param scaling_auto_create: The scaling_auto_create of this AppServer. :type scaling_auto_create: bool @@ -715,7 +715,7 @@ def scaling_auto_create(self, scaling_auto_create): def job_id(self): """Gets the job_id of this AppServer. - 上一次执行job的id + 上一次执行job的id。 :return: The job_id of this AppServer. :rtype: str @@ -726,7 +726,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this AppServer. - 上一次执行job的id + 上一次执行job的id。 :param job_id: The job_id of this AppServer. :type job_id: str @@ -773,7 +773,7 @@ def job_status(self, job_status): def job_time(self): """Gets the job_time of this AppServer. - 上一次执行job的执行时间 + 上一次执行job的执行时间。 :return: The job_time of this AppServer. :rtype: datetime @@ -784,7 +784,7 @@ def job_time(self): def job_time(self, job_time): """Sets the job_time of this AppServer. - 上一次执行job的执行时间 + 上一次执行job的执行时间。 :param job_time: The job_time of this AppServer. :type job_time: datetime @@ -795,7 +795,7 @@ def job_time(self, job_time): def resource_pool_id(self): """Gets the resource_pool_id of this AppServer. - 资源池ID + 资源池ID。 :return: The resource_pool_id of this AppServer. :rtype: str @@ -806,7 +806,7 @@ def resource_pool_id(self): def resource_pool_id(self, resource_pool_id): """Sets the resource_pool_id of this AppServer. - 资源池ID + 资源池ID。 :param resource_pool_id: The resource_pool_id of this AppServer. :type resource_pool_id: str @@ -817,7 +817,7 @@ def resource_pool_id(self, resource_pool_id): def resource_pool_type(self): """Gets the resource_pool_type of this AppServer. - 资源池类型 - private:私有资源池 - public: 工作资源池 + 资源池类型: - private:私有资源池。 - public: 工作资源池。 :return: The resource_pool_type of this AppServer. :rtype: str @@ -828,7 +828,7 @@ def resource_pool_type(self): def resource_pool_type(self, resource_pool_type): """Sets the resource_pool_type of this AppServer. - 资源池类型 - private:私有资源池 - public: 工作资源池 + 资源池类型: - private:私有资源池。 - public: 工作资源池。 :param resource_pool_type: The resource_pool_type of this AppServer. :type resource_pool_type: str @@ -839,7 +839,7 @@ def resource_pool_type(self, resource_pool_type): def host_id(self): """Gets the host_id of this AppServer. - 云专属主机id + 云专属主机id。 :return: The host_id of this AppServer. :rtype: str @@ -850,7 +850,7 @@ def host_id(self): def host_id(self, host_id): """Sets the host_id of this AppServer. - 云专属主机id + 云专属主机id。 :param host_id: The host_id of this AppServer. :type host_id: str @@ -861,7 +861,7 @@ def host_id(self, host_id): def server_group_name(self): """Gets the server_group_name of this AppServer. - 服务器组名称 + 服务器组名称。 :return: The server_group_name of this AppServer. :rtype: str @@ -872,7 +872,7 @@ def server_group_name(self): def server_group_name(self, server_group_name): """Sets the server_group_name of this AppServer. - 服务器组名称 + 服务器组名称。 :param server_group_name: The server_group_name of this AppServer. :type server_group_name: str @@ -923,7 +923,7 @@ def metadata(self, metadata): def session_count(self): """Gets the session_count of this AppServer. - 会话数量 + 会话数量。 :return: The session_count of this AppServer. :rtype: int @@ -934,7 +934,7 @@ def session_count(self): def session_count(self, session_count): """Sets the session_count of this AppServer. - 会话数量 + 会话数量。 :param session_count: The session_count of this AppServer. :type session_count: int @@ -981,7 +981,7 @@ def task_status(self, task_status): def freeze(self): """Gets the freeze of this AppServer. - 冻结信息 + 冻结信息。 :return: The freeze of this AppServer. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.CbcFreezeInfo`] @@ -992,7 +992,7 @@ def freeze(self): def freeze(self, freeze): """Sets the freeze of this AppServer. - 冻结信息 + 冻结信息。 :param freeze: The freeze of this AppServer. :type freeze: list[:class:`huaweicloudsdkworkspaceapp.v1.CbcFreezeInfo`] @@ -1003,7 +1003,7 @@ def freeze(self, freeze): def host_address(self): """Gets the host_address of this AppServer. - vpc和子网信息 + vpc和子网信息。 :return: The host_address of this AppServer. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.EcsNetWork`] @@ -1014,7 +1014,7 @@ def host_address(self): def host_address(self, host_address): """Sets the host_address of this AppServer. - vpc和子网信息 + vpc和子网信息。 :param host_address: The host_address of this AppServer. :type host_address: list[:class:`huaweicloudsdkworkspaceapp.v1.EcsNetWork`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_session.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_session.py index 4aee6176db..222bf95b7c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_session.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_session.py @@ -81,57 +81,57 @@ def __init__(self, id=None, session_stamp=None, os_session_id=None, protocol_typ The model defined in huaweicloud sdk - :param id: 主键ID + :param id: 主键ID。 :type id: str - :param session_stamp: 会话标识 + :param session_stamp: 会话标识。 :type session_stamp: str - :param os_session_id: 会话在hda的os中会话id + :param os_session_id: 会话在hda的os中会话id。 :type os_session_id: str - :param protocol_type: 协议类型 + :param protocol_type: 协议类型。 :type protocol_type: str - :param login_user: 当前会话的登录用户 + :param login_user: 当前会话的登录用户。 :type login_user: str - :param session_type: 会话类型,1表示共享桌面,2表示应用 + :param session_type: 会话类型,1表示共享桌面,2表示应用。 :type session_type: str - :param app_group_id: App组ID + :param app_group_id: App组ID。 :type app_group_id: str - :param app_server_group_id: AppServer组ID + :param app_server_group_id: AppServer组ID。 :type app_server_group_id: str - :param pre_conn_time: 预连接时间 + :param pre_conn_time: 预连接时间。 :type pre_conn_time: str - :param start_time: 会话开始时间 + :param start_time: 会话开始时间。 :type start_time: str - :param end_time: 会话结束时间 + :param end_time: 会话结束时间。 :type end_time: str - :param status_continue_time: 状态持续时间 + :param status_continue_time: 状态持续时间。 :type status_continue_time: str - :param machine_sid: 服务器SID + :param machine_sid: 服务器SID。。 :type machine_sid: str - :param machine_name: 服务器名称 + :param machine_name: 服务器名称。 :type machine_name: str - :param session_state: 会话状态 + :param session_state: 会话状态。 :type session_state: str - :param app_name: 会话中的应用名称 + :param app_name: 会话中的应用名称。 :type app_name: str - :param client_mac: 客户端Mac地址 + :param client_mac: 客户端Mac地址。 :type client_mac: str - :param client_name: 客户端名称 + :param client_name: 客户端名称。 :type client_name: str - :param client_ip: 客户端IP + :param client_ip: 客户端IP。 :type client_ip: str - :param client_version: 客户端版本 + :param client_version: 客户端版本。 :type client_version: str - :param client_type: 客户端类型 + :param client_type: 客户端类型。 :type client_type: str - :param agent_version: agent版本 + :param agent_version: agent版本。 :type agent_version: str - :param vm_ip: 服务器IP + :param vm_ip: 服务器IP。 :type vm_ip: str - :param failed_reason: 错误原因消息 + :param failed_reason: 错误原因消息。 :type failed_reason: str - :param failed_code: 错误原因码 + :param failed_code: 错误原因码。 :type failed_code: str - :param last_update_status_time: 状态最后变化时间 + :param last_update_status_time: 状态最后变化时间。 :type last_update_status_time: str :param tenant_id: 租户ID :type tenant_id: str @@ -227,7 +227,7 @@ def __init__(self, id=None, session_stamp=None, os_session_id=None, protocol_typ def id(self): """Gets the id of this AppSession. - 主键ID + 主键ID。 :return: The id of this AppSession. :rtype: str @@ -238,7 +238,7 @@ def id(self): def id(self, id): """Sets the id of this AppSession. - 主键ID + 主键ID。 :param id: The id of this AppSession. :type id: str @@ -249,7 +249,7 @@ def id(self, id): def session_stamp(self): """Gets the session_stamp of this AppSession. - 会话标识 + 会话标识。 :return: The session_stamp of this AppSession. :rtype: str @@ -260,7 +260,7 @@ def session_stamp(self): def session_stamp(self, session_stamp): """Sets the session_stamp of this AppSession. - 会话标识 + 会话标识。 :param session_stamp: The session_stamp of this AppSession. :type session_stamp: str @@ -271,7 +271,7 @@ def session_stamp(self, session_stamp): def os_session_id(self): """Gets the os_session_id of this AppSession. - 会话在hda的os中会话id + 会话在hda的os中会话id。 :return: The os_session_id of this AppSession. :rtype: str @@ -282,7 +282,7 @@ def os_session_id(self): def os_session_id(self, os_session_id): """Sets the os_session_id of this AppSession. - 会话在hda的os中会话id + 会话在hda的os中会话id。 :param os_session_id: The os_session_id of this AppSession. :type os_session_id: str @@ -293,7 +293,7 @@ def os_session_id(self, os_session_id): def protocol_type(self): """Gets the protocol_type of this AppSession. - 协议类型 + 协议类型。 :return: The protocol_type of this AppSession. :rtype: str @@ -304,7 +304,7 @@ def protocol_type(self): def protocol_type(self, protocol_type): """Sets the protocol_type of this AppSession. - 协议类型 + 协议类型。 :param protocol_type: The protocol_type of this AppSession. :type protocol_type: str @@ -315,7 +315,7 @@ def protocol_type(self, protocol_type): def login_user(self): """Gets the login_user of this AppSession. - 当前会话的登录用户 + 当前会话的登录用户。 :return: The login_user of this AppSession. :rtype: str @@ -326,7 +326,7 @@ def login_user(self): def login_user(self, login_user): """Sets the login_user of this AppSession. - 当前会话的登录用户 + 当前会话的登录用户。 :param login_user: The login_user of this AppSession. :type login_user: str @@ -337,7 +337,7 @@ def login_user(self, login_user): def session_type(self): """Gets the session_type of this AppSession. - 会话类型,1表示共享桌面,2表示应用 + 会话类型,1表示共享桌面,2表示应用。 :return: The session_type of this AppSession. :rtype: str @@ -348,7 +348,7 @@ def session_type(self): def session_type(self, session_type): """Sets the session_type of this AppSession. - 会话类型,1表示共享桌面,2表示应用 + 会话类型,1表示共享桌面,2表示应用。 :param session_type: The session_type of this AppSession. :type session_type: str @@ -359,7 +359,7 @@ def session_type(self, session_type): def app_group_id(self): """Gets the app_group_id of this AppSession. - App组ID + App组ID。 :return: The app_group_id of this AppSession. :rtype: str @@ -370,7 +370,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this AppSession. - App组ID + App组ID。 :param app_group_id: The app_group_id of this AppSession. :type app_group_id: str @@ -381,7 +381,7 @@ def app_group_id(self, app_group_id): def app_server_group_id(self): """Gets the app_server_group_id of this AppSession. - AppServer组ID + AppServer组ID。 :return: The app_server_group_id of this AppSession. :rtype: str @@ -392,7 +392,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this AppSession. - AppServer组ID + AppServer组ID。 :param app_server_group_id: The app_server_group_id of this AppSession. :type app_server_group_id: str @@ -403,7 +403,7 @@ def app_server_group_id(self, app_server_group_id): def pre_conn_time(self): """Gets the pre_conn_time of this AppSession. - 预连接时间 + 预连接时间。 :return: The pre_conn_time of this AppSession. :rtype: str @@ -414,7 +414,7 @@ def pre_conn_time(self): def pre_conn_time(self, pre_conn_time): """Sets the pre_conn_time of this AppSession. - 预连接时间 + 预连接时间。 :param pre_conn_time: The pre_conn_time of this AppSession. :type pre_conn_time: str @@ -425,7 +425,7 @@ def pre_conn_time(self, pre_conn_time): def start_time(self): """Gets the start_time of this AppSession. - 会话开始时间 + 会话开始时间。 :return: The start_time of this AppSession. :rtype: str @@ -436,7 +436,7 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this AppSession. - 会话开始时间 + 会话开始时间。 :param start_time: The start_time of this AppSession. :type start_time: str @@ -447,7 +447,7 @@ def start_time(self, start_time): def end_time(self): """Gets the end_time of this AppSession. - 会话结束时间 + 会话结束时间。 :return: The end_time of this AppSession. :rtype: str @@ -458,7 +458,7 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this AppSession. - 会话结束时间 + 会话结束时间。 :param end_time: The end_time of this AppSession. :type end_time: str @@ -469,7 +469,7 @@ def end_time(self, end_time): def status_continue_time(self): """Gets the status_continue_time of this AppSession. - 状态持续时间 + 状态持续时间。 :return: The status_continue_time of this AppSession. :rtype: str @@ -480,7 +480,7 @@ def status_continue_time(self): def status_continue_time(self, status_continue_time): """Sets the status_continue_time of this AppSession. - 状态持续时间 + 状态持续时间。 :param status_continue_time: The status_continue_time of this AppSession. :type status_continue_time: str @@ -491,7 +491,7 @@ def status_continue_time(self, status_continue_time): def machine_sid(self): """Gets the machine_sid of this AppSession. - 服务器SID + 服务器SID。。 :return: The machine_sid of this AppSession. :rtype: str @@ -502,7 +502,7 @@ def machine_sid(self): def machine_sid(self, machine_sid): """Sets the machine_sid of this AppSession. - 服务器SID + 服务器SID。。 :param machine_sid: The machine_sid of this AppSession. :type machine_sid: str @@ -513,7 +513,7 @@ def machine_sid(self, machine_sid): def machine_name(self): """Gets the machine_name of this AppSession. - 服务器名称 + 服务器名称。 :return: The machine_name of this AppSession. :rtype: str @@ -524,7 +524,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this AppSession. - 服务器名称 + 服务器名称。 :param machine_name: The machine_name of this AppSession. :type machine_name: str @@ -535,7 +535,7 @@ def machine_name(self, machine_name): def session_state(self): """Gets the session_state of this AppSession. - 会话状态 + 会话状态。 :return: The session_state of this AppSession. :rtype: str @@ -546,7 +546,7 @@ def session_state(self): def session_state(self, session_state): """Sets the session_state of this AppSession. - 会话状态 + 会话状态。 :param session_state: The session_state of this AppSession. :type session_state: str @@ -557,7 +557,7 @@ def session_state(self, session_state): def app_name(self): """Gets the app_name of this AppSession. - 会话中的应用名称 + 会话中的应用名称。 :return: The app_name of this AppSession. :rtype: str @@ -568,7 +568,7 @@ def app_name(self): def app_name(self, app_name): """Sets the app_name of this AppSession. - 会话中的应用名称 + 会话中的应用名称。 :param app_name: The app_name of this AppSession. :type app_name: str @@ -579,7 +579,7 @@ def app_name(self, app_name): def client_mac(self): """Gets the client_mac of this AppSession. - 客户端Mac地址 + 客户端Mac地址。 :return: The client_mac of this AppSession. :rtype: str @@ -590,7 +590,7 @@ def client_mac(self): def client_mac(self, client_mac): """Sets the client_mac of this AppSession. - 客户端Mac地址 + 客户端Mac地址。 :param client_mac: The client_mac of this AppSession. :type client_mac: str @@ -601,7 +601,7 @@ def client_mac(self, client_mac): def client_name(self): """Gets the client_name of this AppSession. - 客户端名称 + 客户端名称。 :return: The client_name of this AppSession. :rtype: str @@ -612,7 +612,7 @@ def client_name(self): def client_name(self, client_name): """Sets the client_name of this AppSession. - 客户端名称 + 客户端名称。 :param client_name: The client_name of this AppSession. :type client_name: str @@ -623,7 +623,7 @@ def client_name(self, client_name): def client_ip(self): """Gets the client_ip of this AppSession. - 客户端IP + 客户端IP。 :return: The client_ip of this AppSession. :rtype: str @@ -634,7 +634,7 @@ def client_ip(self): def client_ip(self, client_ip): """Sets the client_ip of this AppSession. - 客户端IP + 客户端IP。 :param client_ip: The client_ip of this AppSession. :type client_ip: str @@ -645,7 +645,7 @@ def client_ip(self, client_ip): def client_version(self): """Gets the client_version of this AppSession. - 客户端版本 + 客户端版本。 :return: The client_version of this AppSession. :rtype: str @@ -656,7 +656,7 @@ def client_version(self): def client_version(self, client_version): """Sets the client_version of this AppSession. - 客户端版本 + 客户端版本。 :param client_version: The client_version of this AppSession. :type client_version: str @@ -667,7 +667,7 @@ def client_version(self, client_version): def client_type(self): """Gets the client_type of this AppSession. - 客户端类型 + 客户端类型。 :return: The client_type of this AppSession. :rtype: str @@ -678,7 +678,7 @@ def client_type(self): def client_type(self, client_type): """Sets the client_type of this AppSession. - 客户端类型 + 客户端类型。 :param client_type: The client_type of this AppSession. :type client_type: str @@ -689,7 +689,7 @@ def client_type(self, client_type): def agent_version(self): """Gets the agent_version of this AppSession. - agent版本 + agent版本。 :return: The agent_version of this AppSession. :rtype: str @@ -700,7 +700,7 @@ def agent_version(self): def agent_version(self, agent_version): """Sets the agent_version of this AppSession. - agent版本 + agent版本。 :param agent_version: The agent_version of this AppSession. :type agent_version: str @@ -711,7 +711,7 @@ def agent_version(self, agent_version): def vm_ip(self): """Gets the vm_ip of this AppSession. - 服务器IP + 服务器IP。 :return: The vm_ip of this AppSession. :rtype: str @@ -722,7 +722,7 @@ def vm_ip(self): def vm_ip(self, vm_ip): """Sets the vm_ip of this AppSession. - 服务器IP + 服务器IP。 :param vm_ip: The vm_ip of this AppSession. :type vm_ip: str @@ -733,7 +733,7 @@ def vm_ip(self, vm_ip): def failed_reason(self): """Gets the failed_reason of this AppSession. - 错误原因消息 + 错误原因消息。 :return: The failed_reason of this AppSession. :rtype: str @@ -744,7 +744,7 @@ def failed_reason(self): def failed_reason(self, failed_reason): """Sets the failed_reason of this AppSession. - 错误原因消息 + 错误原因消息。 :param failed_reason: The failed_reason of this AppSession. :type failed_reason: str @@ -755,7 +755,7 @@ def failed_reason(self, failed_reason): def failed_code(self): """Gets the failed_code of this AppSession. - 错误原因码 + 错误原因码。 :return: The failed_code of this AppSession. :rtype: str @@ -766,7 +766,7 @@ def failed_code(self): def failed_code(self, failed_code): """Sets the failed_code of this AppSession. - 错误原因码 + 错误原因码。 :param failed_code: The failed_code of this AppSession. :type failed_code: str @@ -777,7 +777,7 @@ def failed_code(self, failed_code): def last_update_status_time(self): """Gets the last_update_status_time of this AppSession. - 状态最后变化时间 + 状态最后变化时间。 :return: The last_update_status_time of this AppSession. :rtype: str @@ -788,7 +788,7 @@ def last_update_status_time(self): def last_update_status_time(self, last_update_status_time): """Sets the last_update_status_time of this AppSession. - 状态最后变化时间 + 状态最后变化时间。 :param last_update_status_time: The last_update_status_time of this AppSession. :type last_update_status_time: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_share_folder_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_share_folder_req.py index 454e1eb364..b055760aad 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_share_folder_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_share_folder_req.py @@ -33,11 +33,11 @@ def __init__(self, storage_claim_id=None, add_items=None, del_items=None): The model defined in huaweicloud sdk - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param add_items: 增加的成员列表 + :param add_items: 增加的成员列表。 :type add_items: list[:class:`huaweicloudsdkworkspaceapp.v1.Assignment`] - :param del_items: 移除的成员列表 + :param del_items: 移除的成员列表。 :type del_items: list[:class:`huaweicloudsdkworkspaceapp.v1.Attachment`] """ @@ -58,7 +58,7 @@ def __init__(self, storage_claim_id=None, add_items=None, del_items=None): def storage_claim_id(self): """Gets the storage_claim_id of this AssignShareFolderReq. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this AssignShareFolderReq. :rtype: str @@ -69,7 +69,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this AssignShareFolderReq. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this AssignShareFolderReq. :type storage_claim_id: str @@ -80,7 +80,7 @@ def storage_claim_id(self, storage_claim_id): def add_items(self): """Gets the add_items of this AssignShareFolderReq. - 增加的成员列表 + 增加的成员列表。 :return: The add_items of this AssignShareFolderReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.Assignment`] @@ -91,7 +91,7 @@ def add_items(self): def add_items(self, add_items): """Sets the add_items of this AssignShareFolderReq. - 增加的成员列表 + 增加的成员列表。 :param add_items: The add_items of this AssignShareFolderReq. :type add_items: list[:class:`huaweicloudsdkworkspaceapp.v1.Assignment`] @@ -102,7 +102,7 @@ def add_items(self, add_items): def del_items(self): """Gets the del_items of this AssignShareFolderReq. - 移除的成员列表 + 移除的成员列表。 :return: The del_items of this AssignShareFolderReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.Attachment`] @@ -113,7 +113,7 @@ def del_items(self): def del_items(self, del_items): """Sets the del_items of this AssignShareFolderReq. - 移除的成员列表 + 移除的成员列表。 :param del_items: The del_items of this AssignShareFolderReq. :type del_items: list[:class:`huaweicloudsdkworkspaceapp.v1.Attachment`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_user_folder_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_user_folder_req.py index 114536823d..329698d4c2 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_user_folder_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assign_user_folder_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 存储分配目标 + :param items: 存储分配目标。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UserAssignment`] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this AssignUserFolderReq. - 存储分配目标 + 存储分配目标。 :return: The items of this AssignUserFolderReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.UserAssignment`] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this AssignUserFolderReq. - 存储分配目标 + 存储分配目标。 :param items: The items of this AssignUserFolderReq. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UserAssignment`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assignment.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assignment.py index 915f56ebd8..362f596c6f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assignment.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/assignment.py @@ -33,9 +33,9 @@ def __init__(self, policy_statement_id=None, attach=None, attach_type=None): The model defined in huaweicloud sdk - :param policy_statement_id: 策略ID + :param policy_statement_id: 策略ID。 :type policy_statement_id: str - :param attach: 目标 + :param attach: 目标。 :type attach: str :param attach_type: :type attach_type: :class:`huaweicloudsdkworkspaceapp.v1.AttachType` @@ -56,7 +56,7 @@ def __init__(self, policy_statement_id=None, attach=None, attach_type=None): def policy_statement_id(self): """Gets the policy_statement_id of this Assignment. - 策略ID + 策略ID。 :return: The policy_statement_id of this Assignment. :rtype: str @@ -67,7 +67,7 @@ def policy_statement_id(self): def policy_statement_id(self, policy_statement_id): """Sets the policy_statement_id of this Assignment. - 策略ID + 策略ID。 :param policy_statement_id: The policy_statement_id of this Assignment. :type policy_statement_id: str @@ -78,7 +78,7 @@ def policy_statement_id(self, policy_statement_id): def attach(self): """Gets the attach of this Assignment. - 目标 + 目标。 :return: The attach of this Assignment. :rtype: str @@ -89,7 +89,7 @@ def attach(self): def attach(self, attach): """Sets the attach of this Assignment. - 目标 + 目标。 :param attach: The attach of this Assignment. :type attach: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attachment.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attachment.py index c0c53e25db..314e7879b5 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attachment.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attachment.py @@ -31,7 +31,7 @@ def __init__(self, attach=None, attach_type=None): The model defined in huaweicloud sdk - :param attach: 目标 + :param attach: 目标。 :type attach: str :param attach_type: :type attach_type: :class:`huaweicloudsdkworkspaceapp.v1.AttachType` @@ -50,7 +50,7 @@ def __init__(self, attach=None, attach_type=None): def attach(self): """Gets the attach of this Attachment. - 目标 + 目标。 :return: The attach of this Attachment. :rtype: str @@ -61,7 +61,7 @@ def attach(self): def attach(self, attach): """Sets the attach of this Attachment. - 目标 + 目标。 :param attach: The attach of this Attachment. :type attach: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorization.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorization.py index 0e8014f2f3..4b64b41092 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorization.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorization.py @@ -51,19 +51,19 @@ def __init__(self, id=None, account_id=None, account=None, app_id=None, app_name The model defined in huaweicloud sdk - :param id: 授权ID + :param id: 授权ID。 :type id: str - :param account_id: 用户ID(或用户组ID) + :param account_id: 用户ID(或用户组ID)。 :type account_id: str - :param account: 用户名(或用户组名) + :param account: 用户名(或用户组名)。 :type account: str - :param app_id: 应用ID (按照组授权时,该字段为空) + :param app_id: 应用ID (按照组授权时,该字段为空)。 :type app_id: str - :param app_name: 应用名称 (按照组授权时,该字段为空) + :param app_name: 应用名称 (按照组授权时,该字段为空)。 :type app_name: str - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str - :param app_group_name: 应用组名称 + :param app_group_name: 应用组名称。 :type app_group_name: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` @@ -71,9 +71,9 @@ def __init__(self, id=None, account_id=None, account=None, app_id=None, app_name :type account_type: :class:`huaweicloudsdkworkspaceapp.v1.AccountTypeEnum` :param platform_type: :type platform_type: :class:`huaweicloudsdkworkspaceapp.v1.PlatformTypeEnum` - :param domain: 域名城 + :param domain: 域名城。 :type domain: str - :param create_at: 发布时间 + :param create_at: 发布时间。 :type create_at: datetime """ @@ -122,7 +122,7 @@ def __init__(self, id=None, account_id=None, account=None, app_id=None, app_name def id(self): """Gets the id of this Authorization. - 授权ID + 授权ID。 :return: The id of this Authorization. :rtype: str @@ -133,7 +133,7 @@ def id(self): def id(self, id): """Sets the id of this Authorization. - 授权ID + 授权ID。 :param id: The id of this Authorization. :type id: str @@ -144,7 +144,7 @@ def id(self, id): def account_id(self): """Gets the account_id of this Authorization. - 用户ID(或用户组ID) + 用户ID(或用户组ID)。 :return: The account_id of this Authorization. :rtype: str @@ -155,7 +155,7 @@ def account_id(self): def account_id(self, account_id): """Sets the account_id of this Authorization. - 用户ID(或用户组ID) + 用户ID(或用户组ID)。 :param account_id: The account_id of this Authorization. :type account_id: str @@ -166,7 +166,7 @@ def account_id(self, account_id): def account(self): """Gets the account of this Authorization. - 用户名(或用户组名) + 用户名(或用户组名)。 :return: The account of this Authorization. :rtype: str @@ -177,7 +177,7 @@ def account(self): def account(self, account): """Sets the account of this Authorization. - 用户名(或用户组名) + 用户名(或用户组名)。 :param account: The account of this Authorization. :type account: str @@ -188,7 +188,7 @@ def account(self, account): def app_id(self): """Gets the app_id of this Authorization. - 应用ID (按照组授权时,该字段为空) + 应用ID (按照组授权时,该字段为空)。 :return: The app_id of this Authorization. :rtype: str @@ -199,7 +199,7 @@ def app_id(self): def app_id(self, app_id): """Sets the app_id of this Authorization. - 应用ID (按照组授权时,该字段为空) + 应用ID (按照组授权时,该字段为空)。 :param app_id: The app_id of this Authorization. :type app_id: str @@ -210,7 +210,7 @@ def app_id(self, app_id): def app_name(self): """Gets the app_name of this Authorization. - 应用名称 (按照组授权时,该字段为空) + 应用名称 (按照组授权时,该字段为空)。 :return: The app_name of this Authorization. :rtype: str @@ -221,7 +221,7 @@ def app_name(self): def app_name(self, app_name): """Sets the app_name of this Authorization. - 应用名称 (按照组授权时,该字段为空) + 应用名称 (按照组授权时,该字段为空)。 :param app_name: The app_name of this Authorization. :type app_name: str @@ -232,7 +232,7 @@ def app_name(self, app_name): def app_group_id(self): """Gets the app_group_id of this Authorization. - 应用组ID + 应用组ID。 :return: The app_group_id of this Authorization. :rtype: str @@ -243,7 +243,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this Authorization. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this Authorization. :type app_group_id: str @@ -254,7 +254,7 @@ def app_group_id(self, app_group_id): def app_group_name(self): """Gets the app_group_name of this Authorization. - 应用组名称 + 应用组名称。 :return: The app_group_name of this Authorization. :rtype: str @@ -265,7 +265,7 @@ def app_group_name(self): def app_group_name(self, app_group_name): """Sets the app_group_name of this Authorization. - 应用组名称 + 应用组名称。 :param app_group_name: The app_group_name of this Authorization. :type app_group_name: str @@ -330,7 +330,7 @@ def platform_type(self, platform_type): def domain(self): """Gets the domain of this Authorization. - 域名城 + 域名城。 :return: The domain of this Authorization. :rtype: str @@ -341,7 +341,7 @@ def domain(self): def domain(self, domain): """Sets the domain of this Authorization. - 域名城 + 域名城。 :param domain: The domain of this Authorization. :type domain: str @@ -352,7 +352,7 @@ def domain(self, domain): def create_at(self): """Gets the create_at of this Authorization. - 发布时间 + 发布时间。 :return: The create_at of this Authorization. :rtype: datetime @@ -363,7 +363,7 @@ def create_at(self): def create_at(self, create_at): """Sets the create_at of this Authorization. - 发布时间 + 发布时间。 :param create_at: The create_at of this Authorization. :type create_at: datetime diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/auto_logout_options.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/auto_logout_options.py index 92343d55ee..5867a82412 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/auto_logout_options.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/auto_logout_options.py @@ -29,7 +29,7 @@ def __init__(self, sbc_logout_waiting_time=None): The model defined in huaweicloud sdk - :param sbc_logout_waiting_time: 会话断连保留时长(分钟) + :param sbc_logout_waiting_time: 会话断连保留时长(分钟)。 :type sbc_logout_waiting_time: int """ @@ -45,7 +45,7 @@ def __init__(self, sbc_logout_waiting_time=None): def sbc_logout_waiting_time(self): """Gets the sbc_logout_waiting_time of this AutoLogoutOptions. - 会话断连保留时长(分钟) + 会话断连保留时长(分钟)。 :return: The sbc_logout_waiting_time of this AutoLogoutOptions. :rtype: int @@ -56,7 +56,7 @@ def sbc_logout_waiting_time(self): def sbc_logout_waiting_time(self, sbc_logout_waiting_time): """Sets the sbc_logout_waiting_time of this AutoLogoutOptions. - 会话断连保留时长(分钟) + 会话断连保留时长(分钟)。 :param sbc_logout_waiting_time: The sbc_logout_waiting_time of this AutoLogoutOptions. :type sbc_logout_waiting_time: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/bandwidth.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/bandwidth.py index e12e5b577b..20583a39dd 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/bandwidth.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/bandwidth.py @@ -81,7 +81,7 @@ def __init__(self, intelligent_data_transport_flag=None, total_bandwidth_control The model defined in huaweicloud sdk - :param intelligent_data_transport_flag: 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式 + :param intelligent_data_transport_flag: 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式。 :type intelligent_data_transport_flag: str :param total_bandwidth_control_enable: 是否开启总带宽控制。取值为:false:表示关闭。true:表示开启。 :type total_bandwidth_control_enable: bool @@ -227,7 +227,7 @@ def __init__(self, intelligent_data_transport_flag=None, total_bandwidth_control def intelligent_data_transport_flag(self): """Gets the intelligent_data_transport_flag of this Bandwidth. - 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式 + 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式。 :return: The intelligent_data_transport_flag of this Bandwidth. :rtype: str @@ -238,7 +238,7 @@ def intelligent_data_transport_flag(self): def intelligent_data_transport_flag(self, intelligent_data_transport_flag): """Sets the intelligent_data_transport_flag of this Bandwidth. - 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式 + 智能显示传输。取值为:DISABLE:表示关闭。ENABLE:表示开启。DIAGNOSTIC:诊断模式。 :param intelligent_data_transport_flag: The intelligent_data_transport_flag of this Bandwidth. :type intelligent_data_transport_flag: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_app_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_app_group.py index 90fd9681e2..910080ca87 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_app_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_app_group.py @@ -45,23 +45,23 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou The model defined in huaweicloud sdk - :param id: 应用组ID + :param id: 应用组ID。 :type id: str - :param name: 应用组名称 + :param name: 应用组名称。 :type name: str - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param app_server_group_name: 应用服务器组名称 + :param app_server_group_name: 应用服务器组名称。 :type app_server_group_name: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` - :param tenant_id: 租户ID + :param tenant_id: 租户ID。 :type tenant_id: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` - :param create_at: 发布时间 + :param create_at: 发布时间。 :type create_at: datetime """ @@ -101,7 +101,7 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou def id(self): """Gets the id of this BaseAppGroup. - 应用组ID + 应用组ID。 :return: The id of this BaseAppGroup. :rtype: str @@ -112,7 +112,7 @@ def id(self): def id(self, id): """Sets the id of this BaseAppGroup. - 应用组ID + 应用组ID。 :param id: The id of this BaseAppGroup. :type id: str @@ -123,7 +123,7 @@ def id(self, id): def name(self): """Gets the name of this BaseAppGroup. - 应用组名称 + 应用组名称。 :return: The name of this BaseAppGroup. :rtype: str @@ -134,7 +134,7 @@ def name(self): def name(self, name): """Sets the name of this BaseAppGroup. - 应用组名称 + 应用组名称。 :param name: The name of this BaseAppGroup. :type name: str @@ -145,7 +145,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this BaseAppGroup. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this BaseAppGroup. :rtype: str @@ -156,7 +156,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this BaseAppGroup. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this BaseAppGroup. :type app_server_group_id: str @@ -167,7 +167,7 @@ def app_server_group_id(self, app_server_group_id): def app_server_group_name(self): """Gets the app_server_group_name of this BaseAppGroup. - 应用服务器组名称 + 应用服务器组名称。 :return: The app_server_group_name of this BaseAppGroup. :rtype: str @@ -178,7 +178,7 @@ def app_server_group_name(self): def app_server_group_name(self, app_server_group_name): """Sets the app_server_group_name of this BaseAppGroup. - 应用服务器组名称 + 应用服务器组名称。 :param app_server_group_name: The app_server_group_name of this BaseAppGroup. :type app_server_group_name: str @@ -189,7 +189,7 @@ def app_server_group_name(self, app_server_group_name): def description(self): """Gets the description of this BaseAppGroup. - 应用组描述 + 应用组描述。 :return: The description of this BaseAppGroup. :rtype: str @@ -200,7 +200,7 @@ def description(self): def description(self, description): """Sets the description of this BaseAppGroup. - 应用组描述 + 应用组描述。 :param description: The description of this BaseAppGroup. :type description: str @@ -229,7 +229,7 @@ def authorization_type(self, authorization_type): def tenant_id(self): """Gets the tenant_id of this BaseAppGroup. - 租户ID + 租户ID。 :return: The tenant_id of this BaseAppGroup. :rtype: str @@ -240,7 +240,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this BaseAppGroup. - 租户ID + 租户ID。 :param tenant_id: The tenant_id of this BaseAppGroup. :type tenant_id: str @@ -269,7 +269,7 @@ def app_type(self, app_type): def create_at(self): """Gets the create_at of this BaseAppGroup. - 发布时间 + 发布时间。 :return: The create_at of this BaseAppGroup. :rtype: datetime @@ -280,7 +280,7 @@ def create_at(self): def create_at(self, create_at): """Sets the create_at of this BaseAppGroup. - 发布时间 + 发布时间。 :param create_at: The create_at of this BaseAppGroup. :type create_at: datetime diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server.py index 8f2a19f09d..c8f9ea36a8 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server.py @@ -81,59 +81,59 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv The model defined in huaweicloud sdk - :param id: aps实例的唯一标识 + :param id: aps实例的唯一标识。 :type id: str - :param name: 服务器名称 + :param name: 服务器名称。 :type name: str - :param machine_name: 计算机名称 + :param machine_name: 计算机名称。 :type machine_name: str - :param description: 描述 + :param description: 描述。 :type description: str - :param server_group_id: 服务器组ID + :param server_group_id: 服务器组ID。 :type server_group_id: str :param flavor: :type flavor: :class:`huaweicloudsdkworkspaceapp.v1.Flavor` :param status: :type status: :class:`huaweicloudsdkworkspaceapp.v1.ServerStatus` - :param create_time: 服务器创建时间 + :param create_time: 服务器创建时间。 :type create_time: datetime - :param update_time: 更新时间 + :param update_time: 更新时间。 :type update_time: datetime - :param image_id: 镜像ID + :param image_id: 镜像ID。 :type image_id: str - :param availability_zone: 服务器可用分区 + :param availability_zone: 服务器可用分区。 :type availability_zone: str - :param domain: 域 + :param domain: 域。 :type domain: str - :param ou_name: 组织名称 + :param ou_name: 组织名称。 :type ou_name: str - :param sid: 实例的SID + :param sid: 实例的SID。 :type sid: str - :param instance_id: 实例的ID + :param instance_id: 实例的ID。 :type instance_id: str - :param os_version: 服务器系统版本 + :param os_version: 服务器系统版本。 :type os_version: str - :param os_type: 操作系统类型,当前仅支持Windows - Linux - Windows - Other + :param os_type: 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :type os_type: str - :param order_id: 包周期产品的订单ID + :param order_id: 包周期产品的订单ID。 :type order_id: str - :param maintain_status: 是否维护状态 + :param maintain_status: 是否维护状态。 :type maintain_status: bool - :param scaling_auto_create: 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + :param scaling_auto_create: 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :type scaling_auto_create: bool - :param job_id: 上一次执行job的id + :param job_id: 上一次执行job的id。 :type job_id: str :param job_type: :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.JobType` :param job_status: :type job_status: :class:`huaweicloudsdkworkspaceapp.v1.JobStatus` - :param job_time: 上一次执行job的执行时间 + :param job_time: 上一次执行job的执行时间。 :type job_time: datetime - :param resource_pool_id: 资源池ID + :param resource_pool_id: 资源池ID。 :type resource_pool_id: str - :param resource_pool_type: 资源池类型 - private:私有资源池 - public: 工作资源池 + :param resource_pool_type: 资源池类型: - private:私有资源池。 - public: 工作资源池。 :type resource_pool_type: str - :param host_id: 云专属主机id + :param host_id: 云专属主机id。 :type host_id: str """ @@ -227,7 +227,7 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv def id(self): """Gets the id of this BaseServer. - aps实例的唯一标识 + aps实例的唯一标识。 :return: The id of this BaseServer. :rtype: str @@ -238,7 +238,7 @@ def id(self): def id(self, id): """Sets the id of this BaseServer. - aps实例的唯一标识 + aps实例的唯一标识。 :param id: The id of this BaseServer. :type id: str @@ -249,7 +249,7 @@ def id(self, id): def name(self): """Gets the name of this BaseServer. - 服务器名称 + 服务器名称。 :return: The name of this BaseServer. :rtype: str @@ -260,7 +260,7 @@ def name(self): def name(self, name): """Sets the name of this BaseServer. - 服务器名称 + 服务器名称。 :param name: The name of this BaseServer. :type name: str @@ -271,7 +271,7 @@ def name(self, name): def machine_name(self): """Gets the machine_name of this BaseServer. - 计算机名称 + 计算机名称。 :return: The machine_name of this BaseServer. :rtype: str @@ -282,7 +282,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this BaseServer. - 计算机名称 + 计算机名称。 :param machine_name: The machine_name of this BaseServer. :type machine_name: str @@ -293,7 +293,7 @@ def machine_name(self, machine_name): def description(self): """Gets the description of this BaseServer. - 描述 + 描述。 :return: The description of this BaseServer. :rtype: str @@ -304,7 +304,7 @@ def description(self): def description(self, description): """Sets the description of this BaseServer. - 描述 + 描述。 :param description: The description of this BaseServer. :type description: str @@ -315,7 +315,7 @@ def description(self, description): def server_group_id(self): """Gets the server_group_id of this BaseServer. - 服务器组ID + 服务器组ID。 :return: The server_group_id of this BaseServer. :rtype: str @@ -326,7 +326,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this BaseServer. - 服务器组ID + 服务器组ID。 :param server_group_id: The server_group_id of this BaseServer. :type server_group_id: str @@ -373,7 +373,7 @@ def status(self, status): def create_time(self): """Gets the create_time of this BaseServer. - 服务器创建时间 + 服务器创建时间。 :return: The create_time of this BaseServer. :rtype: datetime @@ -384,7 +384,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this BaseServer. - 服务器创建时间 + 服务器创建时间。 :param create_time: The create_time of this BaseServer. :type create_time: datetime @@ -395,7 +395,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this BaseServer. - 更新时间 + 更新时间。 :return: The update_time of this BaseServer. :rtype: datetime @@ -406,7 +406,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this BaseServer. - 更新时间 + 更新时间。 :param update_time: The update_time of this BaseServer. :type update_time: datetime @@ -417,7 +417,7 @@ def update_time(self, update_time): def image_id(self): """Gets the image_id of this BaseServer. - 镜像ID + 镜像ID。 :return: The image_id of this BaseServer. :rtype: str @@ -428,7 +428,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this BaseServer. - 镜像ID + 镜像ID。 :param image_id: The image_id of this BaseServer. :type image_id: str @@ -439,7 +439,7 @@ def image_id(self, image_id): def availability_zone(self): """Gets the availability_zone of this BaseServer. - 服务器可用分区 + 服务器可用分区。 :return: The availability_zone of this BaseServer. :rtype: str @@ -450,7 +450,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this BaseServer. - 服务器可用分区 + 服务器可用分区。 :param availability_zone: The availability_zone of this BaseServer. :type availability_zone: str @@ -461,7 +461,7 @@ def availability_zone(self, availability_zone): def domain(self): """Gets the domain of this BaseServer. - 域 + 域。 :return: The domain of this BaseServer. :rtype: str @@ -472,7 +472,7 @@ def domain(self): def domain(self, domain): """Sets the domain of this BaseServer. - 域 + 域。 :param domain: The domain of this BaseServer. :type domain: str @@ -483,7 +483,7 @@ def domain(self, domain): def ou_name(self): """Gets the ou_name of this BaseServer. - 组织名称 + 组织名称。 :return: The ou_name of this BaseServer. :rtype: str @@ -494,7 +494,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this BaseServer. - 组织名称 + 组织名称。 :param ou_name: The ou_name of this BaseServer. :type ou_name: str @@ -505,7 +505,7 @@ def ou_name(self, ou_name): def sid(self): """Gets the sid of this BaseServer. - 实例的SID + 实例的SID。 :return: The sid of this BaseServer. :rtype: str @@ -516,7 +516,7 @@ def sid(self): def sid(self, sid): """Sets the sid of this BaseServer. - 实例的SID + 实例的SID。 :param sid: The sid of this BaseServer. :type sid: str @@ -527,7 +527,7 @@ def sid(self, sid): def instance_id(self): """Gets the instance_id of this BaseServer. - 实例的ID + 实例的ID。 :return: The instance_id of this BaseServer. :rtype: str @@ -538,7 +538,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this BaseServer. - 实例的ID + 实例的ID。 :param instance_id: The instance_id of this BaseServer. :type instance_id: str @@ -549,7 +549,7 @@ def instance_id(self, instance_id): def os_version(self): """Gets the os_version of this BaseServer. - 服务器系统版本 + 服务器系统版本。 :return: The os_version of this BaseServer. :rtype: str @@ -560,7 +560,7 @@ def os_version(self): def os_version(self, os_version): """Sets the os_version of this BaseServer. - 服务器系统版本 + 服务器系统版本。 :param os_version: The os_version of this BaseServer. :type os_version: str @@ -571,7 +571,7 @@ def os_version(self, os_version): def os_type(self): """Gets the os_type of this BaseServer. - 操作系统类型,当前仅支持Windows - Linux - Windows - Other + 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :return: The os_type of this BaseServer. :rtype: str @@ -582,7 +582,7 @@ def os_type(self): def os_type(self, os_type): """Sets the os_type of this BaseServer. - 操作系统类型,当前仅支持Windows - Linux - Windows - Other + 操作系统类型,当前仅支持Windows: - Linux - Windows - Other :param os_type: The os_type of this BaseServer. :type os_type: str @@ -593,7 +593,7 @@ def os_type(self, os_type): def order_id(self): """Gets the order_id of this BaseServer. - 包周期产品的订单ID + 包周期产品的订单ID。 :return: The order_id of this BaseServer. :rtype: str @@ -604,7 +604,7 @@ def order_id(self): def order_id(self, order_id): """Sets the order_id of this BaseServer. - 包周期产品的订单ID + 包周期产品的订单ID。 :param order_id: The order_id of this BaseServer. :type order_id: str @@ -615,7 +615,7 @@ def order_id(self, order_id): def maintain_status(self): """Gets the maintain_status of this BaseServer. - 是否维护状态 + 是否维护状态。 :return: The maintain_status of this BaseServer. :rtype: bool @@ -626,7 +626,7 @@ def maintain_status(self): def maintain_status(self, maintain_status): """Sets the maintain_status of this BaseServer. - 是否维护状态 + 是否维护状态。 :param maintain_status: The maintain_status of this BaseServer. :type maintain_status: bool @@ -637,7 +637,7 @@ def maintain_status(self, maintain_status): def scaling_auto_create(self): """Gets the scaling_auto_create of this BaseServer. - 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :return: The scaling_auto_create of this BaseServer. :rtype: bool @@ -648,7 +648,7 @@ def scaling_auto_create(self): def scaling_auto_create(self, scaling_auto_create): """Sets the scaling_auto_create of this BaseServer. - 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建 - false: 不是通过弹性伸缩创建 + 配置弹性伸缩策略时,服务自动创建的实例。 - true : 通过弹性伸缩创建。 - false: 不是通过弹性伸缩创建。 :param scaling_auto_create: The scaling_auto_create of this BaseServer. :type scaling_auto_create: bool @@ -659,7 +659,7 @@ def scaling_auto_create(self, scaling_auto_create): def job_id(self): """Gets the job_id of this BaseServer. - 上一次执行job的id + 上一次执行job的id。 :return: The job_id of this BaseServer. :rtype: str @@ -670,7 +670,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this BaseServer. - 上一次执行job的id + 上一次执行job的id。 :param job_id: The job_id of this BaseServer. :type job_id: str @@ -717,7 +717,7 @@ def job_status(self, job_status): def job_time(self): """Gets the job_time of this BaseServer. - 上一次执行job的执行时间 + 上一次执行job的执行时间。 :return: The job_time of this BaseServer. :rtype: datetime @@ -728,7 +728,7 @@ def job_time(self): def job_time(self, job_time): """Sets the job_time of this BaseServer. - 上一次执行job的执行时间 + 上一次执行job的执行时间。 :param job_time: The job_time of this BaseServer. :type job_time: datetime @@ -739,7 +739,7 @@ def job_time(self, job_time): def resource_pool_id(self): """Gets the resource_pool_id of this BaseServer. - 资源池ID + 资源池ID。 :return: The resource_pool_id of this BaseServer. :rtype: str @@ -750,7 +750,7 @@ def resource_pool_id(self): def resource_pool_id(self, resource_pool_id): """Sets the resource_pool_id of this BaseServer. - 资源池ID + 资源池ID。 :param resource_pool_id: The resource_pool_id of this BaseServer. :type resource_pool_id: str @@ -761,7 +761,7 @@ def resource_pool_id(self, resource_pool_id): def resource_pool_type(self): """Gets the resource_pool_type of this BaseServer. - 资源池类型 - private:私有资源池 - public: 工作资源池 + 资源池类型: - private:私有资源池。 - public: 工作资源池。 :return: The resource_pool_type of this BaseServer. :rtype: str @@ -772,7 +772,7 @@ def resource_pool_type(self): def resource_pool_type(self, resource_pool_type): """Sets the resource_pool_type of this BaseServer. - 资源池类型 - private:私有资源池 - public: 工作资源池 + 资源池类型: - private:私有资源池。 - public: 工作资源池。 :param resource_pool_type: The resource_pool_type of this BaseServer. :type resource_pool_type: str @@ -783,7 +783,7 @@ def resource_pool_type(self, resource_pool_type): def host_id(self): """Gets the host_id of this BaseServer. - 云专属主机id + 云专属主机id。 :return: The host_id of this BaseServer. :rtype: str @@ -794,7 +794,7 @@ def host_id(self): def host_id(self, host_id): """Sets the host_id of this BaseServer. - 云专属主机id + 云专属主机id。 :param host_id: The host_id of this BaseServer. :type host_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py index ceb12f2935..c1ebc0c525 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py @@ -59,29 +59,29 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= The model defined in huaweicloud sdk - :param id: 服务器组的唯一标识 + :param id: 服务器组的唯一标识。 :type id: str - :param name: 服务器组名称 + :param name: 服务器组名称。 :type name: str - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str - :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器 + :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :type image_id: str :param os_type: :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` - :param product_id: 产品id + :param product_id: 产品id。 :type product_id: str - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str :param system_disk_type: :type system_disk_type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param system_disk_size: 磁盘容量,单位GB + :param system_disk_size: 磁盘容量,单位GB。 :type system_disk_size: int - :param is_vdi: 是否为vdi单会话模式 + :param is_vdi: 是否为vdi单会话模式。 :type is_vdi: bool :param extra_session_type: :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` - :param extra_session_size: 付费会话个数 + :param extra_session_size: 付费会话个数。 :type extra_session_size: int :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` @@ -150,7 +150,7 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= def id(self): """Gets the id of this BaseServerGroup. - 服务器组的唯一标识 + 服务器组的唯一标识。 :return: The id of this BaseServerGroup. :rtype: str @@ -161,7 +161,7 @@ def id(self): def id(self, id): """Sets the id of this BaseServerGroup. - 服务器组的唯一标识 + 服务器组的唯一标识。 :param id: The id of this BaseServerGroup. :type id: str @@ -172,7 +172,7 @@ def id(self, id): def name(self): """Gets the name of this BaseServerGroup. - 服务器组名称 + 服务器组名称。 :return: The name of this BaseServerGroup. :rtype: str @@ -183,7 +183,7 @@ def name(self): def name(self, name): """Sets the name of this BaseServerGroup. - 服务器组名称 + 服务器组名称。 :param name: The name of this BaseServerGroup. :type name: str @@ -194,7 +194,7 @@ def name(self, name): def description(self): """Gets the description of this BaseServerGroup. - 服务器组描述 + 服务器组描述。 :return: The description of this BaseServerGroup. :rtype: str @@ -205,7 +205,7 @@ def description(self): def description(self, description): """Sets the description of this BaseServerGroup. - 服务器组描述 + 服务器组描述。 :param description: The description of this BaseServerGroup. :type description: str @@ -216,7 +216,7 @@ def description(self, description): def image_id(self): """Gets the image_id of this BaseServerGroup. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :return: The image_id of this BaseServerGroup. :rtype: str @@ -227,7 +227,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this BaseServerGroup. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :param image_id: The image_id of this BaseServerGroup. :type image_id: str @@ -256,7 +256,7 @@ def os_type(self, os_type): def product_id(self): """Gets the product_id of this BaseServerGroup. - 产品id + 产品id。 :return: The product_id of this BaseServerGroup. :rtype: str @@ -267,7 +267,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this BaseServerGroup. - 产品id + 产品id。 :param product_id: The product_id of this BaseServerGroup. :type product_id: str @@ -278,7 +278,7 @@ def product_id(self, product_id): def subnet_id(self): """Gets the subnet_id of this BaseServerGroup. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this BaseServerGroup. :rtype: str @@ -289,7 +289,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this BaseServerGroup. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this BaseServerGroup. :type subnet_id: str @@ -318,7 +318,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this BaseServerGroup. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :return: The system_disk_size of this BaseServerGroup. :rtype: int @@ -329,7 +329,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this BaseServerGroup. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :param system_disk_size: The system_disk_size of this BaseServerGroup. :type system_disk_size: int @@ -340,7 +340,7 @@ def system_disk_size(self, system_disk_size): def is_vdi(self): """Gets the is_vdi of this BaseServerGroup. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :return: The is_vdi of this BaseServerGroup. :rtype: bool @@ -351,7 +351,7 @@ def is_vdi(self): def is_vdi(self, is_vdi): """Sets the is_vdi of this BaseServerGroup. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :param is_vdi: The is_vdi of this BaseServerGroup. :type is_vdi: bool @@ -380,7 +380,7 @@ def extra_session_type(self, extra_session_type): def extra_session_size(self): """Gets the extra_session_size of this BaseServerGroup. - 付费会话个数 + 付费会话个数。 :return: The extra_session_size of this BaseServerGroup. :rtype: int @@ -391,7 +391,7 @@ def extra_session_size(self): def extra_session_size(self, extra_session_size): """Sets the extra_session_size of this BaseServerGroup. - 付费会话个数 + 付费会话个数。 :param extra_session_size: The extra_session_size of this BaseServerGroup. :type extra_session_size: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_app_group_authorization_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_app_group_authorization_request.py index 614f7f47b3..9c8df4e358 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_app_group_authorization_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_app_group_authorization_request.py @@ -31,7 +31,7 @@ def __init__(self, x_language=None, body=None): The model defined in huaweicloud sdk - :param x_language: 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + :param x_language: 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :type x_language: str :param body: Body of the BatchDeleteAppGroupAuthorizationRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.AppGroupAuthorizeReq` @@ -52,7 +52,7 @@ def __init__(self, x_language=None, body=None): def x_language(self): """Gets the x_language of this BatchDeleteAppGroupAuthorizationRequest. - 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :return: The x_language of this BatchDeleteAppGroupAuthorizationRequest. :rtype: str @@ -63,7 +63,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this BatchDeleteAppGroupAuthorizationRequest. - 语言 - zh-cn:中文 - en-us:英文 - fr-fr: 法文 + 语言: - zh-cn:中文 - en-us:英文 - fr-fr: 法文 :param x_language: The x_language of this BatchDeleteAppGroupAuthorizationRequest. :type x_language: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_server_response.py index a6da055069..eb7456b116 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_server_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_server_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this BatchDeleteServerResponse. - 任务ID + 任务ID。 :return: The job_id of this BatchDeleteServerResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this BatchDeleteServerResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this BatchDeleteServerResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_hosts_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_hosts_server_response.py index 767af04b8c..d67e3b1b9c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_hosts_server_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_hosts_server_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this BatchMigrateHostsServerResponse. - 任务ID + 任务ID。 :return: The job_id of this BatchMigrateHostsServerResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this BatchMigrateHostsServerResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this BatchMigrateHostsServerResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_server_req.py index adc29a566a..013c93ddf2 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_server_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_migrate_server_req.py @@ -31,9 +31,9 @@ def __init__(self, server_ids=None, host_id=None): The model defined in huaweicloud sdk - :param server_ids: 应用服务器id集合 + :param server_ids: 应用服务器id集合。 :type server_ids: list[str] - :param host_id: 目标云办公主机id + :param host_id: 目标云办公主机id。 :type host_id: str """ @@ -50,7 +50,7 @@ def __init__(self, server_ids=None, host_id=None): def server_ids(self): """Gets the server_ids of this BatchMigrateServerReq. - 应用服务器id集合 + 应用服务器id集合。 :return: The server_ids of this BatchMigrateServerReq. :rtype: list[str] @@ -61,7 +61,7 @@ def server_ids(self): def server_ids(self, server_ids): """Sets the server_ids of this BatchMigrateServerReq. - 应用服务器id集合 + 应用服务器id集合。 :param server_ids: The server_ids of this BatchMigrateServerReq. :type server_ids: list[str] @@ -72,7 +72,7 @@ def server_ids(self, server_ids): def host_id(self): """Gets the host_id of this BatchMigrateServerReq. - 目标云办公主机id + 目标云办公主机id。 :return: The host_id of this BatchMigrateServerReq. :rtype: str @@ -83,7 +83,7 @@ def host_id(self): def host_id(self, host_id): """Sets the host_id of this BatchMigrateServerReq. - 目标云办公主机id + 目标云办公主机id。 :param host_id: The host_id of this BatchMigrateServerReq. :type host_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py index 4228999858..f5605535e2 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20] + :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :type items: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this BatchRejoinDomainReq. - 批量唯一标识请求列表,一次请求数量区间 [1, 20] + 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :return: The items of this BatchRejoinDomainReq. :rtype: list[str] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this BatchRejoinDomainReq. - 批量唯一标识请求列表,一次请求数量区间 [1, 20] + 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :param items: The items of this BatchRejoinDomainReq. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_response.py index deaaa0843b..1616481c99 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this BatchRejoinDomainResponse. - 任务ID + 任务ID。 :return: The job_id of this BatchRejoinDomainResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this BatchRejoinDomainResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this BatchRejoinDomainResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_update_tsvi_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_update_tsvi_response.py index a3d11d8ee8..339e340b81 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_update_tsvi_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_update_tsvi_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this BatchUpdateTsviResponse. - 任务ID + 任务ID。 :return: The job_id of this BatchUpdateTsviResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this BatchUpdateTsviResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this BatchUpdateTsviResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/cbc_freeze_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/cbc_freeze_info.py index 1f3c259f30..16c0ce14cc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/cbc_freeze_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/cbc_freeze_info.py @@ -31,7 +31,7 @@ def __init__(self, effect=None, scene=None): The model defined in huaweicloud sdk - :param effect: 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 + :param effect: 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据。) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了。) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作。) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 :type effect: int :param scene: :type scene: :class:`huaweicloudsdkworkspaceapp.v1.CbcFreezeScene` @@ -52,7 +52,7 @@ def __init__(self, effect=None, scene=None): def effect(self): """Gets the effect of this CbcFreezeInfo. - 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 + 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据。) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了。) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作。) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 :return: The effect of this CbcFreezeInfo. :rtype: int @@ -63,7 +63,7 @@ def effect(self): def effect(self, effect): """Sets the effect of this CbcFreezeInfo. - 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 + 在冻结/解冻等操作下,云服务需要达到的主要效果: - 1:(实现/去除)冻结可释放。(资源冻结后,客户可以手动删除/释放云资源和云资源上数据。) - 2:(实现/去除)冻结不可释放。(资源冻结后,客户不能手动删除/释放云资源以及云资源上数据,相当于云服务被贴了封条,不能改变数据和资源。对应解冻后,就可以删除和修改客户数据了。) - 3:(实现/去除)冻结后不可续费。(资源冻结后,资源不能发起续费操作;解冻后,才可以发起续费操作。) - effect字段和上面status字段(1冻结、0解冻)配合使用,表示在发起冻结/解冻命令下,云服务达到的冻结效果。 - 为空时,默认为effect=1(云服务需要能兼容处理,默认当做effect=1)。 - 注:云服务是根据status和effect在真实限制云服务的操作/API等。不是使用下文的scene字段去做云服务操作/API的限制。下文的scene字段,主要用于Console页面的tips、API错误码等客户体验使用。 :param effect: The effect of this CbcFreezeInfo. :type effect: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_req.py index 864ea8acec..168119d861 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_req.py @@ -37,15 +37,15 @@ def __init__(self, image_id=None, image_type=None, os_type=None, image_product_i The model defined in huaweicloud sdk - :param image_id: 镜像id,要求与服务器原有镜像id不相同 + :param image_id: 镜像id,要求与服务器原有镜像id不相同。 :type image_id: str :param image_type: :type image_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageTypeEnum` :param os_type: :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` - :param image_product_id: 镜像的产品id,当镜像是市场镜像时候,该字段必传 + :param image_product_id: 镜像的产品id,当镜像是市场镜像时候,该字段必传。 :type image_product_id: str - :param update_access_agent: 是否自动升级hda版本 + :param update_access_agent: 是否自动升级hda版本。 :type update_access_agent: bool """ @@ -70,7 +70,7 @@ def __init__(self, image_id=None, image_type=None, os_type=None, image_product_i def image_id(self): """Gets the image_id of this ChangeServerImageReq. - 镜像id,要求与服务器原有镜像id不相同 + 镜像id,要求与服务器原有镜像id不相同。 :return: The image_id of this ChangeServerImageReq. :rtype: str @@ -81,7 +81,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this ChangeServerImageReq. - 镜像id,要求与服务器原有镜像id不相同 + 镜像id,要求与服务器原有镜像id不相同。 :param image_id: The image_id of this ChangeServerImageReq. :type image_id: str @@ -128,7 +128,7 @@ def os_type(self, os_type): def image_product_id(self): """Gets the image_product_id of this ChangeServerImageReq. - 镜像的产品id,当镜像是市场镜像时候,该字段必传 + 镜像的产品id,当镜像是市场镜像时候,该字段必传。 :return: The image_product_id of this ChangeServerImageReq. :rtype: str @@ -139,7 +139,7 @@ def image_product_id(self): def image_product_id(self, image_product_id): """Sets the image_product_id of this ChangeServerImageReq. - 镜像的产品id,当镜像是市场镜像时候,该字段必传 + 镜像的产品id,当镜像是市场镜像时候,该字段必传。 :param image_product_id: The image_product_id of this ChangeServerImageReq. :type image_product_id: str @@ -150,7 +150,7 @@ def image_product_id(self, image_product_id): def update_access_agent(self): """Gets the update_access_agent of this ChangeServerImageReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :return: The update_access_agent of this ChangeServerImageReq. :rtype: bool @@ -161,7 +161,7 @@ def update_access_agent(self): def update_access_agent(self, update_access_agent): """Sets the update_access_agent of this ChangeServerImageReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :param update_access_agent: The update_access_agent of this ChangeServerImageReq. :type update_access_agent: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_request.py index 76fcba0520..4f03fa76a2 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_request.py @@ -31,7 +31,7 @@ def __init__(self, server_id=None, body=None): The model defined in huaweicloud sdk - :param server_id: 服务器唯一标识 + :param server_id: 服务器唯一标识。 :type server_id: str :param body: Body of the ChangeServerImageRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.ChangeServerImageReq` @@ -51,7 +51,7 @@ def __init__(self, server_id=None, body=None): def server_id(self): """Gets the server_id of this ChangeServerImageRequest. - 服务器唯一标识 + 服务器唯一标识。 :return: The server_id of this ChangeServerImageRequest. :rtype: str @@ -62,7 +62,7 @@ def server_id(self): def server_id(self, server_id): """Sets the server_id of this ChangeServerImageRequest. - 服务器唯一标识 + 服务器唯一标识。 :param server_id: The server_id of this ChangeServerImageRequest. :type server_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_response.py index 5f62b8f2b9..5dd966593f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/change_server_image_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this ChangeServerImageResponse. - 任务ID + 任务ID。 :return: The job_id of this ChangeServerImageResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this ChangeServerImageResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this ChangeServerImageResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py index 384d101d9e..ca8de19b37 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py @@ -41,19 +41,19 @@ def __init__(self, product_id=None, subscription_num=None, disk_size=None, disk_ The model defined in huaweicloud sdk - :param product_id: 产品id + :param product_id: 产品id。 :type product_id: str - :param subscription_num: 订单需要创建总实例数、订购数量 + :param subscription_num: 订单需要创建总实例数、订购数量。 :type subscription_num: int - :param disk_size: 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768) + :param disk_size: 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768)。 :type disk_size: int - :param disk_num: 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块) + :param disk_num: 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块)。 :type disk_num: int - :param is_period: 是否包周期 + :param is_period: 是否包周期。 :type is_period: bool - :param deh_id: 主机id + :param deh_id: 主机id。 :type deh_id: str - :param cluster_id: 云专属分布式存储池id + :param cluster_id: 云专属分布式存储池id。 :type cluster_id: str """ @@ -83,7 +83,7 @@ def __init__(self, product_id=None, subscription_num=None, disk_size=None, disk_ def product_id(self): """Gets the product_id of this CheckQuotaRequest. - 产品id + 产品id。 :return: The product_id of this CheckQuotaRequest. :rtype: str @@ -94,7 +94,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this CheckQuotaRequest. - 产品id + 产品id。 :param product_id: The product_id of this CheckQuotaRequest. :type product_id: str @@ -105,7 +105,7 @@ def product_id(self, product_id): def subscription_num(self): """Gets the subscription_num of this CheckQuotaRequest. - 订单需要创建总实例数、订购数量 + 订单需要创建总实例数、订购数量。 :return: The subscription_num of this CheckQuotaRequest. :rtype: int @@ -116,7 +116,7 @@ def subscription_num(self): def subscription_num(self, subscription_num): """Sets the subscription_num of this CheckQuotaRequest. - 订单需要创建总实例数、订购数量 + 订单需要创建总实例数、订购数量。 :param subscription_num: The subscription_num of this CheckQuotaRequest. :type subscription_num: int @@ -127,7 +127,7 @@ def subscription_num(self, subscription_num): def disk_size(self): """Gets the disk_size of this CheckQuotaRequest. - 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768) + 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768)。 :return: The disk_size of this CheckQuotaRequest. :rtype: int @@ -138,7 +138,7 @@ def disk_size(self): def disk_size(self, disk_size): """Sets the disk_size of this CheckQuotaRequest. - 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768) + 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768)。 :param disk_size: The disk_size of this CheckQuotaRequest. :type disk_size: int @@ -149,7 +149,7 @@ def disk_size(self, disk_size): def disk_num(self): """Gets the disk_num of this CheckQuotaRequest. - 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块) + 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块)。 :return: The disk_num of this CheckQuotaRequest. :rtype: int @@ -160,7 +160,7 @@ def disk_num(self): def disk_num(self, disk_num): """Sets the disk_num of this CheckQuotaRequest. - 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块) + 单台实例所需的磁盘数量(最大系统盘1块、数据盘10块)。 :param disk_num: The disk_num of this CheckQuotaRequest. :type disk_num: int @@ -171,7 +171,7 @@ def disk_num(self, disk_num): def is_period(self): """Gets the is_period of this CheckQuotaRequest. - 是否包周期 + 是否包周期。 :return: The is_period of this CheckQuotaRequest. :rtype: bool @@ -182,7 +182,7 @@ def is_period(self): def is_period(self, is_period): """Sets the is_period of this CheckQuotaRequest. - 是否包周期 + 是否包周期。 :param is_period: The is_period of this CheckQuotaRequest. :type is_period: bool @@ -193,7 +193,7 @@ def is_period(self, is_period): def deh_id(self): """Gets the deh_id of this CheckQuotaRequest. - 主机id + 主机id。 :return: The deh_id of this CheckQuotaRequest. :rtype: str @@ -204,7 +204,7 @@ def deh_id(self): def deh_id(self, deh_id): """Sets the deh_id of this CheckQuotaRequest. - 主机id + 主机id。 :param deh_id: The deh_id of this CheckQuotaRequest. :type deh_id: str @@ -215,7 +215,7 @@ def deh_id(self, deh_id): def cluster_id(self): """Gets the cluster_id of this CheckQuotaRequest. - 云专属分布式存储池id + 云专属分布式存储池id。 :return: The cluster_id of this CheckQuotaRequest. :rtype: str @@ -226,7 +226,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this CheckQuotaRequest. - 云专属分布式存储池id + 云专属分布式存储池id。 :param cluster_id: The cluster_id of this CheckQuotaRequest. :type cluster_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_response.py index 32a628d019..11c631bc10 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_response.py @@ -32,9 +32,9 @@ def __init__(self, is_enough=None, quota_remainder=None): The model defined in huaweicloud sdk - :param is_enough: 配额是否足够true:足够 false:不足 + :param is_enough: 配额是否足够true:足够 false:不足。 :type is_enough: bool - :param quota_remainder: 配额剩余数量信息 + :param quota_remainder: 配额剩余数量信息。 :type quota_remainder: list[:class:`huaweicloudsdkworkspaceapp.v1.QuotaRemainderData`] """ @@ -53,7 +53,7 @@ def __init__(self, is_enough=None, quota_remainder=None): def is_enough(self): """Gets the is_enough of this CheckQuotaResponse. - 配额是否足够true:足够 false:不足 + 配额是否足够true:足够 false:不足。 :return: The is_enough of this CheckQuotaResponse. :rtype: bool @@ -64,7 +64,7 @@ def is_enough(self): def is_enough(self, is_enough): """Sets the is_enough of this CheckQuotaResponse. - 配额是否足够true:足够 false:不足 + 配额是否足够true:足够 false:不足。 :param is_enough: The is_enough of this CheckQuotaResponse. :type is_enough: bool @@ -75,7 +75,7 @@ def is_enough(self, is_enough): def quota_remainder(self): """Gets the quota_remainder of this CheckQuotaResponse. - 配额剩余数量信息 + 配额剩余数量信息。 :return: The quota_remainder of this CheckQuotaResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.QuotaRemainderData`] @@ -86,7 +86,7 @@ def quota_remainder(self): def quota_remainder(self, quota_remainder): """Sets the quota_remainder of this CheckQuotaResponse. - 配额剩余数量信息 + 配额剩余数量信息。 :param quota_remainder: The quota_remainder of this CheckQuotaResponse. :type quota_remainder: list[:class:`huaweicloudsdkworkspaceapp.v1.QuotaRemainderData`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_req.py index 6bef65a6e6..e7605fb4b1 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_req.py @@ -37,11 +37,11 @@ def __init__(self, name=None, app_server_group_id=None, description=None, author The model defined in huaweicloud sdk - :param name: 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + :param name: 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :type name: str - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` @@ -72,7 +72,7 @@ def __init__(self, name=None, app_server_group_id=None, description=None, author def name(self): """Gets the name of this CreateAppGroupReq. - 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :return: The name of this CreateAppGroupReq. :rtype: str @@ -83,7 +83,7 @@ def name(self): def name(self, name): """Sets the name of this CreateAppGroupReq. - 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :param name: The name of this CreateAppGroupReq. :type name: str @@ -94,7 +94,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this CreateAppGroupReq. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this CreateAppGroupReq. :rtype: str @@ -105,7 +105,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this CreateAppGroupReq. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this CreateAppGroupReq. :type app_server_group_id: str @@ -116,7 +116,7 @@ def app_server_group_id(self, app_server_group_id): def description(self): """Gets the description of this CreateAppGroupReq. - 应用组描述 + 应用组描述。 :return: The description of this CreateAppGroupReq. :rtype: str @@ -127,7 +127,7 @@ def description(self): def description(self, description): """Sets the description of this CreateAppGroupReq. - 应用组描述 + 应用组描述。 :param description: The description of this CreateAppGroupReq. :type description: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_response.py index 5d7fa87364..cd8185a487 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_group_response.py @@ -48,25 +48,25 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou The model defined in huaweicloud sdk - :param id: 应用组ID + :param id: 应用组ID。 :type id: str - :param name: 应用组名称 + :param name: 应用组名称。 :type name: str - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param app_server_group_name: 应用服务器组名称 + :param app_server_group_name: 应用服务器组名称。 :type app_server_group_name: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` - :param tenant_id: 租户ID + :param tenant_id: 租户ID。 :type tenant_id: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` - :param create_at: 发布时间 + :param create_at: 发布时间。 :type create_at: datetime - :param app_count: 应用数量 + :param app_count: 应用数量。 :type app_count: int """ @@ -109,7 +109,7 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou def id(self): """Gets the id of this CreateAppGroupResponse. - 应用组ID + 应用组ID。 :return: The id of this CreateAppGroupResponse. :rtype: str @@ -120,7 +120,7 @@ def id(self): def id(self, id): """Sets the id of this CreateAppGroupResponse. - 应用组ID + 应用组ID。 :param id: The id of this CreateAppGroupResponse. :type id: str @@ -131,7 +131,7 @@ def id(self, id): def name(self): """Gets the name of this CreateAppGroupResponse. - 应用组名称 + 应用组名称。 :return: The name of this CreateAppGroupResponse. :rtype: str @@ -142,7 +142,7 @@ def name(self): def name(self, name): """Sets the name of this CreateAppGroupResponse. - 应用组名称 + 应用组名称。 :param name: The name of this CreateAppGroupResponse. :type name: str @@ -153,7 +153,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this CreateAppGroupResponse. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this CreateAppGroupResponse. :rtype: str @@ -164,7 +164,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this CreateAppGroupResponse. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this CreateAppGroupResponse. :type app_server_group_id: str @@ -175,7 +175,7 @@ def app_server_group_id(self, app_server_group_id): def app_server_group_name(self): """Gets the app_server_group_name of this CreateAppGroupResponse. - 应用服务器组名称 + 应用服务器组名称。 :return: The app_server_group_name of this CreateAppGroupResponse. :rtype: str @@ -186,7 +186,7 @@ def app_server_group_name(self): def app_server_group_name(self, app_server_group_name): """Sets the app_server_group_name of this CreateAppGroupResponse. - 应用服务器组名称 + 应用服务器组名称。 :param app_server_group_name: The app_server_group_name of this CreateAppGroupResponse. :type app_server_group_name: str @@ -197,7 +197,7 @@ def app_server_group_name(self, app_server_group_name): def description(self): """Gets the description of this CreateAppGroupResponse. - 应用组描述 + 应用组描述。 :return: The description of this CreateAppGroupResponse. :rtype: str @@ -208,7 +208,7 @@ def description(self): def description(self, description): """Sets the description of this CreateAppGroupResponse. - 应用组描述 + 应用组描述。 :param description: The description of this CreateAppGroupResponse. :type description: str @@ -237,7 +237,7 @@ def authorization_type(self, authorization_type): def tenant_id(self): """Gets the tenant_id of this CreateAppGroupResponse. - 租户ID + 租户ID。 :return: The tenant_id of this CreateAppGroupResponse. :rtype: str @@ -248,7 +248,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this CreateAppGroupResponse. - 租户ID + 租户ID。 :param tenant_id: The tenant_id of this CreateAppGroupResponse. :type tenant_id: str @@ -277,7 +277,7 @@ def app_type(self, app_type): def create_at(self): """Gets the create_at of this CreateAppGroupResponse. - 发布时间 + 发布时间。 :return: The create_at of this CreateAppGroupResponse. :rtype: datetime @@ -288,7 +288,7 @@ def create_at(self): def create_at(self, create_at): """Sets the create_at of this CreateAppGroupResponse. - 发布时间 + 发布时间。 :param create_at: The create_at of this CreateAppGroupResponse. :type create_at: datetime @@ -299,7 +299,7 @@ def create_at(self, create_at): def app_count(self): """Gets the app_count of this CreateAppGroupResponse. - 应用数量 + 应用数量。 :return: The app_count of this CreateAppGroupResponse. :rtype: int @@ -310,7 +310,7 @@ def app_count(self): def app_count(self, app_count): """Sets the app_count of this CreateAppGroupResponse. - 应用数量 + 应用数量。 :param app_count: The app_count of this CreateAppGroupResponse. :type app_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py index e61ff6d68d..dac76dd0d9 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py @@ -55,13 +55,13 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs The model defined in huaweicloud sdk - :param type: 创建云服务类型,当前仅支持创建云应用:createApps + :param type: 创建云服务类型,当前仅支持创建云应用:createApps。 :type type: str - :param server_group_id: 服务器组唯一标识 + :param server_group_id: 服务器组唯一标识。 :type server_group_id: str :param availability_zone: 可用分区。 > - 将服务创建到指定的可用分区,如果不指定则使用系统随机的可用分区。 > - 获取方式详见可用区管理ListAvailabilityZone:\"GET /v1/{project_id}/availability-zone\"。 :type availability_zone: str - :param subscription_num: 订购数量 + :param subscription_num: 订购数量。 :type subscription_num: int :param nics: 服务对应的网卡信息,当前未使用该字段。 :type nics: list[:class:`huaweicloudsdkworkspaceapp.v1.Nic`] @@ -75,11 +75,11 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs :type root_volume: :class:`huaweicloudsdkworkspaceapp.v1.Volume` :param scheduler_hints: :type scheduler_hints: :class:`huaweicloudsdkworkspaceapp.v1.WdhParam` - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str :param vpc_id: 虚拟私有云ID。 :type vpc_id: str - :param update_access_agent: 是否自动升级hda版本 + :param update_access_agent: 是否自动升级hda版本。 :type update_access_agent: bool :param create_server_extend_param: :type create_server_extend_param: :class:`huaweicloudsdkworkspaceapp.v1.CreateServerExtendParam` @@ -129,7 +129,7 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs def type(self): """Gets the type of this CreateAppServerReq. - 创建云服务类型,当前仅支持创建云应用:createApps + 创建云服务类型,当前仅支持创建云应用:createApps。 :return: The type of this CreateAppServerReq. :rtype: str @@ -140,7 +140,7 @@ def type(self): def type(self, type): """Sets the type of this CreateAppServerReq. - 创建云服务类型,当前仅支持创建云应用:createApps + 创建云服务类型,当前仅支持创建云应用:createApps。 :param type: The type of this CreateAppServerReq. :type type: str @@ -151,7 +151,7 @@ def type(self, type): def server_group_id(self): """Gets the server_group_id of this CreateAppServerReq. - 服务器组唯一标识 + 服务器组唯一标识。 :return: The server_group_id of this CreateAppServerReq. :rtype: str @@ -162,7 +162,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this CreateAppServerReq. - 服务器组唯一标识 + 服务器组唯一标识。 :param server_group_id: The server_group_id of this CreateAppServerReq. :type server_group_id: str @@ -195,7 +195,7 @@ def availability_zone(self, availability_zone): def subscription_num(self): """Gets the subscription_num of this CreateAppServerReq. - 订购数量 + 订购数量。 :return: The subscription_num of this CreateAppServerReq. :rtype: int @@ -206,7 +206,7 @@ def subscription_num(self): def subscription_num(self, subscription_num): """Sets the subscription_num of this CreateAppServerReq. - 订购数量 + 订购数量。 :param subscription_num: The subscription_num of this CreateAppServerReq. :type subscription_num: int @@ -341,7 +341,7 @@ def scheduler_hints(self, scheduler_hints): def subnet_id(self): """Gets the subnet_id of this CreateAppServerReq. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this CreateAppServerReq. :rtype: str @@ -352,7 +352,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this CreateAppServerReq. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this CreateAppServerReq. :type subnet_id: str @@ -385,7 +385,7 @@ def vpc_id(self, vpc_id): def update_access_agent(self): """Gets the update_access_agent of this CreateAppServerReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :return: The update_access_agent of this CreateAppServerReq. :rtype: bool @@ -396,7 +396,7 @@ def update_access_agent(self): def update_access_agent(self, update_access_agent): """Sets the update_access_agent of this CreateAppServerReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :param update_access_agent: The update_access_agent of this CreateAppServerReq. :type update_access_agent: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_req.py index 68f7387088..4f4a19d7ef 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_req.py @@ -31,9 +31,9 @@ def __init__(self, actions=None, roam_actions=None): The model defined in huaweicloud sdk - :param actions: 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + :param actions: 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :type actions: list[str] - :param roam_actions: 云端访问存储可操作的权限合集,不允许为空 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + :param roam_actions: 云端访问存储可操作的权限合集,不允许为空。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载 。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :type roam_actions: list[str] """ @@ -51,7 +51,7 @@ def __init__(self, actions=None, roam_actions=None): def actions(self): """Gets the actions of this CreateOrUpdateStoragePolicyStatementReq. - 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :return: The actions of this CreateOrUpdateStoragePolicyStatementReq. :rtype: list[str] @@ -62,7 +62,7 @@ def actions(self): def actions(self, actions): """Sets the actions of this CreateOrUpdateStoragePolicyStatementReq. - 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + 客户端访问存储可操作的权限合集 允许为空,为空时配置了该策略的用户,通过云办公客户端接入后仅可查看文件列表,不可上传下载。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :param actions: The actions of this CreateOrUpdateStoragePolicyStatementReq. :type actions: list[str] @@ -73,7 +73,7 @@ def actions(self, actions): def roam_actions(self): """Gets the roam_actions of this CreateOrUpdateStoragePolicyStatementReq. - 云端访问存储可操作的权限合集,不允许为空 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + 云端访问存储可操作的权限合集,不允许为空。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载 。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :return: The roam_actions of this CreateOrUpdateStoragePolicyStatementReq. :rtype: list[str] @@ -84,7 +84,7 @@ def roam_actions(self): def roam_actions(self, roam_actions): """Sets the roam_actions of this CreateOrUpdateStoragePolicyStatementReq. - 云端访问存储可操作的权限合集,不允许为空 * `PutObject` - 上传、修改、重命名、移动 * `DeleteObject` - 删除 * `GetObject` - 下载 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个 + 云端访问存储可操作的权限合集,不允许为空。 * `PutObject` - 上传、修改、重命名、移动。 * `DeleteObject` - 删除。 * `GetObject` - 下载 。 注:PutObject和DeleteObject必须同时设置,不支持仅设置其中一个。 :param roam_actions: The roam_actions of this CreateOrUpdateStoragePolicyStatementReq. :type roam_actions: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_response.py index 2411644cd1..126828bb72 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_or_update_storage_policy_statement_response.py @@ -34,11 +34,11 @@ def __init__(self, policy_statement_id=None, actions=None, roam_actions=None): The model defined in huaweicloud sdk - :param policy_statement_id: 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + :param policy_statement_id: 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :type policy_statement_id: str - :param actions: 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + :param actions: 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :type actions: list[str] - :param roam_actions: 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + :param roam_actions: 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :type roam_actions: list[str] """ @@ -60,7 +60,7 @@ def __init__(self, policy_statement_id=None, actions=None, roam_actions=None): def policy_statement_id(self): """Gets the policy_statement_id of this CreateOrUpdateStoragePolicyStatementResponse. - 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :return: The policy_statement_id of this CreateOrUpdateStoragePolicyStatementResponse. :rtype: str @@ -71,7 +71,7 @@ def policy_statement_id(self): def policy_statement_id(self, policy_statement_id): """Sets the policy_statement_id of this CreateOrUpdateStoragePolicyStatementResponse. - 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :param policy_statement_id: The policy_statement_id of this CreateOrUpdateStoragePolicyStatementResponse. :type policy_statement_id: str @@ -82,7 +82,7 @@ def policy_statement_id(self, policy_statement_id): def actions(self): """Gets the actions of this CreateOrUpdateStoragePolicyStatementResponse. - 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :return: The actions of this CreateOrUpdateStoragePolicyStatementResponse. :rtype: list[str] @@ -93,7 +93,7 @@ def actions(self): def actions(self, actions): """Sets the actions of this CreateOrUpdateStoragePolicyStatementResponse. - 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :param actions: The actions of this CreateOrUpdateStoragePolicyStatementResponse. :type actions: list[str] @@ -104,7 +104,7 @@ def actions(self, actions): def roam_actions(self): """Gets the roam_actions of this CreateOrUpdateStoragePolicyStatementResponse. - 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :return: The roam_actions of this CreateOrUpdateStoragePolicyStatementResponse. :rtype: list[str] @@ -115,7 +115,7 @@ def roam_actions(self): def roam_actions(self, roam_actions): """Sets the roam_actions of this CreateOrUpdateStoragePolicyStatementResponse. - 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :param roam_actions: The roam_actions of this CreateOrUpdateStoragePolicyStatementResponse. :type roam_actions: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_req.py index fdeee89eac..387e5e0f5c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_req.py @@ -31,7 +31,7 @@ def __init__(self, name=None, storage_metadata=None): The model defined in huaweicloud sdk - :param name: WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~128个字符 + :param name: WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~128个字符。 :type name: str :param storage_metadata: :type storage_metadata: :class:`huaweicloudsdkworkspaceapp.v1.Storage` @@ -50,7 +50,7 @@ def __init__(self, name=None, storage_metadata=None): def name(self): """Gets the name of this CreatePersistentStorageReq. - WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~128个字符 + WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~128个字符。 :return: The name of this CreatePersistentStorageReq. :rtype: str @@ -61,7 +61,7 @@ def name(self): def name(self, name): """Sets the name of this CreatePersistentStorageReq. - WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~128个字符 + WKS存储名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~128个字符。 :param name: The name of this CreatePersistentStorageReq. :type name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_response.py index 2cca382615..1520bde02e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_persistent_storage_response.py @@ -40,17 +40,17 @@ def __init__(self, id=None, name=None, storage_metadata=None, create_time=None, The model defined in huaweicloud sdk - :param id: WKS存储ID + :param id: WKS存储ID。 :type id: str - :param name: 名称 + :param name: 名称。 :type name: str :param storage_metadata: :type storage_metadata: :class:`huaweicloudsdkworkspaceapp.v1.StorageMetadata` - :param create_time: 创建时间 + :param create_time: 创建时间。 :type create_time: datetime - :param user_claim_count: 个人目录声明数量 + :param user_claim_count: 个人目录声明数量。 :type user_claim_count: int - :param share_claim_count: 共享目录声明数量 + :param share_claim_count: 共享目录声明数量。 :type share_claim_count: int """ @@ -81,7 +81,7 @@ def __init__(self, id=None, name=None, storage_metadata=None, create_time=None, def id(self): """Gets the id of this CreatePersistentStorageResponse. - WKS存储ID + WKS存储ID。 :return: The id of this CreatePersistentStorageResponse. :rtype: str @@ -92,7 +92,7 @@ def id(self): def id(self, id): """Sets the id of this CreatePersistentStorageResponse. - WKS存储ID + WKS存储ID。 :param id: The id of this CreatePersistentStorageResponse. :type id: str @@ -103,7 +103,7 @@ def id(self, id): def name(self): """Gets the name of this CreatePersistentStorageResponse. - 名称 + 名称。 :return: The name of this CreatePersistentStorageResponse. :rtype: str @@ -114,7 +114,7 @@ def name(self): def name(self, name): """Sets the name of this CreatePersistentStorageResponse. - 名称 + 名称。 :param name: The name of this CreatePersistentStorageResponse. :type name: str @@ -143,7 +143,7 @@ def storage_metadata(self, storage_metadata): def create_time(self): """Gets the create_time of this CreatePersistentStorageResponse. - 创建时间 + 创建时间。 :return: The create_time of this CreatePersistentStorageResponse. :rtype: datetime @@ -154,7 +154,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this CreatePersistentStorageResponse. - 创建时间 + 创建时间。 :param create_time: The create_time of this CreatePersistentStorageResponse. :type create_time: datetime @@ -165,7 +165,7 @@ def create_time(self, create_time): def user_claim_count(self): """Gets the user_claim_count of this CreatePersistentStorageResponse. - 个人目录声明数量 + 个人目录声明数量。 :return: The user_claim_count of this CreatePersistentStorageResponse. :rtype: int @@ -176,7 +176,7 @@ def user_claim_count(self): def user_claim_count(self, user_claim_count): """Sets the user_claim_count of this CreatePersistentStorageResponse. - 个人目录声明数量 + 个人目录声明数量。 :param user_claim_count: The user_claim_count of this CreatePersistentStorageResponse. :type user_claim_count: int @@ -187,7 +187,7 @@ def user_claim_count(self, user_claim_count): def share_claim_count(self): """Gets the share_claim_count of this CreatePersistentStorageResponse. - 共享目录声明数量 + 共享目录声明数量。 :return: The share_claim_count of this CreatePersistentStorageResponse. :rtype: int @@ -198,7 +198,7 @@ def share_claim_count(self): def share_claim_count(self, share_claim_count): """Sets the share_claim_count of this CreatePersistentStorageResponse. - 共享目录声明数量 + 共享目录声明数量。 :param share_claim_count: The share_claim_count of this CreatePersistentStorageResponse. :type share_claim_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_extend_param.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_extend_param.py index 4fffae7dd0..6a65247a84 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_extend_param.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_extend_param.py @@ -39,13 +39,13 @@ def __init__(self, charging_mode=None, period_type=None, period_num=None, is_aut :param charging_mode: 计费模式,取值范围: - prePaid-预付费,即包年包月; - postPaid-后付费,即按需付费; :type charging_mode: str - :param period_type: 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值; + :param period_type: 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值。 :type period_type: int - :param period_num: 订购周期数,chargingMode为prePaid时生效且为必选值;periodNum为正整数。取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]; > - periodType=3(周期类型为年)时,取值为[1,3]; + :param period_num: 订购周期数,chargingMode为prePaid时生效且为必选值,periodNum为正整数,取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]。 > - periodType=3(周期类型为年)时,取值为[1,3]。 :type period_num: int - :param is_auto_renew: 是否是自动续订,默认不填为false >- false 不自动续订 >- true 自动续订 + :param is_auto_renew: 是否是自动续订,默认不填为false。 >- false 不自动续订。 >- true 自动续订。 :type is_auto_renew: bool - :param is_auto_pay: 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付) > - false:否(需要客户手动支付) + :param is_auto_pay: 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付)。 > - false:否(需要客户手动支付)。 :type is_auto_pay: bool """ @@ -95,7 +95,7 @@ def charging_mode(self, charging_mode): def period_type(self): """Gets the period_type of this CreateServerExtendParam. - 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值; + 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值。 :return: The period_type of this CreateServerExtendParam. :rtype: int @@ -106,7 +106,7 @@ def period_type(self): def period_type(self, period_type): """Sets the period_type of this CreateServerExtendParam. - 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值; + 周期类型 2:包月;3:包年* chargingMode为prePaid时生效且为必选值。 :param period_type: The period_type of this CreateServerExtendParam. :type period_type: int @@ -117,7 +117,7 @@ def period_type(self, period_type): def period_num(self): """Gets the period_num of this CreateServerExtendParam. - 订购周期数,chargingMode为prePaid时生效且为必选值;periodNum为正整数。取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]; > - periodType=3(周期类型为年)时,取值为[1,3]; + 订购周期数,chargingMode为prePaid时生效且为必选值,periodNum为正整数,取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]。 > - periodType=3(周期类型为年)时,取值为[1,3]。 :return: The period_num of this CreateServerExtendParam. :rtype: int @@ -128,7 +128,7 @@ def period_num(self): def period_num(self, period_num): """Sets the period_num of this CreateServerExtendParam. - 订购周期数,chargingMode为prePaid时生效且为必选值;periodNum为正整数。取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]; > - periodType=3(周期类型为年)时,取值为[1,3]; + 订购周期数,chargingMode为prePaid时生效且为必选值,periodNum为正整数,取值范围: > - periodType=2(周期类型为月)时,取值为[1,9]。 > - periodType=3(周期类型为年)时,取值为[1,3]。 :param period_num: The period_num of this CreateServerExtendParam. :type period_num: int @@ -139,7 +139,7 @@ def period_num(self, period_num): def is_auto_renew(self): """Gets the is_auto_renew of this CreateServerExtendParam. - 是否是自动续订,默认不填为false >- false 不自动续订 >- true 自动续订 + 是否是自动续订,默认不填为false。 >- false 不自动续订。 >- true 自动续订。 :return: The is_auto_renew of this CreateServerExtendParam. :rtype: bool @@ -150,7 +150,7 @@ def is_auto_renew(self): def is_auto_renew(self, is_auto_renew): """Sets the is_auto_renew of this CreateServerExtendParam. - 是否是自动续订,默认不填为false >- false 不自动续订 >- true 自动续订 + 是否是自动续订,默认不填为false。 >- false 不自动续订。 >- true 自动续订。 :param is_auto_renew: The is_auto_renew of this CreateServerExtendParam. :type is_auto_renew: bool @@ -161,7 +161,7 @@ def is_auto_renew(self, is_auto_renew): def is_auto_pay(self): """Gets the is_auto_pay of this CreateServerExtendParam. - 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付) > - false:否(需要客户手动支付) + 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付)。 > - false:否(需要客户手动支付)。 :return: The is_auto_pay of this CreateServerExtendParam. :rtype: bool @@ -172,7 +172,7 @@ def is_auto_pay(self): def is_auto_pay(self, is_auto_pay): """Sets the is_auto_pay of this CreateServerExtendParam. - 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付) > - false:否(需要客户手动支付) + 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。 > - true :是(自动支付)。 > - false:否(需要客户手动支付)。 :param is_auto_pay: The is_auto_pay of this CreateServerExtendParam. :type is_auto_pay: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py index 131d604cd0..e987ed2aa6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py @@ -67,9 +67,9 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N The model defined in huaweicloud sdk - :param name: 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + :param name: 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :type name: str - :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器 + :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :type image_id: str :param image_product_id: 服务器组的镜像产品ID,当镜像为云市场镜像时,该字段必填。 :type image_product_id: str @@ -77,35 +77,35 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N :type image_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageTypeEnum` :param os_type: :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str :param route_policy: :type route_policy: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` :param product_id: 产品ID。 > - 获取方式详见产品套餐管理ListProduct:\"GET /v1/{project_id}/product\"。 :type product_id: str - :param vpc_id: 虚拟私有云ID + :param vpc_id: 虚拟私有云ID。 :type vpc_id: str - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str :param system_disk_type: :type system_disk_type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param system_disk_size: 磁盘容量,单位GB + :param system_disk_size: 磁盘容量,单位GB。 :type system_disk_size: int - :param ou_name: 默认组织名称 + :param ou_name: 默认组织名称。 :type ou_name: str - :param cluster_id: 云服务器系统盘对应的存储池的ID + :param cluster_id: 云服务器系统盘对应的存储池的ID。 :type cluster_id: str :param availability_zone: 可用分区。 > - 将服务创建到指定的可用分区,如果不指定则使用系统随机的可用分区。 > - 获取方式详见可用区管理ListAvailabilityZone:\"GET /v1/{project_id}/availability-zone\"。 :type availability_zone: str :param ip_virtual: :type ip_virtual: :class:`huaweicloudsdkworkspaceapp.v1.IpVirtual` - :param is_vdi: 是否为vdi单会话模式 + :param is_vdi: 是否为vdi单会话模式。 :type is_vdi: bool :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` :param extra_session_type: :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` - :param extra_session_size: 付费会话数,单位/个 + :param extra_session_size: 付费会话数,单位/个。 :type extra_session_size: int """ @@ -169,7 +169,7 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N def name(self): """Gets the name of this CreateServerGroupReq. - 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :return: The name of this CreateServerGroupReq. :rtype: str @@ -180,7 +180,7 @@ def name(self): def name(self, name): """Sets the name of this CreateServerGroupReq. - 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :param name: The name of this CreateServerGroupReq. :type name: str @@ -191,7 +191,7 @@ def name(self, name): def image_id(self): """Gets the image_id of this CreateServerGroupReq. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :return: The image_id of this CreateServerGroupReq. :rtype: str @@ -202,7 +202,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this CreateServerGroupReq. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :param image_id: The image_id of this CreateServerGroupReq. :type image_id: str @@ -271,7 +271,7 @@ def os_type(self, os_type): def description(self): """Gets the description of this CreateServerGroupReq. - 服务器组描述 + 服务器组描述。 :return: The description of this CreateServerGroupReq. :rtype: str @@ -282,7 +282,7 @@ def description(self): def description(self, description): """Sets the description of this CreateServerGroupReq. - 服务器组描述 + 服务器组描述。 :param description: The description of this CreateServerGroupReq. :type description: str @@ -333,7 +333,7 @@ def product_id(self, product_id): def vpc_id(self): """Gets the vpc_id of this CreateServerGroupReq. - 虚拟私有云ID + 虚拟私有云ID。 :return: The vpc_id of this CreateServerGroupReq. :rtype: str @@ -344,7 +344,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreateServerGroupReq. - 虚拟私有云ID + 虚拟私有云ID。 :param vpc_id: The vpc_id of this CreateServerGroupReq. :type vpc_id: str @@ -355,7 +355,7 @@ def vpc_id(self, vpc_id): def subnet_id(self): """Gets the subnet_id of this CreateServerGroupReq. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this CreateServerGroupReq. :rtype: str @@ -366,7 +366,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this CreateServerGroupReq. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this CreateServerGroupReq. :type subnet_id: str @@ -395,7 +395,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this CreateServerGroupReq. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :return: The system_disk_size of this CreateServerGroupReq. :rtype: int @@ -406,7 +406,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this CreateServerGroupReq. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :param system_disk_size: The system_disk_size of this CreateServerGroupReq. :type system_disk_size: int @@ -417,7 +417,7 @@ def system_disk_size(self, system_disk_size): def ou_name(self): """Gets the ou_name of this CreateServerGroupReq. - 默认组织名称 + 默认组织名称。 :return: The ou_name of this CreateServerGroupReq. :rtype: str @@ -428,7 +428,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this CreateServerGroupReq. - 默认组织名称 + 默认组织名称。 :param ou_name: The ou_name of this CreateServerGroupReq. :type ou_name: str @@ -439,7 +439,7 @@ def ou_name(self, ou_name): def cluster_id(self): """Gets the cluster_id of this CreateServerGroupReq. - 云服务器系统盘对应的存储池的ID + 云服务器系统盘对应的存储池的ID。 :return: The cluster_id of this CreateServerGroupReq. :rtype: str @@ -450,7 +450,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this CreateServerGroupReq. - 云服务器系统盘对应的存储池的ID + 云服务器系统盘对应的存储池的ID。 :param cluster_id: The cluster_id of this CreateServerGroupReq. :type cluster_id: str @@ -501,7 +501,7 @@ def ip_virtual(self, ip_virtual): def is_vdi(self): """Gets the is_vdi of this CreateServerGroupReq. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :return: The is_vdi of this CreateServerGroupReq. :rtype: bool @@ -512,7 +512,7 @@ def is_vdi(self): def is_vdi(self, is_vdi): """Sets the is_vdi of this CreateServerGroupReq. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :param is_vdi: The is_vdi of this CreateServerGroupReq. :type is_vdi: bool @@ -559,7 +559,7 @@ def extra_session_type(self, extra_session_type): def extra_session_size(self): """Gets the extra_session_size of this CreateServerGroupReq. - 付费会话数,单位/个 + 付费会话数,单位/个。 :return: The extra_session_size of this CreateServerGroupReq. :rtype: int @@ -570,7 +570,7 @@ def extra_session_size(self): def extra_session_size(self, extra_session_size): """Sets the extra_session_size of this CreateServerGroupReq. - 付费会话数,单位/个 + 付费会话数,单位/个。 :param extra_session_size: The extra_session_size of this CreateServerGroupReq. :type extra_session_size: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py index 2e5c4a65f5..b8c4dc32cc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py @@ -76,29 +76,29 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= The model defined in huaweicloud sdk - :param id: 服务器组的唯一标识 + :param id: 服务器组的唯一标识。 :type id: str - :param name: 服务器组名称 + :param name: 服务器组名称。 :type name: str - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str - :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器 + :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :type image_id: str :param os_type: :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` - :param product_id: 产品id + :param product_id: 产品id。 :type product_id: str - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str :param system_disk_type: :type system_disk_type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param system_disk_size: 磁盘容量,单位GB + :param system_disk_size: 磁盘容量,单位GB。 :type system_disk_size: int - :param is_vdi: 是否为vdi单会话模式 + :param is_vdi: 是否为vdi单会话模式。 :type is_vdi: bool :param extra_session_type: :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` - :param extra_session_size: 付费会话个数 + :param extra_session_size: 付费会话个数。 :type extra_session_size: int :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` @@ -108,21 +108,21 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type update_time: datetime :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` - :param app_server_flavor_count: 服务器配置总数量 + :param app_server_flavor_count: 服务器配置总数量。 :type app_server_flavor_count: int - :param app_server_count: 服务器总数量 + :param app_server_count: 服务器总数量。 :type app_server_count: int - :param app_group_count: 关联应用组的总数量 + :param app_group_count: 关联应用组的总数量。 :type app_group_count: int - :param image_name: 镜像名称 + :param image_name: 镜像名称。 :type image_name: str :param product_info: :type product_info: :class:`huaweicloudsdkworkspaceapp.v1.ProductInfo` - :param subnet_name: 子网名称 + :param subnet_name: 子网名称。 :type subnet_name: str :param scaling_policy: :type scaling_policy: :class:`huaweicloudsdkworkspaceapp.v1.ScalingPolicy` - :param ou_name: 默认组织名称 + :param ou_name: 默认组织名称。 :type ou_name: str """ @@ -207,7 +207,7 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= def id(self): """Gets the id of this CreateServerGroupResponse. - 服务器组的唯一标识 + 服务器组的唯一标识。 :return: The id of this CreateServerGroupResponse. :rtype: str @@ -218,7 +218,7 @@ def id(self): def id(self, id): """Sets the id of this CreateServerGroupResponse. - 服务器组的唯一标识 + 服务器组的唯一标识。 :param id: The id of this CreateServerGroupResponse. :type id: str @@ -229,7 +229,7 @@ def id(self, id): def name(self): """Gets the name of this CreateServerGroupResponse. - 服务器组名称 + 服务器组名称。 :return: The name of this CreateServerGroupResponse. :rtype: str @@ -240,7 +240,7 @@ def name(self): def name(self, name): """Sets the name of this CreateServerGroupResponse. - 服务器组名称 + 服务器组名称。 :param name: The name of this CreateServerGroupResponse. :type name: str @@ -251,7 +251,7 @@ def name(self, name): def description(self): """Gets the description of this CreateServerGroupResponse. - 服务器组描述 + 服务器组描述。 :return: The description of this CreateServerGroupResponse. :rtype: str @@ -262,7 +262,7 @@ def description(self): def description(self, description): """Sets the description of this CreateServerGroupResponse. - 服务器组描述 + 服务器组描述。 :param description: The description of this CreateServerGroupResponse. :type description: str @@ -273,7 +273,7 @@ def description(self, description): def image_id(self): """Gets the image_id of this CreateServerGroupResponse. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :return: The image_id of this CreateServerGroupResponse. :rtype: str @@ -284,7 +284,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this CreateServerGroupResponse. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :param image_id: The image_id of this CreateServerGroupResponse. :type image_id: str @@ -313,7 +313,7 @@ def os_type(self, os_type): def product_id(self): """Gets the product_id of this CreateServerGroupResponse. - 产品id + 产品id。 :return: The product_id of this CreateServerGroupResponse. :rtype: str @@ -324,7 +324,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this CreateServerGroupResponse. - 产品id + 产品id。 :param product_id: The product_id of this CreateServerGroupResponse. :type product_id: str @@ -335,7 +335,7 @@ def product_id(self, product_id): def subnet_id(self): """Gets the subnet_id of this CreateServerGroupResponse. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this CreateServerGroupResponse. :rtype: str @@ -346,7 +346,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this CreateServerGroupResponse. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this CreateServerGroupResponse. :type subnet_id: str @@ -375,7 +375,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this CreateServerGroupResponse. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :return: The system_disk_size of this CreateServerGroupResponse. :rtype: int @@ -386,7 +386,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this CreateServerGroupResponse. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :param system_disk_size: The system_disk_size of this CreateServerGroupResponse. :type system_disk_size: int @@ -397,7 +397,7 @@ def system_disk_size(self, system_disk_size): def is_vdi(self): """Gets the is_vdi of this CreateServerGroupResponse. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :return: The is_vdi of this CreateServerGroupResponse. :rtype: bool @@ -408,7 +408,7 @@ def is_vdi(self): def is_vdi(self, is_vdi): """Sets the is_vdi of this CreateServerGroupResponse. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :param is_vdi: The is_vdi of this CreateServerGroupResponse. :type is_vdi: bool @@ -437,7 +437,7 @@ def extra_session_type(self, extra_session_type): def extra_session_size(self): """Gets the extra_session_size of this CreateServerGroupResponse. - 付费会话个数 + 付费会话个数。 :return: The extra_session_size of this CreateServerGroupResponse. :rtype: int @@ -448,7 +448,7 @@ def extra_session_size(self): def extra_session_size(self, extra_session_size): """Sets the extra_session_size of this CreateServerGroupResponse. - 付费会话个数 + 付费会话个数。 :param extra_session_size: The extra_session_size of this CreateServerGroupResponse. :type extra_session_size: int @@ -539,7 +539,7 @@ def storage_mount_policy(self, storage_mount_policy): def app_server_flavor_count(self): """Gets the app_server_flavor_count of this CreateServerGroupResponse. - 服务器配置总数量 + 服务器配置总数量。 :return: The app_server_flavor_count of this CreateServerGroupResponse. :rtype: int @@ -550,7 +550,7 @@ def app_server_flavor_count(self): def app_server_flavor_count(self, app_server_flavor_count): """Sets the app_server_flavor_count of this CreateServerGroupResponse. - 服务器配置总数量 + 服务器配置总数量。 :param app_server_flavor_count: The app_server_flavor_count of this CreateServerGroupResponse. :type app_server_flavor_count: int @@ -561,7 +561,7 @@ def app_server_flavor_count(self, app_server_flavor_count): def app_server_count(self): """Gets the app_server_count of this CreateServerGroupResponse. - 服务器总数量 + 服务器总数量。 :return: The app_server_count of this CreateServerGroupResponse. :rtype: int @@ -572,7 +572,7 @@ def app_server_count(self): def app_server_count(self, app_server_count): """Sets the app_server_count of this CreateServerGroupResponse. - 服务器总数量 + 服务器总数量。 :param app_server_count: The app_server_count of this CreateServerGroupResponse. :type app_server_count: int @@ -583,7 +583,7 @@ def app_server_count(self, app_server_count): def app_group_count(self): """Gets the app_group_count of this CreateServerGroupResponse. - 关联应用组的总数量 + 关联应用组的总数量。 :return: The app_group_count of this CreateServerGroupResponse. :rtype: int @@ -594,7 +594,7 @@ def app_group_count(self): def app_group_count(self, app_group_count): """Sets the app_group_count of this CreateServerGroupResponse. - 关联应用组的总数量 + 关联应用组的总数量。 :param app_group_count: The app_group_count of this CreateServerGroupResponse. :type app_group_count: int @@ -605,7 +605,7 @@ def app_group_count(self, app_group_count): def image_name(self): """Gets the image_name of this CreateServerGroupResponse. - 镜像名称 + 镜像名称。 :return: The image_name of this CreateServerGroupResponse. :rtype: str @@ -616,7 +616,7 @@ def image_name(self): def image_name(self, image_name): """Sets the image_name of this CreateServerGroupResponse. - 镜像名称 + 镜像名称。 :param image_name: The image_name of this CreateServerGroupResponse. :type image_name: str @@ -645,7 +645,7 @@ def product_info(self, product_info): def subnet_name(self): """Gets the subnet_name of this CreateServerGroupResponse. - 子网名称 + 子网名称。 :return: The subnet_name of this CreateServerGroupResponse. :rtype: str @@ -656,7 +656,7 @@ def subnet_name(self): def subnet_name(self, subnet_name): """Sets the subnet_name of this CreateServerGroupResponse. - 子网名称 + 子网名称。 :param subnet_name: The subnet_name of this CreateServerGroupResponse. :type subnet_name: str @@ -685,7 +685,7 @@ def scaling_policy(self, scaling_policy): def ou_name(self): """Gets the ou_name of this CreateServerGroupResponse. - 默认组织名称 + 默认组织名称。 :return: The ou_name of this CreateServerGroupResponse. :rtype: str @@ -696,7 +696,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this CreateServerGroupResponse. - 默认组织名称 + 默认组织名称。 :param ou_name: The ou_name of this CreateServerGroupResponse. :type ou_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_req.py index 72d25bfd81..8c6b1e7a2f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_req.py @@ -29,7 +29,7 @@ def __init__(self, folder_name=None): The model defined in huaweicloud sdk - :param folder_name: - 仅支持创建单层级的文件夹 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线 - 名称不能超过32字符 - 不能为全空格或者以空格开头 + :param folder_name: - 仅支持创建单层级的文件夹。 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线。 - 名称不能超过32字符。 - 不能为全空格或者以空格开头。 :type folder_name: str """ @@ -45,7 +45,7 @@ def __init__(self, folder_name=None): def folder_name(self): """Gets the folder_name of this CreateShareFolderReq. - - 仅支持创建单层级的文件夹 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线 - 名称不能超过32字符 - 不能为全空格或者以空格开头 + - 仅支持创建单层级的文件夹。 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线。 - 名称不能超过32字符。 - 不能为全空格或者以空格开头。 :return: The folder_name of this CreateShareFolderReq. :rtype: str @@ -56,7 +56,7 @@ def folder_name(self): def folder_name(self, folder_name): """Sets the folder_name of this CreateShareFolderReq. - - 仅支持创建单层级的文件夹 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线 - 名称不能超过32字符 - 不能为全空格或者以空格开头 + - 仅支持创建单层级的文件夹。 - 单个文件夹名称仅支持以下字符: 英文字母、数字、空格、下划线、中划线。 - 名称不能超过32字符。 - 不能为全空格或者以空格开头。 :param folder_name: The folder_name of this CreateShareFolderReq. :type folder_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_request.py index 100f5ccf04..6091e6327a 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_request.py @@ -31,7 +31,7 @@ def __init__(self, storage_id=None, body=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str :param body: Body of the CreateShareFolderRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateShareFolderReq` @@ -51,7 +51,7 @@ def __init__(self, storage_id=None, body=None): def storage_id(self): """Gets the storage_id of this CreateShareFolderRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this CreateShareFolderRequest. :rtype: str @@ -62,7 +62,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this CreateShareFolderRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this CreateShareFolderRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_response.py index 0def46220d..bfcbd9dbff 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_share_folder_response.py @@ -36,11 +36,11 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai The model defined in huaweicloud sdk - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param folder_path: 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + :param folder_path: 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :type folder_path: str - :param delimiter: 路径分隔符 + :param delimiter: 路径分隔符。 :type delimiter: str :param claim_mode: :type claim_mode: :class:`huaweicloudsdkworkspaceapp.v1.ClaimMode` @@ -67,7 +67,7 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai def storage_claim_id(self): """Gets the storage_claim_id of this CreateShareFolderResponse. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this CreateShareFolderResponse. :rtype: str @@ -78,7 +78,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this CreateShareFolderResponse. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this CreateShareFolderResponse. :type storage_claim_id: str @@ -89,7 +89,7 @@ def storage_claim_id(self, storage_claim_id): def folder_path(self): """Gets the folder_path of this CreateShareFolderResponse. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :return: The folder_path of this CreateShareFolderResponse. :rtype: str @@ -100,7 +100,7 @@ def folder_path(self): def folder_path(self, folder_path): """Sets the folder_path of this CreateShareFolderResponse. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :param folder_path: The folder_path of this CreateShareFolderResponse. :type folder_path: str @@ -111,7 +111,7 @@ def folder_path(self, folder_path): def delimiter(self): """Gets the delimiter of this CreateShareFolderResponse. - 路径分隔符 + 路径分隔符。 :return: The delimiter of this CreateShareFolderResponse. :rtype: str @@ -122,7 +122,7 @@ def delimiter(self): def delimiter(self, delimiter): """Sets the delimiter of this CreateShareFolderResponse. - 路径分隔符 + 路径分隔符。 :param delimiter: The delimiter of this CreateShareFolderResponse. :type delimiter: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/custom_options.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/custom_options.py index 6eeee5315b..2d3f01403f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/custom_options.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/custom_options.py @@ -29,7 +29,7 @@ def __init__(self, custom_configuration1_rule=None): The model defined in huaweicloud sdk - :param custom_configuration1_rule: 配置项1内容 + :param custom_configuration1_rule: 配置项1内容。 :type custom_configuration1_rule: str """ @@ -45,7 +45,7 @@ def __init__(self, custom_configuration1_rule=None): def custom_configuration1_rule(self): """Gets the custom_configuration1_rule of this CustomOptions. - 配置项1内容 + 配置项1内容。 :return: The custom_configuration1_rule of this CustomOptions. :rtype: str @@ -56,7 +56,7 @@ def custom_configuration1_rule(self): def custom_configuration1_rule(self, custom_configuration1_rule): """Sets the custom_configuration1_rule of this CustomOptions. - 配置项1内容 + 配置项1内容。 :param custom_configuration1_rule: The custom_configuration1_rule of this CustomOptions. :type custom_configuration1_rule: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_app_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_app_group_req.py index fa58ba2894..c2a1e66ade 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_app_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_app_group_req.py @@ -29,7 +29,7 @@ def __init__(self, ids=None): The model defined in huaweicloud sdk - :param ids: 应用组ID,单次最多20个 + :param ids: 应用组ID,单次最多20个。 :type ids: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, ids=None): def ids(self): """Gets the ids of this DeleteAppGroupReq. - 应用组ID,单次最多20个 + 应用组ID,单次最多20个。 :return: The ids of this DeleteAppGroupReq. :rtype: list[str] @@ -55,7 +55,7 @@ def ids(self): def ids(self, ids): """Sets the ids of this DeleteAppGroupReq. - 应用组ID,单次最多20个 + 应用组ID,单次最多20个。 :param ids: The ids of this DeleteAppGroupReq. :type ids: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_persistent_storage_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_persistent_storage_request.py index 3a9e3485f7..a633df08c0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_persistent_storage_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_persistent_storage_request.py @@ -29,7 +29,7 @@ def __init__(self, storage_id=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str """ @@ -44,7 +44,7 @@ def __init__(self, storage_id=None): def storage_id(self): """Gets the storage_id of this DeletePersistentStorageRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this DeletePersistentStorageRequest. :rtype: str @@ -55,7 +55,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this DeletePersistentStorageRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this DeletePersistentStorageRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_server_groups_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_server_groups_request.py index 8f3ae454e1..160a8efd30 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_server_groups_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_server_groups_request.py @@ -29,7 +29,7 @@ def __init__(self, server_group_id=None): The model defined in huaweicloud sdk - :param server_group_id: 服务器组唯一标识 + :param server_group_id: 服务器组唯一标识。 :type server_group_id: str """ @@ -44,7 +44,7 @@ def __init__(self, server_group_id=None): def server_group_id(self): """Gets the server_group_id of this DeleteServerGroupsRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :return: The server_group_id of this DeleteServerGroupsRequest. :rtype: str @@ -55,7 +55,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this DeleteServerGroupsRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :param server_group_id: The server_group_id of this DeleteServerGroupsRequest. :type server_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_req.py index bfbe3c856d..9d48cfa0dc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: storage_claim_id,数量区间 [1, 50] + :param items: storage_claim_id,数量区间 [1, 50]。 :type items: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this DeleteStorageClaimReq. - storage_claim_id,数量区间 [1, 50] + storage_claim_id,数量区间 [1, 50]。 :return: The items of this DeleteStorageClaimReq. :rtype: list[str] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this DeleteStorageClaimReq. - storage_claim_id,数量区间 [1, 50] + storage_claim_id,数量区间 [1, 50]。 :param items: The items of this DeleteStorageClaimReq. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_request.py index 99f1483ba7..da9098fe5d 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_storage_claim_request.py @@ -31,7 +31,7 @@ def __init__(self, storage_id=None, body=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str :param body: Body of the DeleteStorageClaimRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.DeleteStorageClaimReq` @@ -51,7 +51,7 @@ def __init__(self, storage_id=None, body=None): def storage_id(self): """Gets the storage_id of this DeleteStorageClaimRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this DeleteStorageClaimRequest. :rtype: str @@ -62,7 +62,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this DeleteStorageClaimRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this DeleteStorageClaimRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_req.py index 7355637957..a8715ad299 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 用户名,请求数量区间 [1, 200] + :param items: 用户名,请求数量区间 [1, 200]。 :type items: list[str] """ @@ -45,7 +45,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this DeleteUserStorageAttachmentReq. - 用户名,请求数量区间 [1, 200] + 用户名,请求数量区间 [1, 200]。 :return: The items of this DeleteUserStorageAttachmentReq. :rtype: list[str] @@ -56,7 +56,7 @@ def items(self): def items(self, items): """Sets the items of this DeleteUserStorageAttachmentReq. - 用户名,请求数量区间 [1, 200] + 用户名,请求数量区间 [1, 200]。 :param items: The items of this DeleteUserStorageAttachmentReq. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_request.py index 7415c80933..0c8ea94db7 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/delete_user_storage_attachment_request.py @@ -31,7 +31,7 @@ def __init__(self, storage_id=None, body=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str :param body: Body of the DeleteUserStorageAttachmentRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.DeleteUserStorageAttachmentReq` @@ -51,7 +51,7 @@ def __init__(self, storage_id=None, body=None): def storage_id(self): """Gets the storage_id of this DeleteUserStorageAttachmentRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this DeleteUserStorageAttachmentRequest. :rtype: str @@ -62,7 +62,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this DeleteUserStorageAttachmentRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this DeleteUserStorageAttachmentRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/ecs_net_work.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/ecs_net_work.py index 82a167b541..6be291b949 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/ecs_net_work.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/ecs_net_work.py @@ -43,19 +43,19 @@ def __init__(self, addr=None, version=None, os_ext_ips_ma_cmac_addr=None, os_ext The model defined in huaweicloud sdk - :param addr: IP地址信息 + :param addr: IP地址信息。 :type addr: str - :param version: IP地址类型, `4` - IPV4 `6` - IPV6 + :param version: IP地址类型: `4` - IPV4 `6` - IPV6 :type version: int - :param os_ext_ips_ma_cmac_addr: MAC地址 + :param os_ext_ips_ma_cmac_addr: MAC地址。 :type os_ext_ips_ma_cmac_addr: str - :param os_ext_ip_stype: IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + :param os_ext_ip_stype: IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :type os_ext_ip_stype: str :param os_ext_ip_sport_id: IP地址对应的端口ID。 :type os_ext_ip_sport_id: str - :param vpc_id: 虚拟私有云ID + :param vpc_id: 虚拟私有云ID。 :type vpc_id: str - :param subnet_id: 子网id + :param subnet_id: 子网id。 :type subnet_id: str :param tenant_type: 租户类别: - tenant: 租户 - resource_tenant: 资源租户 :type tenant_type: str @@ -94,7 +94,7 @@ def __init__(self, addr=None, version=None, os_ext_ips_ma_cmac_addr=None, os_ext def addr(self): """Gets the addr of this EcsNetWork. - IP地址信息 + IP地址信息。 :return: The addr of this EcsNetWork. :rtype: str @@ -105,7 +105,7 @@ def addr(self): def addr(self, addr): """Sets the addr of this EcsNetWork. - IP地址信息 + IP地址信息。 :param addr: The addr of this EcsNetWork. :type addr: str @@ -116,7 +116,7 @@ def addr(self, addr): def version(self): """Gets the version of this EcsNetWork. - IP地址类型, `4` - IPV4 `6` - IPV6 + IP地址类型: `4` - IPV4 `6` - IPV6 :return: The version of this EcsNetWork. :rtype: int @@ -127,7 +127,7 @@ def version(self): def version(self, version): """Sets the version of this EcsNetWork. - IP地址类型, `4` - IPV4 `6` - IPV6 + IP地址类型: `4` - IPV4 `6` - IPV6 :param version: The version of this EcsNetWork. :type version: int @@ -138,7 +138,7 @@ def version(self, version): def os_ext_ips_ma_cmac_addr(self): """Gets the os_ext_ips_ma_cmac_addr of this EcsNetWork. - MAC地址 + MAC地址。 :return: The os_ext_ips_ma_cmac_addr of this EcsNetWork. :rtype: str @@ -149,7 +149,7 @@ def os_ext_ips_ma_cmac_addr(self): def os_ext_ips_ma_cmac_addr(self, os_ext_ips_ma_cmac_addr): """Sets the os_ext_ips_ma_cmac_addr of this EcsNetWork. - MAC地址 + MAC地址。 :param os_ext_ips_ma_cmac_addr: The os_ext_ips_ma_cmac_addr of this EcsNetWork. :type os_ext_ips_ma_cmac_addr: str @@ -160,7 +160,7 @@ def os_ext_ips_ma_cmac_addr(self, os_ext_ips_ma_cmac_addr): def os_ext_ip_stype(self): """Gets the os_ext_ip_stype of this EcsNetWork. - IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :return: The os_ext_ip_stype of this EcsNetWork. :rtype: str @@ -171,7 +171,7 @@ def os_ext_ip_stype(self): def os_ext_ip_stype(self, os_ext_ip_stype): """Sets the os_ext_ip_stype of this EcsNetWork. - IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :param os_ext_ip_stype: The os_ext_ip_stype of this EcsNetWork. :type os_ext_ip_stype: str @@ -204,7 +204,7 @@ def os_ext_ip_sport_id(self, os_ext_ip_sport_id): def vpc_id(self): """Gets the vpc_id of this EcsNetWork. - 虚拟私有云ID + 虚拟私有云ID。 :return: The vpc_id of this EcsNetWork. :rtype: str @@ -215,7 +215,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this EcsNetWork. - 虚拟私有云ID + 虚拟私有云ID。 :param vpc_id: The vpc_id of this EcsNetWork. :type vpc_id: str @@ -226,7 +226,7 @@ def vpc_id(self, vpc_id): def subnet_id(self): """Gets the subnet_id of this EcsNetWork. - 子网id + 子网id。 :return: The subnet_id of this EcsNetWork. :rtype: str @@ -237,7 +237,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this EcsNetWork. - 子网id + 子网id。 :param subnet_id: The subnet_id of this EcsNetWork. :type subnet_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor.py index 4b5d1ffd66..aad849992c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor.py @@ -31,9 +31,9 @@ def __init__(self, id=None, links=None): The model defined in huaweicloud sdk - :param id: 服务器对应的规格ID + :param id: 服务器对应的规格ID。 :type id: str - :param links: 服务器对应规格的相关标记快捷链接信息 + :param links: 服务器对应规格的相关标记快捷链接信息。 :type links: list[:class:`huaweicloudsdkworkspaceapp.v1.FlavorLink`] """ @@ -52,7 +52,7 @@ def __init__(self, id=None, links=None): def id(self): """Gets the id of this Flavor. - 服务器对应的规格ID + 服务器对应的规格ID。 :return: The id of this Flavor. :rtype: str @@ -63,7 +63,7 @@ def id(self): def id(self, id): """Sets the id of this Flavor. - 服务器对应的规格ID + 服务器对应的规格ID。 :param id: The id of this Flavor. :type id: str @@ -74,7 +74,7 @@ def id(self, id): def links(self): """Gets the links of this Flavor. - 服务器对应规格的相关标记快捷链接信息 + 服务器对应规格的相关标记快捷链接信息。 :return: The links of this Flavor. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.FlavorLink`] @@ -85,7 +85,7 @@ def links(self): def links(self, links): """Sets the links of this Flavor. - 服务器对应规格的相关标记快捷链接信息 + 服务器对应规格的相关标记快捷链接信息。 :param links: The links of this Flavor. :type links: list[:class:`huaweicloudsdkworkspaceapp.v1.FlavorLink`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor_link.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor_link.py index 9f0eb7d516..4d8ed34fa3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor_link.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/flavor_link.py @@ -31,9 +31,9 @@ def __init__(self, rel=None, hrel=None): The model defined in huaweicloud sdk - :param rel: 快捷链接标记名称 + :param rel: 快捷链接标记名称。 :type rel: str - :param hrel: 对应快捷链接 + :param hrel: 对应快捷链接。 :type hrel: str """ @@ -52,7 +52,7 @@ def __init__(self, rel=None, hrel=None): def rel(self): """Gets the rel of this FlavorLink. - 快捷链接标记名称 + 快捷链接标记名称。 :return: The rel of this FlavorLink. :rtype: str @@ -63,7 +63,7 @@ def rel(self): def rel(self, rel): """Sets the rel of this FlavorLink. - 快捷链接标记名称 + 快捷链接标记名称。 :param rel: The rel of this FlavorLink. :type rel: str @@ -74,7 +74,7 @@ def rel(self, rel): def hrel(self): """Gets the hrel of this FlavorLink. - 对应快捷链接 + 对应快捷链接。 :return: The hrel of this FlavorLink. :rtype: str @@ -85,7 +85,7 @@ def hrel(self): def hrel(self, hrel): """Sets the hrel of this FlavorLink. - 对应快捷链接 + 对应快捷链接。 :param hrel: The hrel of this FlavorLink. :type hrel: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_detail.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_detail.py index a494d23f63..3efe21e3d3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_detail.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_detail.py @@ -45,23 +45,23 @@ def __init__(self, job_id=None, job_type=None, job_status=None, sub_jobs=None, b The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str - :param job_type: job类型,固定值1 + :param job_type: job类型,固定值1。 :type job_type: int - :param job_status: job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户) - 1:成功。(处理结果成功) - 2:处理中。 - 3:正在初始化。 + :param job_status: job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户。) - 1:成功。(处理结果成功。) - 2:处理中。 - 3:正在初始化。 :type job_status: int - :param sub_jobs: 子任务信息 + :param sub_jobs: 子任务信息。 :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.SubJobInfo`] - :param begin_time: Job处理开始时间 + :param begin_time: Job处理开始时间。 :type begin_time: datetime - :param end_time: job处理结束时间 + :param end_time: job处理结束时间。 :type end_time: datetime - :param expected_end_time: 云服务预估的Job处理结束时间,只针对job有效,针对子job无效 + :param expected_end_time: 云服务预估的Job处理结束时间,只针对job有效,针对子job无效。 :type expected_end_time: datetime :param execute_code: Job执行结果码 :type execute_code: str - :param execute_message: Job执行结果描述,以及每个SubJob的执行结果描述 + :param execute_message: Job执行结果描述,以及每个SubJob的执行结果描述。 :type execute_message: str """ @@ -101,7 +101,7 @@ def __init__(self, job_id=None, job_type=None, job_status=None, sub_jobs=None, b def job_id(self): """Gets the job_id of this JobDetail. - 任务ID + 任务ID。 :return: The job_id of this JobDetail. :rtype: str @@ -112,7 +112,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this JobDetail. - 任务ID + 任务ID。 :param job_id: The job_id of this JobDetail. :type job_id: str @@ -123,7 +123,7 @@ def job_id(self, job_id): def job_type(self): """Gets the job_type of this JobDetail. - job类型,固定值1 + job类型,固定值1。 :return: The job_type of this JobDetail. :rtype: int @@ -134,7 +134,7 @@ def job_type(self): def job_type(self, job_type): """Sets the job_type of this JobDetail. - job类型,固定值1 + job类型,固定值1。 :param job_type: The job_type of this JobDetail. :type job_type: int @@ -145,7 +145,7 @@ def job_type(self, job_type): def job_status(self): """Gets the job_status of this JobDetail. - job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户) - 1:成功。(处理结果成功) - 2:处理中。 - 3:正在初始化。 + job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户。) - 1:成功。(处理结果成功。) - 2:处理中。 - 3:正在初始化。 :return: The job_status of this JobDetail. :rtype: int @@ -156,7 +156,7 @@ def job_status(self): def job_status(self, job_status): """Sets the job_status of this JobDetail. - job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户) - 1:成功。(处理结果成功) - 2:处理中。 - 3:正在初始化。 + job执行状态 - 0:失败。(如果是开通失败,云运营查询到失败状态,直接退费给客户。如果是变更失败,当前是发运维工单,暂时还不是直接退费给客户。) - 1:成功。(处理结果成功。) - 2:处理中。 - 3:正在初始化。 :param job_status: The job_status of this JobDetail. :type job_status: int @@ -167,7 +167,7 @@ def job_status(self, job_status): def sub_jobs(self): """Gets the sub_jobs of this JobDetail. - 子任务信息 + 子任务信息。 :return: The sub_jobs of this JobDetail. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.SubJobInfo`] @@ -178,7 +178,7 @@ def sub_jobs(self): def sub_jobs(self, sub_jobs): """Sets the sub_jobs of this JobDetail. - 子任务信息 + 子任务信息。 :param sub_jobs: The sub_jobs of this JobDetail. :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.SubJobInfo`] @@ -189,7 +189,7 @@ def sub_jobs(self, sub_jobs): def begin_time(self): """Gets the begin_time of this JobDetail. - Job处理开始时间 + Job处理开始时间。 :return: The begin_time of this JobDetail. :rtype: datetime @@ -200,7 +200,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this JobDetail. - Job处理开始时间 + Job处理开始时间。 :param begin_time: The begin_time of this JobDetail. :type begin_time: datetime @@ -211,7 +211,7 @@ def begin_time(self, begin_time): def end_time(self): """Gets the end_time of this JobDetail. - job处理结束时间 + job处理结束时间。 :return: The end_time of this JobDetail. :rtype: datetime @@ -222,7 +222,7 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this JobDetail. - job处理结束时间 + job处理结束时间。 :param end_time: The end_time of this JobDetail. :type end_time: datetime @@ -233,7 +233,7 @@ def end_time(self, end_time): def expected_end_time(self): """Gets the expected_end_time of this JobDetail. - 云服务预估的Job处理结束时间,只针对job有效,针对子job无效 + 云服务预估的Job处理结束时间,只针对job有效,针对子job无效。 :return: The expected_end_time of this JobDetail. :rtype: datetime @@ -244,7 +244,7 @@ def expected_end_time(self): def expected_end_time(self, expected_end_time): """Sets the expected_end_time of this JobDetail. - 云服务预估的Job处理结束时间,只针对job有效,针对子job无效 + 云服务预估的Job处理结束时间,只针对job有效,针对子job无效。 :param expected_end_time: The expected_end_time of this JobDetail. :type expected_end_time: datetime @@ -277,7 +277,7 @@ def execute_code(self, execute_code): def execute_message(self): """Gets the execute_message of this JobDetail. - Job执行结果描述,以及每个SubJob的执行结果描述 + Job执行结果描述,以及每个SubJob的执行结果描述。 :return: The execute_message of this JobDetail. :rtype: str @@ -288,7 +288,7 @@ def execute_message(self): def execute_message(self, execute_message): """Sets the execute_message of this JobDetail. - Job执行结果描述,以及每个SubJob的执行结果描述 + Job执行结果描述,以及每个SubJob的执行结果描述。 :param execute_message: The execute_message of this JobDetail. :type execute_message: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_id_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_id_info.py index 9e00a65c1b..58cfe63492 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_id_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_id_info.py @@ -29,7 +29,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -45,7 +45,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this JobIdInfo. - 任务ID + 任务ID。 :return: The job_id of this JobIdInfo. :rtype: str @@ -56,7 +56,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this JobIdInfo. - 任务ID + 任务ID。 :param job_id: The job_id of this JobIdInfo. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_info.py index 000d32e7a4..70606e24ca 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_info.py @@ -49,7 +49,7 @@ def __init__(self, id=None, job_type=None, begin_time=None, end_time=None, statu :type end_time: datetime :param status: :type status: :class:`huaweicloudsdkworkspaceapp.v1.JobStatus` - :param sub_jobs_total: 子任务总数 + :param sub_jobs_total: 子任务总数。 :type sub_jobs_total: int """ @@ -182,7 +182,7 @@ def status(self, status): def sub_jobs_total(self): """Gets the sub_jobs_total of this JobInfo. - 子任务总数 + 子任务总数。 :return: The sub_jobs_total of this JobInfo. :rtype: int @@ -193,7 +193,7 @@ def sub_jobs_total(self): def sub_jobs_total(self, sub_jobs_total): """Sets the sub_jobs_total of this JobInfo. - 子任务总数 + 子任务总数。 :param sub_jobs_total: The sub_jobs_total of this JobInfo. :type sub_jobs_total: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_resource_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_resource_info.py index 6a7080cecc..f88c87bd37 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_resource_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_resource_info.py @@ -67,25 +67,25 @@ def __init__(self, resource_id=None, resource_name=None, cloud_service_type=None :type resource_type: str :param resource_spec_code: 资源规格编码;新购、规格变更场景,必填。 :type resource_spec_code: str - :param spec_type: 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式; 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false) 当前针对共享带宽、共享盘使用,必填。 + :param spec_type: 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式。 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false)。 当前针对共享带宽、共享盘使用,必填。 :type spec_type: dict(str, object) - :param spec_size: 某些规格属性大小:比如带宽大小、数据盘大小 + :param spec_size: 某些规格属性大小:比如带宽大小、数据盘大小。 :type spec_size: float :param measure: specSize的单位编码,比如GB、M,有specSize时,此字段必填。 :type measure: int - :param processed_time: 处理时间 + :param processed_time: 处理时间。 :type processed_time: datetime - :param is_main_resource: 该resourceId是否是主资源(仅开通场景使用,其他场景为空) * `1` - 是 * `0` - 否 + :param is_main_resource: 该resourceId是否是主资源(仅开通场景使用,其他场景为空)。 * `1` - 是 * `0` - 否 :type is_main_resource: int :param main_resources: resourceId的主资源。 是挂载到/绑定到/依附到/包含于/关联到资源,比如IP的主资源‘云主机’、数据盘的主资源‘云主机’。 如果resourceId是依附在多个资源上,则有多个主资源,比如共享盘挂载到多个云主机上。 无关联主资源,则空,比如独立未挂载的数据盘。 :type main_resources: list[:class:`huaweicloudsdkworkspaceapp.v1.RelativeResource`] - :param extend_params: expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z) + :param extend_params: expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z)。 :type extend_params: str - :param old_resource_id: 仅针对ECS/BMS云服务的“切换操作系统”场景使用: 云主机切换操作系统的资源id会变化场景 填写变更前老的资源Id。资源Id未变化,无此字段 + :param old_resource_id: 仅针对ECS/BMS云服务的“切换操作系统”场景使用。 云主机切换操作系统的资源id会变化场景。 填写变更前老的资源Id。资源Id未变化,无此字段。 :type old_resource_id: str - :param old_cloud_service_type: 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景, 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 + :param old_cloud_service_type: 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景。 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 :type old_cloud_service_type: str - :param old_resource_type: 仅针对ECS/BMS云服务“切换操作系统”场景使用: 云主机切换操作系统的资源类型编码会变化场景, 填写变更前老的资源类型编码。资源类型未变化,无此字段 + :param old_resource_type: 仅针对ECS/BMS云服务“切换操作系统”场景使用。 云主机切换操作系统的资源类型编码会变化场景。 填写变更前老的资源类型编码。资源类型未变化,无此字段。 :type old_resource_type: str """ @@ -253,7 +253,7 @@ def resource_spec_code(self, resource_spec_code): def spec_type(self): """Gets the spec_type of this JobResourceInfo. - 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式; 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false) 当前针对共享带宽、共享盘使用,必填。 + 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式。 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false)。 当前针对共享带宽、共享盘使用,必填。 :return: The spec_type of this JobResourceInfo. :rtype: dict(str, object) @@ -264,7 +264,7 @@ def spec_type(self): def spec_type(self, spec_type): """Sets the spec_type of this JobResourceInfo. - 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式; 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false) 当前针对共享带宽、共享盘使用,必填。 + 规格类型,运营上需要呈现和使用的一些规格属性,多个使用K:V格式。 比如带宽的共享/独享(shareable:true/false),数据盘的系统盘/数据盘类型(root:true/false)。 当前针对共享带宽、共享盘使用,必填。 :param spec_type: The spec_type of this JobResourceInfo. :type spec_type: dict(str, object) @@ -275,7 +275,7 @@ def spec_type(self, spec_type): def spec_size(self): """Gets the spec_size of this JobResourceInfo. - 某些规格属性大小:比如带宽大小、数据盘大小 + 某些规格属性大小:比如带宽大小、数据盘大小。 :return: The spec_size of this JobResourceInfo. :rtype: float @@ -286,7 +286,7 @@ def spec_size(self): def spec_size(self, spec_size): """Sets the spec_size of this JobResourceInfo. - 某些规格属性大小:比如带宽大小、数据盘大小 + 某些规格属性大小:比如带宽大小、数据盘大小。 :param spec_size: The spec_size of this JobResourceInfo. :type spec_size: float @@ -319,7 +319,7 @@ def measure(self, measure): def processed_time(self): """Gets the processed_time of this JobResourceInfo. - 处理时间 + 处理时间。 :return: The processed_time of this JobResourceInfo. :rtype: datetime @@ -330,7 +330,7 @@ def processed_time(self): def processed_time(self, processed_time): """Sets the processed_time of this JobResourceInfo. - 处理时间 + 处理时间。 :param processed_time: The processed_time of this JobResourceInfo. :type processed_time: datetime @@ -341,7 +341,7 @@ def processed_time(self, processed_time): def is_main_resource(self): """Gets the is_main_resource of this JobResourceInfo. - 该resourceId是否是主资源(仅开通场景使用,其他场景为空) * `1` - 是 * `0` - 否 + 该resourceId是否是主资源(仅开通场景使用,其他场景为空)。 * `1` - 是 * `0` - 否 :return: The is_main_resource of this JobResourceInfo. :rtype: int @@ -352,7 +352,7 @@ def is_main_resource(self): def is_main_resource(self, is_main_resource): """Sets the is_main_resource of this JobResourceInfo. - 该resourceId是否是主资源(仅开通场景使用,其他场景为空) * `1` - 是 * `0` - 否 + 该resourceId是否是主资源(仅开通场景使用,其他场景为空)。 * `1` - 是 * `0` - 否 :param is_main_resource: The is_main_resource of this JobResourceInfo. :type is_main_resource: int @@ -385,7 +385,7 @@ def main_resources(self, main_resources): def extend_params(self): """Gets the extend_params of this JobResourceInfo. - expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z) + expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z)。 :return: The extend_params of this JobResourceInfo. :rtype: str @@ -396,7 +396,7 @@ def extend_params(self): def extend_params(self, extend_params): """Sets the extend_params of this JobResourceInfo. - expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z) + expireTime:到期时间,域名注册服务使用。 UTC时间,格式:yyyy-MM-ddTHH:mm:ssZ(2016-06-28T00:00:00Z)。 :param extend_params: The extend_params of this JobResourceInfo. :type extend_params: str @@ -407,7 +407,7 @@ def extend_params(self, extend_params): def old_resource_id(self): """Gets the old_resource_id of this JobResourceInfo. - 仅针对ECS/BMS云服务的“切换操作系统”场景使用: 云主机切换操作系统的资源id会变化场景 填写变更前老的资源Id。资源Id未变化,无此字段 + 仅针对ECS/BMS云服务的“切换操作系统”场景使用。 云主机切换操作系统的资源id会变化场景。 填写变更前老的资源Id。资源Id未变化,无此字段。 :return: The old_resource_id of this JobResourceInfo. :rtype: str @@ -418,7 +418,7 @@ def old_resource_id(self): def old_resource_id(self, old_resource_id): """Sets the old_resource_id of this JobResourceInfo. - 仅针对ECS/BMS云服务的“切换操作系统”场景使用: 云主机切换操作系统的资源id会变化场景 填写变更前老的资源Id。资源Id未变化,无此字段 + 仅针对ECS/BMS云服务的“切换操作系统”场景使用。 云主机切换操作系统的资源id会变化场景。 填写变更前老的资源Id。资源Id未变化,无此字段。 :param old_resource_id: The old_resource_id of this JobResourceInfo. :type old_resource_id: str @@ -429,7 +429,7 @@ def old_resource_id(self, old_resource_id): def old_cloud_service_type(self): """Gets the old_cloud_service_type of this JobResourceInfo. - 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景, 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 + 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景。 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 :return: The old_cloud_service_type of this JobResourceInfo. :rtype: str @@ -440,7 +440,7 @@ def old_cloud_service_type(self): def old_cloud_service_type(self, old_cloud_service_type): """Sets the old_cloud_service_type of this JobResourceInfo. - 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景, 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 + 仅针对ECS/BMS云服务的“切换操作系统”场景使用:云主机切换操作系统的云服务类型编码会变化场景。 填写变更前老的云服务类型编码。云服务类型未变化,无此字段。 :param old_cloud_service_type: The old_cloud_service_type of this JobResourceInfo. :type old_cloud_service_type: str @@ -451,7 +451,7 @@ def old_cloud_service_type(self, old_cloud_service_type): def old_resource_type(self): """Gets the old_resource_type of this JobResourceInfo. - 仅针对ECS/BMS云服务“切换操作系统”场景使用: 云主机切换操作系统的资源类型编码会变化场景, 填写变更前老的资源类型编码。资源类型未变化,无此字段 + 仅针对ECS/BMS云服务“切换操作系统”场景使用。 云主机切换操作系统的资源类型编码会变化场景。 填写变更前老的资源类型编码。资源类型未变化,无此字段。 :return: The old_resource_type of this JobResourceInfo. :rtype: str @@ -462,7 +462,7 @@ def old_resource_type(self): def old_resource_type(self, old_resource_type): """Sets the old_resource_type of this JobResourceInfo. - 仅针对ECS/BMS云服务“切换操作系统”场景使用: 云主机切换操作系统的资源类型编码会变化场景, 填写变更前老的资源类型编码。资源类型未变化,无此字段 + 仅针对ECS/BMS云服务“切换操作系统”场景使用。 云主机切换操作系统的资源类型编码会变化场景。 填写变更前老的资源类型编码。资源类型未变化,无此字段。 :param old_resource_type: The old_resource_type of this JobResourceInfo. :type old_resource_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py index 51d30216eb..981d3c5fce 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py @@ -20,6 +20,7 @@ class JobType: UPGRADE_ACCESS_AGENT = "UPGRADE_ACCESS_AGENT" UPDATE_SERVER_TSVI = "UPDATE_SERVER_TSVI" SCHEDULED_TASK = "SCHEDULED_TASK" + COLLECT_HDA_LOG = "COLLECT_HDA_LOG" COLLECT_APS_LOG = "COLLECT_APS_LOG" """ Attributes: diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_req.py index 9807028c45..80d2c3742f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_req.py @@ -65,43 +65,43 @@ def __init__(self, id=None, sid=None, machine_name=None, user_name=None, app_gro The model defined in huaweicloud sdk - :param id: 主键 + :param id: 主键。 :type id: str - :param sid: 应用服务器sid + :param sid: 应用服务器sid。 :type sid: str - :param machine_name: 应用服务器名称 + :param machine_name: 应用服务器名称。 :type machine_name: str - :param user_name: 登录用户,模糊查询 + :param user_name: 登录用户,模糊查询。 :type user_name: str - :param app_group_name: 应用组名称 + :param app_group_name: 应用组名称。 :type app_group_name: str - :param app_group_id: 应用组id + :param app_group_id: 应用组id。 :type app_group_id: str - :param app_name: 应用名称,模糊查询 + :param app_name: 应用名称,模糊查询。 :type app_name: str - :param failed_code: 连接失败状态码 + :param failed_code: 连接失败状态码。 :type failed_code: str - :param connection_failure_reason: 连接失败原因 + :param connection_failure_reason: 连接失败原因。 :type connection_failure_reason: str - :param client_name: 客户端名称 + :param client_name: 客户端名称。 :type client_name: str - :param client_version: 客户端版本 + :param client_version: 客户端版本。 :type client_version: str - :param client_type: 客户端操作系统类型 + :param client_type: 客户端操作系统类型。 :type client_type: str - :param agent_version: aps hda版本 + :param agent_version: aps hda版本。 :type agent_version: str - :param vm_ip: 应用服务器ip + :param vm_ip: 应用服务器ip。 :type vm_ip: str - :param wi_ip: 连接IP + :param wi_ip: 连接IP。 :type wi_ip: str - :param tenant_id: 租户id + :param tenant_id: 租户id。 :type tenant_id: str - :param brokering_start_time: 登录应用开始时间,格式 2022-10-31 08:07:39 + :param brokering_start_time: 登录应用开始时间,格式 2022-10-31 08:07:39。 :type brokering_start_time: datetime - :param brokering_end_time: 登录应用结束时间,格式 2022-10-31 08:07:39 + :param brokering_end_time: 登录应用结束时间,格式 2022-10-31 08:07:39。 :type brokering_end_time: datetime - :param virtual_ip: 会话虚拟ip + :param virtual_ip: 会话虚拟ip。 :type virtual_ip: str """ @@ -171,7 +171,7 @@ def __init__(self, id=None, sid=None, machine_name=None, user_name=None, app_gro def id(self): """Gets the id of this ListAppConnectionReq. - 主键 + 主键。 :return: The id of this ListAppConnectionReq. :rtype: str @@ -182,7 +182,7 @@ def id(self): def id(self, id): """Sets the id of this ListAppConnectionReq. - 主键 + 主键。 :param id: The id of this ListAppConnectionReq. :type id: str @@ -193,7 +193,7 @@ def id(self, id): def sid(self): """Gets the sid of this ListAppConnectionReq. - 应用服务器sid + 应用服务器sid。 :return: The sid of this ListAppConnectionReq. :rtype: str @@ -204,7 +204,7 @@ def sid(self): def sid(self, sid): """Sets the sid of this ListAppConnectionReq. - 应用服务器sid + 应用服务器sid。 :param sid: The sid of this ListAppConnectionReq. :type sid: str @@ -215,7 +215,7 @@ def sid(self, sid): def machine_name(self): """Gets the machine_name of this ListAppConnectionReq. - 应用服务器名称 + 应用服务器名称。 :return: The machine_name of this ListAppConnectionReq. :rtype: str @@ -226,7 +226,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this ListAppConnectionReq. - 应用服务器名称 + 应用服务器名称。 :param machine_name: The machine_name of this ListAppConnectionReq. :type machine_name: str @@ -237,7 +237,7 @@ def machine_name(self, machine_name): def user_name(self): """Gets the user_name of this ListAppConnectionReq. - 登录用户,模糊查询 + 登录用户,模糊查询。 :return: The user_name of this ListAppConnectionReq. :rtype: str @@ -248,7 +248,7 @@ def user_name(self): def user_name(self, user_name): """Sets the user_name of this ListAppConnectionReq. - 登录用户,模糊查询 + 登录用户,模糊查询。 :param user_name: The user_name of this ListAppConnectionReq. :type user_name: str @@ -259,7 +259,7 @@ def user_name(self, user_name): def app_group_name(self): """Gets the app_group_name of this ListAppConnectionReq. - 应用组名称 + 应用组名称。 :return: The app_group_name of this ListAppConnectionReq. :rtype: str @@ -270,7 +270,7 @@ def app_group_name(self): def app_group_name(self, app_group_name): """Sets the app_group_name of this ListAppConnectionReq. - 应用组名称 + 应用组名称。 :param app_group_name: The app_group_name of this ListAppConnectionReq. :type app_group_name: str @@ -281,7 +281,7 @@ def app_group_name(self, app_group_name): def app_group_id(self): """Gets the app_group_id of this ListAppConnectionReq. - 应用组id + 应用组id。 :return: The app_group_id of this ListAppConnectionReq. :rtype: str @@ -292,7 +292,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this ListAppConnectionReq. - 应用组id + 应用组id。 :param app_group_id: The app_group_id of this ListAppConnectionReq. :type app_group_id: str @@ -303,7 +303,7 @@ def app_group_id(self, app_group_id): def app_name(self): """Gets the app_name of this ListAppConnectionReq. - 应用名称,模糊查询 + 应用名称,模糊查询。 :return: The app_name of this ListAppConnectionReq. :rtype: str @@ -314,7 +314,7 @@ def app_name(self): def app_name(self, app_name): """Sets the app_name of this ListAppConnectionReq. - 应用名称,模糊查询 + 应用名称,模糊查询。 :param app_name: The app_name of this ListAppConnectionReq. :type app_name: str @@ -325,7 +325,7 @@ def app_name(self, app_name): def failed_code(self): """Gets the failed_code of this ListAppConnectionReq. - 连接失败状态码 + 连接失败状态码。 :return: The failed_code of this ListAppConnectionReq. :rtype: str @@ -336,7 +336,7 @@ def failed_code(self): def failed_code(self, failed_code): """Sets the failed_code of this ListAppConnectionReq. - 连接失败状态码 + 连接失败状态码。 :param failed_code: The failed_code of this ListAppConnectionReq. :type failed_code: str @@ -347,7 +347,7 @@ def failed_code(self, failed_code): def connection_failure_reason(self): """Gets the connection_failure_reason of this ListAppConnectionReq. - 连接失败原因 + 连接失败原因。 :return: The connection_failure_reason of this ListAppConnectionReq. :rtype: str @@ -358,7 +358,7 @@ def connection_failure_reason(self): def connection_failure_reason(self, connection_failure_reason): """Sets the connection_failure_reason of this ListAppConnectionReq. - 连接失败原因 + 连接失败原因。 :param connection_failure_reason: The connection_failure_reason of this ListAppConnectionReq. :type connection_failure_reason: str @@ -369,7 +369,7 @@ def connection_failure_reason(self, connection_failure_reason): def client_name(self): """Gets the client_name of this ListAppConnectionReq. - 客户端名称 + 客户端名称。 :return: The client_name of this ListAppConnectionReq. :rtype: str @@ -380,7 +380,7 @@ def client_name(self): def client_name(self, client_name): """Sets the client_name of this ListAppConnectionReq. - 客户端名称 + 客户端名称。 :param client_name: The client_name of this ListAppConnectionReq. :type client_name: str @@ -391,7 +391,7 @@ def client_name(self, client_name): def client_version(self): """Gets the client_version of this ListAppConnectionReq. - 客户端版本 + 客户端版本。 :return: The client_version of this ListAppConnectionReq. :rtype: str @@ -402,7 +402,7 @@ def client_version(self): def client_version(self, client_version): """Sets the client_version of this ListAppConnectionReq. - 客户端版本 + 客户端版本。 :param client_version: The client_version of this ListAppConnectionReq. :type client_version: str @@ -413,7 +413,7 @@ def client_version(self, client_version): def client_type(self): """Gets the client_type of this ListAppConnectionReq. - 客户端操作系统类型 + 客户端操作系统类型。 :return: The client_type of this ListAppConnectionReq. :rtype: str @@ -424,7 +424,7 @@ def client_type(self): def client_type(self, client_type): """Sets the client_type of this ListAppConnectionReq. - 客户端操作系统类型 + 客户端操作系统类型。 :param client_type: The client_type of this ListAppConnectionReq. :type client_type: str @@ -435,7 +435,7 @@ def client_type(self, client_type): def agent_version(self): """Gets the agent_version of this ListAppConnectionReq. - aps hda版本 + aps hda版本。 :return: The agent_version of this ListAppConnectionReq. :rtype: str @@ -446,7 +446,7 @@ def agent_version(self): def agent_version(self, agent_version): """Sets the agent_version of this ListAppConnectionReq. - aps hda版本 + aps hda版本。 :param agent_version: The agent_version of this ListAppConnectionReq. :type agent_version: str @@ -457,7 +457,7 @@ def agent_version(self, agent_version): def vm_ip(self): """Gets the vm_ip of this ListAppConnectionReq. - 应用服务器ip + 应用服务器ip。 :return: The vm_ip of this ListAppConnectionReq. :rtype: str @@ -468,7 +468,7 @@ def vm_ip(self): def vm_ip(self, vm_ip): """Sets the vm_ip of this ListAppConnectionReq. - 应用服务器ip + 应用服务器ip。 :param vm_ip: The vm_ip of this ListAppConnectionReq. :type vm_ip: str @@ -479,7 +479,7 @@ def vm_ip(self, vm_ip): def wi_ip(self): """Gets the wi_ip of this ListAppConnectionReq. - 连接IP + 连接IP。 :return: The wi_ip of this ListAppConnectionReq. :rtype: str @@ -490,7 +490,7 @@ def wi_ip(self): def wi_ip(self, wi_ip): """Sets the wi_ip of this ListAppConnectionReq. - 连接IP + 连接IP。 :param wi_ip: The wi_ip of this ListAppConnectionReq. :type wi_ip: str @@ -501,7 +501,7 @@ def wi_ip(self, wi_ip): def tenant_id(self): """Gets the tenant_id of this ListAppConnectionReq. - 租户id + 租户id。 :return: The tenant_id of this ListAppConnectionReq. :rtype: str @@ -512,7 +512,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this ListAppConnectionReq. - 租户id + 租户id。 :param tenant_id: The tenant_id of this ListAppConnectionReq. :type tenant_id: str @@ -523,7 +523,7 @@ def tenant_id(self, tenant_id): def brokering_start_time(self): """Gets the brokering_start_time of this ListAppConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :return: The brokering_start_time of this ListAppConnectionReq. :rtype: datetime @@ -534,7 +534,7 @@ def brokering_start_time(self): def brokering_start_time(self, brokering_start_time): """Sets the brokering_start_time of this ListAppConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :param brokering_start_time: The brokering_start_time of this ListAppConnectionReq. :type brokering_start_time: datetime @@ -545,7 +545,7 @@ def brokering_start_time(self, brokering_start_time): def brokering_end_time(self): """Gets the brokering_end_time of this ListAppConnectionReq. - 登录应用结束时间,格式 2022-10-31 08:07:39 + 登录应用结束时间,格式 2022-10-31 08:07:39。 :return: The brokering_end_time of this ListAppConnectionReq. :rtype: datetime @@ -556,7 +556,7 @@ def brokering_end_time(self): def brokering_end_time(self, brokering_end_time): """Sets the brokering_end_time of this ListAppConnectionReq. - 登录应用结束时间,格式 2022-10-31 08:07:39 + 登录应用结束时间,格式 2022-10-31 08:07:39。 :param brokering_end_time: The brokering_end_time of this ListAppConnectionReq. :type brokering_end_time: datetime @@ -567,7 +567,7 @@ def brokering_end_time(self, brokering_end_time): def virtual_ip(self): """Gets the virtual_ip of this ListAppConnectionReq. - 会话虚拟ip + 会话虚拟ip。 :return: The virtual_ip of this ListAppConnectionReq. :rtype: str @@ -578,7 +578,7 @@ def virtual_ip(self): def virtual_ip(self, virtual_ip): """Sets the virtual_ip of this ListAppConnectionReq. - 会话虚拟ip + 会话虚拟ip。 :param virtual_ip: The virtual_ip of this ListAppConnectionReq. :type virtual_ip: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_request.py index 1dbaed2794..1ed0199e38 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_request.py @@ -33,9 +33,9 @@ def __init__(self, limit=None, offset=None, body=None): The model defined in huaweicloud sdk - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int :param body: Body of the ListAppConnectionRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.ListAppConnectionReq` @@ -59,7 +59,7 @@ def __init__(self, limit=None, offset=None, body=None): def limit(self): """Gets the limit of this ListAppConnectionRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListAppConnectionRequest. :rtype: int @@ -70,7 +70,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListAppConnectionRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListAppConnectionRequest. :type limit: int @@ -81,7 +81,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListAppConnectionRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListAppConnectionRequest. :rtype: int @@ -92,7 +92,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListAppConnectionRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListAppConnectionRequest. :type offset: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py index f8f8ea0d71..dc5876ed56 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 应用使用记录列表 + :param items: 应用使用记录列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppConnectionInfo`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListAppConnectionResponse. - 总数 + 总数。 :return: The count of this ListAppConnectionResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppConnectionResponse. - 总数 + 总数。 :param count: The count of this ListAppConnectionResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListAppConnectionResponse. - 应用使用记录列表 + 应用使用记录列表。 :return: The items of this ListAppConnectionResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AppConnectionInfo`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListAppConnectionResponse. - 应用使用记录列表 + 应用使用记录列表。 :param items: The items of this ListAppConnectionResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppConnectionInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_request.py index db34970dc4..62006eb531 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_request.py @@ -37,15 +37,15 @@ def __init__(self, limit=None, offset=None, app_group_id=None, account=None, acc The model defined in huaweicloud sdk - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str :param account: 应用授权的用户(组)名称,精确查询。 :type account: str - :param account_type: 应用授权的用户(组)类型 * 'USER' - 用户 * 'USER_GROUP' - 用户组 + :param account_type: 应用授权的用户(组)类型: * 'USER' - 用户 * 'USER_GROUP' - 用户组 :type account_type: str """ @@ -73,7 +73,7 @@ def __init__(self, limit=None, offset=None, app_group_id=None, account=None, acc def limit(self): """Gets the limit of this ListAppGroupAuthorizationRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListAppGroupAuthorizationRequest. :rtype: int @@ -84,7 +84,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListAppGroupAuthorizationRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListAppGroupAuthorizationRequest. :type limit: int @@ -95,7 +95,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListAppGroupAuthorizationRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListAppGroupAuthorizationRequest. :rtype: int @@ -106,7 +106,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListAppGroupAuthorizationRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListAppGroupAuthorizationRequest. :type offset: int @@ -117,7 +117,7 @@ def offset(self, offset): def app_group_id(self): """Gets the app_group_id of this ListAppGroupAuthorizationRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this ListAppGroupAuthorizationRequest. :rtype: str @@ -128,7 +128,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this ListAppGroupAuthorizationRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this ListAppGroupAuthorizationRequest. :type app_group_id: str @@ -161,7 +161,7 @@ def account(self, account): def account_type(self): """Gets the account_type of this ListAppGroupAuthorizationRequest. - 应用授权的用户(组)类型 * 'USER' - 用户 * 'USER_GROUP' - 用户组 + 应用授权的用户(组)类型: * 'USER' - 用户 * 'USER_GROUP' - 用户组 :return: The account_type of this ListAppGroupAuthorizationRequest. :rtype: str @@ -172,7 +172,7 @@ def account_type(self): def account_type(self, account_type): """Sets the account_type of this ListAppGroupAuthorizationRequest. - 应用授权的用户(组)类型 * 'USER' - 用户 * 'USER_GROUP' - 用户组 + 应用授权的用户(组)类型: * 'USER' - 用户 * 'USER_GROUP' - 用户组 :param account_type: The account_type of this ListAppGroupAuthorizationRequest. :type account_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py index e7175de831..ed3eade574 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, authorizations=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param authorizations: 授权信息 + :param authorizations: 授权信息。 :type authorizations: list[:class:`huaweicloudsdkworkspaceapp.v1.Authorization`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, authorizations=None): def count(self): """Gets the count of this ListAppGroupAuthorizationResponse. - 总数 + 总数。 :return: The count of this ListAppGroupAuthorizationResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppGroupAuthorizationResponse. - 总数 + 总数。 :param count: The count of this ListAppGroupAuthorizationResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def authorizations(self): """Gets the authorizations of this ListAppGroupAuthorizationResponse. - 授权信息 + 授权信息。 :return: The authorizations of this ListAppGroupAuthorizationResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.Authorization`] @@ -86,7 +86,7 @@ def authorizations(self): def authorizations(self, authorizations): """Sets the authorizations of this ListAppGroupAuthorizationResponse. - 授权信息 + 授权信息。 :param authorizations: The authorizations of this ListAppGroupAuthorizationResponse. :type authorizations: list[:class:`huaweicloudsdkworkspaceapp.v1.Authorization`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_request.py index 1cf18e1c8d..946322e8a9 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_request.py @@ -41,19 +41,19 @@ def __init__(self, limit=None, offset=None, app_server_group_id=None, app_group_ The model defined in huaweicloud sdk - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str :param name: 应用组名称 :type name: str - :param authorization_type: 授权类型(APP、APP_GROUP) + :param authorization_type: 授权类型: * `APP` - 应用 * `APP_GROUP` - 应用组 :type authorization_type: str - :param app_type: 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + :param app_type: 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :type app_type: str """ @@ -87,7 +87,7 @@ def __init__(self, limit=None, offset=None, app_server_group_id=None, app_group_ def limit(self): """Gets the limit of this ListAppGroupRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListAppGroupRequest. :rtype: int @@ -98,7 +98,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListAppGroupRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListAppGroupRequest. :type limit: int @@ -109,7 +109,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListAppGroupRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListAppGroupRequest. :rtype: int @@ -120,7 +120,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListAppGroupRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListAppGroupRequest. :type offset: int @@ -131,7 +131,7 @@ def offset(self, offset): def app_server_group_id(self): """Gets the app_server_group_id of this ListAppGroupRequest. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this ListAppGroupRequest. :rtype: str @@ -142,7 +142,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this ListAppGroupRequest. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this ListAppGroupRequest. :type app_server_group_id: str @@ -153,7 +153,7 @@ def app_server_group_id(self, app_server_group_id): def app_group_id(self): """Gets the app_group_id of this ListAppGroupRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this ListAppGroupRequest. :rtype: str @@ -164,7 +164,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this ListAppGroupRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this ListAppGroupRequest. :type app_group_id: str @@ -197,7 +197,7 @@ def name(self, name): def authorization_type(self): """Gets the authorization_type of this ListAppGroupRequest. - 授权类型(APP、APP_GROUP) + 授权类型: * `APP` - 应用 * `APP_GROUP` - 应用组 :return: The authorization_type of this ListAppGroupRequest. :rtype: str @@ -208,7 +208,7 @@ def authorization_type(self): def authorization_type(self, authorization_type): """Sets the authorization_type of this ListAppGroupRequest. - 授权类型(APP、APP_GROUP) + 授权类型: * `APP` - 应用 * `APP_GROUP` - 应用组 :param authorization_type: The authorization_type of this ListAppGroupRequest. :type authorization_type: str @@ -219,7 +219,7 @@ def authorization_type(self, authorization_type): def app_type(self): """Gets the app_type of this ListAppGroupRequest. - 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :return: The app_type of this ListAppGroupRequest. :rtype: str @@ -230,7 +230,7 @@ def app_type(self): def app_type(self, app_type): """Sets the app_type of this ListAppGroupRequest. - 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :param app_type: The app_type of this ListAppGroupRequest. :type app_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py index bbfcbe8598..9b00039183 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 应用组列表 + :param items: 应用组列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppGroup`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListAppGroupResponse. - 总数 + 总数。 :return: The count of this ListAppGroupResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppGroupResponse. - 总数 + 总数。 :param count: The count of this ListAppGroupResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListAppGroupResponse. - 应用组列表 + 应用组列表。 :return: The items of this ListAppGroupResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AppGroup`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListAppGroupResponse. - 应用组列表 + 应用组列表。 :param items: The items of this ListAppGroupResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppGroup`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_availability_zone_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_availability_zone_response.py index da896546d5..ad7fcfc344 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_availability_zone_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_availability_zone_response.py @@ -34,7 +34,7 @@ def __init__(self, availability_zones=None, total_count=None): :param availability_zones: 云应用支持的可用分区列表。 :type availability_zones: list[:class:`huaweicloudsdkworkspaceapp.v1.AvailabilityZoneInfo`] - :param total_count: 总数 + :param total_count: 总数。 :type total_count: int """ @@ -75,7 +75,7 @@ def availability_zones(self, availability_zones): def total_count(self): """Gets the total_count of this ListAvailabilityZoneResponse. - 总数 + 总数。 :return: The total_count of this ListAvailabilityZoneResponse. :rtype: int @@ -86,7 +86,7 @@ def total_count(self): def total_count(self, total_count): """Sets the total_count of this ListAvailabilityZoneResponse. - 总数 + 总数。 :param total_count: The total_count of this ListAvailabilityZoneResponse. :type total_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_request.py index 3039e9aeca..fa40a9c4c0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_request.py @@ -35,13 +35,13 @@ def __init__(self, offset=None, limit=None, storage_id=None, name=None): The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str - :param name: 查询名称,模糊匹配 + :param name: 查询名称,模糊匹配。 :type name: str """ @@ -66,7 +66,7 @@ def __init__(self, offset=None, limit=None, storage_id=None, name=None): def offset(self): """Gets the offset of this ListPersistentStorageRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListPersistentStorageRequest. :rtype: int @@ -77,7 +77,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListPersistentStorageRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListPersistentStorageRequest. :type offset: int @@ -88,7 +88,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListPersistentStorageRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListPersistentStorageRequest. :rtype: int @@ -99,7 +99,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListPersistentStorageRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListPersistentStorageRequest. :type limit: int @@ -110,7 +110,7 @@ def limit(self, limit): def storage_id(self): """Gets the storage_id of this ListPersistentStorageRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this ListPersistentStorageRequest. :rtype: str @@ -121,7 +121,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this ListPersistentStorageRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this ListPersistentStorageRequest. :type storage_id: str @@ -132,7 +132,7 @@ def storage_id(self, storage_id): def name(self): """Gets the name of this ListPersistentStorageRequest. - 查询名称,模糊匹配 + 查询名称,模糊匹配。 :return: The name of this ListPersistentStorageRequest. :rtype: str @@ -143,7 +143,7 @@ def name(self): def name(self, name): """Sets the name of this ListPersistentStorageRequest. - 查询名称,模糊匹配 + 查询名称,模糊匹配。 :param name: The name of this ListPersistentStorageRequest. :type name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py index 366a8cd682..b7eee4385b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 存储列表 + :param items: 存储列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorage`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPersistentStorageResponse. - 总数 + 总数。 :return: The count of this ListPersistentStorageResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPersistentStorageResponse. - 总数 + 总数。 :param count: The count of this ListPersistentStorageResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListPersistentStorageResponse. - 存储列表 + 存储列表。 :return: The items of this ListPersistentStorageResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorage`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListPersistentStorageResponse. - 存储列表 + 存储列表。 :param items: The items of this ListPersistentStorageResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorage`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_request.py index aec53e6377..06927d1db6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_request.py @@ -35,9 +35,9 @@ def __init__(self, offset=None, limit=None, policy_group_name=None, policy_group The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 查询的数量,值区间[1-100] + :param limit: 查询的数量,值区间[1-100]。 :type limit: int :param policy_group_name: 根据策略组名字过滤结果。 :type policy_group_name: str @@ -66,7 +66,7 @@ def __init__(self, offset=None, limit=None, policy_group_name=None, policy_group def offset(self): """Gets the offset of this ListPolicyGroupRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListPolicyGroupRequest. :rtype: int @@ -77,7 +77,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListPolicyGroupRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListPolicyGroupRequest. :type offset: int @@ -88,7 +88,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListPolicyGroupRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :return: The limit of this ListPolicyGroupRequest. :rtype: int @@ -99,7 +99,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListPolicyGroupRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :param limit: The limit of this ListPolicyGroupRequest. :type limit: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py index baf890421a..97d1423556 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值 + :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPolicyGroupResponse. - 总数 + 总数。 :return: The count of this ListPolicyGroupResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPolicyGroupResponse. - 总数 + 总数。 :param count: The count of this ListPolicyGroupResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListPolicyGroupResponse. - 策略组列表,返回列表条目数量上限为分页的最大上限值 + 策略组列表,返回列表条目数量上限为分页的最大上限值。 :return: The items of this ListPolicyGroupResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListPolicyGroupResponse. - 策略组列表,返回列表条目数量上限为分页的最大上限值 + 策略组列表,返回列表条目数量上限为分页的最大上限值。 :param items: The items of this ListPolicyGroupResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_request.py index 02bc6d39ad..977b2bf362 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_request.py @@ -33,9 +33,9 @@ def __init__(self, offset=None, limit=None, policy_group_name=None): The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 查询的数量,值区间[1-100] + :param limit: 查询的数量,值区间[1-100]。 :type limit: int :param policy_group_name: 根据策略模板名字过滤结果。 :type policy_group_name: str @@ -59,7 +59,7 @@ def __init__(self, offset=None, limit=None, policy_group_name=None): def offset(self): """Gets the offset of this ListPolicyTemplateRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListPolicyTemplateRequest. :rtype: int @@ -70,7 +70,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListPolicyTemplateRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListPolicyTemplateRequest. :type offset: int @@ -81,7 +81,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListPolicyTemplateRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :return: The limit of this ListPolicyTemplateRequest. :rtype: int @@ -92,7 +92,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListPolicyTemplateRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :param limit: The limit of this ListPolicyTemplateRequest. :type limit: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py index efcd646274..7e4ca7ee61 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值 + :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPolicyTemplateResponse. - 总数 + 总数。 :return: The count of this ListPolicyTemplateResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPolicyTemplateResponse. - 总数 + 总数。 :param count: The count of this ListPolicyTemplateResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListPolicyTemplateResponse. - 策略组列表,返回列表条目数量上限为分页的最大上限值 + 策略组列表,返回列表条目数量上限为分页的最大上限值。 :return: The items of this ListPolicyTemplateResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListPolicyTemplateResponse. - 策略组列表,返回列表条目数量上限为分页的最大上限值 + 策略组列表,返回列表条目数量上限为分页的最大上限值。 :param items: The items of this ListPolicyTemplateResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py index a518b3aa03..35eab17af2 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py @@ -43,13 +43,13 @@ def __init__(self, product_id=None, availability_zone=None, os_type=None, charge :type product_id: str :param availability_zone: 可用分区,如果不为空,将按可用分区进行过滤后返回。 - 获取方式详见可用区管理ListAvailabilityZone:\"GET /v1/{project_id}/availability-zone\"。 :type availability_zone: str - :param os_type: 产品套餐的操作系统类型,当前支持:Windows - Linux - Windows - Other + :param os_type: 产品套餐的操作系统类型,当前支持:Windows。 - Linux - Windows - Other :type os_type: str :param charge_mode: 套餐标识。 - 1:表示包周期。 - 0:表示按需。 :type charge_mode: str :param architecture: 架构类型,当前支持:x86。 - x86 - arm :type architecture: str - :param package_type: 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + :param package_type: 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :type package_type: str """ @@ -124,7 +124,7 @@ def availability_zone(self, availability_zone): def os_type(self): """Gets the os_type of this ListProductRequest. - 产品套餐的操作系统类型,当前支持:Windows - Linux - Windows - Other + 产品套餐的操作系统类型,当前支持:Windows。 - Linux - Windows - Other :return: The os_type of this ListProductRequest. :rtype: str @@ -135,7 +135,7 @@ def os_type(self): def os_type(self, os_type): """Sets the os_type of this ListProductRequest. - 产品套餐的操作系统类型,当前支持:Windows - Linux - Windows - Other + 产品套餐的操作系统类型,当前支持:Windows。 - Linux - Windows - Other :param os_type: The os_type of this ListProductRequest. :type os_type: str @@ -190,7 +190,7 @@ def architecture(self, architecture): def package_type(self): """Gets the package_type of this ListProductRequest. - 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :return: The package_type of this ListProductRequest. :rtype: str @@ -201,7 +201,7 @@ def package_type(self): def package_type(self, package_type): """Sets the package_type of this ListProductRequest. - 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :param package_type: The package_type of this ListProductRequest. :type package_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_response.py index eb33f160b1..bf8629b8b5 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_response.py @@ -38,7 +38,7 @@ def __init__(self, availability_zone=None, os_type=None, products=None): :type availability_zone: str :param os_type: 系统类型,当前仅支持Windows。 * `Linux` - * `Windows` - * `Other` - :type os_type: str - :param products: 产品列表 + :param products: 产品列表。 :type products: list[:class:`huaweicloudsdkworkspaceapp.v1.ProductInfo`] """ @@ -104,7 +104,7 @@ def os_type(self, os_type): def products(self): """Gets the products of this ListProductResponse. - 产品列表 + 产品列表。 :return: The products of this ListProductResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ProductInfo`] @@ -115,7 +115,7 @@ def products(self): def products(self, products): """Sets the products of this ListProductResponse. - 产品列表 + 产品列表。 :param products: The products of this ListProductResponse. :type products: list[:class:`huaweicloudsdkworkspaceapp.v1.ProductInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_request.py index aae7b6b686..b2db5262bd 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_request.py @@ -39,17 +39,17 @@ def __init__(self, app_group_id=None, limit=None, offset=None, name=None, state= The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param name: 应用名称 + :param name: 应用名称。 :type name: str - :param state: 应用状态正常、禁用(NORMAL、FORBIDDEN) + :param state: 应用状态: * `NORMAL` - 正常状态。 * `FORBIDDEN` - 禁用状态。 :type state: str - :param app_id: 应用ID + :param app_id: 应用ID。 :type app_id: str """ @@ -79,7 +79,7 @@ def __init__(self, app_group_id=None, limit=None, offset=None, name=None, state= def app_group_id(self): """Gets the app_group_id of this ListPublishedAppRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this ListPublishedAppRequest. :rtype: str @@ -90,7 +90,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this ListPublishedAppRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this ListPublishedAppRequest. :type app_group_id: str @@ -101,7 +101,7 @@ def app_group_id(self, app_group_id): def limit(self): """Gets the limit of this ListPublishedAppRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListPublishedAppRequest. :rtype: int @@ -112,7 +112,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListPublishedAppRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListPublishedAppRequest. :type limit: int @@ -123,7 +123,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListPublishedAppRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListPublishedAppRequest. :rtype: int @@ -134,7 +134,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListPublishedAppRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListPublishedAppRequest. :type offset: int @@ -145,7 +145,7 @@ def offset(self, offset): def name(self): """Gets the name of this ListPublishedAppRequest. - 应用名称 + 应用名称。 :return: The name of this ListPublishedAppRequest. :rtype: str @@ -156,7 +156,7 @@ def name(self): def name(self, name): """Sets the name of this ListPublishedAppRequest. - 应用名称 + 应用名称。 :param name: The name of this ListPublishedAppRequest. :type name: str @@ -167,7 +167,7 @@ def name(self, name): def state(self): """Gets the state of this ListPublishedAppRequest. - 应用状态正常、禁用(NORMAL、FORBIDDEN) + 应用状态: * `NORMAL` - 正常状态。 * `FORBIDDEN` - 禁用状态。 :return: The state of this ListPublishedAppRequest. :rtype: str @@ -178,7 +178,7 @@ def state(self): def state(self, state): """Sets the state of this ListPublishedAppRequest. - 应用状态正常、禁用(NORMAL、FORBIDDEN) + 应用状态: * `NORMAL` - 正常状态。 * `FORBIDDEN` - 禁用状态。 :param state: The state of this ListPublishedAppRequest. :type state: str @@ -189,7 +189,7 @@ def state(self, state): def app_id(self): """Gets the app_id of this ListPublishedAppRequest. - 应用ID + 应用ID。 :return: The app_id of this ListPublishedAppRequest. :rtype: str @@ -200,7 +200,7 @@ def app_id(self): def app_id(self, app_id): """Sets the app_id of this ListPublishedAppRequest. - 应用ID + 应用ID。 :param app_id: The app_id of this ListPublishedAppRequest. :type app_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py index 05bf63d023..58cabc4885 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int :param items: 查发布的应用列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.App`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPublishedAppResponse. - 总数 + 总数。 :return: The count of this ListPublishedAppResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPublishedAppResponse. - 总数 + 总数。 :param count: The count of this ListPublishedAppResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py index 73c401a617..d1bbe03dbc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py @@ -37,15 +37,15 @@ def __init__(self, offset=None, limit=None, server_group_name=None, server_group The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 查询的数量,值区间[1-100] + :param limit: 查询的数量,值区间[1-100]。 :type limit: int - :param server_group_name: 服务器组名称 + :param server_group_name: 服务器组名称。 :type server_group_name: str - :param server_group_id: 服务器组唯一标识 + :param server_group_id: 服务器组唯一标识。 :type server_group_id: str - :param app_type: 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + :param app_type: 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :type app_type: str """ @@ -73,7 +73,7 @@ def __init__(self, offset=None, limit=None, server_group_name=None, server_group def offset(self): """Gets the offset of this ListServerGroupsRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListServerGroupsRequest. :rtype: int @@ -84,7 +84,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListServerGroupsRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListServerGroupsRequest. :type offset: int @@ -95,7 +95,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListServerGroupsRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :return: The limit of this ListServerGroupsRequest. :rtype: int @@ -106,7 +106,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListServerGroupsRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :param limit: The limit of this ListServerGroupsRequest. :type limit: int @@ -117,7 +117,7 @@ def limit(self, limit): def server_group_name(self): """Gets the server_group_name of this ListServerGroupsRequest. - 服务器组名称 + 服务器组名称。 :return: The server_group_name of this ListServerGroupsRequest. :rtype: str @@ -128,7 +128,7 @@ def server_group_name(self): def server_group_name(self, server_group_name): """Sets the server_group_name of this ListServerGroupsRequest. - 服务器组名称 + 服务器组名称。 :param server_group_name: The server_group_name of this ListServerGroupsRequest. :type server_group_name: str @@ -139,7 +139,7 @@ def server_group_name(self, server_group_name): def server_group_id(self): """Gets the server_group_id of this ListServerGroupsRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :return: The server_group_id of this ListServerGroupsRequest. :rtype: str @@ -150,7 +150,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this ListServerGroupsRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :param server_group_id: The server_group_id of this ListServerGroupsRequest. :type server_group_id: str @@ -161,7 +161,7 @@ def server_group_id(self, server_group_id): def app_type(self): """Gets the app_type of this ListServerGroupsRequest. - 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :return: The app_type of this ListServerGroupsRequest. :rtype: str @@ -172,7 +172,7 @@ def app_type(self): def app_type(self, app_type): """Sets the app_type of this ListServerGroupsRequest. - 应用组类型(SESSION_DESKTOP_APP、COMMON_APP) + 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :param app_type: The app_type of this ListServerGroupsRequest. :type app_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py index 850df32058..c2242a86f5 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 服务器组列表,返回列表条目数量上限为分页的最大上限值 + :param items: 服务器组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerGroup`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListServerGroupsResponse. - 总数 + 总数。 :return: The count of this ListServerGroupsResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListServerGroupsResponse. - 总数 + 总数。 :param count: The count of this ListServerGroupsResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListServerGroupsResponse. - 服务器组列表,返回列表条目数量上限为分页的最大上限值 + 服务器组列表,返回列表条目数量上限为分页的最大上限值。 :return: The items of this ListServerGroupsResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerGroup`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListServerGroupsResponse. - 服务器组列表,返回列表条目数量上限为分页的最大上限值 + 服务器组列表,返回列表条目数量上限为分页的最大上限值。 :param items: The items of this ListServerGroupsResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerGroup`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_request.py index 5b929da06f..e40c60f3a0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_request.py @@ -41,19 +41,19 @@ def __init__(self, offset=None, limit=None, server_group_id=None, server_name=No The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 查询的数量,值区间[1-100] + :param limit: 查询的数量,值区间[1-100]。 :type limit: int - :param server_group_id: 服务器组唯一标识 + :param server_group_id: 服务器组唯一标识。 :type server_group_id: str - :param server_name: 服务器名称,支持部分匹配 + :param server_name: 服务器名称,支持部分匹配。 :type server_name: str - :param server_id: 服务器唯一标识 + :param server_id: 服务器唯一标识。 :type server_id: str - :param maintain_status: 服务器维护状态 - true : 维护态的实例 - false: 非维护态的实例 + :param maintain_status: 服务器维护状态: - true : 维护态的实例。 - false: 非维护态的实例。 :type maintain_status: str - :param scaling_auto_create: 是否是弹性创建 true : 通过弹性伸缩创建 false: 不是通过弹性伸缩创建 + :param scaling_auto_create: 是否是弹性创建: true : 通过弹性伸缩创建。 false: 不是通过弹性伸缩创建。 :type scaling_auto_create: str """ @@ -87,7 +87,7 @@ def __init__(self, offset=None, limit=None, server_group_id=None, server_name=No def offset(self): """Gets the offset of this ListServersRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListServersRequest. :rtype: int @@ -98,7 +98,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListServersRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListServersRequest. :type offset: int @@ -109,7 +109,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListServersRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :return: The limit of this ListServersRequest. :rtype: int @@ -120,7 +120,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListServersRequest. - 查询的数量,值区间[1-100] + 查询的数量,值区间[1-100]。 :param limit: The limit of this ListServersRequest. :type limit: int @@ -131,7 +131,7 @@ def limit(self, limit): def server_group_id(self): """Gets the server_group_id of this ListServersRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :return: The server_group_id of this ListServersRequest. :rtype: str @@ -142,7 +142,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this ListServersRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :param server_group_id: The server_group_id of this ListServersRequest. :type server_group_id: str @@ -153,7 +153,7 @@ def server_group_id(self, server_group_id): def server_name(self): """Gets the server_name of this ListServersRequest. - 服务器名称,支持部分匹配 + 服务器名称,支持部分匹配。 :return: The server_name of this ListServersRequest. :rtype: str @@ -164,7 +164,7 @@ def server_name(self): def server_name(self, server_name): """Sets the server_name of this ListServersRequest. - 服务器名称,支持部分匹配 + 服务器名称,支持部分匹配。 :param server_name: The server_name of this ListServersRequest. :type server_name: str @@ -175,7 +175,7 @@ def server_name(self, server_name): def server_id(self): """Gets the server_id of this ListServersRequest. - 服务器唯一标识 + 服务器唯一标识。 :return: The server_id of this ListServersRequest. :rtype: str @@ -186,7 +186,7 @@ def server_id(self): def server_id(self, server_id): """Sets the server_id of this ListServersRequest. - 服务器唯一标识 + 服务器唯一标识。 :param server_id: The server_id of this ListServersRequest. :type server_id: str @@ -197,7 +197,7 @@ def server_id(self, server_id): def maintain_status(self): """Gets the maintain_status of this ListServersRequest. - 服务器维护状态 - true : 维护态的实例 - false: 非维护态的实例 + 服务器维护状态: - true : 维护态的实例。 - false: 非维护态的实例。 :return: The maintain_status of this ListServersRequest. :rtype: str @@ -208,7 +208,7 @@ def maintain_status(self): def maintain_status(self, maintain_status): """Sets the maintain_status of this ListServersRequest. - 服务器维护状态 - true : 维护态的实例 - false: 非维护态的实例 + 服务器维护状态: - true : 维护态的实例。 - false: 非维护态的实例。 :param maintain_status: The maintain_status of this ListServersRequest. :type maintain_status: str @@ -219,7 +219,7 @@ def maintain_status(self, maintain_status): def scaling_auto_create(self): """Gets the scaling_auto_create of this ListServersRequest. - 是否是弹性创建 true : 通过弹性伸缩创建 false: 不是通过弹性伸缩创建 + 是否是弹性创建: true : 通过弹性伸缩创建。 false: 不是通过弹性伸缩创建。 :return: The scaling_auto_create of this ListServersRequest. :rtype: str @@ -230,7 +230,7 @@ def scaling_auto_create(self): def scaling_auto_create(self, scaling_auto_create): """Sets the scaling_auto_create of this ListServersRequest. - 是否是弹性创建 true : 通过弹性伸缩创建 false: 不是通过弹性伸缩创建 + 是否是弹性创建: true : 通过弹性伸缩创建。 false: 不是通过弹性伸缩创建。 :param scaling_auto_create: The scaling_auto_create of this ListServersRequest. :type scaling_auto_create: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py index 095911ec1c..16cd40e4f0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 服务器列表返回列表条目数量上限为分页的最大上限值 + :param items: 服务器列表返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppServer`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListServersResponse. - 总数 + 总数。 :return: The count of this ListServersResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListServersResponse. - 总数 + 总数。 :param count: The count of this ListServersResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListServersResponse. - 服务器列表返回列表条目数量上限为分页的最大上限值 + 服务器列表返回列表条目数量上限为分页的最大上限值。 :return: The items of this ListServersResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AppServer`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListServersResponse. - 服务器列表返回列表条目数量上限为分页的最大上限值 + 服务器列表返回列表条目数量上限为分页的最大上限值。 :param items: The items of this ListServersResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppServer`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_request.py index 4419fad9f0..57daff5ad9 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_request.py @@ -29,7 +29,7 @@ def __init__(self, user_name=None): The model defined in huaweicloud sdk - :param user_name: 用户名 + :param user_name: 用户名。 :type user_name: str """ @@ -44,7 +44,7 @@ def __init__(self, user_name=None): def user_name(self): """Gets the user_name of this ListSessionByUserNameRequest. - 用户名 + 用户名。 :return: The user_name of this ListSessionByUserNameRequest. :rtype: str @@ -55,7 +55,7 @@ def user_name(self): def user_name(self, user_name): """Sets the user_name of this ListSessionByUserNameRequest. - 用户名 + 用户名。 :param user_name: The user_name of this ListSessionByUserNameRequest. :type user_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_response.py index 92781764e6..9245e1c37b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_by_user_name_response.py @@ -30,7 +30,7 @@ def __init__(self, session_info_list=None): The model defined in huaweicloud sdk - :param session_info_list: 会话信息列表 + :param session_info_list: 会话信息列表。 :type session_info_list: list[:class:`huaweicloudsdkworkspaceapp.v1.AppSession`] """ @@ -46,7 +46,7 @@ def __init__(self, session_info_list=None): def session_info_list(self): """Gets the session_info_list of this ListSessionByUserNameResponse. - 会话信息列表 + 会话信息列表。 :return: The session_info_list of this ListSessionByUserNameResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AppSession`] @@ -57,7 +57,7 @@ def session_info_list(self): def session_info_list(self, session_info_list): """Sets the session_info_list of this ListSessionByUserNameResponse. - 会话信息列表 + 会话信息列表。 :param session_info_list: The session_info_list of this ListSessionByUserNameResponse. :type session_info_list: list[:class:`huaweicloudsdkworkspaceapp.v1.AppSession`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_type_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_type_response.py index f4a156551a..6fc2ed3567 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_type_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_session_type_response.py @@ -30,7 +30,7 @@ def __init__(self, session_types=None): The model defined in huaweicloud sdk - :param session_types: 会话列表 + :param session_types: 会话列表。 :type session_types: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionTypeEntity`] """ @@ -46,7 +46,7 @@ def __init__(self, session_types=None): def session_types(self): """Gets the session_types of this ListSessionTypeResponse. - 会话列表 + 会话列表。 :return: The session_types of this ListSessionTypeResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionTypeEntity`] @@ -57,7 +57,7 @@ def session_types(self): def session_types(self, session_types): """Sets the session_types of this ListSessionTypeResponse. - 会话列表 + 会话列表。 :param session_types: The session_types of this ListSessionTypeResponse. :type session_types: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionTypeEntity`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_request.py index b3c72b3bbd..2c01fc3780 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_request.py @@ -37,15 +37,15 @@ def __init__(self, offset=None, limit=None, storage_id=None, storage_claim_id=No The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param path: 查询名称需满足如下规则: 1. 可见字符+空格 2. 长度0~128个字符 + :param path: 查询名称需满足如下规则: 1. 可见字符+空格。 2. 长度0~128个字符。 :type path: str """ @@ -72,7 +72,7 @@ def __init__(self, offset=None, limit=None, storage_id=None, storage_claim_id=No def offset(self): """Gets the offset of this ListShareFolderRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListShareFolderRequest. :rtype: int @@ -83,7 +83,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListShareFolderRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListShareFolderRequest. :type offset: int @@ -94,7 +94,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListShareFolderRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListShareFolderRequest. :rtype: int @@ -105,7 +105,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListShareFolderRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListShareFolderRequest. :type limit: int @@ -116,7 +116,7 @@ def limit(self, limit): def storage_id(self): """Gets the storage_id of this ListShareFolderRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this ListShareFolderRequest. :rtype: str @@ -127,7 +127,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this ListShareFolderRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this ListShareFolderRequest. :type storage_id: str @@ -138,7 +138,7 @@ def storage_id(self, storage_id): def storage_claim_id(self): """Gets the storage_claim_id of this ListShareFolderRequest. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this ListShareFolderRequest. :rtype: str @@ -149,7 +149,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this ListShareFolderRequest. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this ListShareFolderRequest. :type storage_claim_id: str @@ -160,7 +160,7 @@ def storage_claim_id(self, storage_claim_id): def path(self): """Gets the path of this ListShareFolderRequest. - 查询名称需满足如下规则: 1. 可见字符+空格 2. 长度0~128个字符 + 查询名称需满足如下规则: 1. 可见字符+空格。 2. 长度0~128个字符。 :return: The path of this ListShareFolderRequest. :rtype: str @@ -171,7 +171,7 @@ def path(self): def path(self, path): """Sets the path of this ListShareFolderRequest. - 查询名称需满足如下规则: 1. 可见字符+空格 2. 长度0~128个字符 + 查询名称需满足如下规则: 1. 可见字符+空格。 2. 长度0~128个字符。 :param path: The path of this ListShareFolderRequest. :type path: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py index 0c1ef0a9bc..6c3d783111 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 存储声明 + :param items: 存储声明。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.SharePersistentStorageClaim`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListShareFolderResponse. - 总数 + 总数。 :return: The count of this ListShareFolderResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListShareFolderResponse. - 总数 + 总数。 :param count: The count of this ListShareFolderResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListShareFolderResponse. - 存储声明 + 存储声明。 :return: The items of this ListShareFolderResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.SharePersistentStorageClaim`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListShareFolderResponse. - 存储声明 + 存储声明。 :param items: The items of this ListShareFolderResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.SharePersistentStorageClaim`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_request.py index d02f0007f3..8b00333629 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_request.py @@ -41,19 +41,19 @@ def __init__(self, offset=None, limit=None, storage_id=None, claim_mode=None, st The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str - :param claim_mode: 存储声明的类型,claim_mode为share时,storage_claim_id必填 * `USER` - 用户目录 * `SHARE` - 共享目录 + :param claim_mode: 存储声明的类型,claim_mode为share时,storage_claim_id必填。 * `USER` - 用户目录 * `SHARE` - 共享目录 :type claim_mode: str - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param attach: 成员 + :param attach: 成员。 :type attach: str - :param attach_type: 关联对象类型 * `USER` - 用户 * `USER_GROUP` - 用户组 + :param attach_type: 关联对象类型: * `USER` - 用户 * `USER_GROUP` - 用户组 :type attach_type: str """ @@ -85,7 +85,7 @@ def __init__(self, offset=None, limit=None, storage_id=None, claim_mode=None, st def offset(self): """Gets the offset of this ListStorageAssignmentRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListStorageAssignmentRequest. :rtype: int @@ -96,7 +96,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListStorageAssignmentRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListStorageAssignmentRequest. :type offset: int @@ -107,7 +107,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListStorageAssignmentRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListStorageAssignmentRequest. :rtype: int @@ -118,7 +118,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListStorageAssignmentRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListStorageAssignmentRequest. :type limit: int @@ -129,7 +129,7 @@ def limit(self, limit): def storage_id(self): """Gets the storage_id of this ListStorageAssignmentRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this ListStorageAssignmentRequest. :rtype: str @@ -140,7 +140,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this ListStorageAssignmentRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this ListStorageAssignmentRequest. :type storage_id: str @@ -151,7 +151,7 @@ def storage_id(self, storage_id): def claim_mode(self): """Gets the claim_mode of this ListStorageAssignmentRequest. - 存储声明的类型,claim_mode为share时,storage_claim_id必填 * `USER` - 用户目录 * `SHARE` - 共享目录 + 存储声明的类型,claim_mode为share时,storage_claim_id必填。 * `USER` - 用户目录 * `SHARE` - 共享目录 :return: The claim_mode of this ListStorageAssignmentRequest. :rtype: str @@ -162,7 +162,7 @@ def claim_mode(self): def claim_mode(self, claim_mode): """Sets the claim_mode of this ListStorageAssignmentRequest. - 存储声明的类型,claim_mode为share时,storage_claim_id必填 * `USER` - 用户目录 * `SHARE` - 共享目录 + 存储声明的类型,claim_mode为share时,storage_claim_id必填。 * `USER` - 用户目录 * `SHARE` - 共享目录 :param claim_mode: The claim_mode of this ListStorageAssignmentRequest. :type claim_mode: str @@ -173,7 +173,7 @@ def claim_mode(self, claim_mode): def storage_claim_id(self): """Gets the storage_claim_id of this ListStorageAssignmentRequest. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this ListStorageAssignmentRequest. :rtype: str @@ -184,7 +184,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this ListStorageAssignmentRequest. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this ListStorageAssignmentRequest. :type storage_claim_id: str @@ -195,7 +195,7 @@ def storage_claim_id(self, storage_claim_id): def attach(self): """Gets the attach of this ListStorageAssignmentRequest. - 成员 + 成员。 :return: The attach of this ListStorageAssignmentRequest. :rtype: str @@ -206,7 +206,7 @@ def attach(self): def attach(self, attach): """Sets the attach of this ListStorageAssignmentRequest. - 成员 + 成员。 :param attach: The attach of this ListStorageAssignmentRequest. :type attach: str @@ -217,7 +217,7 @@ def attach(self, attach): def attach_type(self): """Gets the attach_type of this ListStorageAssignmentRequest. - 关联对象类型 * `USER` - 用户 * `USER_GROUP` - 用户组 + 关联对象类型: * `USER` - 用户 * `USER_GROUP` - 用户组 :return: The attach_type of this ListStorageAssignmentRequest. :rtype: str @@ -228,7 +228,7 @@ def attach_type(self): def attach_type(self, attach_type): """Sets the attach_type of this ListStorageAssignmentRequest. - 关联对象类型 * `USER` - 用户 * `USER_GROUP` - 用户组 + 关联对象类型: * `USER` - 用户 * `USER_GROUP` - 用户组 :param attach_type: The attach_type of this ListStorageAssignmentRequest. :type attach_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py index f68fb8ef66..d82f902b85 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 查询用户存储声明配置 + :param items: 查询用户存储声明配置。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorageAssignment`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListStorageAssignmentResponse. - 总数 + 总数。 :return: The count of this ListStorageAssignmentResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListStorageAssignmentResponse. - 总数 + 总数。 :param count: The count of this ListStorageAssignmentResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListStorageAssignmentResponse. - 查询用户存储声明配置 + 查询用户存储声明配置。 :return: The items of this ListStorageAssignmentResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorageAssignment`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListStorageAssignmentResponse. - 查询用户存储声明配置 + 查询用户存储声明配置。 :param items: The items of this ListStorageAssignmentResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorageAssignment`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_request.py index 00d33e69d0..f8ef02ee2c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_request.py @@ -31,9 +31,9 @@ def __init__(self, offset=None, limit=None): The model defined in huaweicloud sdk - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int """ @@ -52,7 +52,7 @@ def __init__(self, offset=None, limit=None): def offset(self): """Gets the offset of this ListStoragePolicyStatementRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListStoragePolicyStatementRequest. :rtype: int @@ -63,7 +63,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListStoragePolicyStatementRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListStoragePolicyStatementRequest. :type offset: int @@ -74,7 +74,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListStoragePolicyStatementRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListStoragePolicyStatementRequest. :rtype: int @@ -85,7 +85,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListStoragePolicyStatementRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListStoragePolicyStatementRequest. :type limit: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py index 7db9d6c809..695a69fa23 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int :param items: 支持的访问策略。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyStatement`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListStoragePolicyStatementResponse. - 总数 + 总数。 :return: The count of this ListStoragePolicyStatementResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListStoragePolicyStatementResponse. - 总数 + 总数。 :param count: The count of this ListStoragePolicyStatementResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_targets_of_policy_group_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_targets_of_policy_group_request.py index d25ff8085a..8e67fa5616 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_targets_of_policy_group_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_targets_of_policy_group_request.py @@ -33,7 +33,7 @@ def __init__(self, policy_group_id=None, target_type=None): :param policy_group_id: 策略组id。 :type policy_group_id: str - :param target_type: 应用对象的类型。 - USER:表示用户 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 + :param target_type: 应用对象的类型: - USER:表示用户。 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 :type target_type: str """ @@ -73,7 +73,7 @@ def policy_group_id(self, policy_group_id): def target_type(self): """Gets the target_type of this ListTargetsOfPolicyGroupRequest. - 应用对象的类型。 - USER:表示用户 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 + 应用对象的类型: - USER:表示用户。 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 :return: The target_type of this ListTargetsOfPolicyGroupRequest. :rtype: str @@ -84,7 +84,7 @@ def target_type(self): def target_type(self, target_type): """Sets the target_type of this ListTargetsOfPolicyGroupRequest. - 应用对象的类型。 - USER:表示用户 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 + 应用对象的类型: - USER:表示用户。 - USERGROUP:表示用户组。 - APPGROUP:应用组。 - OU:组织单元。 - ALl:所有类型 :param target_type: The target_type of this ListTargetsOfPolicyGroupRequest. :type target_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_req.py index e44473d25f..9c11df94e6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_req.py @@ -65,43 +65,43 @@ def __init__(self, id=None, connect_type=None, user_name=None, machine_sid=None, The model defined in huaweicloud sdk - :param id: 登录记录唯一标识ID + :param id: 登录记录唯一标识ID。 :type id: str - :param connect_type: 用户连接类别 + :param connect_type: 用户连接类别。 :type connect_type: str - :param user_name: 登录用户名称 + :param user_name: 登录用户名称。 :type user_name: str - :param machine_sid: 应用服务器sid + :param machine_sid: 应用服务器sid。 :type machine_sid: str - :param machine_name: 应用服务器名称 + :param machine_name: 应用服务器名称。 :type machine_name: str - :param failed_reason: 连接失败原因 + :param failed_reason: 连接失败原因。 :type failed_reason: str - :param failed_code: 连接失败状态码 + :param failed_code: 连接失败状态码。 :type failed_code: str - :param client_name: 客户端名称 + :param client_name: 客户端名称。 :type client_name: str - :param client_version: 客户端版本 + :param client_version: 客户端版本。 :type client_version: str - :param client_type: 客户端操作系统类型 + :param client_type: 客户端操作系统类型。 :type client_type: str - :param agent_version: aps hda版本 + :param agent_version: aps hda版本。 :type agent_version: str - :param vm_ip: 应用服务器ip + :param vm_ip: 应用服务器ip。 :type vm_ip: str - :param connect_flag: 连接标志,目前值为0 + :param connect_flag: 连接标志,目前值为0。 :type connect_flag: str - :param wi_ip: 连接IP + :param wi_ip: 连接IP。 :type wi_ip: str - :param update_time: 登录应用开始时间,格式 2022-10-31 08:07:39 + :param update_time: 登录应用开始时间,格式 2022-10-31 08:07:39。 :type update_time: datetime - :param tenant_id: 租户id + :param tenant_id: 租户id。 :type tenant_id: str - :param login_start_time: 登录应用开始时间,格式 2022-10-31 08:07:39 + :param login_start_time: 登录应用开始时间,格式 2022-10-31 08:07:39。 :type login_start_time: datetime - :param login_end_time: 登录应用结束时间,格式 2022-10-31 08:07:39 + :param login_end_time: 登录应用结束时间,格式 2022-10-31 08:07:39。 :type login_end_time: datetime - :param virtual_ip: 会话虚拟ip + :param virtual_ip: 会话虚拟ip。 :type virtual_ip: str """ @@ -171,7 +171,7 @@ def __init__(self, id=None, connect_type=None, user_name=None, machine_sid=None, def id(self): """Gets the id of this ListUserConnectionReq. - 登录记录唯一标识ID + 登录记录唯一标识ID。 :return: The id of this ListUserConnectionReq. :rtype: str @@ -182,7 +182,7 @@ def id(self): def id(self, id): """Sets the id of this ListUserConnectionReq. - 登录记录唯一标识ID + 登录记录唯一标识ID。 :param id: The id of this ListUserConnectionReq. :type id: str @@ -193,7 +193,7 @@ def id(self, id): def connect_type(self): """Gets the connect_type of this ListUserConnectionReq. - 用户连接类别 + 用户连接类别。 :return: The connect_type of this ListUserConnectionReq. :rtype: str @@ -204,7 +204,7 @@ def connect_type(self): def connect_type(self, connect_type): """Sets the connect_type of this ListUserConnectionReq. - 用户连接类别 + 用户连接类别。 :param connect_type: The connect_type of this ListUserConnectionReq. :type connect_type: str @@ -215,7 +215,7 @@ def connect_type(self, connect_type): def user_name(self): """Gets the user_name of this ListUserConnectionReq. - 登录用户名称 + 登录用户名称。 :return: The user_name of this ListUserConnectionReq. :rtype: str @@ -226,7 +226,7 @@ def user_name(self): def user_name(self, user_name): """Sets the user_name of this ListUserConnectionReq. - 登录用户名称 + 登录用户名称。 :param user_name: The user_name of this ListUserConnectionReq. :type user_name: str @@ -237,7 +237,7 @@ def user_name(self, user_name): def machine_sid(self): """Gets the machine_sid of this ListUserConnectionReq. - 应用服务器sid + 应用服务器sid。 :return: The machine_sid of this ListUserConnectionReq. :rtype: str @@ -248,7 +248,7 @@ def machine_sid(self): def machine_sid(self, machine_sid): """Sets the machine_sid of this ListUserConnectionReq. - 应用服务器sid + 应用服务器sid。 :param machine_sid: The machine_sid of this ListUserConnectionReq. :type machine_sid: str @@ -259,7 +259,7 @@ def machine_sid(self, machine_sid): def machine_name(self): """Gets the machine_name of this ListUserConnectionReq. - 应用服务器名称 + 应用服务器名称。 :return: The machine_name of this ListUserConnectionReq. :rtype: str @@ -270,7 +270,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this ListUserConnectionReq. - 应用服务器名称 + 应用服务器名称。 :param machine_name: The machine_name of this ListUserConnectionReq. :type machine_name: str @@ -281,7 +281,7 @@ def machine_name(self, machine_name): def failed_reason(self): """Gets the failed_reason of this ListUserConnectionReq. - 连接失败原因 + 连接失败原因。 :return: The failed_reason of this ListUserConnectionReq. :rtype: str @@ -292,7 +292,7 @@ def failed_reason(self): def failed_reason(self, failed_reason): """Sets the failed_reason of this ListUserConnectionReq. - 连接失败原因 + 连接失败原因。 :param failed_reason: The failed_reason of this ListUserConnectionReq. :type failed_reason: str @@ -303,7 +303,7 @@ def failed_reason(self, failed_reason): def failed_code(self): """Gets the failed_code of this ListUserConnectionReq. - 连接失败状态码 + 连接失败状态码。 :return: The failed_code of this ListUserConnectionReq. :rtype: str @@ -314,7 +314,7 @@ def failed_code(self): def failed_code(self, failed_code): """Sets the failed_code of this ListUserConnectionReq. - 连接失败状态码 + 连接失败状态码。 :param failed_code: The failed_code of this ListUserConnectionReq. :type failed_code: str @@ -325,7 +325,7 @@ def failed_code(self, failed_code): def client_name(self): """Gets the client_name of this ListUserConnectionReq. - 客户端名称 + 客户端名称。 :return: The client_name of this ListUserConnectionReq. :rtype: str @@ -336,7 +336,7 @@ def client_name(self): def client_name(self, client_name): """Sets the client_name of this ListUserConnectionReq. - 客户端名称 + 客户端名称。 :param client_name: The client_name of this ListUserConnectionReq. :type client_name: str @@ -347,7 +347,7 @@ def client_name(self, client_name): def client_version(self): """Gets the client_version of this ListUserConnectionReq. - 客户端版本 + 客户端版本。 :return: The client_version of this ListUserConnectionReq. :rtype: str @@ -358,7 +358,7 @@ def client_version(self): def client_version(self, client_version): """Sets the client_version of this ListUserConnectionReq. - 客户端版本 + 客户端版本。 :param client_version: The client_version of this ListUserConnectionReq. :type client_version: str @@ -369,7 +369,7 @@ def client_version(self, client_version): def client_type(self): """Gets the client_type of this ListUserConnectionReq. - 客户端操作系统类型 + 客户端操作系统类型。 :return: The client_type of this ListUserConnectionReq. :rtype: str @@ -380,7 +380,7 @@ def client_type(self): def client_type(self, client_type): """Sets the client_type of this ListUserConnectionReq. - 客户端操作系统类型 + 客户端操作系统类型。 :param client_type: The client_type of this ListUserConnectionReq. :type client_type: str @@ -391,7 +391,7 @@ def client_type(self, client_type): def agent_version(self): """Gets the agent_version of this ListUserConnectionReq. - aps hda版本 + aps hda版本。 :return: The agent_version of this ListUserConnectionReq. :rtype: str @@ -402,7 +402,7 @@ def agent_version(self): def agent_version(self, agent_version): """Sets the agent_version of this ListUserConnectionReq. - aps hda版本 + aps hda版本。 :param agent_version: The agent_version of this ListUserConnectionReq. :type agent_version: str @@ -413,7 +413,7 @@ def agent_version(self, agent_version): def vm_ip(self): """Gets the vm_ip of this ListUserConnectionReq. - 应用服务器ip + 应用服务器ip。 :return: The vm_ip of this ListUserConnectionReq. :rtype: str @@ -424,7 +424,7 @@ def vm_ip(self): def vm_ip(self, vm_ip): """Sets the vm_ip of this ListUserConnectionReq. - 应用服务器ip + 应用服务器ip。 :param vm_ip: The vm_ip of this ListUserConnectionReq. :type vm_ip: str @@ -435,7 +435,7 @@ def vm_ip(self, vm_ip): def connect_flag(self): """Gets the connect_flag of this ListUserConnectionReq. - 连接标志,目前值为0 + 连接标志,目前值为0。 :return: The connect_flag of this ListUserConnectionReq. :rtype: str @@ -446,7 +446,7 @@ def connect_flag(self): def connect_flag(self, connect_flag): """Sets the connect_flag of this ListUserConnectionReq. - 连接标志,目前值为0 + 连接标志,目前值为0。 :param connect_flag: The connect_flag of this ListUserConnectionReq. :type connect_flag: str @@ -457,7 +457,7 @@ def connect_flag(self, connect_flag): def wi_ip(self): """Gets the wi_ip of this ListUserConnectionReq. - 连接IP + 连接IP。 :return: The wi_ip of this ListUserConnectionReq. :rtype: str @@ -468,7 +468,7 @@ def wi_ip(self): def wi_ip(self, wi_ip): """Sets the wi_ip of this ListUserConnectionReq. - 连接IP + 连接IP。 :param wi_ip: The wi_ip of this ListUserConnectionReq. :type wi_ip: str @@ -479,7 +479,7 @@ def wi_ip(self, wi_ip): def update_time(self): """Gets the update_time of this ListUserConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :return: The update_time of this ListUserConnectionReq. :rtype: datetime @@ -490,7 +490,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this ListUserConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :param update_time: The update_time of this ListUserConnectionReq. :type update_time: datetime @@ -501,7 +501,7 @@ def update_time(self, update_time): def tenant_id(self): """Gets the tenant_id of this ListUserConnectionReq. - 租户id + 租户id。 :return: The tenant_id of this ListUserConnectionReq. :rtype: str @@ -512,7 +512,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this ListUserConnectionReq. - 租户id + 租户id。 :param tenant_id: The tenant_id of this ListUserConnectionReq. :type tenant_id: str @@ -523,7 +523,7 @@ def tenant_id(self, tenant_id): def login_start_time(self): """Gets the login_start_time of this ListUserConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :return: The login_start_time of this ListUserConnectionReq. :rtype: datetime @@ -534,7 +534,7 @@ def login_start_time(self): def login_start_time(self, login_start_time): """Sets the login_start_time of this ListUserConnectionReq. - 登录应用开始时间,格式 2022-10-31 08:07:39 + 登录应用开始时间,格式 2022-10-31 08:07:39。 :param login_start_time: The login_start_time of this ListUserConnectionReq. :type login_start_time: datetime @@ -545,7 +545,7 @@ def login_start_time(self, login_start_time): def login_end_time(self): """Gets the login_end_time of this ListUserConnectionReq. - 登录应用结束时间,格式 2022-10-31 08:07:39 + 登录应用结束时间,格式 2022-10-31 08:07:39。 :return: The login_end_time of this ListUserConnectionReq. :rtype: datetime @@ -556,7 +556,7 @@ def login_end_time(self): def login_end_time(self, login_end_time): """Sets the login_end_time of this ListUserConnectionReq. - 登录应用结束时间,格式 2022-10-31 08:07:39 + 登录应用结束时间,格式 2022-10-31 08:07:39。 :param login_end_time: The login_end_time of this ListUserConnectionReq. :type login_end_time: datetime @@ -567,7 +567,7 @@ def login_end_time(self, login_end_time): def virtual_ip(self): """Gets the virtual_ip of this ListUserConnectionReq. - 会话虚拟ip + 会话虚拟ip。 :return: The virtual_ip of this ListUserConnectionReq. :rtype: str @@ -578,7 +578,7 @@ def virtual_ip(self): def virtual_ip(self, virtual_ip): """Sets the virtual_ip of this ListUserConnectionReq. - 会话虚拟ip + 会话虚拟ip。 :param virtual_ip: The virtual_ip of this ListUserConnectionReq. :type virtual_ip: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_request.py index 4994d785ac..537f31319b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_request.py @@ -33,9 +33,9 @@ def __init__(self, limit=None, offset=None, body=None): The model defined in huaweicloud sdk - :param limit: 单次查询的大小[1-100] + :param limit: 单次查询的大小[1-100]。 :type limit: int - :param offset: 查询的偏移量 + :param offset: 查询的偏移量。 :type offset: int :param body: Body of the ListUserConnectionRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.ListUserConnectionReq` @@ -59,7 +59,7 @@ def __init__(self, limit=None, offset=None, body=None): def limit(self): """Gets the limit of this ListUserConnectionRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :return: The limit of this ListUserConnectionRequest. :rtype: int @@ -70,7 +70,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListUserConnectionRequest. - 单次查询的大小[1-100] + 单次查询的大小[1-100]。 :param limit: The limit of this ListUserConnectionRequest. :type limit: int @@ -81,7 +81,7 @@ def limit(self, limit): def offset(self): """Gets the offset of this ListUserConnectionRequest. - 查询的偏移量 + 查询的偏移量。 :return: The offset of this ListUserConnectionRequest. :rtype: int @@ -92,7 +92,7 @@ def offset(self): def offset(self, offset): """Sets the offset of this ListUserConnectionRequest. - 查询的偏移量 + 查询的偏移量。 :param offset: The offset of this ListUserConnectionRequest. :type offset: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py index 97197699bb..c0ca43b364 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py @@ -32,9 +32,9 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param items: 应用使用记录列表 + :param items: 应用使用记录列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UserConnectionInfo`] """ @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListUserConnectionResponse. - 总数 + 总数。 :return: The count of this ListUserConnectionResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListUserConnectionResponse. - 总数 + 总数。 :param count: The count of this ListUserConnectionResponse. :type count: int @@ -75,7 +75,7 @@ def count(self, count): def items(self): """Gets the items of this ListUserConnectionResponse. - 应用使用记录列表 + 应用使用记录列表。 :return: The items of this ListUserConnectionResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.UserConnectionInfo`] @@ -86,7 +86,7 @@ def items(self): def items(self, items): """Sets the items of this ListUserConnectionResponse. - 应用使用记录列表 + 应用使用记录列表。 :param items: The items of this ListUserConnectionResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UserConnectionInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_volume_type_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_volume_type_response.py index e729e7cd63..1bffa04c3e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_volume_type_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_volume_type_response.py @@ -30,7 +30,7 @@ def __init__(self, volume_types=None): The model defined in huaweicloud sdk - :param volume_types: 磁盘列表 + :param volume_types: 磁盘列表。 :type volume_types: list[:class:`huaweicloudsdkworkspaceapp.v1.VolumeTypeInfo`] """ @@ -46,7 +46,7 @@ def __init__(self, volume_types=None): def volume_types(self): """Gets the volume_types of this ListVolumeTypeResponse. - 磁盘列表 + 磁盘列表。 :return: The volume_types of this ListVolumeTypeResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.VolumeTypeInfo`] @@ -57,7 +57,7 @@ def volume_types(self): def volume_types(self, volume_types): """Sets the volume_types of this ListVolumeTypeResponse. - 磁盘列表 + 磁盘列表。 :param volume_types: The volume_types of this ListVolumeTypeResponse. :type volume_types: list[:class:`huaweicloudsdkworkspaceapp.v1.VolumeTypeInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/logoff_user_session_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/logoff_user_session_req.py index 4a4064822b..5475ac00fe 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/logoff_user_session_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/logoff_user_session_req.py @@ -39,17 +39,17 @@ def __init__(self, session_ids=None, message_type=None, message=None, title=None The model defined in huaweicloud sdk - :param session_ids: 会话信息id列表 + :param session_ids: 会话信息id列表。 :type session_ids: list[str] - :param message_type: 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious; + :param message_type: 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious。 :type message_type: int - :param message: 客户端弹框内容 + :param message: 客户端弹框内容。 :type message: str - :param title: 弹框标题 + :param title: 弹框标题。 :type title: str - :param delay_time: 延迟多长时间注销会话 + :param delay_time: 延迟多长时间注销会话。 :type delay_time: int - :param transaction_id: 事务id,用作客户端日志定位跟踪 + :param transaction_id: 事务id,用作客户端日志定位跟踪。 :type transaction_id: str """ @@ -78,7 +78,7 @@ def __init__(self, session_ids=None, message_type=None, message=None, title=None def session_ids(self): """Gets the session_ids of this LogoffUserSessionReq. - 会话信息id列表 + 会话信息id列表。 :return: The session_ids of this LogoffUserSessionReq. :rtype: list[str] @@ -89,7 +89,7 @@ def session_ids(self): def session_ids(self, session_ids): """Sets the session_ids of this LogoffUserSessionReq. - 会话信息id列表 + 会话信息id列表。 :param session_ids: The session_ids of this LogoffUserSessionReq. :type session_ids: list[str] @@ -100,7 +100,7 @@ def session_ids(self, session_ids): def message_type(self): """Gets the message_type of this LogoffUserSessionReq. - 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious; + 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious。 :return: The message_type of this LogoffUserSessionReq. :rtype: int @@ -111,7 +111,7 @@ def message_type(self): def message_type(self, message_type): """Sets the message_type of this LogoffUserSessionReq. - 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious; + 客户端弹框级别,代表给会话发消息时的严重程度(比如info、warning、error级别) 0->info; 1-> warn; 2->serious。 :param message_type: The message_type of this LogoffUserSessionReq. :type message_type: int @@ -122,7 +122,7 @@ def message_type(self, message_type): def message(self): """Gets the message of this LogoffUserSessionReq. - 客户端弹框内容 + 客户端弹框内容。 :return: The message of this LogoffUserSessionReq. :rtype: str @@ -133,7 +133,7 @@ def message(self): def message(self, message): """Sets the message of this LogoffUserSessionReq. - 客户端弹框内容 + 客户端弹框内容。 :param message: The message of this LogoffUserSessionReq. :type message: str @@ -144,7 +144,7 @@ def message(self, message): def title(self): """Gets the title of this LogoffUserSessionReq. - 弹框标题 + 弹框标题。 :return: The title of this LogoffUserSessionReq. :rtype: str @@ -155,7 +155,7 @@ def title(self): def title(self, title): """Sets the title of this LogoffUserSessionReq. - 弹框标题 + 弹框标题。 :param title: The title of this LogoffUserSessionReq. :type title: str @@ -166,7 +166,7 @@ def title(self, title): def delay_time(self): """Gets the delay_time of this LogoffUserSessionReq. - 延迟多长时间注销会话 + 延迟多长时间注销会话。 :return: The delay_time of this LogoffUserSessionReq. :rtype: int @@ -177,7 +177,7 @@ def delay_time(self): def delay_time(self, delay_time): """Sets the delay_time of this LogoffUserSessionReq. - 延迟多长时间注销会话 + 延迟多长时间注销会话。 :param delay_time: The delay_time of this LogoffUserSessionReq. :type delay_time: int @@ -188,7 +188,7 @@ def delay_time(self, delay_time): def transaction_id(self): """Gets the transaction_id of this LogoffUserSessionReq. - 事务id,用作客户端日志定位跟踪 + 事务id,用作客户端日志定位跟踪。 :return: The transaction_id of this LogoffUserSessionReq. :rtype: str @@ -199,7 +199,7 @@ def transaction_id(self): def transaction_id(self, transaction_id): """Sets the transaction_id of this LogoffUserSessionReq. - 事务id,用作客户端日志定位跟踪 + 事务id,用作客户端日志定位跟踪。 :param transaction_id: The transaction_id of this LogoffUserSessionReq. :type transaction_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/nic.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/nic.py index 21d0fad1f9..23716b8d20 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/nic.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/nic.py @@ -31,9 +31,9 @@ def __init__(self, ip_address=None, subnet_id=None): The model defined in huaweicloud sdk - :param ip_address: IP地址 + :param ip_address: IP地址。 :type ip_address: str - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str """ @@ -52,7 +52,7 @@ def __init__(self, ip_address=None, subnet_id=None): def ip_address(self): """Gets the ip_address of this Nic. - IP地址 + IP地址。 :return: The ip_address of this Nic. :rtype: str @@ -63,7 +63,7 @@ def ip_address(self): def ip_address(self, ip_address): """Sets the ip_address of this Nic. - IP地址 + IP地址。 :param ip_address: The ip_address of this Nic. :type ip_address: str @@ -74,7 +74,7 @@ def ip_address(self, ip_address): def subnet_id(self): """Gets the subnet_id of this Nic. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this Nic. :rtype: str @@ -85,7 +85,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this Nic. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this Nic. :type subnet_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py index 43cd94c74d..ee4b7e0532 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py @@ -29,7 +29,7 @@ def __init__(self, count=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int """ @@ -45,7 +45,7 @@ def __init__(self, count=None): def count(self): """Gets the count of this PageResp. - 总数 + 总数。 :return: The count of this PageResp. :rtype: int @@ -56,7 +56,7 @@ def count(self): def count(self, count): """Sets the count of this PageResp. - 总数 + 总数。 :param count: The count of this PageResp. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage.py index f0fcea29b3..f14aea30aa 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage.py @@ -39,17 +39,17 @@ def __init__(self, id=None, name=None, storage_metadata=None, create_time=None, The model defined in huaweicloud sdk - :param id: WKS存储ID + :param id: WKS存储ID。 :type id: str - :param name: 名称 + :param name: 名称。 :type name: str :param storage_metadata: :type storage_metadata: :class:`huaweicloudsdkworkspaceapp.v1.StorageMetadata` - :param create_time: 创建时间 + :param create_time: 创建时间。 :type create_time: datetime - :param user_claim_count: 个人目录声明数量 + :param user_claim_count: 个人目录声明数量。 :type user_claim_count: int - :param share_claim_count: 共享目录声明数量 + :param share_claim_count: 共享目录声明数量。 :type share_claim_count: int """ @@ -80,7 +80,7 @@ def __init__(self, id=None, name=None, storage_metadata=None, create_time=None, def id(self): """Gets the id of this PersistentStorage. - WKS存储ID + WKS存储ID。 :return: The id of this PersistentStorage. :rtype: str @@ -91,7 +91,7 @@ def id(self): def id(self, id): """Sets the id of this PersistentStorage. - WKS存储ID + WKS存储ID。 :param id: The id of this PersistentStorage. :type id: str @@ -102,7 +102,7 @@ def id(self, id): def name(self): """Gets the name of this PersistentStorage. - 名称 + 名称。 :return: The name of this PersistentStorage. :rtype: str @@ -113,7 +113,7 @@ def name(self): def name(self, name): """Sets the name of this PersistentStorage. - 名称 + 名称。 :param name: The name of this PersistentStorage. :type name: str @@ -142,7 +142,7 @@ def storage_metadata(self, storage_metadata): def create_time(self): """Gets the create_time of this PersistentStorage. - 创建时间 + 创建时间。 :return: The create_time of this PersistentStorage. :rtype: datetime @@ -153,7 +153,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this PersistentStorage. - 创建时间 + 创建时间。 :param create_time: The create_time of this PersistentStorage. :type create_time: datetime @@ -164,7 +164,7 @@ def create_time(self, create_time): def user_claim_count(self): """Gets the user_claim_count of this PersistentStorage. - 个人目录声明数量 + 个人目录声明数量。 :return: The user_claim_count of this PersistentStorage. :rtype: int @@ -175,7 +175,7 @@ def user_claim_count(self): def user_claim_count(self, user_claim_count): """Sets the user_claim_count of this PersistentStorage. - 个人目录声明数量 + 个人目录声明数量。 :param user_claim_count: The user_claim_count of this PersistentStorage. :type user_claim_count: int @@ -186,7 +186,7 @@ def user_claim_count(self, user_claim_count): def share_claim_count(self): """Gets the share_claim_count of this PersistentStorage. - 共享目录声明数量 + 共享目录声明数量。 :return: The share_claim_count of this PersistentStorage. :rtype: int @@ -197,7 +197,7 @@ def share_claim_count(self): def share_claim_count(self, share_claim_count): """Sets the share_claim_count of this PersistentStorage. - 共享目录声明数量 + 共享目录声明数量。 :param share_claim_count: The share_claim_count of this PersistentStorage. :type share_claim_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_assignment.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_assignment.py index 441f51040b..4eb5a35345 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_assignment.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_assignment.py @@ -41,11 +41,11 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai The model defined in huaweicloud sdk - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param folder_path: 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + :param folder_path: 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :type folder_path: str - :param delimiter: 路径分隔符 + :param delimiter: 路径分隔符。 :type delimiter: str :param claim_mode: :type claim_mode: :class:`huaweicloudsdkworkspaceapp.v1.ClaimMode` @@ -87,7 +87,7 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai def storage_claim_id(self): """Gets the storage_claim_id of this PersistentStorageAssignment. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this PersistentStorageAssignment. :rtype: str @@ -98,7 +98,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this PersistentStorageAssignment. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this PersistentStorageAssignment. :type storage_claim_id: str @@ -109,7 +109,7 @@ def storage_claim_id(self, storage_claim_id): def folder_path(self): """Gets the folder_path of this PersistentStorageAssignment. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :return: The folder_path of this PersistentStorageAssignment. :rtype: str @@ -120,7 +120,7 @@ def folder_path(self): def folder_path(self, folder_path): """Sets the folder_path of this PersistentStorageAssignment. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :param folder_path: The folder_path of this PersistentStorageAssignment. :type folder_path: str @@ -131,7 +131,7 @@ def folder_path(self, folder_path): def delimiter(self): """Gets the delimiter of this PersistentStorageAssignment. - 路径分隔符 + 路径分隔符。 :return: The delimiter of this PersistentStorageAssignment. :rtype: str @@ -142,7 +142,7 @@ def delimiter(self): def delimiter(self, delimiter): """Sets the delimiter of this PersistentStorageAssignment. - 路径分隔符 + 路径分隔符。 :param delimiter: The delimiter of this PersistentStorageAssignment. :type delimiter: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_claim.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_claim.py index 1e781cf7eb..eb8f7380bd 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_claim.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/persistent_storage_claim.py @@ -35,11 +35,11 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai The model defined in huaweicloud sdk - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param folder_path: 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + :param folder_path: 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :type folder_path: str - :param delimiter: 路径分隔符 + :param delimiter: 路径分隔符。 :type delimiter: str :param claim_mode: :type claim_mode: :class:`huaweicloudsdkworkspaceapp.v1.ClaimMode` @@ -66,7 +66,7 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai def storage_claim_id(self): """Gets the storage_claim_id of this PersistentStorageClaim. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this PersistentStorageClaim. :rtype: str @@ -77,7 +77,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this PersistentStorageClaim. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this PersistentStorageClaim. :type storage_claim_id: str @@ -88,7 +88,7 @@ def storage_claim_id(self, storage_claim_id): def folder_path(self): """Gets the folder_path of this PersistentStorageClaim. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :return: The folder_path of this PersistentStorageClaim. :rtype: str @@ -99,7 +99,7 @@ def folder_path(self): def folder_path(self, folder_path): """Sets the folder_path of this PersistentStorageClaim. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :param folder_path: The folder_path of this PersistentStorageClaim. :type folder_path: str @@ -110,7 +110,7 @@ def folder_path(self, folder_path): def delimiter(self): """Gets the delimiter of this PersistentStorageClaim. - 路径分隔符 + 路径分隔符。 :return: The delimiter of this PersistentStorageClaim. :rtype: str @@ -121,7 +121,7 @@ def delimiter(self): def delimiter(self, delimiter): """Sets the delimiter of this PersistentStorageClaim. - 路径分隔符 + 路径分隔符。 :param delimiter: The delimiter of this PersistentStorageClaim. :type delimiter: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_peripherals_usb_port_redirection.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_peripherals_usb_port_redirection.py index 6354dbe5ac..0f87ba352a 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_peripherals_usb_port_redirection.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_peripherals_usb_port_redirection.py @@ -31,7 +31,7 @@ def __init__(self, usb_enable=None, options=None): The model defined in huaweicloud sdk - :param usb_enable: 是否开启USB端口重定向。 - false:表示关闭。 - true:表示开启。 + :param usb_enable: 是否开启USB端口重定向。取值为: - false:表示关闭。 - true:表示开启。 :type usb_enable: bool :param options: :type options: :class:`huaweicloudsdkworkspaceapp.v1.UsbPortRedirectionOptions` @@ -52,7 +52,7 @@ def __init__(self, usb_enable=None, options=None): def usb_enable(self): """Gets the usb_enable of this PoliciesPeripheralsUsbPortRedirection. - 是否开启USB端口重定向。 - false:表示关闭。 - true:表示开启。 + 是否开启USB端口重定向。取值为: - false:表示关闭。 - true:表示开启。 :return: The usb_enable of this PoliciesPeripheralsUsbPortRedirection. :rtype: bool @@ -63,7 +63,7 @@ def usb_enable(self): def usb_enable(self, usb_enable): """Sets the usb_enable of this PoliciesPeripheralsUsbPortRedirection. - 是否开启USB端口重定向。 - false:表示关闭。 - true:表示开启。 + 是否开启USB端口重定向。取值为: - false:表示关闭。 - true:表示开启。 :param usb_enable: The usb_enable of this PoliciesPeripheralsUsbPortRedirection. :type usb_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group.py index ea64a7a4a4..724bf5951f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group.py @@ -43,21 +43,21 @@ def __init__(self, id=None, name=None, priority=None, description=None, targets= The model defined in huaweicloud sdk - :param id: 策略组的唯一标识 + :param id: 策略组的唯一标识。 :type id: str - :param name: 策略组名称 + :param name: 策略组名称。 :type name: str - :param priority: 优先级 + :param priority: 优先级。 :type priority: int - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str :param targets: 应用对象列表。 :type targets: list[:class:`huaweicloudsdkworkspaceapp.v1.Target`] :param policies: :type policies: :class:`huaweicloudsdkworkspaceapp.v1.Policies` - :param create_time: 策略组创建时间 + :param create_time: 策略组创建时间。 :type create_time: datetime - :param update_time: 策略组更新时间 + :param update_time: 策略组更新时间。 :type update_time: datetime """ @@ -94,7 +94,7 @@ def __init__(self, id=None, name=None, priority=None, description=None, targets= def id(self): """Gets the id of this PolicyGroup. - 策略组的唯一标识 + 策略组的唯一标识。 :return: The id of this PolicyGroup. :rtype: str @@ -105,7 +105,7 @@ def id(self): def id(self, id): """Sets the id of this PolicyGroup. - 策略组的唯一标识 + 策略组的唯一标识。 :param id: The id of this PolicyGroup. :type id: str @@ -116,7 +116,7 @@ def id(self, id): def name(self): """Gets the name of this PolicyGroup. - 策略组名称 + 策略组名称。 :return: The name of this PolicyGroup. :rtype: str @@ -127,7 +127,7 @@ def name(self): def name(self, name): """Sets the name of this PolicyGroup. - 策略组名称 + 策略组名称。 :param name: The name of this PolicyGroup. :type name: str @@ -138,7 +138,7 @@ def name(self, name): def priority(self): """Gets the priority of this PolicyGroup. - 优先级 + 优先级。 :return: The priority of this PolicyGroup. :rtype: int @@ -149,7 +149,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this PolicyGroup. - 优先级 + 优先级。 :param priority: The priority of this PolicyGroup. :type priority: int @@ -160,7 +160,7 @@ def priority(self, priority): def description(self): """Gets the description of this PolicyGroup. - 服务器组描述 + 服务器组描述。 :return: The description of this PolicyGroup. :rtype: str @@ -171,7 +171,7 @@ def description(self): def description(self, description): """Sets the description of this PolicyGroup. - 服务器组描述 + 服务器组描述。 :param description: The description of this PolicyGroup. :type description: str @@ -222,7 +222,7 @@ def policies(self, policies): def create_time(self): """Gets the create_time of this PolicyGroup. - 策略组创建时间 + 策略组创建时间。 :return: The create_time of this PolicyGroup. :rtype: datetime @@ -233,7 +233,7 @@ def create_time(self): def create_time(self, create_time): """Sets the create_time of this PolicyGroup. - 策略组创建时间 + 策略组创建时间。 :param create_time: The create_time of this PolicyGroup. :type create_time: datetime @@ -244,7 +244,7 @@ def create_time(self, create_time): def update_time(self): """Gets the update_time of this PolicyGroup. - 策略组更新时间 + 策略组更新时间。 :return: The update_time of this PolicyGroup. :rtype: datetime @@ -255,7 +255,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this PolicyGroup. - 策略组更新时间 + 策略组更新时间。 :param update_time: The update_time of this PolicyGroup. :type update_time: datetime diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_create.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_create.py index 4d7d101b48..f286eba9f1 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_create.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_create.py @@ -37,7 +37,7 @@ def __init__(self, policy_group_name=None, priority=None, description=None, targ The model defined in huaweicloud sdk - :param policy_group_name: 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + :param policy_group_name: 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :type policy_group_name: str :param priority: 优先级。 :type priority: int @@ -72,7 +72,7 @@ def __init__(self, policy_group_name=None, priority=None, description=None, targ def policy_group_name(self): """Gets the policy_group_name of this PolicyGroupForCreate. - 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :return: The policy_group_name of this PolicyGroupForCreate. :rtype: str @@ -83,7 +83,7 @@ def policy_group_name(self): def policy_group_name(self, policy_group_name): """Sets the policy_group_name of this PolicyGroupForCreate. - 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :param policy_group_name: The policy_group_name of this PolicyGroupForCreate. :type policy_group_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_update.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_update.py index 353944b1c0..337b68ad02 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_update.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_group_for_update.py @@ -37,7 +37,7 @@ def __init__(self, policy_group_name=None, description=None, priority=None, targ The model defined in huaweicloud sdk - :param policy_group_name: 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + :param policy_group_name: 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :type policy_group_name: str :param description: 策略组描述。 :type description: str @@ -72,7 +72,7 @@ def __init__(self, policy_group_name=None, description=None, priority=None, targ def policy_group_name(self): """Gets the policy_group_name of this PolicyGroupForUpdate. - 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :return: The policy_group_name of this PolicyGroupForUpdate. :rtype: str @@ -83,7 +83,7 @@ def policy_group_name(self): def policy_group_name(self, policy_group_name): """Sets the policy_group_name of this PolicyGroupForUpdate. - 策略组名称,名称需要满足如下规则 1. 由英文、数字或者下划线组成,不能有空格 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 由英文、数字或者下划线组成,不能有空格。 2. 字符长度范围1-55。 :param policy_group_name: The policy_group_name of this PolicyGroupForUpdate. :type policy_group_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_statement.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_statement.py index 50d0db4d1f..f7f59fd17c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_statement.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_statement.py @@ -33,11 +33,11 @@ def __init__(self, policy_statement_id=None, actions=None, roam_actions=None): The model defined in huaweicloud sdk - :param policy_statement_id: 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + :param policy_statement_id: 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :type policy_statement_id: str - :param actions: 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + :param actions: 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :type actions: list[str] - :param roam_actions: 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + :param roam_actions: 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :type roam_actions: list[str] """ @@ -59,7 +59,7 @@ def __init__(self, policy_statement_id=None, actions=None, roam_actions=None): def policy_statement_id(self): """Gets the policy_statement_id of this PolicyStatement. - 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :return: The policy_statement_id of this PolicyStatement. :rtype: str @@ -70,7 +70,7 @@ def policy_statement_id(self): def policy_statement_id(self, policy_statement_id): """Sets the policy_statement_id of this PolicyStatement. - 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读 - action: - roam_action: GetObject + 支持的访问策略,内置如下四种策略: * `DEFAULT_1`:`客户端访问存储` - 上传、下载; `云端访问存储` - 读写。 - action: PutObject、DeleteObject、GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_2`:`客户端访问存储` - 下载; `云端访问存储` - 读写。 - action: GetObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_3`:`客户端访问存储` - 上传; `云端访问存储` - 读写。 - action: PutObject、DeleteObject - roam_action: PutObject、DeleteObject、GetObject * `DEFAULT_4`:`客户端访问存储` - 仅可查看列表,不允许上传下载; `云端访问存储` - 只读。 - action: - roam_action: GetObject :param policy_statement_id: The policy_statement_id of this PolicyStatement. :type policy_statement_id: str @@ -81,7 +81,7 @@ def policy_statement_id(self, policy_statement_id): def actions(self): """Gets the actions of this PolicyStatement. - 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :return: The actions of this PolicyStatement. :rtype: list[str] @@ -92,7 +92,7 @@ def actions(self): def actions(self, actions): """Sets the actions of this PolicyStatement. - 客户端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 客户端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :param actions: The actions of this PolicyStatement. :type actions: list[str] @@ -103,7 +103,7 @@ def actions(self, actions): def roam_actions(self): """Gets the roam_actions of this PolicyStatement. - 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :return: The roam_actions of this PolicyStatement. :rtype: list[str] @@ -114,7 +114,7 @@ def roam_actions(self): def roam_actions(self, roam_actions): """Sets the roam_actions of this PolicyStatement. - 云端访问存储可操作的权限合集 * `PutObject` - 上传、修改、重命名、移动 * `GetObject` - 下载 * `DeleteObject` - 删除 + 云端访问存储可操作的权限合集。 * `PutObject` - 上传、修改、重命名、移动。 * `GetObject` - 下载。 * `DeleteObject` - 删除。 :param roam_actions: The roam_actions of this PolicyStatement. :type roam_actions: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_template.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_template.py index 5ce61dd54a..c18510c0d4 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_template.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_template.py @@ -33,9 +33,9 @@ def __init__(self, policy_group_name=None, description=None, policies=None): The model defined in huaweicloud sdk - :param policy_group_name: 策略组名称,名称需要满足如下规则 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成 2. 字符长度范围1-55 + :param policy_group_name: 策略组名称,名称需要满足如下规则: 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成。 2. 字符长度范围1-55。 :type policy_group_name: str - :param description: 描述 + :param description: 描述。 :type description: str :param policies: :type policies: :class:`huaweicloudsdkworkspaceapp.v1.Policies` @@ -57,7 +57,7 @@ def __init__(self, policy_group_name=None, description=None, policies=None): def policy_group_name(self): """Gets the policy_group_name of this PolicyTemplate. - 策略组名称,名称需要满足如下规则 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成。 2. 字符长度范围1-55。 :return: The policy_group_name of this PolicyTemplate. :rtype: str @@ -68,7 +68,7 @@ def policy_group_name(self): def policy_group_name(self, policy_group_name): """Sets the policy_group_name of this PolicyTemplate. - 策略组名称,名称需要满足如下规则 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成 2. 字符长度范围1-55 + 策略组名称,名称需要满足如下规则: 1. 不能有空格和.开头,可以由中文、数字、英文大小写组成。 2. 字符长度范围1-55。 :param policy_group_name: The policy_group_name of this PolicyTemplate. :type policy_group_name: str @@ -79,7 +79,7 @@ def policy_group_name(self, policy_group_name): def description(self): """Gets the description of this PolicyTemplate. - 描述 + 描述。 :return: The description of this PolicyTemplate. :rtype: str @@ -90,7 +90,7 @@ def description(self): def description(self, description): """Sets the description of this PolicyTemplate. - 描述 + 描述。 :param description: The description of this PolicyTemplate. :type description: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py index 800fe18020..6af1f8dcce 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py @@ -77,55 +77,55 @@ def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None The model defined in huaweicloud sdk - :param product_id: 产品id + :param product_id: 产品id。 :type product_id: str - :param flavor_id: 规格ID + :param flavor_id: 规格ID。 :type flavor_id: str :param type: 产品类型。 - BASE:表示产品基础套餐,套餐镜像中不包括除操作系统之外的其他商业软件,私有镜像场景只能使用此类套餐。 - ADVANCED:表示产品高级套餐,套餐镜像中包括了一些商业软件。 :type type: str - :param architecture: 产品架构,当前仅支持x86 - x86 - arm + :param architecture: 产品架构,当前仅支持x86。 - x86 - arm :type architecture: str - :param cpu: CPU + :param cpu: CPU。 :type cpu: str - :param cpu_desc: CPU描述 + :param cpu_desc: CPU描述。 :type cpu_desc: str - :param memory: 内存大小,单位兆:MB + :param memory: 内存大小,单位兆:MB。 :type memory: str - :param is_gpu: 是否是GPU类型的规格 + :param is_gpu: 是否是GPU类型的规格。 :type is_gpu: bool - :param system_disk_type: 系统盘类型 + :param system_disk_type: 系统盘类型。 :type system_disk_type: str - :param system_disk_size: 系统盘大小 + :param system_disk_size: 系统盘大小。 :type system_disk_size: str - :param gpu_desc: GPU描述 + :param gpu_desc: GPU描述。 :type gpu_desc: str - :param descriptions: 产品描述 + :param descriptions: 产品描述。 :type descriptions: str :param charge_mode: 套餐标识。 - 1:表示包周期。 - 0:表示按需。 :type charge_mode: str - :param contain_data_disk: 套餐计费是否包含了数据盘 + :param contain_data_disk: 套餐计费是否包含了数据盘。 :type contain_data_disk: bool - :param resource_type: 资源类型 + :param resource_type: 资源类型。 :type resource_type: str - :param cloud_service_type: 云服务类型 + :param cloud_service_type: 云服务类型。 :type cloud_service_type: str - :param volume_product_type: 磁盘产品类型 + :param volume_product_type: 磁盘产品类型。 :type volume_product_type: str - :param sessions: 套餐默认支持的最大会话数 + :param sessions: 套餐默认支持的最大会话数。 :type sessions: int :param status: 产品套餐在销售模式下的状态,取值自ECS的cond:operation:status。 不配置时等同于normal在售状态。 * `normal` - 正常商用 * `abandon` - 下线(即不显示) * `sellout` - 售罄 * `obt` - 公测 * `obt_sellout` - 公测售罄 * `promotion` - 推荐(等同normal,也是商用) :type status: str - :param cond_operation_az: 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)” > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 + :param cond_operation_az: 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” 。 > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)”。 > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 :type cond_operation_az: str - :param sub_product_list: 专属主机的子产品 + :param sub_product_list: 专属主机的子产品。 :type sub_product_list: list[str] - :param domain_ids: 产品属于专有的domainId + :param domain_ids: 产品属于专有的domainId。 :type domain_ids: list[str] - :param package_type: 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + :param package_type: 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :type package_type: str - :param expire_time: 产品套餐过期时间,产品将在改时间点后逐步下架 + :param expire_time: 产品套餐过期时间,产品将在改时间点后逐步下架。 :type expire_time: datetime - :param support_gpu_type: 产品套餐支持的GPU类型 + :param support_gpu_type: 产品套餐支持的GPU类型。 :type support_gpu_type: str """ @@ -213,7 +213,7 @@ def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None def product_id(self): """Gets the product_id of this ProductInfo. - 产品id + 产品id。 :return: The product_id of this ProductInfo. :rtype: str @@ -224,7 +224,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this ProductInfo. - 产品id + 产品id。 :param product_id: The product_id of this ProductInfo. :type product_id: str @@ -235,7 +235,7 @@ def product_id(self, product_id): def flavor_id(self): """Gets the flavor_id of this ProductInfo. - 规格ID + 规格ID。 :return: The flavor_id of this ProductInfo. :rtype: str @@ -246,7 +246,7 @@ def flavor_id(self): def flavor_id(self, flavor_id): """Sets the flavor_id of this ProductInfo. - 规格ID + 规格ID。 :param flavor_id: The flavor_id of this ProductInfo. :type flavor_id: str @@ -279,7 +279,7 @@ def type(self, type): def architecture(self): """Gets the architecture of this ProductInfo. - 产品架构,当前仅支持x86 - x86 - arm + 产品架构,当前仅支持x86。 - x86 - arm :return: The architecture of this ProductInfo. :rtype: str @@ -290,7 +290,7 @@ def architecture(self): def architecture(self, architecture): """Sets the architecture of this ProductInfo. - 产品架构,当前仅支持x86 - x86 - arm + 产品架构,当前仅支持x86。 - x86 - arm :param architecture: The architecture of this ProductInfo. :type architecture: str @@ -301,7 +301,7 @@ def architecture(self, architecture): def cpu(self): """Gets the cpu of this ProductInfo. - CPU + CPU。 :return: The cpu of this ProductInfo. :rtype: str @@ -312,7 +312,7 @@ def cpu(self): def cpu(self, cpu): """Sets the cpu of this ProductInfo. - CPU + CPU。 :param cpu: The cpu of this ProductInfo. :type cpu: str @@ -323,7 +323,7 @@ def cpu(self, cpu): def cpu_desc(self): """Gets the cpu_desc of this ProductInfo. - CPU描述 + CPU描述。 :return: The cpu_desc of this ProductInfo. :rtype: str @@ -334,7 +334,7 @@ def cpu_desc(self): def cpu_desc(self, cpu_desc): """Sets the cpu_desc of this ProductInfo. - CPU描述 + CPU描述。 :param cpu_desc: The cpu_desc of this ProductInfo. :type cpu_desc: str @@ -345,7 +345,7 @@ def cpu_desc(self, cpu_desc): def memory(self): """Gets the memory of this ProductInfo. - 内存大小,单位兆:MB + 内存大小,单位兆:MB。 :return: The memory of this ProductInfo. :rtype: str @@ -356,7 +356,7 @@ def memory(self): def memory(self, memory): """Sets the memory of this ProductInfo. - 内存大小,单位兆:MB + 内存大小,单位兆:MB。 :param memory: The memory of this ProductInfo. :type memory: str @@ -367,7 +367,7 @@ def memory(self, memory): def is_gpu(self): """Gets the is_gpu of this ProductInfo. - 是否是GPU类型的规格 + 是否是GPU类型的规格。 :return: The is_gpu of this ProductInfo. :rtype: bool @@ -378,7 +378,7 @@ def is_gpu(self): def is_gpu(self, is_gpu): """Sets the is_gpu of this ProductInfo. - 是否是GPU类型的规格 + 是否是GPU类型的规格。 :param is_gpu: The is_gpu of this ProductInfo. :type is_gpu: bool @@ -389,7 +389,7 @@ def is_gpu(self, is_gpu): def system_disk_type(self): """Gets the system_disk_type of this ProductInfo. - 系统盘类型 + 系统盘类型。 :return: The system_disk_type of this ProductInfo. :rtype: str @@ -400,7 +400,7 @@ def system_disk_type(self): def system_disk_type(self, system_disk_type): """Sets the system_disk_type of this ProductInfo. - 系统盘类型 + 系统盘类型。 :param system_disk_type: The system_disk_type of this ProductInfo. :type system_disk_type: str @@ -411,7 +411,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this ProductInfo. - 系统盘大小 + 系统盘大小。 :return: The system_disk_size of this ProductInfo. :rtype: str @@ -422,7 +422,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this ProductInfo. - 系统盘大小 + 系统盘大小。 :param system_disk_size: The system_disk_size of this ProductInfo. :type system_disk_size: str @@ -433,7 +433,7 @@ def system_disk_size(self, system_disk_size): def gpu_desc(self): """Gets the gpu_desc of this ProductInfo. - GPU描述 + GPU描述。 :return: The gpu_desc of this ProductInfo. :rtype: str @@ -444,7 +444,7 @@ def gpu_desc(self): def gpu_desc(self, gpu_desc): """Sets the gpu_desc of this ProductInfo. - GPU描述 + GPU描述。 :param gpu_desc: The gpu_desc of this ProductInfo. :type gpu_desc: str @@ -455,7 +455,7 @@ def gpu_desc(self, gpu_desc): def descriptions(self): """Gets the descriptions of this ProductInfo. - 产品描述 + 产品描述。 :return: The descriptions of this ProductInfo. :rtype: str @@ -466,7 +466,7 @@ def descriptions(self): def descriptions(self, descriptions): """Sets the descriptions of this ProductInfo. - 产品描述 + 产品描述。 :param descriptions: The descriptions of this ProductInfo. :type descriptions: str @@ -499,7 +499,7 @@ def charge_mode(self, charge_mode): def contain_data_disk(self): """Gets the contain_data_disk of this ProductInfo. - 套餐计费是否包含了数据盘 + 套餐计费是否包含了数据盘。 :return: The contain_data_disk of this ProductInfo. :rtype: bool @@ -510,7 +510,7 @@ def contain_data_disk(self): def contain_data_disk(self, contain_data_disk): """Sets the contain_data_disk of this ProductInfo. - 套餐计费是否包含了数据盘 + 套餐计费是否包含了数据盘。 :param contain_data_disk: The contain_data_disk of this ProductInfo. :type contain_data_disk: bool @@ -521,7 +521,7 @@ def contain_data_disk(self, contain_data_disk): def resource_type(self): """Gets the resource_type of this ProductInfo. - 资源类型 + 资源类型。 :return: The resource_type of this ProductInfo. :rtype: str @@ -532,7 +532,7 @@ def resource_type(self): def resource_type(self, resource_type): """Sets the resource_type of this ProductInfo. - 资源类型 + 资源类型。 :param resource_type: The resource_type of this ProductInfo. :type resource_type: str @@ -543,7 +543,7 @@ def resource_type(self, resource_type): def cloud_service_type(self): """Gets the cloud_service_type of this ProductInfo. - 云服务类型 + 云服务类型。 :return: The cloud_service_type of this ProductInfo. :rtype: str @@ -554,7 +554,7 @@ def cloud_service_type(self): def cloud_service_type(self, cloud_service_type): """Sets the cloud_service_type of this ProductInfo. - 云服务类型 + 云服务类型。 :param cloud_service_type: The cloud_service_type of this ProductInfo. :type cloud_service_type: str @@ -565,7 +565,7 @@ def cloud_service_type(self, cloud_service_type): def volume_product_type(self): """Gets the volume_product_type of this ProductInfo. - 磁盘产品类型 + 磁盘产品类型。 :return: The volume_product_type of this ProductInfo. :rtype: str @@ -576,7 +576,7 @@ def volume_product_type(self): def volume_product_type(self, volume_product_type): """Sets the volume_product_type of this ProductInfo. - 磁盘产品类型 + 磁盘产品类型。 :param volume_product_type: The volume_product_type of this ProductInfo. :type volume_product_type: str @@ -587,7 +587,7 @@ def volume_product_type(self, volume_product_type): def sessions(self): """Gets the sessions of this ProductInfo. - 套餐默认支持的最大会话数 + 套餐默认支持的最大会话数。 :return: The sessions of this ProductInfo. :rtype: int @@ -598,7 +598,7 @@ def sessions(self): def sessions(self, sessions): """Sets the sessions of this ProductInfo. - 套餐默认支持的最大会话数 + 套餐默认支持的最大会话数。 :param sessions: The sessions of this ProductInfo. :type sessions: int @@ -631,7 +631,7 @@ def status(self, status): def cond_operation_az(self): """Gets the cond_operation_az of this ProductInfo. - 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)” > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 + 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” 。 > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)”。 > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 :return: The cond_operation_az of this ProductInfo. :rtype: str @@ -642,7 +642,7 @@ def cond_operation_az(self): def cond_operation_az(self, cond_operation_az): """Sets the cond_operation_az of this ProductInfo. - 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)” > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 + 产品套餐在可用区的状态,配套status使用。 > - 此参数是AZ级配置,优选取此参数的值,某个AZ没有在此参数中配置时默认使用status参数的取值。 > - 配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。 > - 例如:套餐在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为: > - “status”设置为:“abandon” 。 > - “cond_operation_az”设置为:“az0(normal), az1(sellout), az2(obt), az3(normal)”。 > - 说明:如果flavor在某个AZ下的状态与status配置状态不同,必须配置该参数。 :param cond_operation_az: The cond_operation_az of this ProductInfo. :type cond_operation_az: str @@ -653,7 +653,7 @@ def cond_operation_az(self, cond_operation_az): def sub_product_list(self): """Gets the sub_product_list of this ProductInfo. - 专属主机的子产品 + 专属主机的子产品。 :return: The sub_product_list of this ProductInfo. :rtype: list[str] @@ -664,7 +664,7 @@ def sub_product_list(self): def sub_product_list(self, sub_product_list): """Sets the sub_product_list of this ProductInfo. - 专属主机的子产品 + 专属主机的子产品。 :param sub_product_list: The sub_product_list of this ProductInfo. :type sub_product_list: list[str] @@ -675,7 +675,7 @@ def sub_product_list(self, sub_product_list): def domain_ids(self): """Gets the domain_ids of this ProductInfo. - 产品属于专有的domainId + 产品属于专有的domainId。 :return: The domain_ids of this ProductInfo. :rtype: list[str] @@ -686,7 +686,7 @@ def domain_ids(self): def domain_ids(self, domain_ids): """Sets the domain_ids of this ProductInfo. - 产品属于专有的domainId + 产品属于专有的domainId。 :param domain_ids: The domain_ids of this ProductInfo. :type domain_ids: list[str] @@ -697,7 +697,7 @@ def domain_ids(self, domain_ids): def package_type(self): """Gets the package_type of this ProductInfo. - 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :return: The package_type of this ProductInfo. :rtype: str @@ -708,7 +708,7 @@ def package_type(self): def package_type(self, package_type): """Sets the package_type of this ProductInfo. - 套餐类型。 - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 + 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :param package_type: The package_type of this ProductInfo. :type package_type: str @@ -719,7 +719,7 @@ def package_type(self, package_type): def expire_time(self): """Gets the expire_time of this ProductInfo. - 产品套餐过期时间,产品将在改时间点后逐步下架 + 产品套餐过期时间,产品将在改时间点后逐步下架。 :return: The expire_time of this ProductInfo. :rtype: datetime @@ -730,7 +730,7 @@ def expire_time(self): def expire_time(self, expire_time): """Sets the expire_time of this ProductInfo. - 产品套餐过期时间,产品将在改时间点后逐步下架 + 产品套餐过期时间,产品将在改时间点后逐步下架。 :param expire_time: The expire_time of this ProductInfo. :type expire_time: datetime @@ -741,7 +741,7 @@ def expire_time(self, expire_time): def support_gpu_type(self): """Gets the support_gpu_type of this ProductInfo. - 产品套餐支持的GPU类型 + 产品套餐支持的GPU类型。 :return: The support_gpu_type of this ProductInfo. :rtype: str @@ -752,7 +752,7 @@ def support_gpu_type(self): def support_gpu_type(self, support_gpu_type): """Sets the support_gpu_type of this ProductInfo. - 产品套餐支持的GPU类型 + 产品套餐支持的GPU类型。 :param support_gpu_type: The support_gpu_type of this ProductInfo. :type support_gpu_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app.py index 6652e1a9bf..aeead65650 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app.py @@ -53,31 +53,31 @@ def __init__(self, name=None, version=None, command_param=None, icon_uri=None, e The model defined in huaweicloud sdk - :param name: 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + :param name: 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 不允许包含如下字符:^;|~`{}[]<>。 3. 长度1~64个字符。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str - :param icon_uri: > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + :param icon_uri: 图标地址,该字段当前未使用。 > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 :type icon_uri: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param icon_path: 应用图标的路径 + :param icon_path: 应用图标的路径。 :type icon_path: str - :param icon_index: 应用图标的索引 + :param icon_index: 应用图标的索引。 :type icon_index: int - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param source_type: 应用类型 - '1':系统保留不可用 - '2':镜像应用 - '3':自定义应用 + :param source_type: 应用类型: - '1':系统保留不可用。 - '2':镜像应用。 - '3':自定义应用。 :type source_type: int - :param publisher: 应用发布者 + :param publisher: 应用发布者。 :type publisher: str - :param source_image_ids: 镜像ids,最多20个 + :param source_image_ids: 镜像ids,最多20个。 :type source_image_ids: list[str] - :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :type sandbox_enable: bool """ @@ -126,7 +126,7 @@ def __init__(self, name=None, version=None, command_param=None, icon_uri=None, e def name(self): """Gets the name of this PublishApp. - 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 不允许包含如下字符:^;|~`{}[]<>。 3. 长度1~64个字符。 :return: The name of this PublishApp. :rtype: str @@ -137,7 +137,7 @@ def name(self): def name(self, name): """Sets the name of this PublishApp. - 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 不允许包含如下字符:^;|~`{}[]<>。 3. 长度1~64个字符。 :param name: The name of this PublishApp. :type name: str @@ -148,7 +148,7 @@ def name(self, name): def version(self): """Gets the version of this PublishApp. - 应用版本号 + 应用版本号。 :return: The version of this PublishApp. :rtype: str @@ -159,7 +159,7 @@ def version(self): def version(self, version): """Sets the version of this PublishApp. - 应用版本号 + 应用版本号。 :param version: The version of this PublishApp. :type version: str @@ -170,7 +170,7 @@ def version(self, version): def command_param(self): """Gets the command_param of this PublishApp. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this PublishApp. :rtype: str @@ -181,7 +181,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this PublishApp. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this PublishApp. :type command_param: str @@ -192,7 +192,7 @@ def command_param(self, command_param): def icon_uri(self): """Gets the icon_uri of this PublishApp. - > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + 图标地址,该字段当前未使用。 > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 :return: The icon_uri of this PublishApp. :rtype: str @@ -203,7 +203,7 @@ def icon_uri(self): def icon_uri(self, icon_uri): """Sets the icon_uri of this PublishApp. - > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + 图标地址,该字段当前未使用。 > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 :param icon_uri: The icon_uri of this PublishApp. :type icon_uri: str @@ -214,7 +214,7 @@ def icon_uri(self, icon_uri): def execute_path(self): """Gets the execute_path of this PublishApp. - 执行路径 + 执行路径。 :return: The execute_path of this PublishApp. :rtype: str @@ -225,7 +225,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this PublishApp. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this PublishApp. :type execute_path: str @@ -236,7 +236,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this PublishApp. - 应用工作目录 + 应用工作目录。 :return: The work_path of this PublishApp. :rtype: str @@ -247,7 +247,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this PublishApp. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this PublishApp. :type work_path: str @@ -258,7 +258,7 @@ def work_path(self, work_path): def icon_path(self): """Gets the icon_path of this PublishApp. - 应用图标的路径 + 应用图标的路径。 :return: The icon_path of this PublishApp. :rtype: str @@ -269,7 +269,7 @@ def icon_path(self): def icon_path(self, icon_path): """Sets the icon_path of this PublishApp. - 应用图标的路径 + 应用图标的路径。 :param icon_path: The icon_path of this PublishApp. :type icon_path: str @@ -280,7 +280,7 @@ def icon_path(self, icon_path): def icon_index(self): """Gets the icon_index of this PublishApp. - 应用图标的索引 + 应用图标的索引。 :return: The icon_index of this PublishApp. :rtype: int @@ -291,7 +291,7 @@ def icon_index(self): def icon_index(self, icon_index): """Sets the icon_index of this PublishApp. - 应用图标的索引 + 应用图标的索引。 :param icon_index: The icon_index of this PublishApp. :type icon_index: int @@ -302,7 +302,7 @@ def icon_index(self, icon_index): def description(self): """Gets the description of this PublishApp. - 应用描述 + 应用描述。 :return: The description of this PublishApp. :rtype: str @@ -313,7 +313,7 @@ def description(self): def description(self, description): """Sets the description of this PublishApp. - 应用描述 + 应用描述。 :param description: The description of this PublishApp. :type description: str @@ -324,7 +324,7 @@ def description(self, description): def source_type(self): """Gets the source_type of this PublishApp. - 应用类型 - '1':系统保留不可用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统保留不可用。 - '2':镜像应用。 - '3':自定义应用。 :return: The source_type of this PublishApp. :rtype: int @@ -335,7 +335,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this PublishApp. - 应用类型 - '1':系统保留不可用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统保留不可用。 - '2':镜像应用。 - '3':自定义应用。 :param source_type: The source_type of this PublishApp. :type source_type: int @@ -346,7 +346,7 @@ def source_type(self, source_type): def publisher(self): """Gets the publisher of this PublishApp. - 应用发布者 + 应用发布者。 :return: The publisher of this PublishApp. :rtype: str @@ -357,7 +357,7 @@ def publisher(self): def publisher(self, publisher): """Sets the publisher of this PublishApp. - 应用发布者 + 应用发布者。 :param publisher: The publisher of this PublishApp. :type publisher: str @@ -368,7 +368,7 @@ def publisher(self, publisher): def source_image_ids(self): """Gets the source_image_ids of this PublishApp. - 镜像ids,最多20个 + 镜像ids,最多20个。 :return: The source_image_ids of this PublishApp. :rtype: list[str] @@ -379,7 +379,7 @@ def source_image_ids(self): def source_image_ids(self, source_image_ids): """Sets the source_image_ids of this PublishApp. - 镜像ids,最多20个 + 镜像ids,最多20个。 :param source_image_ids: The source_image_ids of this PublishApp. :type source_image_ids: list[str] @@ -390,7 +390,7 @@ def source_image_ids(self, source_image_ids): def sandbox_enable(self): """Gets the sandbox_enable of this PublishApp. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :return: The sandbox_enable of this PublishApp. :rtype: bool @@ -401,7 +401,7 @@ def sandbox_enable(self): def sandbox_enable(self, sandbox_enable): """Sets the sandbox_enable of this PublishApp. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :param sandbox_enable: The sandbox_enable of this PublishApp. :type sandbox_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_req.py index d6709056db..a1f09cea49 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 发布应用列表(单次最多20个应用) + :param items: 发布应用列表(单次最多20个应用)。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishApp`] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this PublishAppReq. - 发布应用列表(单次最多20个应用) + 发布应用列表(单次最多20个应用)。 :return: The items of this PublishAppReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishApp`] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this PublishAppReq. - 发布应用列表(单次最多20个应用) + 发布应用列表(单次最多20个应用)。 :param items: The items of this PublishAppReq. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishApp`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_request.py index a24d2d2e1b..b227f76d32 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_request.py @@ -31,7 +31,7 @@ def __init__(self, app_group_id=None, body=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str :param body: Body of the PublishAppRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppReq` @@ -51,7 +51,7 @@ def __init__(self, app_group_id=None, body=None): def app_group_id(self): """Gets the app_group_id of this PublishAppRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this PublishAppRequest. :rtype: str @@ -62,7 +62,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this PublishAppRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this PublishAppRequest. :type app_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py index ec19c71a2c..6eff1fd7ac 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int :param items: 查发布的应用列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.App`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this PublishAppResponse. - 总数 + 总数。 :return: The count of this PublishAppResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this PublishAppResponse. - 总数 + 总数。 :param count: The count of this PublishAppResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publishable_app.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publishable_app.py index 1256ec81db..a46b484c1c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publishable_app.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publishable_app.py @@ -65,43 +65,43 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute The model defined in huaweicloud sdk - :param id: 应用ID + :param id: 应用ID。 :type id: str - :param name: 应用名称 + :param name: 应用名称。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param icon_path: 应用图标的路径 + :param icon_path: 应用图标的路径。 :type icon_path: str - :param icon_index: 应用图标的索引 + :param icon_index: 应用图标的索引。 :type icon_index: int - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param app_group_id: 应用组标识Id + :param app_group_id: 应用组标识Id。 :type app_group_id: str :param state: :type state: :class:`huaweicloudsdkworkspaceapp.v1.AppStateEnum` - :param tenant_id: 所在的租户ID + :param tenant_id: 所在的租户ID。 :type tenant_id: str - :param publish_at: 发布时间 + :param publish_at: 发布时间。 :type publish_at: datetime - :param source_type: 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + :param source_type: 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :type source_type: int - :param publisher: 应用发布者 + :param publisher: 应用发布者。 :type publisher: str - :param icon_url: 图标url + :param icon_url: 图标url。 :type icon_url: str - :param publishable: 是否可发布应用 - true: 可发布 - false: 不可发布 + :param publishable: 是否可发布应用: - true: 可发布。 - false: 不可发布。 :type publishable: bool - :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :type sandbox_enable: bool - :param source_image_ids: 镜像ids + :param source_image_ids: 镜像ids。 :type source_image_ids: list[str] """ @@ -171,7 +171,7 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute def id(self): """Gets the id of this PublishableApp. - 应用ID + 应用ID。 :return: The id of this PublishableApp. :rtype: str @@ -182,7 +182,7 @@ def id(self): def id(self, id): """Sets the id of this PublishableApp. - 应用ID + 应用ID。 :param id: The id of this PublishableApp. :type id: str @@ -193,7 +193,7 @@ def id(self, id): def name(self): """Gets the name of this PublishableApp. - 应用名称 + 应用名称。 :return: The name of this PublishableApp. :rtype: str @@ -204,7 +204,7 @@ def name(self): def name(self, name): """Sets the name of this PublishableApp. - 应用名称 + 应用名称。 :param name: The name of this PublishableApp. :type name: str @@ -215,7 +215,7 @@ def name(self, name): def version(self): """Gets the version of this PublishableApp. - 应用版本号 + 应用版本号。 :return: The version of this PublishableApp. :rtype: str @@ -226,7 +226,7 @@ def version(self): def version(self, version): """Sets the version of this PublishableApp. - 应用版本号 + 应用版本号。 :param version: The version of this PublishableApp. :type version: str @@ -237,7 +237,7 @@ def version(self, version): def command_param(self): """Gets the command_param of this PublishableApp. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this PublishableApp. :rtype: str @@ -248,7 +248,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this PublishableApp. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this PublishableApp. :type command_param: str @@ -259,7 +259,7 @@ def command_param(self, command_param): def execute_path(self): """Gets the execute_path of this PublishableApp. - 执行路径 + 执行路径。 :return: The execute_path of this PublishableApp. :rtype: str @@ -270,7 +270,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this PublishableApp. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this PublishableApp. :type execute_path: str @@ -281,7 +281,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this PublishableApp. - 应用工作目录 + 应用工作目录。 :return: The work_path of this PublishableApp. :rtype: str @@ -292,7 +292,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this PublishableApp. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this PublishableApp. :type work_path: str @@ -303,7 +303,7 @@ def work_path(self, work_path): def icon_path(self): """Gets the icon_path of this PublishableApp. - 应用图标的路径 + 应用图标的路径。 :return: The icon_path of this PublishableApp. :rtype: str @@ -314,7 +314,7 @@ def icon_path(self): def icon_path(self, icon_path): """Sets the icon_path of this PublishableApp. - 应用图标的路径 + 应用图标的路径。 :param icon_path: The icon_path of this PublishableApp. :type icon_path: str @@ -325,7 +325,7 @@ def icon_path(self, icon_path): def icon_index(self): """Gets the icon_index of this PublishableApp. - 应用图标的索引 + 应用图标的索引。 :return: The icon_index of this PublishableApp. :rtype: int @@ -336,7 +336,7 @@ def icon_index(self): def icon_index(self, icon_index): """Sets the icon_index of this PublishableApp. - 应用图标的索引 + 应用图标的索引。 :param icon_index: The icon_index of this PublishableApp. :type icon_index: int @@ -347,7 +347,7 @@ def icon_index(self, icon_index): def description(self): """Gets the description of this PublishableApp. - 应用描述 + 应用描述。 :return: The description of this PublishableApp. :rtype: str @@ -358,7 +358,7 @@ def description(self): def description(self, description): """Sets the description of this PublishableApp. - 应用描述 + 应用描述。 :param description: The description of this PublishableApp. :type description: str @@ -369,7 +369,7 @@ def description(self, description): def app_group_id(self): """Gets the app_group_id of this PublishableApp. - 应用组标识Id + 应用组标识Id。 :return: The app_group_id of this PublishableApp. :rtype: str @@ -380,7 +380,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this PublishableApp. - 应用组标识Id + 应用组标识Id。 :param app_group_id: The app_group_id of this PublishableApp. :type app_group_id: str @@ -409,7 +409,7 @@ def state(self, state): def tenant_id(self): """Gets the tenant_id of this PublishableApp. - 所在的租户ID + 所在的租户ID。 :return: The tenant_id of this PublishableApp. :rtype: str @@ -420,7 +420,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this PublishableApp. - 所在的租户ID + 所在的租户ID。 :param tenant_id: The tenant_id of this PublishableApp. :type tenant_id: str @@ -431,7 +431,7 @@ def tenant_id(self, tenant_id): def publish_at(self): """Gets the publish_at of this PublishableApp. - 发布时间 + 发布时间。 :return: The publish_at of this PublishableApp. :rtype: datetime @@ -442,7 +442,7 @@ def publish_at(self): def publish_at(self, publish_at): """Sets the publish_at of this PublishableApp. - 发布时间 + 发布时间。 :param publish_at: The publish_at of this PublishableApp. :type publish_at: datetime @@ -453,7 +453,7 @@ def publish_at(self, publish_at): def source_type(self): """Gets the source_type of this PublishableApp. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :return: The source_type of this PublishableApp. :rtype: int @@ -464,7 +464,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this PublishableApp. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :param source_type: The source_type of this PublishableApp. :type source_type: int @@ -475,7 +475,7 @@ def source_type(self, source_type): def publisher(self): """Gets the publisher of this PublishableApp. - 应用发布者 + 应用发布者。 :return: The publisher of this PublishableApp. :rtype: str @@ -486,7 +486,7 @@ def publisher(self): def publisher(self, publisher): """Sets the publisher of this PublishableApp. - 应用发布者 + 应用发布者。 :param publisher: The publisher of this PublishableApp. :type publisher: str @@ -497,7 +497,7 @@ def publisher(self, publisher): def icon_url(self): """Gets the icon_url of this PublishableApp. - 图标url + 图标url。 :return: The icon_url of this PublishableApp. :rtype: str @@ -508,7 +508,7 @@ def icon_url(self): def icon_url(self, icon_url): """Sets the icon_url of this PublishableApp. - 图标url + 图标url。 :param icon_url: The icon_url of this PublishableApp. :type icon_url: str @@ -519,7 +519,7 @@ def icon_url(self, icon_url): def publishable(self): """Gets the publishable of this PublishableApp. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :return: The publishable of this PublishableApp. :rtype: bool @@ -530,7 +530,7 @@ def publishable(self): def publishable(self, publishable): """Sets the publishable of this PublishableApp. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :param publishable: The publishable of this PublishableApp. :type publishable: bool @@ -541,7 +541,7 @@ def publishable(self, publishable): def sandbox_enable(self): """Gets the sandbox_enable of this PublishableApp. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :return: The sandbox_enable of this PublishableApp. :rtype: bool @@ -552,7 +552,7 @@ def sandbox_enable(self): def sandbox_enable(self, sandbox_enable): """Sets the sandbox_enable of this PublishableApp. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :param sandbox_enable: The sandbox_enable of this PublishableApp. :type sandbox_enable: bool @@ -563,7 +563,7 @@ def sandbox_enable(self, sandbox_enable): def source_image_ids(self): """Gets the source_image_ids of this PublishableApp. - 镜像ids + 镜像ids。 :return: The source_image_ids of this PublishableApp. :rtype: list[str] @@ -574,7 +574,7 @@ def source_image_ids(self): def source_image_ids(self, source_image_ids): """Sets the source_image_ids of this PublishableApp. - 镜像ids + 镜像ids。 :param source_image_ids: The source_image_ids of this PublishableApp. :type source_image_ids: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/quota_remainder_data.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/quota_remainder_data.py index 8d00e69169..11423990a3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/quota_remainder_data.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/quota_remainder_data.py @@ -35,9 +35,9 @@ def __init__(self, type=None, remainder=None, need=None): :param type: :type type: :class:`huaweicloudsdkworkspaceapp.v1.QuotaResourceTypeEnum` - :param remainder: 剩余配额 + :param remainder: 剩余配额。 :type remainder: int - :param need: 所需配额 + :param need: 所需配额。 :type need: int """ @@ -77,7 +77,7 @@ def type(self, type): def remainder(self): """Gets the remainder of this QuotaRemainderData. - 剩余配额 + 剩余配额。 :return: The remainder of this QuotaRemainderData. :rtype: int @@ -88,7 +88,7 @@ def remainder(self): def remainder(self, remainder): """Sets the remainder of this QuotaRemainderData. - 剩余配额 + 剩余配额。 :param remainder: The remainder of this QuotaRemainderData. :type remainder: int @@ -99,7 +99,7 @@ def remainder(self, remainder): def need(self): """Gets the need of this QuotaRemainderData. - 所需配额 + 所需配额。 :return: The need of this QuotaRemainderData. :rtype: int @@ -110,7 +110,7 @@ def need(self): def need(self, need): """Sets the need of this QuotaRemainderData. - 所需配额 + 所需配额。 :param need: The need of this QuotaRemainderData. :type need: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_req.py index 31cbdf1d64..6e6d72a312 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_req.py @@ -29,7 +29,7 @@ def __init__(self, update_access_agent=None): The model defined in huaweicloud sdk - :param update_access_agent: 是否自动升级hda版本 + :param update_access_agent: 是否自动升级hda版本。 :type update_access_agent: bool """ @@ -45,7 +45,7 @@ def __init__(self, update_access_agent=None): def update_access_agent(self): """Gets the update_access_agent of this ReinstallServerReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :return: The update_access_agent of this ReinstallServerReq. :rtype: bool @@ -56,7 +56,7 @@ def update_access_agent(self): def update_access_agent(self, update_access_agent): """Sets the update_access_agent of this ReinstallServerReq. - 是否自动升级hda版本 + 是否自动升级hda版本。 :param update_access_agent: The update_access_agent of this ReinstallServerReq. :type update_access_agent: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_request.py index 2f795835cb..1da178292b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_request.py @@ -31,7 +31,7 @@ def __init__(self, server_id=None, body=None): The model defined in huaweicloud sdk - :param server_id: 服务器唯一标识 + :param server_id: 服务器唯一标识。 :type server_id: str :param body: Body of the ReinstallServerRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.ReinstallServerReq` @@ -51,7 +51,7 @@ def __init__(self, server_id=None, body=None): def server_id(self): """Gets the server_id of this ReinstallServerRequest. - 服务器唯一标识 + 服务器唯一标识。 :return: The server_id of this ReinstallServerRequest. :rtype: str @@ -62,7 +62,7 @@ def server_id(self): def server_id(self, server_id): """Sets the server_id of this ReinstallServerRequest. - 服务器唯一标识 + 服务器唯一标识。 :param server_id: The server_id of this ReinstallServerRequest. :type server_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_response.py index 2aa0f8f56e..5fe4da8c34 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/reinstall_server_response.py @@ -30,7 +30,7 @@ def __init__(self, job_id=None): The model defined in huaweicloud sdk - :param job_id: 任务ID + :param job_id: 任务ID。 :type job_id: str """ @@ -46,7 +46,7 @@ def __init__(self, job_id=None): def job_id(self): """Gets the job_id of this ReinstallServerResponse. - 任务ID + 任务ID。 :return: The job_id of this ReinstallServerResponse. :rtype: str @@ -57,7 +57,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this ReinstallServerResponse. - 任务ID + 任务ID。 :param job_id: The job_id of this ReinstallServerResponse. :type job_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/relative_resource.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/relative_resource.py index c9da124919..dd7fd06d09 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/relative_resource.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/relative_resource.py @@ -39,17 +39,17 @@ def __init__(self, relative_resource_id=None, relative_resource_name=None, relat The model defined in huaweicloud sdk - :param relative_resource_id: 关联的资源ID + :param relative_resource_id: 关联的资源ID。 :type relative_resource_id: str :param relative_resource_name: 有资源名称的云资源,都需要返回resourceName,如果为空值,则返回“”。 :type relative_resource_name: str - :param relative_type: * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource, + :param relative_type: * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource。 :type relative_type: int - :param relative_cloud_service_type: 比如ECS云服务类型为‘hws.service.type.ec2’ + :param relative_cloud_service_type: 比如ECS云服务类型为‘hws.service.type.ec2’。 :type relative_cloud_service_type: str - :param relative_resource_type: 比如VM的资源类型为‘hws.resource.type.vm’ + :param relative_resource_type: 比如VM的资源类型为‘hws.resource.type.vm’。 :type relative_resource_type: str - :param extend_params: 扩展信息,Key:Value格式 + :param extend_params: 扩展信息,Key:Value格式。 :type extend_params: str """ @@ -80,7 +80,7 @@ def __init__(self, relative_resource_id=None, relative_resource_name=None, relat def relative_resource_id(self): """Gets the relative_resource_id of this RelativeResource. - 关联的资源ID + 关联的资源ID。 :return: The relative_resource_id of this RelativeResource. :rtype: str @@ -91,7 +91,7 @@ def relative_resource_id(self): def relative_resource_id(self, relative_resource_id): """Sets the relative_resource_id of this RelativeResource. - 关联的资源ID + 关联的资源ID。 :param relative_resource_id: The relative_resource_id of this RelativeResource. :type relative_resource_id: str @@ -124,7 +124,7 @@ def relative_resource_name(self, relative_resource_name): def relative_type(self): """Gets the relative_type of this RelativeResource. - * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource, + * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource。 :return: The relative_type of this RelativeResource. :rtype: int @@ -135,7 +135,7 @@ def relative_type(self): def relative_type(self, relative_type): """Sets the relative_type of this RelativeResource. - * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource, + * 关联关系类型,描述relativeResourceId和resourceId间的关联关系: * 0:挂载(弱关联),表示relativeResourceId和resourceId两者有关联关系, * 但是两者可以独立使用、分别进行交易,且分别使用和交易都不影响整套云服务的使用;比如云主机和数据盘。 * 1:绑定(强关联),表示relativeResourceId和resourceId是强绑定关系, 两者必须一起使用、一起进行交易,缺少其中一个会造成整套云服务不能使用;比如云主机和系统盘。 缺省值为0(挂载)。 subResources中的RelativeResource,此字段是必填;mainResources中的RelativeResource。 :param relative_type: The relative_type of this RelativeResource. :type relative_type: int @@ -146,7 +146,7 @@ def relative_type(self, relative_type): def relative_cloud_service_type(self): """Gets the relative_cloud_service_type of this RelativeResource. - 比如ECS云服务类型为‘hws.service.type.ec2’ + 比如ECS云服务类型为‘hws.service.type.ec2’。 :return: The relative_cloud_service_type of this RelativeResource. :rtype: str @@ -157,7 +157,7 @@ def relative_cloud_service_type(self): def relative_cloud_service_type(self, relative_cloud_service_type): """Sets the relative_cloud_service_type of this RelativeResource. - 比如ECS云服务类型为‘hws.service.type.ec2’ + 比如ECS云服务类型为‘hws.service.type.ec2’。 :param relative_cloud_service_type: The relative_cloud_service_type of this RelativeResource. :type relative_cloud_service_type: str @@ -168,7 +168,7 @@ def relative_cloud_service_type(self, relative_cloud_service_type): def relative_resource_type(self): """Gets the relative_resource_type of this RelativeResource. - 比如VM的资源类型为‘hws.resource.type.vm’ + 比如VM的资源类型为‘hws.resource.type.vm’。 :return: The relative_resource_type of this RelativeResource. :rtype: str @@ -179,7 +179,7 @@ def relative_resource_type(self): def relative_resource_type(self, relative_resource_type): """Sets the relative_resource_type of this RelativeResource. - 比如VM的资源类型为‘hws.resource.type.vm’ + 比如VM的资源类型为‘hws.resource.type.vm’。 :param relative_resource_type: The relative_resource_type of this RelativeResource. :type relative_resource_type: str @@ -190,7 +190,7 @@ def relative_resource_type(self, relative_resource_type): def extend_params(self): """Gets the extend_params of this RelativeResource. - 扩展信息,Key:Value格式 + 扩展信息,Key:Value格式。 :return: The extend_params of this RelativeResource. :rtype: str @@ -201,7 +201,7 @@ def extend_params(self): def extend_params(self, extend_params): """Sets the extend_params of this RelativeResource. - 扩展信息,Key:Value格式 + 扩展信息,Key:Value格式。 :param extend_params: The extend_params of this RelativeResource. :type extend_params: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/route_policy.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/route_policy.py index b18b857363..853b868908 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/route_policy.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/route_policy.py @@ -33,11 +33,11 @@ def __init__(self, max_session=None, cpu_threshold=None, mem_threshold=None): The model defined in huaweicloud sdk - :param max_session: 单台服务器最大的链接会话数 + :param max_session: 单台服务器最大的链接会话数。 :type max_session: int - :param cpu_threshold: cpu使用率阈值,单位为% + :param cpu_threshold: cpu使用率阈值,单位为%。 :type cpu_threshold: int - :param mem_threshold: 内存使用率阈值,单位为% + :param mem_threshold: 内存使用率阈值,单位为%。 :type mem_threshold: int """ @@ -59,7 +59,7 @@ def __init__(self, max_session=None, cpu_threshold=None, mem_threshold=None): def max_session(self): """Gets the max_session of this RoutePolicy. - 单台服务器最大的链接会话数 + 单台服务器最大的链接会话数。 :return: The max_session of this RoutePolicy. :rtype: int @@ -70,7 +70,7 @@ def max_session(self): def max_session(self, max_session): """Sets the max_session of this RoutePolicy. - 单台服务器最大的链接会话数 + 单台服务器最大的链接会话数。 :param max_session: The max_session of this RoutePolicy. :type max_session: int @@ -81,7 +81,7 @@ def max_session(self, max_session): def cpu_threshold(self): """Gets the cpu_threshold of this RoutePolicy. - cpu使用率阈值,单位为% + cpu使用率阈值,单位为%。 :return: The cpu_threshold of this RoutePolicy. :rtype: int @@ -92,7 +92,7 @@ def cpu_threshold(self): def cpu_threshold(self, cpu_threshold): """Sets the cpu_threshold of this RoutePolicy. - cpu使用率阈值,单位为% + cpu使用率阈值,单位为%。 :param cpu_threshold: The cpu_threshold of this RoutePolicy. :type cpu_threshold: int @@ -103,7 +103,7 @@ def cpu_threshold(self, cpu_threshold): def mem_threshold(self): """Gets the mem_threshold of this RoutePolicy. - 内存使用率阈值,单位为% + 内存使用率阈值,单位为%。 :return: The mem_threshold of this RoutePolicy. :rtype: int @@ -114,7 +114,7 @@ def mem_threshold(self): def mem_threshold(self, mem_threshold): """Sets the mem_threshold of this RoutePolicy. - 内存使用率阈值,单位为% + 内存使用率阈值,单位为%。 :param mem_threshold: The mem_threshold of this RoutePolicy. :type mem_threshold: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc.py index f860c89d85..3071de0c43 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc.py @@ -31,7 +31,7 @@ def __init__(self, sbc_automatic_disconnection=None, sbc_automatic_disconnection The model defined in huaweicloud sdk - :param sbc_automatic_disconnection: 连接策略。 - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 + :param sbc_automatic_disconnection: 连接策略: - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 :type sbc_automatic_disconnection: str :param sbc_automatic_disconnection_options: :type sbc_automatic_disconnection_options: :class:`huaweicloudsdkworkspaceapp.v1.SbcAutomaticDisconnectionOptions` @@ -52,7 +52,7 @@ def __init__(self, sbc_automatic_disconnection=None, sbc_automatic_disconnection def sbc_automatic_disconnection(self): """Gets the sbc_automatic_disconnection of this Sbc. - 连接策略。 - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 + 连接策略: - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 :return: The sbc_automatic_disconnection of this Sbc. :rtype: str @@ -63,7 +63,7 @@ def sbc_automatic_disconnection(self): def sbc_automatic_disconnection(self, sbc_automatic_disconnection): """Sets the sbc_automatic_disconnection of this Sbc. - 连接策略。 - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 + 连接策略: - DISABLED:已禁用 - AUTO_DISCONNECT:自动断开 - AUTO_LOCK:自动锁屏 :param sbc_automatic_disconnection: The sbc_automatic_disconnection of this Sbc. :type sbc_automatic_disconnection: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc_automatic_disconnection_options.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc_automatic_disconnection_options.py index 2193e610bb..0433ba59df 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc_automatic_disconnection_options.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sbc_automatic_disconnection_options.py @@ -33,7 +33,7 @@ def __init__(self, disconnection_waiting_time=None, sbc_auto_logout=None, auto_l The model defined in huaweicloud sdk - :param disconnection_waiting_time: 等待时间(分钟) + :param disconnection_waiting_time: 等待时间(分钟)。 :type disconnection_waiting_time: int :param sbc_auto_logout: 是否自动注销。取值为:false:表示是。true:表示否。 :type sbc_auto_logout: bool @@ -59,7 +59,7 @@ def __init__(self, disconnection_waiting_time=None, sbc_auto_logout=None, auto_l def disconnection_waiting_time(self): """Gets the disconnection_waiting_time of this SbcAutomaticDisconnectionOptions. - 等待时间(分钟) + 等待时间(分钟)。 :return: The disconnection_waiting_time of this SbcAutomaticDisconnectionOptions. :rtype: int @@ -70,7 +70,7 @@ def disconnection_waiting_time(self): def disconnection_waiting_time(self, disconnection_waiting_time): """Sets the disconnection_waiting_time of this SbcAutomaticDisconnectionOptions. - 等待时间(分钟) + 等待时间(分钟)。 :param disconnection_waiting_time: The disconnection_waiting_time of this SbcAutomaticDisconnectionOptions. :type disconnection_waiting_time: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy.py index d6b0bc758f..a76f2e1d12 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy.py @@ -35,11 +35,11 @@ def __init__(self, enable=None, max_scaling_amount=None, single_expansion_count= The model defined in huaweicloud sdk - :param enable: 是否启用策略,默认启用 'true': 启用 'false': 禁用 + :param enable: 是否启用策略,默认启用: 'true': 启用 'false': 禁用 :type enable: bool - :param max_scaling_amount: 最大扩容数量 + :param max_scaling_amount: 最大扩容数量。 :type max_scaling_amount: int - :param single_expansion_count: 单次扩容数量 + :param single_expansion_count: 单次扩容数量。 :type single_expansion_count: int :param scaling_policy_by_session: :type scaling_policy_by_session: :class:`huaweicloudsdkworkspaceapp.v1.ScalingPolicyBySession` @@ -63,7 +63,7 @@ def __init__(self, enable=None, max_scaling_amount=None, single_expansion_count= def enable(self): """Gets the enable of this ScalingPolicy. - 是否启用策略,默认启用 'true': 启用 'false': 禁用 + 是否启用策略,默认启用: 'true': 启用 'false': 禁用 :return: The enable of this ScalingPolicy. :rtype: bool @@ -74,7 +74,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this ScalingPolicy. - 是否启用策略,默认启用 'true': 启用 'false': 禁用 + 是否启用策略,默认启用: 'true': 启用 'false': 禁用 :param enable: The enable of this ScalingPolicy. :type enable: bool @@ -85,7 +85,7 @@ def enable(self, enable): def max_scaling_amount(self): """Gets the max_scaling_amount of this ScalingPolicy. - 最大扩容数量 + 最大扩容数量。 :return: The max_scaling_amount of this ScalingPolicy. :rtype: int @@ -96,7 +96,7 @@ def max_scaling_amount(self): def max_scaling_amount(self, max_scaling_amount): """Sets the max_scaling_amount of this ScalingPolicy. - 最大扩容数量 + 最大扩容数量。 :param max_scaling_amount: The max_scaling_amount of this ScalingPolicy. :type max_scaling_amount: int @@ -107,7 +107,7 @@ def max_scaling_amount(self, max_scaling_amount): def single_expansion_count(self): """Gets the single_expansion_count of this ScalingPolicy. - 单次扩容数量 + 单次扩容数量。 :return: The single_expansion_count of this ScalingPolicy. :rtype: int @@ -118,7 +118,7 @@ def single_expansion_count(self): def single_expansion_count(self, single_expansion_count): """Sets the single_expansion_count of this ScalingPolicy. - 单次扩容数量 + 单次扩容数量。 :param single_expansion_count: The single_expansion_count of this ScalingPolicy. :type single_expansion_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy_by_session.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy_by_session.py index 26ca5b64d8..49c263f5d1 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy_by_session.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/scaling_policy_by_session.py @@ -31,9 +31,9 @@ def __init__(self, session_usage_threshold=None, shrink_after_session_idle_minut The model defined in huaweicloud sdk - :param session_usage_threshold: 分组的总会话使用率(达到改阈值后扩容) + :param session_usage_threshold: 分组的总会话使用率(达到改阈值后扩容)。 :type session_usage_threshold: int - :param shrink_after_session_idle_minutes: 给定时间内无会话连接的的实例进行释放 + :param shrink_after_session_idle_minutes: 给定时间内无会话连接的的实例进行释放。 :type shrink_after_session_idle_minutes: int """ @@ -50,7 +50,7 @@ def __init__(self, session_usage_threshold=None, shrink_after_session_idle_minut def session_usage_threshold(self): """Gets the session_usage_threshold of this ScalingPolicyBySession. - 分组的总会话使用率(达到改阈值后扩容) + 分组的总会话使用率(达到改阈值后扩容)。 :return: The session_usage_threshold of this ScalingPolicyBySession. :rtype: int @@ -61,7 +61,7 @@ def session_usage_threshold(self): def session_usage_threshold(self, session_usage_threshold): """Sets the session_usage_threshold of this ScalingPolicyBySession. - 分组的总会话使用率(达到改阈值后扩容) + 分组的总会话使用率(达到改阈值后扩容)。 :param session_usage_threshold: The session_usage_threshold of this ScalingPolicyBySession. :type session_usage_threshold: int @@ -72,7 +72,7 @@ def session_usage_threshold(self, session_usage_threshold): def shrink_after_session_idle_minutes(self): """Gets the shrink_after_session_idle_minutes of this ScalingPolicyBySession. - 给定时间内无会话连接的的实例进行释放 + 给定时间内无会话连接的的实例进行释放。 :return: The shrink_after_session_idle_minutes of this ScalingPolicyBySession. :rtype: int @@ -83,7 +83,7 @@ def shrink_after_session_idle_minutes(self): def shrink_after_session_idle_minutes(self, shrink_after_session_idle_minutes): """Sets the shrink_after_session_idle_minutes of this ScalingPolicyBySession. - 给定时间内无会话连接的的实例进行释放 + 给定时间内无会话连接的的实例进行释放。 :param shrink_after_session_idle_minutes: The shrink_after_session_idle_minutes of this ScalingPolicyBySession. :type shrink_after_session_idle_minutes: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_address.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_address.py index 8f340e6179..d93c748964 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_address.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_address.py @@ -37,13 +37,13 @@ def __init__(self, addr=None, version=None, os_ext_ips_ma_cmac_addr=None, os_ext The model defined in huaweicloud sdk - :param addr: IP地址信息 + :param addr: IP地址信息。 :type addr: str - :param version: IP地址类型, `4` - IPV4 `6` - IPV6 + :param version: IP地址类型: `4` - IPV4 `6` - IPV6 :type version: int - :param os_ext_ips_ma_cmac_addr: MAC地址 + :param os_ext_ips_ma_cmac_addr: MAC地址。 :type os_ext_ips_ma_cmac_addr: str - :param os_ext_ip_stype: IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + :param os_ext_ip_stype: IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :type os_ext_ip_stype: str :param os_ext_ip_sport_id: IP地址对应的端口ID。 :type os_ext_ip_sport_id: str @@ -73,7 +73,7 @@ def __init__(self, addr=None, version=None, os_ext_ips_ma_cmac_addr=None, os_ext def addr(self): """Gets the addr of this ServerAddress. - IP地址信息 + IP地址信息。 :return: The addr of this ServerAddress. :rtype: str @@ -84,7 +84,7 @@ def addr(self): def addr(self, addr): """Sets the addr of this ServerAddress. - IP地址信息 + IP地址信息。 :param addr: The addr of this ServerAddress. :type addr: str @@ -95,7 +95,7 @@ def addr(self, addr): def version(self): """Gets the version of this ServerAddress. - IP地址类型, `4` - IPV4 `6` - IPV6 + IP地址类型: `4` - IPV4 `6` - IPV6 :return: The version of this ServerAddress. :rtype: int @@ -106,7 +106,7 @@ def version(self): def version(self, version): """Sets the version of this ServerAddress. - IP地址类型, `4` - IPV4 `6` - IPV6 + IP地址类型: `4` - IPV4 `6` - IPV6 :param version: The version of this ServerAddress. :type version: int @@ -117,7 +117,7 @@ def version(self, version): def os_ext_ips_ma_cmac_addr(self): """Gets the os_ext_ips_ma_cmac_addr of this ServerAddress. - MAC地址 + MAC地址。 :return: The os_ext_ips_ma_cmac_addr of this ServerAddress. :rtype: str @@ -128,7 +128,7 @@ def os_ext_ips_ma_cmac_addr(self): def os_ext_ips_ma_cmac_addr(self, os_ext_ips_ma_cmac_addr): """Sets the os_ext_ips_ma_cmac_addr of this ServerAddress. - MAC地址 + MAC地址。 :param os_ext_ips_ma_cmac_addr: The os_ext_ips_ma_cmac_addr of this ServerAddress. :type os_ext_ips_ma_cmac_addr: str @@ -139,7 +139,7 @@ def os_ext_ips_ma_cmac_addr(self, os_ext_ips_ma_cmac_addr): def os_ext_ip_stype(self): """Gets the os_ext_ip_stype of this ServerAddress. - IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :return: The os_ext_ip_stype of this ServerAddress. :rtype: str @@ -150,7 +150,7 @@ def os_ext_ip_stype(self): def os_ext_ip_stype(self, os_ext_ip_stype): """Sets the os_ext_ip_stype of this ServerAddress. - IP地址分配方式,字符串是大小写不敏感格式 * `fixed` - 代表私有IP地址 * `floating` - 代表浮动IP地址 + IP地址分配方式,字符串是大小写不敏感格式。 * `fixed` - 代表私有IP地址。 * `floating` - 代表浮动IP地址。 :param os_ext_ip_stype: The os_ext_ip_stype of this ServerAddress. :type os_ext_ip_stype: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py index 9476c0c48b..e5385feaf3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py @@ -75,29 +75,29 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= The model defined in huaweicloud sdk - :param id: 服务器组的唯一标识 + :param id: 服务器组的唯一标识。 :type id: str - :param name: 服务器组名称 + :param name: 服务器组名称。 :type name: str - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str - :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器 + :param image_id: 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :type image_id: str :param os_type: :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` - :param product_id: 产品id + :param product_id: 产品id。 :type product_id: str - :param subnet_id: 网卡对应的子网ID + :param subnet_id: 网卡对应的子网ID。 :type subnet_id: str :param system_disk_type: :type system_disk_type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param system_disk_size: 磁盘容量,单位GB + :param system_disk_size: 磁盘容量,单位GB。 :type system_disk_size: int - :param is_vdi: 是否为vdi单会话模式 + :param is_vdi: 是否为vdi单会话模式。 :type is_vdi: bool :param extra_session_type: :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` - :param extra_session_size: 付费会话个数 + :param extra_session_size: 付费会话个数。 :type extra_session_size: int :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` @@ -107,21 +107,21 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type update_time: datetime :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` - :param app_server_flavor_count: 服务器配置总数量 + :param app_server_flavor_count: 服务器配置总数量。 :type app_server_flavor_count: int - :param app_server_count: 服务器总数量 + :param app_server_count: 服务器总数量。 :type app_server_count: int - :param app_group_count: 关联应用组的总数量 + :param app_group_count: 关联应用组的总数量。 :type app_group_count: int - :param image_name: 镜像名称 + :param image_name: 镜像名称。 :type image_name: str :param product_info: :type product_info: :class:`huaweicloudsdkworkspaceapp.v1.ProductInfo` - :param subnet_name: 子网名称 + :param subnet_name: 子网名称。 :type subnet_name: str :param scaling_policy: :type scaling_policy: :class:`huaweicloudsdkworkspaceapp.v1.ScalingPolicy` - :param ou_name: 默认组织名称 + :param ou_name: 默认组织名称。 :type ou_name: str """ @@ -206,7 +206,7 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= def id(self): """Gets the id of this ServerGroup. - 服务器组的唯一标识 + 服务器组的唯一标识。 :return: The id of this ServerGroup. :rtype: str @@ -217,7 +217,7 @@ def id(self): def id(self, id): """Sets the id of this ServerGroup. - 服务器组的唯一标识 + 服务器组的唯一标识。 :param id: The id of this ServerGroup. :type id: str @@ -228,7 +228,7 @@ def id(self, id): def name(self): """Gets the name of this ServerGroup. - 服务器组名称 + 服务器组名称。 :return: The name of this ServerGroup. :rtype: str @@ -239,7 +239,7 @@ def name(self): def name(self, name): """Sets the name of this ServerGroup. - 服务器组名称 + 服务器组名称。 :param name: The name of this ServerGroup. :type name: str @@ -250,7 +250,7 @@ def name(self, name): def description(self): """Gets the description of this ServerGroup. - 服务器组描述 + 服务器组描述。 :return: The description of this ServerGroup. :rtype: str @@ -261,7 +261,7 @@ def description(self): def description(self, description): """Sets the description of this ServerGroup. - 服务器组描述 + 服务器组描述。 :param description: The description of this ServerGroup. :type description: str @@ -272,7 +272,7 @@ def description(self, description): def image_id(self): """Gets the image_id of this ServerGroup. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :return: The image_id of this ServerGroup. :rtype: str @@ -283,7 +283,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this ServerGroup. - 服务器组关联的镜像ID,用于创建对应组下的云服务器 + 服务器组关联的镜像ID,用于创建对应组下的云服务器。 :param image_id: The image_id of this ServerGroup. :type image_id: str @@ -312,7 +312,7 @@ def os_type(self, os_type): def product_id(self): """Gets the product_id of this ServerGroup. - 产品id + 产品id。 :return: The product_id of this ServerGroup. :rtype: str @@ -323,7 +323,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this ServerGroup. - 产品id + 产品id。 :param product_id: The product_id of this ServerGroup. :type product_id: str @@ -334,7 +334,7 @@ def product_id(self, product_id): def subnet_id(self): """Gets the subnet_id of this ServerGroup. - 网卡对应的子网ID + 网卡对应的子网ID。 :return: The subnet_id of this ServerGroup. :rtype: str @@ -345,7 +345,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this ServerGroup. - 网卡对应的子网ID + 网卡对应的子网ID。 :param subnet_id: The subnet_id of this ServerGroup. :type subnet_id: str @@ -374,7 +374,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this ServerGroup. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :return: The system_disk_size of this ServerGroup. :rtype: int @@ -385,7 +385,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this ServerGroup. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :param system_disk_size: The system_disk_size of this ServerGroup. :type system_disk_size: int @@ -396,7 +396,7 @@ def system_disk_size(self, system_disk_size): def is_vdi(self): """Gets the is_vdi of this ServerGroup. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :return: The is_vdi of this ServerGroup. :rtype: bool @@ -407,7 +407,7 @@ def is_vdi(self): def is_vdi(self, is_vdi): """Sets the is_vdi of this ServerGroup. - 是否为vdi单会话模式 + 是否为vdi单会话模式。 :param is_vdi: The is_vdi of this ServerGroup. :type is_vdi: bool @@ -436,7 +436,7 @@ def extra_session_type(self, extra_session_type): def extra_session_size(self): """Gets the extra_session_size of this ServerGroup. - 付费会话个数 + 付费会话个数。 :return: The extra_session_size of this ServerGroup. :rtype: int @@ -447,7 +447,7 @@ def extra_session_size(self): def extra_session_size(self, extra_session_size): """Sets the extra_session_size of this ServerGroup. - 付费会话个数 + 付费会话个数。 :param extra_session_size: The extra_session_size of this ServerGroup. :type extra_session_size: int @@ -538,7 +538,7 @@ def storage_mount_policy(self, storage_mount_policy): def app_server_flavor_count(self): """Gets the app_server_flavor_count of this ServerGroup. - 服务器配置总数量 + 服务器配置总数量。 :return: The app_server_flavor_count of this ServerGroup. :rtype: int @@ -549,7 +549,7 @@ def app_server_flavor_count(self): def app_server_flavor_count(self, app_server_flavor_count): """Sets the app_server_flavor_count of this ServerGroup. - 服务器配置总数量 + 服务器配置总数量。 :param app_server_flavor_count: The app_server_flavor_count of this ServerGroup. :type app_server_flavor_count: int @@ -560,7 +560,7 @@ def app_server_flavor_count(self, app_server_flavor_count): def app_server_count(self): """Gets the app_server_count of this ServerGroup. - 服务器总数量 + 服务器总数量。 :return: The app_server_count of this ServerGroup. :rtype: int @@ -571,7 +571,7 @@ def app_server_count(self): def app_server_count(self, app_server_count): """Sets the app_server_count of this ServerGroup. - 服务器总数量 + 服务器总数量。 :param app_server_count: The app_server_count of this ServerGroup. :type app_server_count: int @@ -582,7 +582,7 @@ def app_server_count(self, app_server_count): def app_group_count(self): """Gets the app_group_count of this ServerGroup. - 关联应用组的总数量 + 关联应用组的总数量。 :return: The app_group_count of this ServerGroup. :rtype: int @@ -593,7 +593,7 @@ def app_group_count(self): def app_group_count(self, app_group_count): """Sets the app_group_count of this ServerGroup. - 关联应用组的总数量 + 关联应用组的总数量。 :param app_group_count: The app_group_count of this ServerGroup. :type app_group_count: int @@ -604,7 +604,7 @@ def app_group_count(self, app_group_count): def image_name(self): """Gets the image_name of this ServerGroup. - 镜像名称 + 镜像名称。 :return: The image_name of this ServerGroup. :rtype: str @@ -615,7 +615,7 @@ def image_name(self): def image_name(self, image_name): """Sets the image_name of this ServerGroup. - 镜像名称 + 镜像名称。 :param image_name: The image_name of this ServerGroup. :type image_name: str @@ -644,7 +644,7 @@ def product_info(self, product_info): def subnet_name(self): """Gets the subnet_name of this ServerGroup. - 子网名称 + 子网名称。 :return: The subnet_name of this ServerGroup. :rtype: str @@ -655,7 +655,7 @@ def subnet_name(self): def subnet_name(self, subnet_name): """Sets the subnet_name of this ServerGroup. - 子网名称 + 子网名称。 :param subnet_name: The subnet_name of this ServerGroup. :type subnet_name: str @@ -684,7 +684,7 @@ def scaling_policy(self, scaling_policy): def ou_name(self): """Gets the ou_name of this ServerGroup. - 默认组织名称 + 默认组织名称。 :return: The ou_name of this ServerGroup. :rtype: str @@ -695,7 +695,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this ServerGroup. - 默认组织名称 + 默认组织名称。 :param ou_name: The ou_name of this ServerGroup. :type ou_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_type_entity.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_type_entity.py index 7f2ad9e3c2..b6b945c2c5 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_type_entity.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_type_entity.py @@ -35,13 +35,13 @@ def __init__(self, resource_spec_code=None, session_type=None, resource_type=Non The model defined in huaweicloud sdk - :param resource_spec_code: 资源规格编码 + :param resource_spec_code: 资源规格编码。 :type resource_spec_code: str - :param session_type: 会话类型 + :param session_type: 会话类型。 :type session_type: str - :param resource_type: 资源类型字段 + :param resource_type: 资源类型字段。 :type resource_type: str - :param cloud_service_type: 资源所属云服务类型编码 + :param cloud_service_type: 资源所属云服务类型编码。 :type cloud_service_type: str """ @@ -66,7 +66,7 @@ def __init__(self, resource_spec_code=None, session_type=None, resource_type=Non def resource_spec_code(self): """Gets the resource_spec_code of this SessionTypeEntity. - 资源规格编码 + 资源规格编码。 :return: The resource_spec_code of this SessionTypeEntity. :rtype: str @@ -77,7 +77,7 @@ def resource_spec_code(self): def resource_spec_code(self, resource_spec_code): """Sets the resource_spec_code of this SessionTypeEntity. - 资源规格编码 + 资源规格编码。 :param resource_spec_code: The resource_spec_code of this SessionTypeEntity. :type resource_spec_code: str @@ -88,7 +88,7 @@ def resource_spec_code(self, resource_spec_code): def session_type(self): """Gets the session_type of this SessionTypeEntity. - 会话类型 + 会话类型。 :return: The session_type of this SessionTypeEntity. :rtype: str @@ -99,7 +99,7 @@ def session_type(self): def session_type(self, session_type): """Sets the session_type of this SessionTypeEntity. - 会话类型 + 会话类型。 :param session_type: The session_type of this SessionTypeEntity. :type session_type: str @@ -110,7 +110,7 @@ def session_type(self, session_type): def resource_type(self): """Gets the resource_type of this SessionTypeEntity. - 资源类型字段 + 资源类型字段。 :return: The resource_type of this SessionTypeEntity. :rtype: str @@ -121,7 +121,7 @@ def resource_type(self): def resource_type(self, resource_type): """Sets the resource_type of this SessionTypeEntity. - 资源类型字段 + 资源类型字段。 :param resource_type: The resource_type of this SessionTypeEntity. :type resource_type: str @@ -132,7 +132,7 @@ def resource_type(self, resource_type): def cloud_service_type(self): """Gets the cloud_service_type of this SessionTypeEntity. - 资源所属云服务类型编码 + 资源所属云服务类型编码。 :return: The cloud_service_type of this SessionTypeEntity. :rtype: str @@ -143,7 +143,7 @@ def cloud_service_type(self): def cloud_service_type(self, cloud_service_type): """Sets the cloud_service_type of this SessionTypeEntity. - 资源所属云服务类型编码 + 资源所属云服务类型编码。 :param cloud_service_type: The cloud_service_type of this SessionTypeEntity. :type cloud_service_type: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/share_persistent_storage_claim.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/share_persistent_storage_claim.py index f5cb59b4a8..b71534ac4f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/share_persistent_storage_claim.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/share_persistent_storage_claim.py @@ -37,15 +37,15 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai The model defined in huaweicloud sdk - :param storage_claim_id: WKS存储目录声明ID + :param storage_claim_id: WKS存储目录声明ID。 :type storage_claim_id: str - :param folder_path: 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + :param folder_path: 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :type folder_path: str - :param delimiter: 路径分隔符 + :param delimiter: 路径分隔符。 :type delimiter: str :param claim_mode: :type claim_mode: :class:`huaweicloudsdkworkspaceapp.v1.ClaimMode` - :param count: 共享目录的关联用户、用户组数量 + :param count: 共享目录的关联用户、用户组数量。 :type count: dict(str, int) """ @@ -73,7 +73,7 @@ def __init__(self, storage_claim_id=None, folder_path=None, delimiter=None, clai def storage_claim_id(self): """Gets the storage_claim_id of this SharePersistentStorageClaim. - WKS存储目录声明ID + WKS存储目录声明ID。 :return: The storage_claim_id of this SharePersistentStorageClaim. :rtype: str @@ -84,7 +84,7 @@ def storage_claim_id(self): def storage_claim_id(self, storage_claim_id): """Sets the storage_claim_id of this SharePersistentStorageClaim. - WKS存储目录声明ID + WKS存储目录声明ID。 :param storage_claim_id: The storage_claim_id of this SharePersistentStorageClaim. :type storage_claim_id: str @@ -95,7 +95,7 @@ def storage_claim_id(self, storage_claim_id): def folder_path(self): """Gets the folder_path of this SharePersistentStorageClaim. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :return: The folder_path of this SharePersistentStorageClaim. :rtype: str @@ -106,7 +106,7 @@ def folder_path(self): def folder_path(self, folder_path): """Sets the folder_path of this SharePersistentStorageClaim. - 存储对象路径 注: path是对象在系统中的完整路径 例如系统中存在如下目录结构的数据. SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ + 存储对象路径。 注: path是对象在系统中的完整路径。 例如系统中存在如下目录结构的数据。 SFS-Tmp: └─shares ├─image └─video image的路径: shares/image/ video的路径: shares/video/ :param folder_path: The folder_path of this SharePersistentStorageClaim. :type folder_path: str @@ -117,7 +117,7 @@ def folder_path(self, folder_path): def delimiter(self): """Gets the delimiter of this SharePersistentStorageClaim. - 路径分隔符 + 路径分隔符。 :return: The delimiter of this SharePersistentStorageClaim. :rtype: str @@ -128,7 +128,7 @@ def delimiter(self): def delimiter(self, delimiter): """Sets the delimiter of this SharePersistentStorageClaim. - 路径分隔符 + 路径分隔符。 :param delimiter: The delimiter of this SharePersistentStorageClaim. :type delimiter: str @@ -157,7 +157,7 @@ def claim_mode(self, claim_mode): def count(self): """Gets the count of this SharePersistentStorageClaim. - 共享目录的关联用户、用户组数量 + 共享目录的关联用户、用户组数量。 :return: The count of this SharePersistentStorageClaim. :rtype: dict(str, int) @@ -168,7 +168,7 @@ def count(self): def count(self, count): """Sets the count of this SharePersistentStorageClaim. - 共享目录的关联用户、用户组数量 + 共享目录的关联用户、用户组数量。 :param count: The count of this SharePersistentStorageClaim. :type count: dict(str, int) diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_job_detail_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_job_detail_response.py index 4fae3a1167..e34dcb18bd 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_job_detail_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_job_detail_response.py @@ -52,9 +52,9 @@ def __init__(self, id=None, job_type=None, begin_time=None, end_time=None, statu :type end_time: datetime :param status: :type status: :class:`huaweicloudsdkworkspaceapp.v1.JobStatus` - :param sub_jobs_total: 子任务总数 + :param sub_jobs_total: 子任务总数。 :type sub_jobs_total: int - :param sub_jobs: 子任务列表 + :param sub_jobs: 子任务列表。 :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.JobDetailInfo`] """ @@ -190,7 +190,7 @@ def status(self, status): def sub_jobs_total(self): """Gets the sub_jobs_total of this ShowJobDetailResponse. - 子任务总数 + 子任务总数。 :return: The sub_jobs_total of this ShowJobDetailResponse. :rtype: int @@ -201,7 +201,7 @@ def sub_jobs_total(self): def sub_jobs_total(self, sub_jobs_total): """Sets the sub_jobs_total of this ShowJobDetailResponse. - 子任务总数 + 子任务总数。 :param sub_jobs_total: The sub_jobs_total of this ShowJobDetailResponse. :type sub_jobs_total: int @@ -212,7 +212,7 @@ def sub_jobs_total(self, sub_jobs_total): def sub_jobs(self): """Gets the sub_jobs of this ShowJobDetailResponse. - 子任务列表 + 子任务列表。 :return: The sub_jobs of this ShowJobDetailResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.JobDetailInfo`] @@ -223,7 +223,7 @@ def sub_jobs(self): def sub_jobs(self, sub_jobs): """Sets the sub_jobs of this ShowJobDetailResponse. - 子任务列表 + 子任务列表。 :param sub_jobs: The sub_jobs of this ShowJobDetailResponse. :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.JobDetailInfo`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_request.py index 49898ed2e2..a7eb551521 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_request.py @@ -29,7 +29,7 @@ def __init__(self, app_group_id=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str """ @@ -44,7 +44,7 @@ def __init__(self, app_group_id=None): def app_group_id(self): """Gets the app_group_id of this ShowPublishableAppRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this ShowPublishableAppRequest. :rtype: str @@ -55,7 +55,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this ShowPublishableAppRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this ShowPublishableAppRequest. :type app_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py index 72cd00f7b8..8c574f87b6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py @@ -34,11 +34,11 @@ def __init__(self, count=None, group_images=None, items=None): The model defined in huaweicloud sdk - :param count: 总数 + :param count: 总数。 :type count: int - :param group_images: 组下面的镜像ID列表 + :param group_images: 组下面的镜像ID列表。 :type group_images: list[str] - :param items: 查询到的应用列表 + :param items: 查询到的应用列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishableApp`] """ @@ -60,7 +60,7 @@ def __init__(self, count=None, group_images=None, items=None): def count(self): """Gets the count of this ShowPublishableAppResponse. - 总数 + 总数。 :return: The count of this ShowPublishableAppResponse. :rtype: int @@ -71,7 +71,7 @@ def count(self): def count(self, count): """Sets the count of this ShowPublishableAppResponse. - 总数 + 总数。 :param count: The count of this ShowPublishableAppResponse. :type count: int @@ -82,7 +82,7 @@ def count(self, count): def group_images(self): """Gets the group_images of this ShowPublishableAppResponse. - 组下面的镜像ID列表 + 组下面的镜像ID列表。 :return: The group_images of this ShowPublishableAppResponse. :rtype: list[str] @@ -93,7 +93,7 @@ def group_images(self): def group_images(self, group_images): """Sets the group_images of this ShowPublishableAppResponse. - 组下面的镜像ID列表 + 组下面的镜像ID列表。 :param group_images: The group_images of this ShowPublishableAppResponse. :type group_images: list[str] @@ -104,7 +104,7 @@ def group_images(self, group_images): def items(self): """Gets the items of this ShowPublishableAppResponse. - 查询到的应用列表 + 查询到的应用列表。 :return: The items of this ShowPublishableAppResponse. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishableApp`] @@ -115,7 +115,7 @@ def items(self): def items(self, items): """Sets the items of this ShowPublishableAppResponse. - 查询到的应用列表 + 查询到的应用列表。 :param items: The items of this ShowPublishableAppResponse. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PublishableApp`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage.py index bd5ea8efe8..8347a804ab 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage.py @@ -31,9 +31,9 @@ def __init__(self, storage_handle=None, storage_class=None): The model defined in huaweicloud sdk - :param storage_handle: SFS文件系统名称 + :param storage_handle: SFS文件系统名称。 :type storage_handle: str - :param storage_class: 存储类型 * `sfs` - sfs3.0存储 + :param storage_class: 存储类型: * `sfs` - sfs3.0存储。 :type storage_class: str """ @@ -50,7 +50,7 @@ def __init__(self, storage_handle=None, storage_class=None): def storage_handle(self): """Gets the storage_handle of this Storage. - SFS文件系统名称 + SFS文件系统名称。 :return: The storage_handle of this Storage. :rtype: str @@ -61,7 +61,7 @@ def storage_handle(self): def storage_handle(self, storage_handle): """Sets the storage_handle of this Storage. - SFS文件系统名称 + SFS文件系统名称。 :param storage_handle: The storage_handle of this Storage. :type storage_handle: str @@ -72,7 +72,7 @@ def storage_handle(self, storage_handle): def storage_class(self): """Gets the storage_class of this Storage. - 存储类型 * `sfs` - sfs3.0存储 + 存储类型: * `sfs` - sfs3.0存储。 :return: The storage_class of this Storage. :rtype: str @@ -83,7 +83,7 @@ def storage_class(self): def storage_class(self, storage_class): """Sets the storage_class of this Storage. - 存储类型 * `sfs` - sfs3.0存储 + 存储类型: * `sfs` - sfs3.0存储。 :param storage_class: The storage_class of this Storage. :type storage_class: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage_metadata.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage_metadata.py index b4cf89d59c..740e1d923a 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage_metadata.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/storage_metadata.py @@ -37,15 +37,15 @@ def __init__(self, storage_handle=None, storage_class=None, name=None, region=No The model defined in huaweicloud sdk - :param storage_handle: SFS文件系统名称 + :param storage_handle: SFS文件系统名称。 :type storage_handle: str - :param storage_class: 存储类型 * `sfs` - sfs3.0存储 + :param storage_class: 存储类型: * `sfs` - sfs3.0存储。 :type storage_class: str - :param name: 名称 + :param name: 名称。 :type name: str - :param region: 所在区域 + :param region: 所在区域。 :type region: str - :param export_location: 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port + :param export_location: 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port。 :type export_location: str """ @@ -71,7 +71,7 @@ def __init__(self, storage_handle=None, storage_class=None, name=None, region=No def storage_handle(self): """Gets the storage_handle of this StorageMetadata. - SFS文件系统名称 + SFS文件系统名称。 :return: The storage_handle of this StorageMetadata. :rtype: str @@ -82,7 +82,7 @@ def storage_handle(self): def storage_handle(self, storage_handle): """Sets the storage_handle of this StorageMetadata. - SFS文件系统名称 + SFS文件系统名称。 :param storage_handle: The storage_handle of this StorageMetadata. :type storage_handle: str @@ -93,7 +93,7 @@ def storage_handle(self, storage_handle): def storage_class(self): """Gets the storage_class of this StorageMetadata. - 存储类型 * `sfs` - sfs3.0存储 + 存储类型: * `sfs` - sfs3.0存储。 :return: The storage_class of this StorageMetadata. :rtype: str @@ -104,7 +104,7 @@ def storage_class(self): def storage_class(self, storage_class): """Sets the storage_class of this StorageMetadata. - 存储类型 * `sfs` - sfs3.0存储 + 存储类型: * `sfs` - sfs3.0存储。 :param storage_class: The storage_class of this StorageMetadata. :type storage_class: str @@ -115,7 +115,7 @@ def storage_class(self, storage_class): def name(self): """Gets the name of this StorageMetadata. - 名称 + 名称。 :return: The name of this StorageMetadata. :rtype: str @@ -126,7 +126,7 @@ def name(self): def name(self, name): """Sets the name of this StorageMetadata. - 名称 + 名称。 :param name: The name of this StorageMetadata. :type name: str @@ -137,7 +137,7 @@ def name(self, name): def region(self): """Gets the region of this StorageMetadata. - 所在区域 + 所在区域。 :return: The region of this StorageMetadata. :rtype: str @@ -148,7 +148,7 @@ def region(self): def region(self, region): """Sets the region of this StorageMetadata. - 所在区域 + 所在区域。 :param region: The region of this StorageMetadata. :type region: str @@ -159,7 +159,7 @@ def region(self, region): def export_location(self): """Gets the export_location of this StorageMetadata. - 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port + 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port。 :return: The export_location of this StorageMetadata. :rtype: str @@ -170,7 +170,7 @@ def export_location(self): def export_location(self, export_location): """Sets the export_location of this StorageMetadata. - 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port + 访问地址:protocol://[bucket-name].sfs3.[region-name].myhuaweicloud.com:port。 :param export_location: The export_location of this StorageMetadata. :type export_location: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py index bc66fca2a4..2b6f4d1626 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20] + :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :type items: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this StringSet. - 批量唯一标识请求列表,一次请求数量区间 [1, 20] + 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :return: The items of this StringSet. :rtype: list[str] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this StringSet. - 批量唯一标识请求列表,一次请求数量区间 [1, 20] + 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 :param items: The items of this StringSet. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sub_job_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sub_job_info.py index 1b51b8f91c..e8bb709259 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sub_job_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/sub_job_info.py @@ -45,23 +45,23 @@ def __init__(self, job_id=None, job_type=None, job_status=None, entities=None, b The model defined in huaweicloud sdk - :param job_id: 子job标识 + :param job_id: 子job标识。 :type job_id: str - :param job_type: 任务类型,固定值2:子Job + :param job_type: 任务类型,固定值2:子Job。 :type job_type: int :param job_status: job状态 - 0:失败。 - 1:成功。 - 2:处理中。 - 3:正在初始化。 :type job_status: int :param entities: SubJob中处理的云服务/云资源对象。 创建、规格变更等场景是必填;冻结、解冻、删除等场景可空。 :type entities: list[:class:`huaweicloudsdkworkspaceapp.v1.JobResourceInfo`] - :param begin_time: 任务开始时间 + :param begin_time: 任务开始时间。 :type begin_time: datetime - :param end_time: 任务结束时间 + :param end_time: 任务结束时间。 :type end_time: datetime :param expected_end_time: 云服务预估的Job处理结束时间,只针对job有效,针对子job无效。 :type expected_end_time: datetime - :param execute_code: Job执行结果码 + :param execute_code: Job执行结果码。 :type execute_code: str - :param execute_message: Job执行结果描述,以及每个SubJob的执行结果描述 + :param execute_message: Job执行结果描述,以及每个SubJob的执行结果描述。 :type execute_message: str """ @@ -101,7 +101,7 @@ def __init__(self, job_id=None, job_type=None, job_status=None, entities=None, b def job_id(self): """Gets the job_id of this SubJobInfo. - 子job标识 + 子job标识。 :return: The job_id of this SubJobInfo. :rtype: str @@ -112,7 +112,7 @@ def job_id(self): def job_id(self, job_id): """Sets the job_id of this SubJobInfo. - 子job标识 + 子job标识。 :param job_id: The job_id of this SubJobInfo. :type job_id: str @@ -123,7 +123,7 @@ def job_id(self, job_id): def job_type(self): """Gets the job_type of this SubJobInfo. - 任务类型,固定值2:子Job + 任务类型,固定值2:子Job。 :return: The job_type of this SubJobInfo. :rtype: int @@ -134,7 +134,7 @@ def job_type(self): def job_type(self, job_type): """Sets the job_type of this SubJobInfo. - 任务类型,固定值2:子Job + 任务类型,固定值2:子Job。 :param job_type: The job_type of this SubJobInfo. :type job_type: int @@ -189,7 +189,7 @@ def entities(self, entities): def begin_time(self): """Gets the begin_time of this SubJobInfo. - 任务开始时间 + 任务开始时间。 :return: The begin_time of this SubJobInfo. :rtype: datetime @@ -200,7 +200,7 @@ def begin_time(self): def begin_time(self, begin_time): """Sets the begin_time of this SubJobInfo. - 任务开始时间 + 任务开始时间。 :param begin_time: The begin_time of this SubJobInfo. :type begin_time: datetime @@ -211,7 +211,7 @@ def begin_time(self, begin_time): def end_time(self): """Gets the end_time of this SubJobInfo. - 任务结束时间 + 任务结束时间。 :return: The end_time of this SubJobInfo. :rtype: datetime @@ -222,7 +222,7 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this SubJobInfo. - 任务结束时间 + 任务结束时间。 :param end_time: The end_time of this SubJobInfo. :type end_time: datetime @@ -255,7 +255,7 @@ def expected_end_time(self, expected_end_time): def execute_code(self): """Gets the execute_code of this SubJobInfo. - Job执行结果码 + Job执行结果码。 :return: The execute_code of this SubJobInfo. :rtype: str @@ -266,7 +266,7 @@ def execute_code(self): def execute_code(self, execute_code): """Sets the execute_code of this SubJobInfo. - Job执行结果码 + Job执行结果码。 :param execute_code: The execute_code of this SubJobInfo. :type execute_code: str @@ -277,7 +277,7 @@ def execute_code(self, execute_code): def execute_message(self): """Gets the execute_message of this SubJobInfo. - Job执行结果描述,以及每个SubJob的执行结果描述 + Job执行结果描述,以及每个SubJob的执行结果描述。 :return: The execute_message of this SubJobInfo. :rtype: str @@ -288,7 +288,7 @@ def execute_message(self): def execute_message(self, execute_message): """Sets the execute_message of this SubJobInfo. - Job执行结果描述,以及每个SubJob的执行结果描述 + Job执行结果描述,以及每个SubJob的执行结果描述。 :param execute_message: The execute_message of this SubJobInfo. :type execute_message: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_req.py index 8486e447fb..a247603cd5 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_req.py @@ -29,7 +29,7 @@ def __init__(self, ids=None): The model defined in huaweicloud sdk - :param ids: 应用ID列表,单次最多允许操作50个应用 + :param ids: 应用ID列表,单次最多允许操作50个应用。 :type ids: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, ids=None): def ids(self): """Gets the ids of this UnpublishAppReq. - 应用ID列表,单次最多允许操作50个应用 + 应用ID列表,单次最多允许操作50个应用。 :return: The ids of this UnpublishAppReq. :rtype: list[str] @@ -55,7 +55,7 @@ def ids(self): def ids(self, ids): """Sets the ids of this UnpublishAppReq. - 应用ID列表,单次最多允许操作50个应用 + 应用ID列表,单次最多允许操作50个应用。 :param ids: The ids of this UnpublishAppReq. :type ids: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_request.py index 7b7845ec15..bab231e847 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/unpublish_app_request.py @@ -31,7 +31,7 @@ def __init__(self, app_group_id=None, body=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str :param body: Body of the UnpublishAppRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppReq` @@ -51,7 +51,7 @@ def __init__(self, app_group_id=None, body=None): def app_group_id(self): """Gets the app_group_id of this UnpublishAppRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this UnpublishAppRequest. :rtype: str @@ -62,7 +62,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UnpublishAppRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this UnpublishAppRequest. :type app_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_req.py index 10013c2fbf..50e6017e21 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_req.py @@ -33,11 +33,11 @@ def __init__(self, name=None, app_server_group_id=None, description=None): The model defined in huaweicloud sdk - :param name: 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + :param name: 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :type name: str - :param app_server_group_id: 应用服务器组ID(仅允许未设置的情形下进行绑定) + :param app_server_group_id: 应用服务器组ID(仅允许未设置的情形下进行绑定)。 :type app_server_group_id: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str """ @@ -59,7 +59,7 @@ def __init__(self, name=None, app_server_group_id=None, description=None): def name(self): """Gets the name of this UpdateAppGroupReq. - 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :return: The name of this UpdateAppGroupReq. :rtype: str @@ -70,7 +70,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateAppGroupReq. - 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成 2. 长度范围1~64个字符 + 应用组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :param name: The name of this UpdateAppGroupReq. :type name: str @@ -81,7 +81,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this UpdateAppGroupReq. - 应用服务器组ID(仅允许未设置的情形下进行绑定) + 应用服务器组ID(仅允许未设置的情形下进行绑定)。 :return: The app_server_group_id of this UpdateAppGroupReq. :rtype: str @@ -92,7 +92,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this UpdateAppGroupReq. - 应用服务器组ID(仅允许未设置的情形下进行绑定) + 应用服务器组ID(仅允许未设置的情形下进行绑定)。 :param app_server_group_id: The app_server_group_id of this UpdateAppGroupReq. :type app_server_group_id: str @@ -103,7 +103,7 @@ def app_server_group_id(self, app_server_group_id): def description(self): """Gets the description of this UpdateAppGroupReq. - 应用组描述 + 应用组描述。 :return: The description of this UpdateAppGroupReq. :rtype: str @@ -114,7 +114,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateAppGroupReq. - 应用组描述 + 应用组描述。 :param description: The description of this UpdateAppGroupReq. :type description: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_request.py index a8b32e9162..111499db50 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_request.py @@ -31,7 +31,7 @@ def __init__(self, app_group_id=None, body=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str :param body: Body of the UpdateAppGroupRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupReq` @@ -51,7 +51,7 @@ def __init__(self, app_group_id=None, body=None): def app_group_id(self): """Gets the app_group_id of this UpdateAppGroupRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this UpdateAppGroupRequest. :rtype: str @@ -62,7 +62,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UpdateAppGroupRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this UpdateAppGroupRequest. :type app_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_response.py index c0ea1fa761..9ef3c5f201 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_group_response.py @@ -48,25 +48,25 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou The model defined in huaweicloud sdk - :param id: 应用组ID + :param id: 应用组ID。 :type id: str - :param name: 应用组名称 + :param name: 应用组名称。 :type name: str - :param app_server_group_id: 应用服务器组ID + :param app_server_group_id: 应用服务器组ID。 :type app_server_group_id: str - :param app_server_group_name: 应用服务器组名称 + :param app_server_group_name: 应用服务器组名称。 :type app_server_group_name: str - :param description: 应用组描述 + :param description: 应用组描述。 :type description: str :param authorization_type: :type authorization_type: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizationTypeEnum` - :param tenant_id: 租户ID + :param tenant_id: 租户ID。 :type tenant_id: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` - :param create_at: 发布时间 + :param create_at: 发布时间。 :type create_at: datetime - :param app_count: 应用数量 + :param app_count: 应用数量。 :type app_count: int """ @@ -109,7 +109,7 @@ def __init__(self, id=None, name=None, app_server_group_id=None, app_server_grou def id(self): """Gets the id of this UpdateAppGroupResponse. - 应用组ID + 应用组ID。 :return: The id of this UpdateAppGroupResponse. :rtype: str @@ -120,7 +120,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateAppGroupResponse. - 应用组ID + 应用组ID。 :param id: The id of this UpdateAppGroupResponse. :type id: str @@ -131,7 +131,7 @@ def id(self, id): def name(self): """Gets the name of this UpdateAppGroupResponse. - 应用组名称 + 应用组名称。 :return: The name of this UpdateAppGroupResponse. :rtype: str @@ -142,7 +142,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateAppGroupResponse. - 应用组名称 + 应用组名称。 :param name: The name of this UpdateAppGroupResponse. :type name: str @@ -153,7 +153,7 @@ def name(self, name): def app_server_group_id(self): """Gets the app_server_group_id of this UpdateAppGroupResponse. - 应用服务器组ID + 应用服务器组ID。 :return: The app_server_group_id of this UpdateAppGroupResponse. :rtype: str @@ -164,7 +164,7 @@ def app_server_group_id(self): def app_server_group_id(self, app_server_group_id): """Sets the app_server_group_id of this UpdateAppGroupResponse. - 应用服务器组ID + 应用服务器组ID。 :param app_server_group_id: The app_server_group_id of this UpdateAppGroupResponse. :type app_server_group_id: str @@ -175,7 +175,7 @@ def app_server_group_id(self, app_server_group_id): def app_server_group_name(self): """Gets the app_server_group_name of this UpdateAppGroupResponse. - 应用服务器组名称 + 应用服务器组名称。 :return: The app_server_group_name of this UpdateAppGroupResponse. :rtype: str @@ -186,7 +186,7 @@ def app_server_group_name(self): def app_server_group_name(self, app_server_group_name): """Sets the app_server_group_name of this UpdateAppGroupResponse. - 应用服务器组名称 + 应用服务器组名称。 :param app_server_group_name: The app_server_group_name of this UpdateAppGroupResponse. :type app_server_group_name: str @@ -197,7 +197,7 @@ def app_server_group_name(self, app_server_group_name): def description(self): """Gets the description of this UpdateAppGroupResponse. - 应用组描述 + 应用组描述。 :return: The description of this UpdateAppGroupResponse. :rtype: str @@ -208,7 +208,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateAppGroupResponse. - 应用组描述 + 应用组描述。 :param description: The description of this UpdateAppGroupResponse. :type description: str @@ -237,7 +237,7 @@ def authorization_type(self, authorization_type): def tenant_id(self): """Gets the tenant_id of this UpdateAppGroupResponse. - 租户ID + 租户ID。 :return: The tenant_id of this UpdateAppGroupResponse. :rtype: str @@ -248,7 +248,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this UpdateAppGroupResponse. - 租户ID + 租户ID。 :param tenant_id: The tenant_id of this UpdateAppGroupResponse. :type tenant_id: str @@ -277,7 +277,7 @@ def app_type(self, app_type): def create_at(self): """Gets the create_at of this UpdateAppGroupResponse. - 发布时间 + 发布时间。 :return: The create_at of this UpdateAppGroupResponse. :rtype: datetime @@ -288,7 +288,7 @@ def create_at(self): def create_at(self, create_at): """Sets the create_at of this UpdateAppGroupResponse. - 发布时间 + 发布时间。 :param create_at: The create_at of this UpdateAppGroupResponse. :type create_at: datetime @@ -299,7 +299,7 @@ def create_at(self, create_at): def app_count(self): """Gets the app_count of this UpdateAppGroupResponse. - 应用数量 + 应用数量。 :return: The app_count of this UpdateAppGroupResponse. :rtype: int @@ -310,7 +310,7 @@ def app_count(self): def app_count(self, app_count): """Sets the app_count of this UpdateAppGroupResponse. - 应用数量 + 应用数量。 :param app_count: The app_count of this UpdateAppGroupResponse. :type app_count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_req.py index 3298a6198d..9dc44d825d 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_req.py @@ -43,17 +43,17 @@ def __init__(self, name=None, version=None, execute_path=None, work_path=None, d The model defined in huaweicloud sdk - :param name: 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + :param name: 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~64个字符。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str :param state: :type state: :class:`huaweicloudsdkworkspaceapp.v1.AppStateEnum` @@ -94,7 +94,7 @@ def __init__(self, name=None, version=None, execute_path=None, work_path=None, d def name(self): """Gets the name of this UpdateAppReq. - 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~64个字符。 :return: The name of this UpdateAppReq. :rtype: str @@ -105,7 +105,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateAppReq. - 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格 2. 长度1~64个字符 + 应用名称,名称需满足如下规则: 1. 名称允许可见字符或空格,不可为全空格。 2. 长度1~64个字符。 :param name: The name of this UpdateAppReq. :type name: str @@ -116,7 +116,7 @@ def name(self, name): def version(self): """Gets the version of this UpdateAppReq. - 应用版本号 + 应用版本号。 :return: The version of this UpdateAppReq. :rtype: str @@ -127,7 +127,7 @@ def version(self): def version(self, version): """Sets the version of this UpdateAppReq. - 应用版本号 + 应用版本号。 :param version: The version of this UpdateAppReq. :type version: str @@ -138,7 +138,7 @@ def version(self, version): def execute_path(self): """Gets the execute_path of this UpdateAppReq. - 执行路径 + 执行路径。 :return: The execute_path of this UpdateAppReq. :rtype: str @@ -149,7 +149,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this UpdateAppReq. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this UpdateAppReq. :type execute_path: str @@ -160,7 +160,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this UpdateAppReq. - 应用工作目录 + 应用工作目录。 :return: The work_path of this UpdateAppReq. :rtype: str @@ -171,7 +171,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this UpdateAppReq. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this UpdateAppReq. :type work_path: str @@ -182,7 +182,7 @@ def work_path(self, work_path): def description(self): """Gets the description of this UpdateAppReq. - 应用描述 + 应用描述。 :return: The description of this UpdateAppReq. :rtype: str @@ -193,7 +193,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateAppReq. - 应用描述 + 应用描述。 :param description: The description of this UpdateAppReq. :type description: str @@ -204,7 +204,7 @@ def description(self, description): def command_param(self): """Gets the command_param of this UpdateAppReq. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this UpdateAppReq. :rtype: str @@ -215,7 +215,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this UpdateAppReq. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this UpdateAppReq. :type command_param: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_request.py index b344365daf..f6a39f4203 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_request.py @@ -33,9 +33,9 @@ def __init__(self, app_group_id=None, app_id=None, body=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str - :param app_id: 应用ID + :param app_id: 应用ID。 :type app_id: str :param body: Body of the UpdateAppRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppReq` @@ -57,7 +57,7 @@ def __init__(self, app_group_id=None, app_id=None, body=None): def app_group_id(self): """Gets the app_group_id of this UpdateAppRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this UpdateAppRequest. :rtype: str @@ -68,7 +68,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UpdateAppRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this UpdateAppRequest. :type app_group_id: str @@ -79,7 +79,7 @@ def app_group_id(self, app_group_id): def app_id(self): """Gets the app_id of this UpdateAppRequest. - 应用ID + 应用ID。 :return: The app_id of this UpdateAppRequest. :rtype: str @@ -90,7 +90,7 @@ def app_id(self): def app_id(self, app_id): """Sets the app_id of this UpdateAppRequest. - 应用ID + 应用ID。 :param app_id: The app_id of this UpdateAppRequest. :type app_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_response.py index 9af372ae4f..c6a13b1044 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_app_response.py @@ -64,41 +64,41 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute The model defined in huaweicloud sdk - :param id: 应用ID + :param id: 应用ID。 :type id: str - :param name: 应用名称 + :param name: 应用名称。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param icon_path: 应用图标的路径 + :param icon_path: 应用图标的路径。 :type icon_path: str - :param icon_index: 应用图标的索引 + :param icon_index: 应用图标的索引。 :type icon_index: int - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param app_group_id: 应用组标识Id + :param app_group_id: 应用组标识Id。 :type app_group_id: str :param state: :type state: :class:`huaweicloudsdkworkspaceapp.v1.AppStateEnum` - :param tenant_id: 所在的租户ID + :param tenant_id: 所在的租户ID。 :type tenant_id: str - :param publish_at: 发布时间 + :param publish_at: 发布时间。 :type publish_at: datetime - :param source_type: 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + :param source_type: 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :type source_type: int - :param publisher: 应用发布者 + :param publisher: 应用发布者。 :type publisher: str - :param icon_url: 图标url + :param icon_url: 图标url。 :type icon_url: str - :param publishable: 是否可发布应用 - true: 可发布 - false: 不可发布 + :param publishable: 是否可发布应用: - true: 可发布。 - false: 不可发布。 :type publishable: bool - :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :type sandbox_enable: bool """ @@ -165,7 +165,7 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute def id(self): """Gets the id of this UpdateAppResponse. - 应用ID + 应用ID。 :return: The id of this UpdateAppResponse. :rtype: str @@ -176,7 +176,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateAppResponse. - 应用ID + 应用ID。 :param id: The id of this UpdateAppResponse. :type id: str @@ -187,7 +187,7 @@ def id(self, id): def name(self): """Gets the name of this UpdateAppResponse. - 应用名称 + 应用名称。 :return: The name of this UpdateAppResponse. :rtype: str @@ -198,7 +198,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateAppResponse. - 应用名称 + 应用名称。 :param name: The name of this UpdateAppResponse. :type name: str @@ -209,7 +209,7 @@ def name(self, name): def version(self): """Gets the version of this UpdateAppResponse. - 应用版本号 + 应用版本号。 :return: The version of this UpdateAppResponse. :rtype: str @@ -220,7 +220,7 @@ def version(self): def version(self, version): """Sets the version of this UpdateAppResponse. - 应用版本号 + 应用版本号。 :param version: The version of this UpdateAppResponse. :type version: str @@ -231,7 +231,7 @@ def version(self, version): def command_param(self): """Gets the command_param of this UpdateAppResponse. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this UpdateAppResponse. :rtype: str @@ -242,7 +242,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this UpdateAppResponse. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this UpdateAppResponse. :type command_param: str @@ -253,7 +253,7 @@ def command_param(self, command_param): def execute_path(self): """Gets the execute_path of this UpdateAppResponse. - 执行路径 + 执行路径。 :return: The execute_path of this UpdateAppResponse. :rtype: str @@ -264,7 +264,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this UpdateAppResponse. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this UpdateAppResponse. :type execute_path: str @@ -275,7 +275,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this UpdateAppResponse. - 应用工作目录 + 应用工作目录。 :return: The work_path of this UpdateAppResponse. :rtype: str @@ -286,7 +286,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this UpdateAppResponse. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this UpdateAppResponse. :type work_path: str @@ -297,7 +297,7 @@ def work_path(self, work_path): def icon_path(self): """Gets the icon_path of this UpdateAppResponse. - 应用图标的路径 + 应用图标的路径。 :return: The icon_path of this UpdateAppResponse. :rtype: str @@ -308,7 +308,7 @@ def icon_path(self): def icon_path(self, icon_path): """Sets the icon_path of this UpdateAppResponse. - 应用图标的路径 + 应用图标的路径。 :param icon_path: The icon_path of this UpdateAppResponse. :type icon_path: str @@ -319,7 +319,7 @@ def icon_path(self, icon_path): def icon_index(self): """Gets the icon_index of this UpdateAppResponse. - 应用图标的索引 + 应用图标的索引。 :return: The icon_index of this UpdateAppResponse. :rtype: int @@ -330,7 +330,7 @@ def icon_index(self): def icon_index(self, icon_index): """Sets the icon_index of this UpdateAppResponse. - 应用图标的索引 + 应用图标的索引。 :param icon_index: The icon_index of this UpdateAppResponse. :type icon_index: int @@ -341,7 +341,7 @@ def icon_index(self, icon_index): def description(self): """Gets the description of this UpdateAppResponse. - 应用描述 + 应用描述。 :return: The description of this UpdateAppResponse. :rtype: str @@ -352,7 +352,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateAppResponse. - 应用描述 + 应用描述。 :param description: The description of this UpdateAppResponse. :type description: str @@ -363,7 +363,7 @@ def description(self, description): def app_group_id(self): """Gets the app_group_id of this UpdateAppResponse. - 应用组标识Id + 应用组标识Id。 :return: The app_group_id of this UpdateAppResponse. :rtype: str @@ -374,7 +374,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UpdateAppResponse. - 应用组标识Id + 应用组标识Id。 :param app_group_id: The app_group_id of this UpdateAppResponse. :type app_group_id: str @@ -403,7 +403,7 @@ def state(self, state): def tenant_id(self): """Gets the tenant_id of this UpdateAppResponse. - 所在的租户ID + 所在的租户ID。 :return: The tenant_id of this UpdateAppResponse. :rtype: str @@ -414,7 +414,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this UpdateAppResponse. - 所在的租户ID + 所在的租户ID。 :param tenant_id: The tenant_id of this UpdateAppResponse. :type tenant_id: str @@ -425,7 +425,7 @@ def tenant_id(self, tenant_id): def publish_at(self): """Gets the publish_at of this UpdateAppResponse. - 发布时间 + 发布时间。 :return: The publish_at of this UpdateAppResponse. :rtype: datetime @@ -436,7 +436,7 @@ def publish_at(self): def publish_at(self, publish_at): """Sets the publish_at of this UpdateAppResponse. - 发布时间 + 发布时间。 :param publish_at: The publish_at of this UpdateAppResponse. :type publish_at: datetime @@ -447,7 +447,7 @@ def publish_at(self, publish_at): def source_type(self): """Gets the source_type of this UpdateAppResponse. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :return: The source_type of this UpdateAppResponse. :rtype: int @@ -458,7 +458,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this UpdateAppResponse. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :param source_type: The source_type of this UpdateAppResponse. :type source_type: int @@ -469,7 +469,7 @@ def source_type(self, source_type): def publisher(self): """Gets the publisher of this UpdateAppResponse. - 应用发布者 + 应用发布者。 :return: The publisher of this UpdateAppResponse. :rtype: str @@ -480,7 +480,7 @@ def publisher(self): def publisher(self, publisher): """Sets the publisher of this UpdateAppResponse. - 应用发布者 + 应用发布者。 :param publisher: The publisher of this UpdateAppResponse. :type publisher: str @@ -491,7 +491,7 @@ def publisher(self, publisher): def icon_url(self): """Gets the icon_url of this UpdateAppResponse. - 图标url + 图标url。 :return: The icon_url of this UpdateAppResponse. :rtype: str @@ -502,7 +502,7 @@ def icon_url(self): def icon_url(self, icon_url): """Sets the icon_url of this UpdateAppResponse. - 图标url + 图标url。 :param icon_url: The icon_url of this UpdateAppResponse. :type icon_url: str @@ -513,7 +513,7 @@ def icon_url(self, icon_url): def publishable(self): """Gets the publishable of this UpdateAppResponse. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :return: The publishable of this UpdateAppResponse. :rtype: bool @@ -524,7 +524,7 @@ def publishable(self): def publishable(self, publishable): """Sets the publishable of this UpdateAppResponse. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :param publishable: The publishable of this UpdateAppResponse. :type publishable: bool @@ -535,7 +535,7 @@ def publishable(self, publishable): def sandbox_enable(self): """Gets the sandbox_enable of this UpdateAppResponse. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :return: The sandbox_enable of this UpdateAppResponse. :rtype: bool @@ -546,7 +546,7 @@ def sandbox_enable(self): def sandbox_enable(self, sandbox_enable): """Sets the sandbox_enable of this UpdateAppResponse. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :param sandbox_enable: The sandbox_enable of this UpdateAppResponse. :type sandbox_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_group_response.py index da5eb85287..e9d4af00a4 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_group_response.py @@ -30,7 +30,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 被修改策略主键 + :param id: 被修改策略主键。 :type id: str """ @@ -46,7 +46,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this UpdatePolicyGroupResponse. - 被修改策略主键 + 被修改策略主键。 :return: The id of this UpdatePolicyGroupResponse. :rtype: str @@ -57,7 +57,7 @@ def id(self): def id(self, id): """Sets the id of this UpdatePolicyGroupResponse. - 被修改策略主键 + 被修改策略主键。 :param id: The id of this UpdatePolicyGroupResponse. :type id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_template_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_template_response.py index b0f1611cc7..77b0815c89 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_template_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_template_response.py @@ -30,7 +30,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 被修改策略模板主键 + :param id: 被修改策略模板主键。 :type id: str """ @@ -46,7 +46,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this UpdatePolicyTemplateResponse. - 被修改策略模板主键 + 被修改策略模板主键。 :return: The id of this UpdatePolicyTemplateResponse. :rtype: str @@ -57,7 +57,7 @@ def id(self): def id(self, id): """Sets the id of this UpdatePolicyTemplateResponse. - 被修改策略模板主键 + 被修改策略模板主键。 :param id: The id of this UpdatePolicyTemplateResponse. :type id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py index 4a80eecb2f..41d02d2d58 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py @@ -49,25 +49,25 @@ def __init__(self, name=None, description=None, route_policy=None, storage_mount The model defined in huaweicloud sdk - :param name: 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + :param name: 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :type name: str - :param description: 服务器组描述 + :param description: 服务器组描述。 :type description: str :param route_policy: :type route_policy: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` - :param image_id: 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效 + :param image_id: 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效。 :type image_id: str - :param image_product_id: 服务器组的镜像的productId + :param image_product_id: 服务器组的镜像的productId。 :type image_product_id: str :param image_type: :type image_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageTypeEnum` :param system_disk_type: :type system_disk_type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param system_disk_size: 磁盘容量,单位GB + :param system_disk_size: 磁盘容量,单位GB。 :type system_disk_size: int - :param ou_name: 默认组织名称 + :param ou_name: 默认组织名称。 :type ou_name: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` @@ -115,7 +115,7 @@ def __init__(self, name=None, description=None, route_policy=None, storage_mount def name(self): """Gets the name of this UpdateServerGroupReq. - 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :return: The name of this UpdateServerGroupReq. :rtype: str @@ -126,7 +126,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateServerGroupReq. - 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + 服务器组名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 :param name: The name of this UpdateServerGroupReq. :type name: str @@ -137,7 +137,7 @@ def name(self, name): def description(self): """Gets the description of this UpdateServerGroupReq. - 服务器组描述 + 服务器组描述。 :return: The description of this UpdateServerGroupReq. :rtype: str @@ -148,7 +148,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateServerGroupReq. - 服务器组描述 + 服务器组描述。 :param description: The description of this UpdateServerGroupReq. :type description: str @@ -195,7 +195,7 @@ def storage_mount_policy(self, storage_mount_policy): def image_id(self): """Gets the image_id of this UpdateServerGroupReq. - 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效 + 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效。 :return: The image_id of this UpdateServerGroupReq. :rtype: str @@ -206,7 +206,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this UpdateServerGroupReq. - 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效 + 服务器组关联的镜像ID,更新镜像ID只对组下新创建的云服务器生效。 :param image_id: The image_id of this UpdateServerGroupReq. :type image_id: str @@ -217,7 +217,7 @@ def image_id(self, image_id): def image_product_id(self): """Gets the image_product_id of this UpdateServerGroupReq. - 服务器组的镜像的productId + 服务器组的镜像的productId。 :return: The image_product_id of this UpdateServerGroupReq. :rtype: str @@ -228,7 +228,7 @@ def image_product_id(self): def image_product_id(self, image_product_id): """Sets the image_product_id of this UpdateServerGroupReq. - 服务器组的镜像的productId + 服务器组的镜像的productId。 :param image_product_id: The image_product_id of this UpdateServerGroupReq. :type image_product_id: str @@ -275,7 +275,7 @@ def system_disk_type(self, system_disk_type): def system_disk_size(self): """Gets the system_disk_size of this UpdateServerGroupReq. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :return: The system_disk_size of this UpdateServerGroupReq. :rtype: int @@ -286,7 +286,7 @@ def system_disk_size(self): def system_disk_size(self, system_disk_size): """Sets the system_disk_size of this UpdateServerGroupReq. - 磁盘容量,单位GB + 磁盘容量,单位GB。 :param system_disk_size: The system_disk_size of this UpdateServerGroupReq. :type system_disk_size: int @@ -297,7 +297,7 @@ def system_disk_size(self, system_disk_size): def ou_name(self): """Gets the ou_name of this UpdateServerGroupReq. - 默认组织名称 + 默认组织名称。 :return: The ou_name of this UpdateServerGroupReq. :rtype: str @@ -308,7 +308,7 @@ def ou_name(self): def ou_name(self, ou_name): """Sets the ou_name of this UpdateServerGroupReq. - 默认组织名称 + 默认组织名称。 :param ou_name: The ou_name of this UpdateServerGroupReq. :type ou_name: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_request.py index ce83ab0cf9..ea15cd85d9 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_request.py @@ -31,7 +31,7 @@ def __init__(self, server_group_id=None, body=None): The model defined in huaweicloud sdk - :param server_group_id: 服务器组唯一标识 + :param server_group_id: 服务器组唯一标识。 :type server_group_id: str :param body: Body of the UpdateServerGroupRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateServerGroupReq` @@ -51,7 +51,7 @@ def __init__(self, server_group_id=None, body=None): def server_group_id(self): """Gets the server_group_id of this UpdateServerGroupRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :return: The server_group_id of this UpdateServerGroupRequest. :rtype: str @@ -62,7 +62,7 @@ def server_group_id(self): def server_group_id(self, server_group_id): """Sets the server_group_id of this UpdateServerGroupRequest. - 服务器组唯一标识 + 服务器组唯一标识。 :param server_group_id: The server_group_id of this UpdateServerGroupRequest. :type server_group_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_req.py index 73a363575d..980cb15587 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_req.py @@ -33,11 +33,11 @@ def __init__(self, name=None, description=None, maintain_status=None): The model defined in huaweicloud sdk - :param name: 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + :param name: 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :type name: str - :param description: 服务器描述 + :param description: 服务器描述。 :type description: str - :param maintain_status: 服务器维护状态标识 * `true` - 添加标记 * `false` - 移除标记 + :param maintain_status: 服务器维护状态标识: * `true` - 添加标记 * `false` - 移除标记 :type maintain_status: bool """ @@ -59,7 +59,7 @@ def __init__(self, name=None, description=None, maintain_status=None): def name(self): """Gets the name of this UpdateServerReq. - 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :return: The name of this UpdateServerReq. :rtype: str @@ -70,7 +70,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateServerReq. - 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-空格组成,不能全为空格, 首位不为空 2. 长度范围1~64个字符 + 服务器名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 :param name: The name of this UpdateServerReq. :type name: str @@ -81,7 +81,7 @@ def name(self, name): def description(self): """Gets the description of this UpdateServerReq. - 服务器描述 + 服务器描述。 :return: The description of this UpdateServerReq. :rtype: str @@ -92,7 +92,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateServerReq. - 服务器描述 + 服务器描述。 :param description: The description of this UpdateServerReq. :type description: str @@ -103,7 +103,7 @@ def description(self, description): def maintain_status(self): """Gets the maintain_status of this UpdateServerReq. - 服务器维护状态标识 * `true` - 添加标记 * `false` - 移除标记 + 服务器维护状态标识: * `true` - 添加标记 * `false` - 移除标记 :return: The maintain_status of this UpdateServerReq. :rtype: bool @@ -114,7 +114,7 @@ def maintain_status(self): def maintain_status(self, maintain_status): """Sets the maintain_status of this UpdateServerReq. - 服务器维护状态标识 * `true` - 添加标记 * `false` - 移除标记 + 服务器维护状态标识: * `true` - 添加标记 * `false` - 移除标记 :param maintain_status: The maintain_status of this UpdateServerReq. :type maintain_status: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_request.py index ecbb872475..455a73d2e6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_request.py @@ -31,7 +31,7 @@ def __init__(self, server_id=None, body=None): The model defined in huaweicloud sdk - :param server_id: 服务器唯一标识 + :param server_id: 服务器唯一标识。 :type server_id: str :param body: Body of the UpdateServerRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateServerReq` @@ -51,7 +51,7 @@ def __init__(self, server_id=None, body=None): def server_id(self): """Gets the server_id of this UpdateServerRequest. - 服务器唯一标识 + 服务器唯一标识。 :return: The server_id of this UpdateServerRequest. :rtype: str @@ -62,7 +62,7 @@ def server_id(self): def server_id(self, server_id): """Sets the server_id of this UpdateServerRequest. - 服务器唯一标识 + 服务器唯一标识。 :param server_id: The server_id of this UpdateServerRequest. :type server_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_share_folder_assignment_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_share_folder_assignment_request.py index 082766b60a..2713ff4be7 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_share_folder_assignment_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_share_folder_assignment_request.py @@ -31,7 +31,7 @@ def __init__(self, storage_id=None, body=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str :param body: Body of the UpdateShareFolderAssignmentRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.AssignShareFolderReq` @@ -51,7 +51,7 @@ def __init__(self, storage_id=None, body=None): def storage_id(self): """Gets the storage_id of this UpdateShareFolderAssignmentRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this UpdateShareFolderAssignmentRequest. :rtype: str @@ -62,7 +62,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this UpdateShareFolderAssignmentRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this UpdateShareFolderAssignmentRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi.py index a5ae83b932..b747b384d9 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi.py @@ -31,7 +31,7 @@ def __init__(self, id=None, enable=None): The model defined in huaweicloud sdk - :param id: 服务器ID + :param id: 服务器ID。 :type id: str :param enable: **⚠ 预留字段,不使用,是否启用虚拟IP功能与服务器组配置保持一致。 是否启用虚拟IP功能。 开关只在租户配置允许启用虚拟IP场景有效,否则忽略传值并设置为关闭。 :type enable: bool @@ -50,7 +50,7 @@ def __init__(self, id=None, enable=None): def id(self): """Gets the id of this UpdateTsvi. - 服务器ID + 服务器ID。 :return: The id of this UpdateTsvi. :rtype: str @@ -61,7 +61,7 @@ def id(self): def id(self, id): """Sets the id of this UpdateTsvi. - 服务器ID + 服务器ID。 :param id: The id of this UpdateTsvi. :type id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi_req.py index 54813a7ea4..24ffcabc1b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_tsvi_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 批量请求列表,一次请求数量区间 [1, 20] + :param items: 批量请求列表,一次请求数量区间 [1, 20]。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UpdateTsvi`] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this UpdateTsviReq. - 批量请求列表,一次请求数量区间 [1, 20] + 批量请求列表,一次请求数量区间 [1, 20]。 :return: The items of this UpdateTsviReq. :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.UpdateTsvi`] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this UpdateTsviReq. - 批量请求列表,一次请求数量区间 [1, 20] + 批量请求列表,一次请求数量区间 [1, 20]。 :param items: The items of this UpdateTsviReq. :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UpdateTsvi`] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_user_folder_assignment_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_user_folder_assignment_request.py index d828c4e9e9..bc9a0cea9c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_user_folder_assignment_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_user_folder_assignment_request.py @@ -31,7 +31,7 @@ def __init__(self, storage_id=None, body=None): The model defined in huaweicloud sdk - :param storage_id: WKS存储ID + :param storage_id: WKS存储ID。 :type storage_id: str :param body: Body of the UpdateUserFolderAssignmentRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.AssignUserFolderReq` @@ -51,7 +51,7 @@ def __init__(self, storage_id=None, body=None): def storage_id(self): """Gets the storage_id of this UpdateUserFolderAssignmentRequest. - WKS存储ID + WKS存储ID。 :return: The storage_id of this UpdateUserFolderAssignmentRequest. :rtype: str @@ -62,7 +62,7 @@ def storage_id(self): def storage_id(self, storage_id): """Sets the storage_id of this UpdateUserFolderAssignmentRequest. - WKS存储ID + WKS存储ID。 :param storage_id: The storage_id of this UpdateUserFolderAssignmentRequest. :type storage_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request.py index 5c55b5e0fb..c10e028e7c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request.py @@ -33,9 +33,9 @@ def __init__(self, app_group_id=None, app_id=None, body=None): The model defined in huaweicloud sdk - :param app_group_id: 应用组ID + :param app_group_id: 应用组ID。 :type app_group_id: str - :param app_id: 应用ID + :param app_id: 应用ID。 :type app_id: str :param body: Body of the UploadAppIconRequest :type body: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconRequestBody` @@ -57,7 +57,7 @@ def __init__(self, app_group_id=None, app_id=None, body=None): def app_group_id(self): """Gets the app_group_id of this UploadAppIconRequest. - 应用组ID + 应用组ID。 :return: The app_group_id of this UploadAppIconRequest. :rtype: str @@ -68,7 +68,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UploadAppIconRequest. - 应用组ID + 应用组ID。 :param app_group_id: The app_group_id of this UploadAppIconRequest. :type app_group_id: str @@ -79,7 +79,7 @@ def app_group_id(self, app_group_id): def app_id(self): """Gets the app_id of this UploadAppIconRequest. - 应用ID + 应用ID。 :return: The app_id of this UploadAppIconRequest. :rtype: str @@ -90,7 +90,7 @@ def app_id(self): def app_id(self, app_id): """Sets the app_id of this UploadAppIconRequest. - 应用ID + 应用ID。 :param app_id: The app_id of this UploadAppIconRequest. :type app_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request_body.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request_body.py index bf41f476fc..cd5860d3cc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request_body.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_request_body.py @@ -29,7 +29,7 @@ def __init__(self, data=None): The model defined in huaweicloud sdk - :param data: 应用图标,png格式,限制大小8KB + :param data: 应用图标,png格式,限制大小8KB。 :type data: :class:`huaweicloudsdkcore.http.formdata.FormFile` """ @@ -44,7 +44,7 @@ def __init__(self, data=None): def data(self): """Gets the data of this UploadAppIconRequestBody. - 应用图标,png格式,限制大小8KB + 应用图标,png格式,限制大小8KB。 :return: The data of this UploadAppIconRequestBody. :rtype: :class:`huaweicloudsdkcore.http.formdata.FormFile` @@ -55,7 +55,7 @@ def data(self): def data(self, data): """Sets the data of this UploadAppIconRequestBody. - 应用图标,png格式,限制大小8KB + 应用图标,png格式,限制大小8KB。 :param data: The data of this UploadAppIconRequestBody. :type data: :class:`huaweicloudsdkcore.http.formdata.FormFile` diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_response.py index b6f8edb181..6db5afe53a 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_app_icon_response.py @@ -64,41 +64,41 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute The model defined in huaweicloud sdk - :param id: 应用ID + :param id: 应用ID。 :type id: str - :param name: 应用名称 + :param name: 应用名称。 :type name: str - :param version: 应用版本号 + :param version: 应用版本号。 :type version: str - :param command_param: 启动命令行参数 + :param command_param: 启动命令行参数。 :type command_param: str - :param execute_path: 执行路径 + :param execute_path: 执行路径。 :type execute_path: str - :param work_path: 应用工作目录 + :param work_path: 应用工作目录。 :type work_path: str - :param icon_path: 应用图标的路径 + :param icon_path: 应用图标的路径。 :type icon_path: str - :param icon_index: 应用图标的索引 + :param icon_index: 应用图标的索引。 :type icon_index: int - :param description: 应用描述 + :param description: 应用描述。 :type description: str - :param app_group_id: 应用组标识Id + :param app_group_id: 应用组标识Id。 :type app_group_id: str :param state: :type state: :class:`huaweicloudsdkworkspaceapp.v1.AppStateEnum` - :param tenant_id: 所在的租户ID + :param tenant_id: 所在的租户ID。 :type tenant_id: str - :param publish_at: 发布时间 + :param publish_at: 发布时间。 :type publish_at: datetime - :param source_type: 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + :param source_type: 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :type source_type: int - :param publisher: 应用发布者 + :param publisher: 应用发布者。 :type publisher: str - :param icon_url: 图标url + :param icon_url: 图标url。 :type icon_url: str - :param publishable: 是否可发布应用 - true: 可发布 - false: 不可发布 + :param publishable: 是否可发布应用: - true: 可发布。 - false: 不可发布。 :type publishable: bool - :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + :param sandbox_enable: 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :type sandbox_enable: bool """ @@ -165,7 +165,7 @@ def __init__(self, id=None, name=None, version=None, command_param=None, execute def id(self): """Gets the id of this UploadAppIconResponse. - 应用ID + 应用ID。 :return: The id of this UploadAppIconResponse. :rtype: str @@ -176,7 +176,7 @@ def id(self): def id(self, id): """Sets the id of this UploadAppIconResponse. - 应用ID + 应用ID。 :param id: The id of this UploadAppIconResponse. :type id: str @@ -187,7 +187,7 @@ def id(self, id): def name(self): """Gets the name of this UploadAppIconResponse. - 应用名称 + 应用名称。 :return: The name of this UploadAppIconResponse. :rtype: str @@ -198,7 +198,7 @@ def name(self): def name(self, name): """Sets the name of this UploadAppIconResponse. - 应用名称 + 应用名称。 :param name: The name of this UploadAppIconResponse. :type name: str @@ -209,7 +209,7 @@ def name(self, name): def version(self): """Gets the version of this UploadAppIconResponse. - 应用版本号 + 应用版本号。 :return: The version of this UploadAppIconResponse. :rtype: str @@ -220,7 +220,7 @@ def version(self): def version(self, version): """Sets the version of this UploadAppIconResponse. - 应用版本号 + 应用版本号。 :param version: The version of this UploadAppIconResponse. :type version: str @@ -231,7 +231,7 @@ def version(self, version): def command_param(self): """Gets the command_param of this UploadAppIconResponse. - 启动命令行参数 + 启动命令行参数。 :return: The command_param of this UploadAppIconResponse. :rtype: str @@ -242,7 +242,7 @@ def command_param(self): def command_param(self, command_param): """Sets the command_param of this UploadAppIconResponse. - 启动命令行参数 + 启动命令行参数。 :param command_param: The command_param of this UploadAppIconResponse. :type command_param: str @@ -253,7 +253,7 @@ def command_param(self, command_param): def execute_path(self): """Gets the execute_path of this UploadAppIconResponse. - 执行路径 + 执行路径。 :return: The execute_path of this UploadAppIconResponse. :rtype: str @@ -264,7 +264,7 @@ def execute_path(self): def execute_path(self, execute_path): """Sets the execute_path of this UploadAppIconResponse. - 执行路径 + 执行路径。 :param execute_path: The execute_path of this UploadAppIconResponse. :type execute_path: str @@ -275,7 +275,7 @@ def execute_path(self, execute_path): def work_path(self): """Gets the work_path of this UploadAppIconResponse. - 应用工作目录 + 应用工作目录。 :return: The work_path of this UploadAppIconResponse. :rtype: str @@ -286,7 +286,7 @@ def work_path(self): def work_path(self, work_path): """Sets the work_path of this UploadAppIconResponse. - 应用工作目录 + 应用工作目录。 :param work_path: The work_path of this UploadAppIconResponse. :type work_path: str @@ -297,7 +297,7 @@ def work_path(self, work_path): def icon_path(self): """Gets the icon_path of this UploadAppIconResponse. - 应用图标的路径 + 应用图标的路径。 :return: The icon_path of this UploadAppIconResponse. :rtype: str @@ -308,7 +308,7 @@ def icon_path(self): def icon_path(self, icon_path): """Sets the icon_path of this UploadAppIconResponse. - 应用图标的路径 + 应用图标的路径。 :param icon_path: The icon_path of this UploadAppIconResponse. :type icon_path: str @@ -319,7 +319,7 @@ def icon_path(self, icon_path): def icon_index(self): """Gets the icon_index of this UploadAppIconResponse. - 应用图标的索引 + 应用图标的索引。 :return: The icon_index of this UploadAppIconResponse. :rtype: int @@ -330,7 +330,7 @@ def icon_index(self): def icon_index(self, icon_index): """Sets the icon_index of this UploadAppIconResponse. - 应用图标的索引 + 应用图标的索引。 :param icon_index: The icon_index of this UploadAppIconResponse. :type icon_index: int @@ -341,7 +341,7 @@ def icon_index(self, icon_index): def description(self): """Gets the description of this UploadAppIconResponse. - 应用描述 + 应用描述。 :return: The description of this UploadAppIconResponse. :rtype: str @@ -352,7 +352,7 @@ def description(self): def description(self, description): """Sets the description of this UploadAppIconResponse. - 应用描述 + 应用描述。 :param description: The description of this UploadAppIconResponse. :type description: str @@ -363,7 +363,7 @@ def description(self, description): def app_group_id(self): """Gets the app_group_id of this UploadAppIconResponse. - 应用组标识Id + 应用组标识Id。 :return: The app_group_id of this UploadAppIconResponse. :rtype: str @@ -374,7 +374,7 @@ def app_group_id(self): def app_group_id(self, app_group_id): """Sets the app_group_id of this UploadAppIconResponse. - 应用组标识Id + 应用组标识Id。 :param app_group_id: The app_group_id of this UploadAppIconResponse. :type app_group_id: str @@ -403,7 +403,7 @@ def state(self, state): def tenant_id(self): """Gets the tenant_id of this UploadAppIconResponse. - 所在的租户ID + 所在的租户ID。 :return: The tenant_id of this UploadAppIconResponse. :rtype: str @@ -414,7 +414,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this UploadAppIconResponse. - 所在的租户ID + 所在的租户ID。 :param tenant_id: The tenant_id of this UploadAppIconResponse. :type tenant_id: str @@ -425,7 +425,7 @@ def tenant_id(self, tenant_id): def publish_at(self): """Gets the publish_at of this UploadAppIconResponse. - 发布时间 + 发布时间。 :return: The publish_at of this UploadAppIconResponse. :rtype: datetime @@ -436,7 +436,7 @@ def publish_at(self): def publish_at(self, publish_at): """Sets the publish_at of this UploadAppIconResponse. - 发布时间 + 发布时间。 :param publish_at: The publish_at of this UploadAppIconResponse. :type publish_at: datetime @@ -447,7 +447,7 @@ def publish_at(self, publish_at): def source_type(self): """Gets the source_type of this UploadAppIconResponse. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :return: The source_type of this UploadAppIconResponse. :rtype: int @@ -458,7 +458,7 @@ def source_type(self): def source_type(self, source_type): """Sets the source_type of this UploadAppIconResponse. - 应用类型 - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 + 应用类型: - '1':系统内置应用 - '2':镜像应用 - '3':自定义应用 :param source_type: The source_type of this UploadAppIconResponse. :type source_type: int @@ -469,7 +469,7 @@ def source_type(self, source_type): def publisher(self): """Gets the publisher of this UploadAppIconResponse. - 应用发布者 + 应用发布者。 :return: The publisher of this UploadAppIconResponse. :rtype: str @@ -480,7 +480,7 @@ def publisher(self): def publisher(self, publisher): """Sets the publisher of this UploadAppIconResponse. - 应用发布者 + 应用发布者。 :param publisher: The publisher of this UploadAppIconResponse. :type publisher: str @@ -491,7 +491,7 @@ def publisher(self, publisher): def icon_url(self): """Gets the icon_url of this UploadAppIconResponse. - 图标url + 图标url。 :return: The icon_url of this UploadAppIconResponse. :rtype: str @@ -502,7 +502,7 @@ def icon_url(self): def icon_url(self, icon_url): """Sets the icon_url of this UploadAppIconResponse. - 图标url + 图标url。 :param icon_url: The icon_url of this UploadAppIconResponse. :type icon_url: str @@ -513,7 +513,7 @@ def icon_url(self, icon_url): def publishable(self): """Gets the publishable of this UploadAppIconResponse. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :return: The publishable of this UploadAppIconResponse. :rtype: bool @@ -524,7 +524,7 @@ def publishable(self): def publishable(self, publishable): """Sets the publishable of this UploadAppIconResponse. - 是否可发布应用 - true: 可发布 - false: 不可发布 + 是否可发布应用: - true: 可发布。 - false: 不可发布。 :param publishable: The publishable of this UploadAppIconResponse. :type publishable: bool @@ -535,7 +535,7 @@ def publishable(self, publishable): def sandbox_enable(self): """Gets the sandbox_enable of this UploadAppIconResponse. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :return: The sandbox_enable of this UploadAppIconResponse. :rtype: bool @@ -546,7 +546,7 @@ def sandbox_enable(self): def sandbox_enable(self, sandbox_enable): """Sets the sandbox_enable of this UploadAppIconResponse. - 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行 - true: 表示以沙箱模式运行 + 是否使用沙箱模式运行,取值为: - false: 表示不以沙箱模式运行。 - true: 表示以沙箱模式运行。 :param sandbox_enable: The sandbox_enable of this UploadAppIconResponse. :type sandbox_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_assignment.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_assignment.py index 9f71b0e980..0c03461a1e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_assignment.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_assignment.py @@ -31,9 +31,9 @@ def __init__(self, attach=None, policy_statement_id=None): The model defined in huaweicloud sdk - :param attach: 目标用户 + :param attach: 目标用户。 :type attach: str - :param policy_statement_id: 策略ID + :param policy_statement_id: 策略ID。 :type policy_statement_id: str """ @@ -50,7 +50,7 @@ def __init__(self, attach=None, policy_statement_id=None): def attach(self): """Gets the attach of this UserAssignment. - 目标用户 + 目标用户。 :return: The attach of this UserAssignment. :rtype: str @@ -61,7 +61,7 @@ def attach(self): def attach(self, attach): """Sets the attach of this UserAssignment. - 目标用户 + 目标用户。 :param attach: The attach of this UserAssignment. :type attach: str @@ -72,7 +72,7 @@ def attach(self, attach): def policy_statement_id(self): """Gets the policy_statement_id of this UserAssignment. - 策略ID + 策略ID。 :return: The policy_statement_id of this UserAssignment. :rtype: str @@ -83,7 +83,7 @@ def policy_statement_id(self): def policy_statement_id(self, policy_statement_id): """Sets the policy_statement_id of this UserAssignment. - 策略ID + 策略ID。 :param policy_statement_id: The policy_statement_id of this UserAssignment. :type policy_statement_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_connection_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_connection_info.py index bf19af5736..f54f96772b 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_connection_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/user_connection_info.py @@ -73,51 +73,51 @@ def __init__(self, id=None, connect_type=None, user_name=None, desktop_group_nam The model defined in huaweicloud sdk - :param id: 主键 + :param id: 主键。 :type id: str - :param connect_type: 连接类型 + :param connect_type: 连接类型。 :type connect_type: str - :param user_name: 登录用户 + :param user_name: 登录用户。 :type user_name: str - :param desktop_group_name: 桌面组名 + :param desktop_group_name: 桌面组名。 :type desktop_group_name: str - :param pre_conn_time: 预连接时间 + :param pre_conn_time: 预连接时间。 :type pre_conn_time: datetime - :param start_time: 开始时间 + :param start_time: 开始时间。 :type start_time: datetime - :param end_time: 结束时间 + :param end_time: 结束时间。 :type end_time: datetime - :param machine_sid: 应用服务器sid + :param machine_sid: 应用服务器sid。 :type machine_sid: str - :param machine_name: 应用服务器名称 + :param machine_name: 应用服务器名称。 :type machine_name: str - :param failed_reason: 连接失败原因 + :param failed_reason: 连接失败原因。 :type failed_reason: str - :param failed_code: 连接失败状态码 + :param failed_code: 连接失败状态码。 :type failed_code: str - :param client_mac: 客户端Mac + :param client_mac: 客户端Mac。 :type client_mac: str - :param client_name: 客户端名称 + :param client_name: 客户端名称。 :type client_name: str - :param client_ip: 客户端ip + :param client_ip: 客户端ip。 :type client_ip: str - :param client_version: 客户端版本 + :param client_version: 客户端版本。 :type client_version: str - :param client_type: 客户端操作系统类型 + :param client_type: 客户端操作系统类型。 :type client_type: str - :param agent_version: aps hda版本 + :param agent_version: aps hda版本。 :type agent_version: str - :param vm_ip: 应用服务器ip + :param vm_ip: 应用服务器ip。 :type vm_ip: str - :param connect_flag: 连接标志 + :param connect_flag: 连接标志。 :type connect_flag: str - :param wi_ip: 连接IP + :param wi_ip: 连接IP。 :type wi_ip: str - :param update_time: 更新时间 + :param update_time: 更新时间。 :type update_time: datetime - :param tenant_id: 租户id + :param tenant_id: 租户id。 :type tenant_id: str - :param virtual_ip: 会话虚拟ip + :param virtual_ip: 会话虚拟ip。 :type virtual_ip: str """ @@ -199,7 +199,7 @@ def __init__(self, id=None, connect_type=None, user_name=None, desktop_group_nam def id(self): """Gets the id of this UserConnectionInfo. - 主键 + 主键。 :return: The id of this UserConnectionInfo. :rtype: str @@ -210,7 +210,7 @@ def id(self): def id(self, id): """Sets the id of this UserConnectionInfo. - 主键 + 主键。 :param id: The id of this UserConnectionInfo. :type id: str @@ -221,7 +221,7 @@ def id(self, id): def connect_type(self): """Gets the connect_type of this UserConnectionInfo. - 连接类型 + 连接类型。 :return: The connect_type of this UserConnectionInfo. :rtype: str @@ -232,7 +232,7 @@ def connect_type(self): def connect_type(self, connect_type): """Sets the connect_type of this UserConnectionInfo. - 连接类型 + 连接类型。 :param connect_type: The connect_type of this UserConnectionInfo. :type connect_type: str @@ -243,7 +243,7 @@ def connect_type(self, connect_type): def user_name(self): """Gets the user_name of this UserConnectionInfo. - 登录用户 + 登录用户。 :return: The user_name of this UserConnectionInfo. :rtype: str @@ -254,7 +254,7 @@ def user_name(self): def user_name(self, user_name): """Sets the user_name of this UserConnectionInfo. - 登录用户 + 登录用户。 :param user_name: The user_name of this UserConnectionInfo. :type user_name: str @@ -265,7 +265,7 @@ def user_name(self, user_name): def desktop_group_name(self): """Gets the desktop_group_name of this UserConnectionInfo. - 桌面组名 + 桌面组名。 :return: The desktop_group_name of this UserConnectionInfo. :rtype: str @@ -276,7 +276,7 @@ def desktop_group_name(self): def desktop_group_name(self, desktop_group_name): """Sets the desktop_group_name of this UserConnectionInfo. - 桌面组名 + 桌面组名。 :param desktop_group_name: The desktop_group_name of this UserConnectionInfo. :type desktop_group_name: str @@ -287,7 +287,7 @@ def desktop_group_name(self, desktop_group_name): def pre_conn_time(self): """Gets the pre_conn_time of this UserConnectionInfo. - 预连接时间 + 预连接时间。 :return: The pre_conn_time of this UserConnectionInfo. :rtype: datetime @@ -298,7 +298,7 @@ def pre_conn_time(self): def pre_conn_time(self, pre_conn_time): """Sets the pre_conn_time of this UserConnectionInfo. - 预连接时间 + 预连接时间。 :param pre_conn_time: The pre_conn_time of this UserConnectionInfo. :type pre_conn_time: datetime @@ -309,7 +309,7 @@ def pre_conn_time(self, pre_conn_time): def start_time(self): """Gets the start_time of this UserConnectionInfo. - 开始时间 + 开始时间。 :return: The start_time of this UserConnectionInfo. :rtype: datetime @@ -320,7 +320,7 @@ def start_time(self): def start_time(self, start_time): """Sets the start_time of this UserConnectionInfo. - 开始时间 + 开始时间。 :param start_time: The start_time of this UserConnectionInfo. :type start_time: datetime @@ -331,7 +331,7 @@ def start_time(self, start_time): def end_time(self): """Gets the end_time of this UserConnectionInfo. - 结束时间 + 结束时间。 :return: The end_time of this UserConnectionInfo. :rtype: datetime @@ -342,7 +342,7 @@ def end_time(self): def end_time(self, end_time): """Sets the end_time of this UserConnectionInfo. - 结束时间 + 结束时间。 :param end_time: The end_time of this UserConnectionInfo. :type end_time: datetime @@ -353,7 +353,7 @@ def end_time(self, end_time): def machine_sid(self): """Gets the machine_sid of this UserConnectionInfo. - 应用服务器sid + 应用服务器sid。 :return: The machine_sid of this UserConnectionInfo. :rtype: str @@ -364,7 +364,7 @@ def machine_sid(self): def machine_sid(self, machine_sid): """Sets the machine_sid of this UserConnectionInfo. - 应用服务器sid + 应用服务器sid。 :param machine_sid: The machine_sid of this UserConnectionInfo. :type machine_sid: str @@ -375,7 +375,7 @@ def machine_sid(self, machine_sid): def machine_name(self): """Gets the machine_name of this UserConnectionInfo. - 应用服务器名称 + 应用服务器名称。 :return: The machine_name of this UserConnectionInfo. :rtype: str @@ -386,7 +386,7 @@ def machine_name(self): def machine_name(self, machine_name): """Sets the machine_name of this UserConnectionInfo. - 应用服务器名称 + 应用服务器名称。 :param machine_name: The machine_name of this UserConnectionInfo. :type machine_name: str @@ -397,7 +397,7 @@ def machine_name(self, machine_name): def failed_reason(self): """Gets the failed_reason of this UserConnectionInfo. - 连接失败原因 + 连接失败原因。 :return: The failed_reason of this UserConnectionInfo. :rtype: str @@ -408,7 +408,7 @@ def failed_reason(self): def failed_reason(self, failed_reason): """Sets the failed_reason of this UserConnectionInfo. - 连接失败原因 + 连接失败原因。 :param failed_reason: The failed_reason of this UserConnectionInfo. :type failed_reason: str @@ -419,7 +419,7 @@ def failed_reason(self, failed_reason): def failed_code(self): """Gets the failed_code of this UserConnectionInfo. - 连接失败状态码 + 连接失败状态码。 :return: The failed_code of this UserConnectionInfo. :rtype: str @@ -430,7 +430,7 @@ def failed_code(self): def failed_code(self, failed_code): """Sets the failed_code of this UserConnectionInfo. - 连接失败状态码 + 连接失败状态码。 :param failed_code: The failed_code of this UserConnectionInfo. :type failed_code: str @@ -441,7 +441,7 @@ def failed_code(self, failed_code): def client_mac(self): """Gets the client_mac of this UserConnectionInfo. - 客户端Mac + 客户端Mac。 :return: The client_mac of this UserConnectionInfo. :rtype: str @@ -452,7 +452,7 @@ def client_mac(self): def client_mac(self, client_mac): """Sets the client_mac of this UserConnectionInfo. - 客户端Mac + 客户端Mac。 :param client_mac: The client_mac of this UserConnectionInfo. :type client_mac: str @@ -463,7 +463,7 @@ def client_mac(self, client_mac): def client_name(self): """Gets the client_name of this UserConnectionInfo. - 客户端名称 + 客户端名称。 :return: The client_name of this UserConnectionInfo. :rtype: str @@ -474,7 +474,7 @@ def client_name(self): def client_name(self, client_name): """Sets the client_name of this UserConnectionInfo. - 客户端名称 + 客户端名称。 :param client_name: The client_name of this UserConnectionInfo. :type client_name: str @@ -485,7 +485,7 @@ def client_name(self, client_name): def client_ip(self): """Gets the client_ip of this UserConnectionInfo. - 客户端ip + 客户端ip。 :return: The client_ip of this UserConnectionInfo. :rtype: str @@ -496,7 +496,7 @@ def client_ip(self): def client_ip(self, client_ip): """Sets the client_ip of this UserConnectionInfo. - 客户端ip + 客户端ip。 :param client_ip: The client_ip of this UserConnectionInfo. :type client_ip: str @@ -507,7 +507,7 @@ def client_ip(self, client_ip): def client_version(self): """Gets the client_version of this UserConnectionInfo. - 客户端版本 + 客户端版本。 :return: The client_version of this UserConnectionInfo. :rtype: str @@ -518,7 +518,7 @@ def client_version(self): def client_version(self, client_version): """Sets the client_version of this UserConnectionInfo. - 客户端版本 + 客户端版本。 :param client_version: The client_version of this UserConnectionInfo. :type client_version: str @@ -529,7 +529,7 @@ def client_version(self, client_version): def client_type(self): """Gets the client_type of this UserConnectionInfo. - 客户端操作系统类型 + 客户端操作系统类型。 :return: The client_type of this UserConnectionInfo. :rtype: str @@ -540,7 +540,7 @@ def client_type(self): def client_type(self, client_type): """Sets the client_type of this UserConnectionInfo. - 客户端操作系统类型 + 客户端操作系统类型。 :param client_type: The client_type of this UserConnectionInfo. :type client_type: str @@ -551,7 +551,7 @@ def client_type(self, client_type): def agent_version(self): """Gets the agent_version of this UserConnectionInfo. - aps hda版本 + aps hda版本。 :return: The agent_version of this UserConnectionInfo. :rtype: str @@ -562,7 +562,7 @@ def agent_version(self): def agent_version(self, agent_version): """Sets the agent_version of this UserConnectionInfo. - aps hda版本 + aps hda版本。 :param agent_version: The agent_version of this UserConnectionInfo. :type agent_version: str @@ -573,7 +573,7 @@ def agent_version(self, agent_version): def vm_ip(self): """Gets the vm_ip of this UserConnectionInfo. - 应用服务器ip + 应用服务器ip。 :return: The vm_ip of this UserConnectionInfo. :rtype: str @@ -584,7 +584,7 @@ def vm_ip(self): def vm_ip(self, vm_ip): """Sets the vm_ip of this UserConnectionInfo. - 应用服务器ip + 应用服务器ip。 :param vm_ip: The vm_ip of this UserConnectionInfo. :type vm_ip: str @@ -595,7 +595,7 @@ def vm_ip(self, vm_ip): def connect_flag(self): """Gets the connect_flag of this UserConnectionInfo. - 连接标志 + 连接标志。 :return: The connect_flag of this UserConnectionInfo. :rtype: str @@ -606,7 +606,7 @@ def connect_flag(self): def connect_flag(self, connect_flag): """Sets the connect_flag of this UserConnectionInfo. - 连接标志 + 连接标志。 :param connect_flag: The connect_flag of this UserConnectionInfo. :type connect_flag: str @@ -617,7 +617,7 @@ def connect_flag(self, connect_flag): def wi_ip(self): """Gets the wi_ip of this UserConnectionInfo. - 连接IP + 连接IP。 :return: The wi_ip of this UserConnectionInfo. :rtype: str @@ -628,7 +628,7 @@ def wi_ip(self): def wi_ip(self, wi_ip): """Sets the wi_ip of this UserConnectionInfo. - 连接IP + 连接IP。 :param wi_ip: The wi_ip of this UserConnectionInfo. :type wi_ip: str @@ -639,7 +639,7 @@ def wi_ip(self, wi_ip): def update_time(self): """Gets the update_time of this UserConnectionInfo. - 更新时间 + 更新时间。 :return: The update_time of this UserConnectionInfo. :rtype: datetime @@ -650,7 +650,7 @@ def update_time(self): def update_time(self, update_time): """Sets the update_time of this UserConnectionInfo. - 更新时间 + 更新时间。 :param update_time: The update_time of this UserConnectionInfo. :type update_time: datetime @@ -661,7 +661,7 @@ def update_time(self, update_time): def tenant_id(self): """Gets the tenant_id of this UserConnectionInfo. - 租户id + 租户id。 :return: The tenant_id of this UserConnectionInfo. :rtype: str @@ -672,7 +672,7 @@ def tenant_id(self): def tenant_id(self, tenant_id): """Sets the tenant_id of this UserConnectionInfo. - 租户id + 租户id。 :param tenant_id: The tenant_id of this UserConnectionInfo. :type tenant_id: str @@ -683,7 +683,7 @@ def tenant_id(self, tenant_id): def virtual_ip(self): """Gets the virtual_ip of this UserConnectionInfo. - 会话虚拟ip + 会话虚拟ip。 :return: The virtual_ip of this UserConnectionInfo. :rtype: str @@ -694,7 +694,7 @@ def virtual_ip(self): def virtual_ip(self, virtual_ip): """Sets the virtual_ip of this UserConnectionInfo. - 会话虚拟ip + 会话虚拟ip。 :param virtual_ip: The virtual_ip of this UserConnectionInfo. :type virtual_ip: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume.py index 0389fbc6e0..7263cf9b52 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume.py @@ -35,9 +35,9 @@ def __init__(self, type=None, size=None, cluster_id=None): :param type: :type type: :class:`huaweicloudsdkworkspaceapp.v1.VolumeType` - :param size: 磁盘容量,单位GB,数值约束为10的倍数 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 + :param size: 磁盘容量,单位GB,数值约束为10的倍数。 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 :type size: int - :param cluster_id: 云服务器系统盘对应的存储池的ID + :param cluster_id: 云服务器系统盘对应的存储池的ID。 :type cluster_id: str """ @@ -75,7 +75,7 @@ def type(self, type): def size(self): """Gets the size of this Volume. - 磁盘容量,单位GB,数值约束为10的倍数 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 + 磁盘容量,单位GB,数值约束为10的倍数。 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 :return: The size of this Volume. :rtype: int @@ -86,7 +86,7 @@ def size(self): def size(self, size): """Sets the size of this Volume. - 磁盘容量,单位GB,数值约束为10的倍数 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 + 磁盘容量,单位GB,数值约束为10的倍数。 * `系统盘` minLength: 10,maxLength: 1024 * `数据盘` minLength: 10,maxLength: 32768 :param size: The size of this Volume. :type size: int @@ -97,7 +97,7 @@ def size(self, size): def cluster_id(self): """Gets the cluster_id of this Volume. - 云服务器系统盘对应的存储池的ID + 云服务器系统盘对应的存储池的ID。 :return: The cluster_id of this Volume. :rtype: str @@ -108,7 +108,7 @@ def cluster_id(self): def cluster_id(self, cluster_id): """Sets the cluster_id of this Volume. - 云服务器系统盘对应的存储池的ID + 云服务器系统盘对应的存储池的ID。 :param cluster_id: The cluster_id of this Volume. :type cluster_id: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_extra_specs.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_extra_specs.py index a29ea3652b..57ed15a1a3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_extra_specs.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_extra_specs.py @@ -33,7 +33,7 @@ def __init__(self, availability_zone=None, sold_out_availability_zone=None): :param availability_zone: 该类型磁盘对应的可用分区。 :type availability_zone: str - :param sold_out_availability_zone: 已售罄的磁盘可用区 + :param sold_out_availability_zone: 已售罄的磁盘可用区。 :type sold_out_availability_zone: str """ @@ -74,7 +74,7 @@ def availability_zone(self, availability_zone): def sold_out_availability_zone(self): """Gets the sold_out_availability_zone of this VolumeTypeExtraSpecs. - 已售罄的磁盘可用区 + 已售罄的磁盘可用区。 :return: The sold_out_availability_zone of this VolumeTypeExtraSpecs. :rtype: str @@ -85,7 +85,7 @@ def sold_out_availability_zone(self): def sold_out_availability_zone(self, sold_out_availability_zone): """Sets the sold_out_availability_zone of this VolumeTypeExtraSpecs. - 已售罄的磁盘可用区 + 已售罄的磁盘可用区。 :param sold_out_availability_zone: The sold_out_availability_zone of this VolumeTypeExtraSpecs. :type sold_out_availability_zone: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_info.py index 13601a1b8e..e92fa91b74 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/volume_type_info.py @@ -41,17 +41,17 @@ def __init__(self, resource_spec_code=None, volume_type=None, volume_product_typ The model defined in huaweicloud sdk - :param resource_spec_code: 资源规格编码 + :param resource_spec_code: 资源规格编码。 :type resource_spec_code: str - :param volume_type: 磁盘类型 + :param volume_type: 磁盘类型。 :type volume_type: str - :param volume_product_type: 磁盘产品类型 + :param volume_product_type: 磁盘产品类型。 :type volume_product_type: str - :param resource_type: 资源类型字段 + :param resource_type: 资源类型字段。 :type resource_type: str - :param cloud_service_type: 资源所属云服务类型编码 + :param cloud_service_type: 资源所属云服务类型编码。 :type cloud_service_type: str - :param name: 磁盘中英文名称 + :param name: 磁盘中英文名称。 :type name: list[dict(str, str)] :param volume_type_extra_specs: :type volume_type_extra_specs: :class:`huaweicloudsdkworkspaceapp.v1.VolumeTypeExtraSpecs` @@ -87,7 +87,7 @@ def __init__(self, resource_spec_code=None, volume_type=None, volume_product_typ def resource_spec_code(self): """Gets the resource_spec_code of this VolumeTypeInfo. - 资源规格编码 + 资源规格编码。 :return: The resource_spec_code of this VolumeTypeInfo. :rtype: str @@ -98,7 +98,7 @@ def resource_spec_code(self): def resource_spec_code(self, resource_spec_code): """Sets the resource_spec_code of this VolumeTypeInfo. - 资源规格编码 + 资源规格编码。 :param resource_spec_code: The resource_spec_code of this VolumeTypeInfo. :type resource_spec_code: str @@ -109,7 +109,7 @@ def resource_spec_code(self, resource_spec_code): def volume_type(self): """Gets the volume_type of this VolumeTypeInfo. - 磁盘类型 + 磁盘类型。 :return: The volume_type of this VolumeTypeInfo. :rtype: str @@ -120,7 +120,7 @@ def volume_type(self): def volume_type(self, volume_type): """Sets the volume_type of this VolumeTypeInfo. - 磁盘类型 + 磁盘类型。 :param volume_type: The volume_type of this VolumeTypeInfo. :type volume_type: str @@ -131,7 +131,7 @@ def volume_type(self, volume_type): def volume_product_type(self): """Gets the volume_product_type of this VolumeTypeInfo. - 磁盘产品类型 + 磁盘产品类型。 :return: The volume_product_type of this VolumeTypeInfo. :rtype: str @@ -142,7 +142,7 @@ def volume_product_type(self): def volume_product_type(self, volume_product_type): """Sets the volume_product_type of this VolumeTypeInfo. - 磁盘产品类型 + 磁盘产品类型。 :param volume_product_type: The volume_product_type of this VolumeTypeInfo. :type volume_product_type: str @@ -153,7 +153,7 @@ def volume_product_type(self, volume_product_type): def resource_type(self): """Gets the resource_type of this VolumeTypeInfo. - 资源类型字段 + 资源类型字段。 :return: The resource_type of this VolumeTypeInfo. :rtype: str @@ -164,7 +164,7 @@ def resource_type(self): def resource_type(self, resource_type): """Sets the resource_type of this VolumeTypeInfo. - 资源类型字段 + 资源类型字段。 :param resource_type: The resource_type of this VolumeTypeInfo. :type resource_type: str @@ -175,7 +175,7 @@ def resource_type(self, resource_type): def cloud_service_type(self): """Gets the cloud_service_type of this VolumeTypeInfo. - 资源所属云服务类型编码 + 资源所属云服务类型编码。 :return: The cloud_service_type of this VolumeTypeInfo. :rtype: str @@ -186,7 +186,7 @@ def cloud_service_type(self): def cloud_service_type(self, cloud_service_type): """Sets the cloud_service_type of this VolumeTypeInfo. - 资源所属云服务类型编码 + 资源所属云服务类型编码。 :param cloud_service_type: The cloud_service_type of this VolumeTypeInfo. :type cloud_service_type: str @@ -197,7 +197,7 @@ def cloud_service_type(self, cloud_service_type): def name(self): """Gets the name of this VolumeTypeInfo. - 磁盘中英文名称 + 磁盘中英文名称。 :return: The name of this VolumeTypeInfo. :rtype: list[dict(str, str)] @@ -208,7 +208,7 @@ def name(self): def name(self, name): """Sets the name of this VolumeTypeInfo. - 磁盘中英文名称 + 磁盘中英文名称。 :param name: The name of this VolumeTypeInfo. :type name: list[dict(str, str)] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py index cbcf9a25c3..4d723a069e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py @@ -31,9 +31,9 @@ def __init__(self, dedicated_host_id=None, tenancy=None): The model defined in huaweicloud sdk - :param dedicated_host_id: 云办公主机id + :param dedicated_host_id: 云办公主机id。 :type dedicated_host_id: str - :param tenancy: 专属主机类型,目前只支持dedicated - dedicated:专属型 - shared: 共享型 + :param tenancy: 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 :type tenancy: str """ @@ -52,7 +52,7 @@ def __init__(self, dedicated_host_id=None, tenancy=None): def dedicated_host_id(self): """Gets the dedicated_host_id of this WdhParam. - 云办公主机id + 云办公主机id。 :return: The dedicated_host_id of this WdhParam. :rtype: str @@ -63,7 +63,7 @@ def dedicated_host_id(self): def dedicated_host_id(self, dedicated_host_id): """Sets the dedicated_host_id of this WdhParam. - 云办公主机id + 云办公主机id。 :param dedicated_host_id: The dedicated_host_id of this WdhParam. :type dedicated_host_id: str @@ -74,7 +74,7 @@ def dedicated_host_id(self, dedicated_host_id): def tenancy(self): """Gets the tenancy of this WdhParam. - 专属主机类型,目前只支持dedicated - dedicated:专属型 - shared: 共享型 + 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 :return: The tenancy of this WdhParam. :rtype: str @@ -85,7 +85,7 @@ def tenancy(self): def tenancy(self, tenancy): """Sets the tenancy of this WdhParam. - 专属主机类型,目前只支持dedicated - dedicated:专属型 - shared: 共享型 + 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 :param tenancy: The tenancy of this WdhParam. :type tenancy: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/region/workspaceapp_region.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/region/workspaceapp_region.py index afd541a240..10ee83c5a6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/region/workspaceapp_region.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/region/workspaceapp_region.py @@ -1,8 +1,5 @@ # coding: utf-8 -import types -import six - from huaweicloudsdkcore.region.region import Region from huaweicloudsdkcore.region.provider import RegionProviderChain @@ -31,9 +28,9 @@ class WorkspaceAppRegion: @classmethod def value_of(cls, region_id, static_fields=None): if not region_id: - raise KeyError("Unexpected empty parameter: region_id.") + raise KeyError("Unexpected empty parameter: region_id") - fields = static_fields if static_fields else cls.static_fields + fields = static_fields or cls.static_fields region = cls._PROVIDER.get_region(region_id) if region: @@ -42,6 +39,5 @@ def value_of(cls, region_id, static_fields=None): if region_id in fields: return fields.get(region_id) - raise KeyError("Unexpected region_id: " + region_id) - - + raise KeyError("region_id '%s' is not in the following supported regions of service 'WorkspaceApp': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py index 36494385b4..596b335d91 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py @@ -35,7 +35,7 @@ def new_builder(cls, clazz=None): def list_published_app_async(self, request): """查询已发布应用 - 查询已发布的应用 + 查询已发布的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -110,7 +110,7 @@ def _list_published_app_http_info(self, request): def publish_app_async(self, request): """发布应用 - 批量发布应用,不允许发布同名的应用。 + 批量发布应用,不允许发布同名的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -177,7 +177,7 @@ def _publish_app_http_info(self, request): def show_publishable_app_async(self, request): """可发布应用列表 - 查询应用组下可发布的应用 + 查询应用组下可发布的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -243,7 +243,7 @@ def unpublish_app_async(self, request): """批量取消应用发布 批量取消应用发布。 - > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200) + > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. @@ -310,7 +310,7 @@ def _unpublish_app_http_info(self, request): def update_app_async(self, request): """修改应用信息 - 编辑修改应用信息 + 编辑修改应用信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -379,7 +379,7 @@ def _update_app_http_info(self, request): def upload_app_icon_async(self, request): """修改自定义应用图标 - 修改自定义应用图标 + 修改自定义应用图标。 Please refer to HUAWEI cloud API Explorer for details. @@ -450,7 +450,7 @@ def _upload_app_icon_http_info(self, request): def batch_delete_app_group_async(self, request): """批量删除应用组 - 批量删除应用组,重复执行会按照成功处理(响应200) + 批量删除应用组,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. @@ -658,7 +658,7 @@ def _list_app_group_http_info(self, request): def update_app_group_async(self, request): """修改应用组 - 修改应用组 + 修改应用组。 Please refer to HUAWEI cloud API Explorer for details. @@ -800,7 +800,7 @@ def _list_product_http_info(self, request): def list_session_type_async(self, request): """查询会话套餐列表 - 该接口用于查询会话套餐列表 + 该接口用于查询会话套餐列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -1133,7 +1133,7 @@ def _list_availability_zone_http_info(self, request): def show_job_async(self, request): """查询任务的执行状态 - 查询Job的执行状态,即将下线。 + 查询Job的执行状态。 对于创建云应用服务器命令下发后会返回job_id,通过job_id可以查询任务的执行状态。 @@ -1202,7 +1202,7 @@ def show_job_detail_async(self, request): 查询Job的执行状态。 - 对于创建云服务器、删除云服务器、重装服务器等异步API,下发命令后会返回job_id,通过job_id可以查询任务的执行状态。 + 对于创建云服务器、删除云服务器、重建镜像等异步API,下发命令后会返回job_id,通过job_id可以查询任务的执行状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -1267,7 +1267,7 @@ def _show_job_detail_http_info(self, request): def create_or_update_storage_policy_statement_async(self, request): """新增或更新存储目录访问权限自定义策略 - 新增或更新存储目录访问权限自定义策略(已存在自定义策略时会对已有策略更新) + 新增或更新存储目录访问权限自定义策略(已存在自定义策略时会对已有策略更新)。 Please refer to HUAWEI cloud API Explorer for details. @@ -1664,7 +1664,7 @@ def _delete_user_storage_attachment_http_info(self, request): def list_persistent_storage_async(self, request): """查询WKS存储 - 查询WKS存储 + 查询WKS存储。 Please refer to HUAWEI cloud API Explorer for details. @@ -1808,7 +1808,7 @@ def _list_share_folder_http_info(self, request): def list_storage_assignment_async(self, request): """查询个人存储目录 - 查询个人存储目录 + 查询个人存储目录。 Please refer to HUAWEI cloud API Explorer for details. @@ -1885,7 +1885,7 @@ def _list_storage_assignment_http_info(self, request): def list_storage_policy_statement_async(self, request): """查询存储目录访问权限策略 - 查询存储目录访问权限策略 + 查询存储目录访问权限策略。 Please refer to HUAWEI cloud API Explorer for details. @@ -1952,7 +1952,7 @@ def _list_storage_policy_statement_http_info(self, request): def update_share_folder_assignment_async(self, request): """修改共享目录成员 - 批量添加或者移除共享目录成员 + 批量添加或者移除共享目录成员。 Please refer to HUAWEI cloud API Explorer for details. @@ -2019,7 +2019,7 @@ def _update_share_folder_assignment_http_info(self, request): def update_user_folder_assignment_async(self, request): """创建个人存储目录 - 创建个人存储目录,已存在对应目录时,仅更新策略不会重复创建目录 + 创建个人存储目录,已存在对应目录时,仅更新策略不会重复创建目录。 Please refer to HUAWEI cloud API Explorer for details. @@ -2216,7 +2216,7 @@ def _create_policy_template_http_info(self, request): def delete_policy_group_async(self, request): """删除策略组 - 删除指定策略组,包含策略组对应的策略信息以及应用对象信息 + 删除指定策略组,包含策略组对应的策略信息以及应用对象信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2281,7 +2281,7 @@ def _delete_policy_group_http_info(self, request): def delete_policy_template_async(self, request): """删除策略模板 - 删除指定策略模板,包含策略模板对应的策略信息以及应用对象信息 + 删除指定策略模板,包含策略模板对应的策略信息以及应用对象信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2616,7 +2616,7 @@ def _show_original_policy_info_http_info(self, request): def update_policy_group_async(self, request): """修改策略组 - 修改指定策略组的信息 + 修改指定策略组的信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2683,7 +2683,7 @@ def _update_policy_group_http_info(self, request): def update_policy_template_async(self, request): """修改策略模板 - 修改指定策略模板的信息 + 修改指定策略模板的信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2827,7 +2827,7 @@ def _check_quota_http_info(self, request): def batch_delete_server_async(self, request): """批量删除服务器 - 批量删除服务器 + 批量删除服务器。 > - 仅支持删除按需订购的服务器,包周期订购的服务器需要到Console界面进行退订,订单退订成功后服务器将会自动删除。 Please refer to HUAWEI cloud API Explorer for details. @@ -2893,7 +2893,7 @@ def _batch_delete_server_http_info(self, request): def batch_migrate_hosts_server_async(self, request): """迁移云办公主机下面的服务器到目标云办公主机 - 迁移云办公主机下面的服务器到目标云办公主机 + 迁移云办公主机下面的服务器到目标云办公主机。 Please refer to HUAWEI cloud API Explorer for details. @@ -2958,7 +2958,7 @@ def _batch_migrate_hosts_server_http_info(self, request): def batch_reboot_server_async(self, request): """重启服务器 - 重启服务器 + 重启服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3088,7 +3088,7 @@ def _batch_rejoin_domain_http_info(self, request): def batch_start_server_async(self, request): """启动服务器 - 启动服务器 + 启动服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3153,7 +3153,7 @@ def _batch_start_server_http_info(self, request): def batch_stop_server_async(self, request): """关闭服务器 - 关闭服务器 + 关闭服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3283,7 +3283,7 @@ def _batch_update_tsvi_http_info(self, request): def change_server_image_async(self, request): """修改服务器的镜像 - 修改服务器的镜像 + 修改服务器的镜像。 > - 服务器的镜像和服务器组的镜像不一样时,支持服务器的镜像切换为服务器组的镜像,并且仅允许同等镜像进行切换,例如:同操作系统,免费镜像切换,同源同价的付费镜像切换。如果服务器组的镜像和服务器的镜像为非同等镜像,建议您直接购买新的服务器,删除或者退订老的服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3351,7 +3351,7 @@ def _change_server_image_http_info(self, request): def create_app_servers_async(self, request): """创建云服务器 - 创建云服务器接口 + 创建云服务器接口。 Please refer to HUAWEI cloud API Explorer for details. @@ -3416,7 +3416,7 @@ def _create_app_servers_http_info(self, request): def list_servers_async(self, request): """查询服务器列表 - 查询服务器列表 + 查询服务器列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -3761,7 +3761,7 @@ def _delete_server_groups_http_info(self, request): def list_server_groups_async(self, request): """查询服务器组列表 - 查询服务器组列表 + 查询服务器组列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -3902,7 +3902,7 @@ def _update_server_group_http_info(self, request): def list_app_connection_async(self, request): """查询应用使用记录 - 查询应用使用记录 + 查询应用使用记录。 Please refer to HUAWEI cloud API Explorer for details. @@ -3971,7 +3971,7 @@ def _list_app_connection_http_info(self, request): def list_session_by_user_name_async(self, request): """根据用户名查询当前会话 - 根据用户名查询当前会话 + 根据用户名查询当前会话。 Please refer to HUAWEI cloud API Explorer for details. @@ -4036,7 +4036,7 @@ def _list_session_by_user_name_http_info(self, request): def list_user_connection_async(self, request): """查询用户登录记录 - 查询用户登录记录 + 查询用户登录记录。 Please refer to HUAWEI cloud API Explorer for details. @@ -4105,7 +4105,7 @@ def _list_user_connection_http_info(self, request): def logoff_user_session_async(self, request): """用户会话注销 - 用户会话注销 + 用户会话注销。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py index 271ab2f950..e76fb5795f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py @@ -35,7 +35,7 @@ def new_builder(cls, clazz=None): def list_published_app(self, request): """查询已发布应用 - 查询已发布的应用 + 查询已发布的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -110,7 +110,7 @@ def _list_published_app_http_info(cls, request): def publish_app(self, request): """发布应用 - 批量发布应用,不允许发布同名的应用。 + 批量发布应用,不允许发布同名的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -177,7 +177,7 @@ def _publish_app_http_info(cls, request): def show_publishable_app(self, request): """可发布应用列表 - 查询应用组下可发布的应用 + 查询应用组下可发布的应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -243,7 +243,7 @@ def unpublish_app(self, request): """批量取消应用发布 批量取消应用发布。 - > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200) + > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. @@ -310,7 +310,7 @@ def _unpublish_app_http_info(cls, request): def update_app(self, request): """修改应用信息 - 编辑修改应用信息 + 编辑修改应用信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -379,7 +379,7 @@ def _update_app_http_info(cls, request): def upload_app_icon(self, request): """修改自定义应用图标 - 修改自定义应用图标 + 修改自定义应用图标。 Please refer to HUAWEI cloud API Explorer for details. @@ -450,7 +450,7 @@ def _upload_app_icon_http_info(cls, request): def batch_delete_app_group(self, request): """批量删除应用组 - 批量删除应用组,重复执行会按照成功处理(响应200) + 批量删除应用组,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. @@ -658,7 +658,7 @@ def _list_app_group_http_info(cls, request): def update_app_group(self, request): """修改应用组 - 修改应用组 + 修改应用组。 Please refer to HUAWEI cloud API Explorer for details. @@ -800,7 +800,7 @@ def _list_product_http_info(cls, request): def list_session_type(self, request): """查询会话套餐列表 - 该接口用于查询会话套餐列表 + 该接口用于查询会话套餐列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -1133,7 +1133,7 @@ def _list_availability_zone_http_info(cls, request): def show_job(self, request): """查询任务的执行状态 - 查询Job的执行状态,即将下线。 + 查询Job的执行状态。 对于创建云应用服务器命令下发后会返回job_id,通过job_id可以查询任务的执行状态。 @@ -1202,7 +1202,7 @@ def show_job_detail(self, request): 查询Job的执行状态。 - 对于创建云服务器、删除云服务器、重装服务器等异步API,下发命令后会返回job_id,通过job_id可以查询任务的执行状态。 + 对于创建云服务器、删除云服务器、重建镜像等异步API,下发命令后会返回job_id,通过job_id可以查询任务的执行状态。 Please refer to HUAWEI cloud API Explorer for details. @@ -1267,7 +1267,7 @@ def _show_job_detail_http_info(cls, request): def create_or_update_storage_policy_statement(self, request): """新增或更新存储目录访问权限自定义策略 - 新增或更新存储目录访问权限自定义策略(已存在自定义策略时会对已有策略更新) + 新增或更新存储目录访问权限自定义策略(已存在自定义策略时会对已有策略更新)。 Please refer to HUAWEI cloud API Explorer for details. @@ -1664,7 +1664,7 @@ def _delete_user_storage_attachment_http_info(cls, request): def list_persistent_storage(self, request): """查询WKS存储 - 查询WKS存储 + 查询WKS存储。 Please refer to HUAWEI cloud API Explorer for details. @@ -1808,7 +1808,7 @@ def _list_share_folder_http_info(cls, request): def list_storage_assignment(self, request): """查询个人存储目录 - 查询个人存储目录 + 查询个人存储目录。 Please refer to HUAWEI cloud API Explorer for details. @@ -1885,7 +1885,7 @@ def _list_storage_assignment_http_info(cls, request): def list_storage_policy_statement(self, request): """查询存储目录访问权限策略 - 查询存储目录访问权限策略 + 查询存储目录访问权限策略。 Please refer to HUAWEI cloud API Explorer for details. @@ -1952,7 +1952,7 @@ def _list_storage_policy_statement_http_info(cls, request): def update_share_folder_assignment(self, request): """修改共享目录成员 - 批量添加或者移除共享目录成员 + 批量添加或者移除共享目录成员。 Please refer to HUAWEI cloud API Explorer for details. @@ -2019,7 +2019,7 @@ def _update_share_folder_assignment_http_info(cls, request): def update_user_folder_assignment(self, request): """创建个人存储目录 - 创建个人存储目录,已存在对应目录时,仅更新策略不会重复创建目录 + 创建个人存储目录,已存在对应目录时,仅更新策略不会重复创建目录。 Please refer to HUAWEI cloud API Explorer for details. @@ -2216,7 +2216,7 @@ def _create_policy_template_http_info(cls, request): def delete_policy_group(self, request): """删除策略组 - 删除指定策略组,包含策略组对应的策略信息以及应用对象信息 + 删除指定策略组,包含策略组对应的策略信息以及应用对象信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2281,7 +2281,7 @@ def _delete_policy_group_http_info(cls, request): def delete_policy_template(self, request): """删除策略模板 - 删除指定策略模板,包含策略模板对应的策略信息以及应用对象信息 + 删除指定策略模板,包含策略模板对应的策略信息以及应用对象信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2616,7 +2616,7 @@ def _show_original_policy_info_http_info(cls, request): def update_policy_group(self, request): """修改策略组 - 修改指定策略组的信息 + 修改指定策略组的信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2683,7 +2683,7 @@ def _update_policy_group_http_info(cls, request): def update_policy_template(self, request): """修改策略模板 - 修改指定策略模板的信息 + 修改指定策略模板的信息。 Please refer to HUAWEI cloud API Explorer for details. @@ -2827,7 +2827,7 @@ def _check_quota_http_info(cls, request): def batch_delete_server(self, request): """批量删除服务器 - 批量删除服务器 + 批量删除服务器。 > - 仅支持删除按需订购的服务器,包周期订购的服务器需要到Console界面进行退订,订单退订成功后服务器将会自动删除。 Please refer to HUAWEI cloud API Explorer for details. @@ -2893,7 +2893,7 @@ def _batch_delete_server_http_info(cls, request): def batch_migrate_hosts_server(self, request): """迁移云办公主机下面的服务器到目标云办公主机 - 迁移云办公主机下面的服务器到目标云办公主机 + 迁移云办公主机下面的服务器到目标云办公主机。 Please refer to HUAWEI cloud API Explorer for details. @@ -2958,7 +2958,7 @@ def _batch_migrate_hosts_server_http_info(cls, request): def batch_reboot_server(self, request): """重启服务器 - 重启服务器 + 重启服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3088,7 +3088,7 @@ def _batch_rejoin_domain_http_info(cls, request): def batch_start_server(self, request): """启动服务器 - 启动服务器 + 启动服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3153,7 +3153,7 @@ def _batch_start_server_http_info(cls, request): def batch_stop_server(self, request): """关闭服务器 - 关闭服务器 + 关闭服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3283,7 +3283,7 @@ def _batch_update_tsvi_http_info(cls, request): def change_server_image(self, request): """修改服务器的镜像 - 修改服务器的镜像 + 修改服务器的镜像。 > - 服务器的镜像和服务器组的镜像不一样时,支持服务器的镜像切换为服务器组的镜像,并且仅允许同等镜像进行切换,例如:同操作系统,免费镜像切换,同源同价的付费镜像切换。如果服务器组的镜像和服务器的镜像为非同等镜像,建议您直接购买新的服务器,删除或者退订老的服务器。 Please refer to HUAWEI cloud API Explorer for details. @@ -3351,7 +3351,7 @@ def _change_server_image_http_info(cls, request): def create_app_servers(self, request): """创建云服务器 - 创建云服务器接口 + 创建云服务器接口。 Please refer to HUAWEI cloud API Explorer for details. @@ -3416,7 +3416,7 @@ def _create_app_servers_http_info(cls, request): def list_servers(self, request): """查询服务器列表 - 查询服务器列表 + 查询服务器列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -3761,7 +3761,7 @@ def _delete_server_groups_http_info(cls, request): def list_server_groups(self, request): """查询服务器组列表 - 查询服务器组列表 + 查询服务器组列表。 Please refer to HUAWEI cloud API Explorer for details. @@ -3902,7 +3902,7 @@ def _update_server_group_http_info(cls, request): def list_app_connection(self, request): """查询应用使用记录 - 查询应用使用记录 + 查询应用使用记录。 Please refer to HUAWEI cloud API Explorer for details. @@ -3971,7 +3971,7 @@ def _list_app_connection_http_info(cls, request): def list_session_by_user_name(self, request): """根据用户名查询当前会话 - 根据用户名查询当前会话 + 根据用户名查询当前会话。 Please refer to HUAWEI cloud API Explorer for details. @@ -4036,7 +4036,7 @@ def _list_session_by_user_name_http_info(cls, request): def list_user_connection(self, request): """查询用户登录记录 - 查询用户登录记录 + 查询用户登录记录。 Please refer to HUAWEI cloud API Explorer for details. @@ -4105,7 +4105,7 @@ def _list_user_connection_http_info(cls, request): def logoff_user_session(self, request): """用户会话注销 - 用户会话注销 + 用户会话注销。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 39fc1ad622..b0110b68b4 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.77 \ No newline at end of file +huaweicloudsdkcore >= 3.1.78 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 2c47cf85d3..35e1a413a4 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.77" +VERSION = "3.1.78" 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.77"] +REQUIRES = ["huaweicloudsdkcore>=3.1.78"] OPTIONS = { 'bdist_wheel': {